class AdLint::Cc1::ParameterDeclaration

Attributes

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

Public Class Methods

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

Public Instance Methods

inspect(indent = 0) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3372
def inspect(indent = 0)
  " " * indent + short_class_name
end
location() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3368
def location
  @declarator ? @declarator.location : @declaration_specifiers.location
end