Class: MilkTea::AST::MatchExpr
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::MatchExpr
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#arms ⇒ Object
readonly
Returns the value of attribute arms.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#desugared_from_is ⇒ Object
readonly
Returns the value of attribute desugared_from_is.
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(expression:, arms:, line: nil, column: nil, length: nil, desugared_from_is: false) ⇒ MatchExpr
constructor
A new instance of MatchExpr.
Constructor Details
#initialize(expression:, arms:, line: nil, column: nil, length: nil, desugared_from_is: false) ⇒ MatchExpr
Returns a new instance of MatchExpr.
231 |
# File 'lib/milk_tea/core/ast.rb', line 231 def initialize(expression:, arms:, line: nil, column: nil, length: nil, desugared_from_is: false) = super |
Instance Attribute Details
#arms ⇒ Object (readonly)
Returns the value of attribute arms
230 231 232 |
# File 'lib/milk_tea/core/ast.rb', line 230 def arms @arms end |
#column ⇒ Object (readonly)
Returns the value of attribute column
230 231 232 |
# File 'lib/milk_tea/core/ast.rb', line 230 def column @column end |
#desugared_from_is ⇒ Object (readonly)
Returns the value of attribute desugared_from_is
230 231 232 |
# File 'lib/milk_tea/core/ast.rb', line 230 def desugared_from_is @desugared_from_is end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression
230 231 232 |
# File 'lib/milk_tea/core/ast.rb', line 230 def expression @expression end |
#length ⇒ Object (readonly)
Returns the value of attribute length
230 231 232 |
# File 'lib/milk_tea/core/ast.rb', line 230 def length @length end |
#line ⇒ Object (readonly)
Returns the value of attribute line
230 231 232 |
# File 'lib/milk_tea/core/ast.rb', line 230 def line @line end |