Class: AdLint::Cc1::GroupedAbstractDeclarator
Instance Attribute Summary collapse
Attributes inherited from Declarator
#pointer
Attributes inherited from SyntaxNode
#head_token, #subsequent_sequence_point, #tail_token
Instance Method Summary
collapse
#abstract?, #identifier
Methods inherited from Declarator
#abstract?, #full=, #full?, #identifier, #variable?
Methods inherited from SyntaxNode
#head_location, #short_class_name, #tail_location
#analysis_target?
Methods included from Visitable
#accept
Constructor Details
Returns a new instance of GroupedAbstractDeclarator.
4319
4320
4321
4322
|
# File 'lib/adlint/cc1/syntax.rb', line 4319
def initialize(abstract_dcr)
super()
@base = abstract_dcr
end
|
Instance Attribute Details
Returns the value of attribute base.
4324
4325
4326
|
# File 'lib/adlint/cc1/syntax.rb', line 4324
def base
@base
end
|
Instance Method Details
#function? ⇒ Boolean
4330
4331
4332
|
# File 'lib/adlint/cc1/syntax.rb', line 4330
def function?
@base.function?
end
|
#identifier_list ⇒ Object
4342
4343
4344
|
# File 'lib/adlint/cc1/syntax.rb', line 4342
def identifier_list
@base.identifier_list
end
|
#innermost_parameter_type_list ⇒ Object
4338
4339
4340
|
# File 'lib/adlint/cc1/syntax.rb', line 4338
def innermost_parameter_type_list
@base.innermost_parameter_type_list
end
|
#inspect(indent = 0) ⇒ Object
4346
4347
4348
|
# File 'lib/adlint/cc1/syntax.rb', line 4346
def inspect(indent = 0)
" " * indent + short_class_name
end
|
4326
4327
4328
|
# File 'lib/adlint/cc1/syntax.rb', line 4326
def location
@base ? @base.location || head_location : head_location
end
|
#parameter_type_list ⇒ Object
4334
4335
4336
|
# File 'lib/adlint/cc1/syntax.rb', line 4334
def parameter_type_list
@base.parameter_type_list
end
|