class AdLint::Cc1::FunctionDeclaration
Attributes
declaration_specifiers[R]
init_declarator[R]
symbol[R]
type[RW]
Public Class Methods
new(dcl_specs, init_dcr, sym)
click to toggle source
Calls superclass method
AdLint::Cc1::SyntaxNode::new
# File lib/adlint/cc1/syntax.rb, line 2405 def initialize(dcl_specs, init_dcr, sym) super() @declaration_specifiers = dcl_specs @init_declarator = init_dcr @symbol = sym @type = nil end
Public Instance Methods
function_declarator()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2426 def function_declarator collect_function_declarators(@init_declarator).first end
identifier()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2418 def identifier @init_declarator.declarator.identifier end
inspect(indent = 0)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2434 def inspect(indent = 0) " " * indent + "#{short_class_name} (#{location.inspect}) " + identifier.value end
location()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2430 def location identifier.location end
signature()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2422 def signature FunctionSignature.new(identifier.value, @type) end