Class: Carbon::Compiler::Node::Definition::Struct
- Defined in:
- lib/carbon/compiler/node/definition/struct.rb,
lib/carbon/compiler/node/definition/struct/element.rb
Overview
A struct definition. This sets up a structured block of memory for various purposes. A Struct’s children are its elements.
Defined Under Namespace
Classes: Element
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#data? ⇒ true
If this definition is a data definition.
Methods inherited from Base
#[], #accept, #attributes!, #behavior?, #data, #each, #identity?, #initialize, #map!, mapping, #merge!, #type!, #update!
Constructor Details
This class inherits a constructor from Carbon::Compiler::Node::Base
Instance Method Details
#data? ⇒ true
If this definition is a data definition. A Structure is one of many possible data definitions.
17 18 19 |
# File 'lib/carbon/compiler/node/definition/struct.rb', line 17 def data? true end |