Class: Rubycc::Front::AST::InitItem
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::InitItem
- Defined in:
- lib/rubycc/front/ast.rb
Overview
One element of an initializer-list. designators is the (possibly
empty) leading designator chain — ArrayDesignator / MemberDesignator
nodes, so ".a.b = x" and "[1].m = y" carry two — that redirects the
current object before value initializes it; value is either an
expression node or a nested InitializerList.
Instance Attribute Summary collapse
-
#designators ⇒ Object
readonly
Returns the value of attribute designators.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Attribute Details
#designators ⇒ Object (readonly)
Returns the value of attribute designators
113 114 115 |
# File 'lib/rubycc/front/ast.rb', line 113 def designators @designators end |
#value ⇒ Object (readonly)
Returns the value of attribute value
113 114 115 |
# File 'lib/rubycc/front/ast.rb', line 113 def value @value end |