Class: Rubycc::Front::Parser::DeclSpecInfo

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

Overview

The non-type parts of a declaration's specifier run, collected by #parse_declaration_specifiers alongside the base type. storage is the recorded storage class (nil, :typedef, :static or :extern); const is whether the declaration is const-qualified (const seen among the specifiers, or folded in from a const typedef name); inline_p and noreturn_p are whether "inline" or "_Noreturn" appeared (the two function specifiers, 6.7.4, accepted on functions and rejected on objects). attributes holds the GNU attributes written among the specifiers (position a), which apply to every declarator of the declaration; only the init attributes are read back from it, and only where they are admitted at all (see #parse_declaration_specifiers). alignas is the strongest _Alignas the run asked for (an Alignas, or nil when none appeared). volatile and register/auto leave no trace here.

Instance Attribute Summary collapse

Instance Attribute Details

#alignasObject (readonly)

Returns the value of attribute alignas

Returns:

  • (Object)

    the current value of alignas



331
332
333
# File 'lib/rubycc/front/parser.rb', line 331

def alignas
  @alignas
end

#attributesObject (readonly)

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



331
332
333
# File 'lib/rubycc/front/parser.rb', line 331

def attributes
  @attributes
end

#constObject (readonly)

Returns the value of attribute const

Returns:

  • (Object)

    the current value of const



331
332
333
# File 'lib/rubycc/front/parser.rb', line 331

def const
  @const
end

#inline_pObject (readonly)

Returns the value of attribute inline_p

Returns:

  • (Object)

    the current value of inline_p



331
332
333
# File 'lib/rubycc/front/parser.rb', line 331

def inline_p
  @inline_p
end

#noreturn_pObject (readonly)

Returns the value of attribute noreturn_p

Returns:

  • (Object)

    the current value of noreturn_p



331
332
333
# File 'lib/rubycc/front/parser.rb', line 331

def noreturn_p
  @noreturn_p
end

#storageObject (readonly)

Returns the value of attribute storage

Returns:

  • (Object)

    the current value of storage



331
332
333
# File 'lib/rubycc/front/parser.rb', line 331

def storage
  @storage
end