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.



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

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



234
235
236
# File 'lib/milk_tea/core/ast.rb', line 234

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



234
235
236
# File 'lib/milk_tea/core/ast.rb', line 234

def line
  @line
end

#memberObject (readonly)

Returns the value of attribute member

Returns:

  • (Object)

    the current value of member



234
235
236
# File 'lib/milk_tea/core/ast.rb', line 234

def member
  @member
end

#receiverObject (readonly)

Returns the value of attribute receiver

Returns:

  • (Object)

    the current value of receiver



234
235
236
# File 'lib/milk_tea/core/ast.rb', line 234

def receiver
  @receiver
end