Class: MilkTea::AST::MatchStmt

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:, inline: false, line: nil, column: nil, length: nil) ⇒ MatchStmt

Returns a new instance of MatchStmt.



160
# File 'lib/milk_tea/core/ast.rb', line 160

def initialize(expression:, arms:, inline: false, line: nil, column: nil, length: nil) = super

Instance Attribute Details

#armsObject (readonly)

Returns the value of attribute arms

Returns:

  • (Object)

    the current value of arms



159
160
161
# File 'lib/milk_tea/core/ast.rb', line 159

def arms
  @arms
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



159
160
161
# File 'lib/milk_tea/core/ast.rb', line 159

def column
  @column
end

#expressionObject (readonly)

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



159
160
161
# File 'lib/milk_tea/core/ast.rb', line 159

def expression
  @expression
end

#inlineObject (readonly)

Returns the value of attribute inline

Returns:

  • (Object)

    the current value of inline



159
160
161
# File 'lib/milk_tea/core/ast.rb', line 159

def inline
  @inline
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



159
160
161
# File 'lib/milk_tea/core/ast.rb', line 159

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



159
160
161
# File 'lib/milk_tea/core/ast.rb', line 159

def line
  @line
end