Class: MilkTea::AST::WhenStmt
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::WhenStmt
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#branches ⇒ Object
readonly
Returns the value of attribute branches.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#discriminant ⇒ Object
readonly
Returns the value of attribute discriminant.
-
#else_body ⇒ Object
readonly
Returns the value of attribute else_body.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(discriminant:, branches:, else_body:, line: nil, column: nil, length: nil) ⇒ WhenStmt
constructor
A new instance of WhenStmt.
Constructor Details
#initialize(discriminant:, branches:, else_body:, line: nil, column: nil, length: nil) ⇒ WhenStmt
Returns a new instance of WhenStmt.
153 |
# File 'lib/milk_tea/core/ast.rb', line 153 def initialize(discriminant:, branches:, else_body:, line: nil, column: nil, length: nil) = super |
Instance Attribute Details
#branches ⇒ Object (readonly)
Returns the value of attribute branches
152 153 154 |
# File 'lib/milk_tea/core/ast.rb', line 152 def branches @branches end |
#column ⇒ Object (readonly)
Returns the value of attribute column
152 153 154 |
# File 'lib/milk_tea/core/ast.rb', line 152 def column @column end |
#discriminant ⇒ Object (readonly)
Returns the value of attribute discriminant
152 153 154 |
# File 'lib/milk_tea/core/ast.rb', line 152 def discriminant @discriminant end |
#else_body ⇒ Object (readonly)
Returns the value of attribute else_body
152 153 154 |
# File 'lib/milk_tea/core/ast.rb', line 152 def else_body @else_body end |
#length ⇒ Object (readonly)
Returns the value of attribute length
152 153 154 |
# File 'lib/milk_tea/core/ast.rb', line 152 def length @length end |
#line ⇒ Object (readonly)
Returns the value of attribute line
152 153 154 |
# File 'lib/milk_tea/core/ast.rb', line 152 def line @line end |