Class: MilkTea::IR::StructDecl
- Inherits:
-
Data
- Object
- Data
- MilkTea::IR::StructDecl
- Defined in:
- lib/milk_tea/core/ir.rb
Instance Attribute Summary collapse
-
#alignment ⇒ Object
readonly
Returns the value of attribute alignment.
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#linkage_name ⇒ Object
readonly
Returns the value of attribute linkage_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#packed ⇒ Object
readonly
Returns the value of attribute packed.
-
#source_module ⇒ Object
readonly
Returns the value of attribute source_module.
Instance Method Summary collapse
-
#initialize(name:, linkage_name:, fields:, packed:, alignment:, source_module: nil) ⇒ StructDecl
constructor
A new instance of StructDecl.
Constructor Details
#initialize(name:, linkage_name:, fields:, packed:, alignment:, source_module: nil) ⇒ StructDecl
Returns a new instance of StructDecl.
17 |
# File 'lib/milk_tea/core/ir.rb', line 17 def initialize(name:, linkage_name:, fields:, packed:, alignment:, source_module: nil) = super |
Instance Attribute Details
#alignment ⇒ Object (readonly)
Returns the value of attribute alignment
16 17 18 |
# File 'lib/milk_tea/core/ir.rb', line 16 def alignment @alignment end |
#fields ⇒ Object (readonly)
Returns the value of attribute fields
16 17 18 |
# File 'lib/milk_tea/core/ir.rb', line 16 def fields @fields end |
#linkage_name ⇒ Object (readonly)
Returns the value of attribute linkage_name
16 17 18 |
# File 'lib/milk_tea/core/ir.rb', line 16 def linkage_name @linkage_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name
16 17 18 |
# File 'lib/milk_tea/core/ir.rb', line 16 def name @name end |
#packed ⇒ Object (readonly)
Returns the value of attribute packed
16 17 18 |
# File 'lib/milk_tea/core/ir.rb', line 16 def packed @packed end |
#source_module ⇒ Object (readonly)
Returns the value of attribute source_module
16 17 18 |
# File 'lib/milk_tea/core/ir.rb', line 16 def source_module @source_module end |