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.



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

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



143
144
145
# File 'lib/milk_tea/core/ast.rb', line 143

def arms
  @arms
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



143
144
145
# File 'lib/milk_tea/core/ast.rb', line 143

def column
  @column
end

#expressionObject (readonly)

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



143
144
145
# File 'lib/milk_tea/core/ast.rb', line 143

def expression
  @expression
end

#inlineObject (readonly)

Returns the value of attribute inline

Returns:

  • (Object)

    the current value of inline



143
144
145
# File 'lib/milk_tea/core/ast.rb', line 143

def inline
  @inline
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



143
144
145
# File 'lib/milk_tea/core/ast.rb', line 143

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



143
144
145
# File 'lib/milk_tea/core/ast.rb', line 143

def line
  @line
end