class AdLint::Cc1::VariableDeclaration

Attributes

declaration_specifiers[R]
declarator[R]
symbol[R]
type[RW]

Public Class Methods

new(dcl_specs, dcr, sym) click to toggle source
Calls superclass method AdLint::Cc1::SyntaxNode::new
# File lib/adlint/cc1/syntax.rb, line 2444
def initialize(dcl_specs, dcr, sym)
  super()
  @declaration_specifiers = dcl_specs
  @declarator = dcr
  @symbol = sym
  @type = nil
end

Public Instance Methods

identifier() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2457
def identifier
  @declarator.identifier
end
inspect(indent = 0) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2465
def inspect(indent = 0)
  " " * indent + "#{short_class_name} (#{location.inspect}) " +
    identifier.value
end
location() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2461
def location
  identifier.location
end