Class: MilkTea::AST::MatchExprArm

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pattern:, binding_name:, value:, binding_line: nil, binding_column: nil, line: nil, column: nil) ⇒ MatchExprArm

Returns a new instance of MatchExprArm.



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

def initialize(pattern:, binding_name:, value:, binding_line: nil, binding_column: nil, line: nil, column: nil) = super

Instance Attribute Details

#binding_columnObject (readonly)

Returns the value of attribute binding_column

Returns:

  • (Object)

    the current value of binding_column



162
163
164
# File 'lib/milk_tea/core/ast.rb', line 162

def binding_column
  @binding_column
end

#binding_lineObject (readonly)

Returns the value of attribute binding_line

Returns:

  • (Object)

    the current value of binding_line



162
163
164
# File 'lib/milk_tea/core/ast.rb', line 162

def binding_line
  @binding_line
end

#binding_nameObject (readonly)

Returns the value of attribute binding_name

Returns:

  • (Object)

    the current value of binding_name



162
163
164
# File 'lib/milk_tea/core/ast.rb', line 162

def binding_name
  @binding_name
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



162
163
164
# File 'lib/milk_tea/core/ast.rb', line 162

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



162
163
164
# File 'lib/milk_tea/core/ast.rb', line 162

def line
  @line
end

#patternObject (readonly)

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



162
163
164
# File 'lib/milk_tea/core/ast.rb', line 162

def pattern
  @pattern
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



162
163
164
# File 'lib/milk_tea/core/ast.rb', line 162

def value
  @value
end