class AdLint::Cc1::ArrayDeclarator
Attributes
base[R]
size_expression[R]
Public Class Methods
new(base_dcr, size_expr)
click to toggle source
Calls superclass method
AdLint::Cc1::Declarator::new
# File lib/adlint/cc1/syntax.rb, line 3215 def initialize(base_dcr, size_expr) super() @base = base_dcr @size_expression = size_expr end
Public Instance Methods
function?(stack = [])
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3244 def function?(stack = []) stack.push(:pointer) if pointer stack.push(:array) @base.function?(stack) stack.last == :function end
identifier()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3228 def identifier @base.identifier end
identifier_list()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3240 def identifier_list @base.identifier_list end
innermost_parameter_type_list()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3236 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 3251 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 3224 def location @base ? @base.location || head_location : head_location end
parameter_type_list()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3232 def parameter_type_list @base.parameter_type_list end