Class: Rubycc::Preprocess::Preprocessor::Invocation

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubycc/preprocess/preprocessor.rb

Overview

One function-like invocation's arguments. raw is each argument's unexpanded tokens (what "#" and "##" operate on), commas the top-level comma tokens between them (kept verbatim so #VA_ARGS can reproduce the exact spacing), and expanded a per-argument memo of the fully expanded form, filled lazily so an argument used only by "#"/"##" is never expanded.

Instance Attribute Summary collapse

Instance Attribute Details

#commasObject

Returns the value of attribute commas

Returns:

  • (Object)

    the current value of commas



236
237
238
# File 'lib/rubycc/preprocess/preprocessor.rb', line 236

def commas
  @commas
end

#expandedObject

Returns the value of attribute expanded

Returns:

  • (Object)

    the current value of expanded



236
237
238
# File 'lib/rubycc/preprocess/preprocessor.rb', line 236

def expanded
  @expanded
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



236
237
238
# File 'lib/rubycc/preprocess/preprocessor.rb', line 236

def raw
  @raw
end