Class: Rubycc::Front::AST::InitializerList

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

Overview

A brace-enclosed initializer "{ ... }" (ISO C 6.7.9). items is the ordered list of InitItem, one per comma-separated element (a trailing comma adds none). Appears as a VariableDecl/GlobalDecl initializer, or nested as an InitItem's value; the resolver walks it against the object's type to place each scalar. token is the opening brace.

Instance Attribute Summary collapse

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items

Returns:

  • (Object)

    the current value of items



106
107
108
# File 'lib/rubycc/front/ast.rb', line 106

def items
  @items
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



106
107
108
# File 'lib/rubycc/front/ast.rb', line 106

def token
  @token
end