class AdLint::Cc1::TypedefDeclaration

Attributes

declaration_specifiers[R]
init_declarator[R]
type[RW]

Public Class Methods

new(dcl_specs, init_dcr, sym) click to toggle source
Calls superclass method AdLint::Cc1::TypeDeclaration::new
# File lib/adlint/cc1/syntax.rb, line 2528
def initialize(dcl_specs, init_dcr, sym)
  super(sym)
  @declaration_specifiers = dcl_specs
  @init_declarator = init_dcr
  @type = nil
end

Public Instance Methods

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