class AdLint::Cc1::VariableDefinition

Attributes

init_declarator[R]
symbol[R]

Public Class Methods

new(dcl_specs, init_dcr, sym) click to toggle source
Calls superclass method AdLint::Cc1::Definition::new
# File lib/adlint/cc1/syntax.rb, line 2486
def initialize(dcl_specs, init_dcr, sym)
  super(dcl_specs)

  @init_declarator = init_dcr
  @symbol = sym
end

Public Instance Methods

identifier() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2496
def identifier
  @init_declarator.declarator.identifier
end
initializer() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2500
def initializer
  @init_declarator.initializer
end
inspect(indent = 0) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2508
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 2504
def location
  identifier.location
end