class AdLint::Cc1::FunctionAbstractDeclarator

Attributes

base[R]
parameter_type_list[R]

Public Class Methods

new(abstract_dcr, param_type_list) click to toggle source
Calls superclass method AdLint::Cc1::Declarator::new
# File lib/adlint/cc1/syntax.rb, line 4389
def initialize(abstract_dcr, param_type_list)
  super()
  @base = abstract_dcr
  @parameter_type_list = param_type_list
end

Public Instance Methods

function?(stack = []) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 4402
def function?(stack = [])
  stack.push(:function)
  @base.function?(stack) if @base
  stack.last == :function
end
innermost_parameter_type_list() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 4408
def innermost_parameter_type_list
  @base.innermost_parameter_type_list || @parameter_type_list
end
inspect(indent = 0) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 4412
def inspect(indent = 0)
  " " * indent + short_class_name
end
location() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 4398
def location
  @base ? @base.location || head_location : head_location
end