Class: Rubycc::Front::ResolvedInitializer

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

Overview

The outcome of resolving an initializer: type is the object's type with any "[]" array bound now filled in (so sizeof and the storage layout see a complete type), entries is the flat list of ScalarInit/BitfieldInit/ StringInit/AggregateInit placements placements, in source order, that the caller lowers, and flexible_bytes is the storage an initialized flexible array member adds beyond type.size (0 for every other object; see #fill_flexible_array_member).

Instance Attribute Summary collapse

Instance Attribute Details

#entriesObject (readonly)

Returns the value of attribute entries

Returns:

  • (Object)

    the current value of entries



43
44
45
# File 'lib/rubycc/front/initializer_resolver.rb', line 43

def entries
  @entries
end

#flexible_bytesObject (readonly)

Returns the value of attribute flexible_bytes

Returns:

  • (Object)

    the current value of flexible_bytes



43
44
45
# File 'lib/rubycc/front/initializer_resolver.rb', line 43

def flexible_bytes
  @flexible_bytes
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



43
44
45
# File 'lib/rubycc/front/initializer_resolver.rb', line 43

def type
  @type
end