Class: MilkTea::AST::Call

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(callee:, arguments:, line: nil, column: nil) ⇒ Call

Returns a new instance of Call.



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

def initialize(callee:, arguments:, line: nil, column: nil) = super

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments

Returns:

  • (Object)

    the current value of arguments



243
244
245
# File 'lib/milk_tea/core/ast.rb', line 243

def arguments
  @arguments
end

#calleeObject (readonly)

Returns the value of attribute callee

Returns:

  • (Object)

    the current value of callee



243
244
245
# File 'lib/milk_tea/core/ast.rb', line 243

def callee
  @callee
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



243
244
245
# File 'lib/milk_tea/core/ast.rb', line 243

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



243
244
245
# File 'lib/milk_tea/core/ast.rb', line 243

def line
  @line
end