Class: Rubycc::Front::AggregateInit

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

Overview

A whole aggregate expression copied into an aggregate subobject at offset. C permits an initializer-list element to be a single expression of the subobject's own structure/union type (6.7.9p13) -- a compound literal such as .base = (Node){ .type = 1 }, a call returning that struct, a variable of it; it is an expression initializer, not a brace-elided walk of the outer cursor.

Instance Attribute Summary collapse

Instance Attribute Details

#offsetObject (readonly)

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



34
35
36
# File 'lib/rubycc/front/initializer_resolver.rb', line 34

def offset
  @offset
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



34
35
36
# File 'lib/rubycc/front/initializer_resolver.rb', line 34

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



34
35
36
# File 'lib/rubycc/front/initializer_resolver.rb', line 34

def value
  @value
end