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.
15 |
# File 'lib/milk_tea/core/ir.rb', line 15 def initialize(name:, linkage_name:, fields:, packed:, alignment:, source_module: nil) = super |
Instance Attribute Details
#alignment ⇒ Object (readonly)
Returns the value of attribute alignment
14 15 16 |
# File 'lib/milk_tea/core/ir.rb', line 14 def alignment @alignment end |
#fields ⇒ Object (readonly)
Returns the value of attribute fields
14 15 16 |
# File 'lib/milk_tea/core/ir.rb', line 14 def fields @fields end |
#linkage_name ⇒ Object (readonly)
Returns the value of attribute linkage_name
14 15 16 |
# File 'lib/milk_tea/core/ir.rb', line 14 def linkage_name @linkage_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name
14 15 16 |
# File 'lib/milk_tea/core/ir.rb', line 14 def name @name end |
#packed ⇒ Object (readonly)
Returns the value of attribute packed
14 15 16 |
# File 'lib/milk_tea/core/ir.rb', line 14 def packed @packed end |
#source_module ⇒ Object (readonly)
Returns the value of attribute source_module
14 15 16 |
# File 'lib/milk_tea/core/ir.rb', line 14 def source_module @source_module end |