Class: MilkTea::AST::IndexAccess

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(receiver:, index:, line: nil, column: nil) ⇒ IndexAccess

Returns a new instance of IndexAccess.



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

def initialize(receiver:, index:, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



237
238
239
# File 'lib/milk_tea/core/ast.rb', line 237

def column
  @column
end

#indexObject (readonly)

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



237
238
239
# File 'lib/milk_tea/core/ast.rb', line 237

def index
  @index
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



237
238
239
# File 'lib/milk_tea/core/ast.rb', line 237

def line
  @line
end

#receiverObject (readonly)

Returns the value of attribute receiver

Returns:

  • (Object)

    the current value of receiver



237
238
239
# File 'lib/milk_tea/core/ast.rb', line 237

def receiver
  @receiver
end