Class: Rubycc::Front::AST::Call

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/front/ast.rb

Overview

A function call "callee ( args )" (ISO C 6.5.2.2). callee is the postfix-expression being called — an ordinary identifier for a direct call ("f(x)"), but equally a dereference ("(*fp)(x)"), a subscript ("tablei"), a member access ("s.fp(x)") or any expression that yields a function or a function pointer. args is an array of expression nodes (the argument-expression-list), evaluated left to right. The generator settles whether the callee is a direct function designator (a plain :call) or a pointer value (an indirect call).

Instance Attribute Summary collapse

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



321
322
323
# File 'lib/rubycc/front/ast.rb', line 321

def args
  @args
end

#calleeObject (readonly)

Returns the value of attribute callee

Returns:

  • (Object)

    the current value of callee



321
322
323
# File 'lib/rubycc/front/ast.rb', line 321

def callee
  @callee
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



321
322
323
# File 'lib/rubycc/front/ast.rb', line 321

def token
  @token
end