Class: MilkTea::AST::RangeExpr

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(start_expr:, end_expr:, line: nil, column: nil) ⇒ RangeExpr

Returns a new instance of RangeExpr.



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

def initialize(start_expr:, end_expr:, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



255
256
257
# File 'lib/milk_tea/core/ast.rb', line 255

def column
  @column
end

#end_exprObject (readonly)

Returns the value of attribute end_expr

Returns:

  • (Object)

    the current value of end_expr



255
256
257
# File 'lib/milk_tea/core/ast.rb', line 255

def end_expr
  @end_expr
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



255
256
257
# File 'lib/milk_tea/core/ast.rb', line 255

def line
  @line
end

#start_exprObject (readonly)

Returns the value of attribute start_expr

Returns:

  • (Object)

    the current value of start_expr



255
256
257
# File 'lib/milk_tea/core/ast.rb', line 255

def start_expr
  @start_expr
end