Class: Rubycc::Front::AggregateInit
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AggregateInit
- 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
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Attribute Details
#offset ⇒ Object (readonly)
Returns the value of attribute offset
34 35 36 |
# File 'lib/rubycc/front/initializer_resolver.rb', line 34 def offset @offset end |
#type ⇒ Object (readonly)
Returns the value of attribute type
34 35 36 |
# File 'lib/rubycc/front/initializer_resolver.rb', line 34 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value
34 35 36 |
# File 'lib/rubycc/front/initializer_resolver.rb', line 34 def value @value end |