Class: Rubycc::Front::AST::VariableDecl

Inherits:
Data
  • Object
show all
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 "= " part. 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

Instance Attribute Details

#alignasObject (readonly)

Returns the value of attribute alignas

Returns:

  • (Object)

    the current value of alignas



80
81
82
# File 'lib/rubycc/front/ast.rb', line 80

def alignas
  @alignas
end

#constObject (readonly)

Returns the value of attribute const

Returns:

  • (Object)

    the current value of const



80
81
82
# File 'lib/rubycc/front/ast.rb', line 80

def const
  @const
end

#initializerObject (readonly)

Returns the value of attribute initializer

Returns:

  • (Object)

    the current value of initializer



80
81
82
# File 'lib/rubycc/front/ast.rb', line 80

def initializer
  @initializer
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



80
81
82
# File 'lib/rubycc/front/ast.rb', line 80

def name
  @name
end

#storageObject (readonly)

Returns the value of attribute storage

Returns:

  • (Object)

    the current value of storage



80
81
82
# File 'lib/rubycc/front/ast.rb', line 80

def storage
  @storage
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



80
81
82
# File 'lib/rubycc/front/ast.rb', line 80

def token
  @token
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



80
81
82
# File 'lib/rubycc/front/ast.rb', line 80

def type
  @type
end