class AdLint::Cc1::PointerAbstractDeclarator
Attributes
base[R]
Public Class Methods
new(abstract_dcr, ptr)
click to toggle source
Calls superclass method
AdLint::Cc1::Declarator::new
# File lib/adlint/cc1/syntax.rb, line 4283 def initialize(abstract_dcr, ptr) super() @base = abstract_dcr @pointer = ptr end
Public Instance Methods
function?(stack = [])
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 4295 def function?(stack = []) stack.push(:pointer) @base.function?(stack) if @base stack.last == :function end
identifier_list()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 4309 def identifier_list @base.identifier_list end
innermost_parameter_type_list()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 4305 def innermost_parameter_type_list @base.innermost_parameter_type_list end
inspect(indent = 0)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 4313 def inspect(indent = 0) " " * indent + short_class_name end
location()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 4291 def location @base ? @base.location || head_location : head_location end
parameter_type_list()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 4301 def parameter_type_list @base.parameter_type_list end