Class: MilkTea::AST::VariantDecl
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::VariantDecl
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#arms ⇒ Object
readonly
Returns the value of attribute arms.
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type_params ⇒ Object
readonly
Returns the value of attribute type_params.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Instance Method Summary collapse
-
#initialize(name:, type_params:, arms:, visibility:, attributes: [], line: nil, column: nil) ⇒ VariantDecl
constructor
A new instance of VariantDecl.
Constructor Details
#initialize(name:, type_params:, arms:, visibility:, attributes: [], line: nil, column: nil) ⇒ VariantDecl
Returns a new instance of VariantDecl.
137 |
# File 'lib/milk_tea/core/ast.rb', line 137 def initialize(name:, type_params:, arms:, visibility:, attributes: [], line: nil, column: nil) = super |
Instance Attribute Details
#arms ⇒ Object (readonly)
Returns the value of attribute arms
136 137 138 |
# File 'lib/milk_tea/core/ast.rb', line 136 def arms @arms end |
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes
136 137 138 |
# File 'lib/milk_tea/core/ast.rb', line 136 def attributes @attributes end |
#column ⇒ Object (readonly)
Returns the value of attribute column
136 137 138 |
# File 'lib/milk_tea/core/ast.rb', line 136 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line
136 137 138 |
# File 'lib/milk_tea/core/ast.rb', line 136 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
136 137 138 |
# File 'lib/milk_tea/core/ast.rb', line 136 def name @name end |
#type_params ⇒ Object (readonly)
Returns the value of attribute type_params
136 137 138 |
# File 'lib/milk_tea/core/ast.rb', line 136 def type_params @type_params end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility
136 137 138 |
# File 'lib/milk_tea/core/ast.rb', line 136 def visibility @visibility end |