Class: Rubycc::Front::AST::OffsetofIndex

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

Overview

One subscript step of a __builtin_offsetof designator: element index (a constant-expression node) of the array reached so far. token is the "[" token, for a "subscript of non-array" diagnostic.

Instance Attribute Summary collapse

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



386
387
388
# File 'lib/rubycc/front/ast.rb', line 386

def index
  @index
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



386
387
388
# File 'lib/rubycc/front/ast.rb', line 386

def token
  @token
end