Class: MilkTea::AST::MatchExpr

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#armsObject (readonly)

Returns the value of attribute arms

Returns:

  • (Object)

    the current value of arms



230
231
232
# File 'lib/milk_tea/core/ast.rb', line 230

def arms
  @arms
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



230
231
232
# File 'lib/milk_tea/core/ast.rb', line 230

def column
  @column
end

#desugared_from_isObject (readonly)

Returns the value of attribute desugared_from_is

Returns:

  • (Object)

    the current value of desugared_from_is



230
231
232
# File 'lib/milk_tea/core/ast.rb', line 230

def desugared_from_is
  @desugared_from_is
end

#expressionObject (readonly)

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



230
231
232
# File 'lib/milk_tea/core/ast.rb', line 230

def expression
  @expression
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



230
231
232
# File 'lib/milk_tea/core/ast.rb', line 230

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



230
231
232
# File 'lib/milk_tea/core/ast.rb', line 230

def line
  @line
end