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