Class: Rubycc::Front::AST::VariableDecl
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::VariableDecl
- Defined in:
- lib/rubycc/front/ast.rb
Overview
A local variable declaration. type is the declared Rubycc::Type
(int or a pointer). initializer is an expression node or nil when the
declarator has no "= const is true when the object is
top-level const-qualified (the only qualification M1 tracks), which the
generator rejects writes against. storage records the storage-class
specifier (nil, :static or :extern) for Phase B; the generator does not
consume it yet. alignas is the boundary an _Alignas specifier asked for
(6.7.5), or nil when the object takes its type's own alignment.
Instance Attribute Summary collapse
-
#alignas ⇒ Object
readonly
Returns the value of attribute alignas.
-
#const ⇒ Object
readonly
Returns the value of attribute const.
-
#initializer ⇒ Object
readonly
Returns the value of attribute initializer.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#storage ⇒ Object
readonly
Returns the value of attribute storage.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Attribute Details
#alignas ⇒ Object (readonly)
Returns the value of attribute alignas
80 81 82 |
# File 'lib/rubycc/front/ast.rb', line 80 def alignas @alignas end |
#const ⇒ Object (readonly)
Returns the value of attribute const
80 81 82 |
# File 'lib/rubycc/front/ast.rb', line 80 def const @const end |
#initializer ⇒ Object (readonly)
Returns the value of attribute initializer
80 81 82 |
# File 'lib/rubycc/front/ast.rb', line 80 def initializer @initializer end |
#name ⇒ Object (readonly)
Returns the value of attribute name
80 81 82 |
# File 'lib/rubycc/front/ast.rb', line 80 def name @name end |
#storage ⇒ Object (readonly)
Returns the value of attribute storage
80 81 82 |
# File 'lib/rubycc/front/ast.rb', line 80 def storage @storage end |
#token ⇒ Object (readonly)
Returns the value of attribute token
80 81 82 |
# File 'lib/rubycc/front/ast.rb', line 80 def token @token end |
#type ⇒ Object (readonly)
Returns the value of attribute type
80 81 82 |
# File 'lib/rubycc/front/ast.rb', line 80 def type @type end |