Class: MilkTea::AST::MemberAccess

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:, member:, line: nil, column: nil) ⇒ MemberAccess

Returns a new instance of MemberAccess.



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

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

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



218
219
220
# File 'lib/milk_tea/core/ast.rb', line 218

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



218
219
220
# File 'lib/milk_tea/core/ast.rb', line 218

def line
  @line
end

#memberObject (readonly)

Returns the value of attribute member

Returns:

  • (Object)

    the current value of member



218
219
220
# File 'lib/milk_tea/core/ast.rb', line 218

def member
  @member
end

#receiverObject (readonly)

Returns the value of attribute receiver

Returns:

  • (Object)

    the current value of receiver



218
219
220
# File 'lib/milk_tea/core/ast.rb', line 218

def receiver
  @receiver
end