Class: Rubycc::Front::AST::VaArg

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

Overview

"__builtin_va_arg ( ap , type-name )": fetches the next variable argument and advances ap. ap is the va_list expression and type is the resolved Rubycc::Type the argument is read as (an int/long/unsigned/ pointer object type; a promotable or aggregate type is diagnosed). The whole expression's value and type are that argument.

Instance Attribute Summary collapse

Instance Attribute Details

#apObject (readonly)

Returns the value of attribute ap

Returns:

  • (Object)

    the current value of ap



337
338
339
# File 'lib/rubycc/front/ast.rb', line 337

def ap
  @ap
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



337
338
339
# File 'lib/rubycc/front/ast.rb', line 337

def token
  @token
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



337
338
339
# File 'lib/rubycc/front/ast.rb', line 337

def type
  @type
end