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