Class: Rubycc::Front::AST::InitItem

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#designatorsObject (readonly)

Returns the value of attribute designators

Returns:

  • (Object)

    the current value of designators



113
114
115
# File 'lib/rubycc/front/ast.rb', line 113

def designators
  @designators
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



113
114
115
# File 'lib/rubycc/front/ast.rb', line 113

def value
  @value
end