class AdLint::Cc1::FunctionDeclarator
Attributes
base[R]
Public Class Methods
new(base_dcr)
click to toggle source
Calls superclass method
AdLint::Cc1::Declarator::new
# File lib/adlint/cc1/syntax.rb, line 3257 def initialize(base_dcr) super() @base = base_dcr end
Public Instance Methods
function?(stack = [])
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3272 def function?(stack = []) stack.push(:pointer) if pointer stack.push(:function) @base.function?(stack) stack.last == :function end
identifier()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3268 def identifier @base.identifier end
inspect(indent = 0)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3279 def inspect(indent = 0) " " * indent + "#{short_class_name}\n" + @base.inspect(indent + 1) end
location()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3264 def location @base ? @base.location || head_location : head_location end