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
4300
4301
4302
4303
|
# File 'lib/adlint/cc1/syntax.rb', line 4300
def initialize(abstract_dcr)
super()
@base = abstract_dcr
end
|
Instance Attribute Details
Returns the value of attribute base.
4305
4306
4307
|
# File 'lib/adlint/cc1/syntax.rb', line 4305
def base
@base
end
|
Instance Method Details
#function? ⇒ Boolean
4311
4312
4313
|
# File 'lib/adlint/cc1/syntax.rb', line 4311
def function?
@base.function?
end
|
#identifier_list ⇒ Object
4323
4324
4325
|
# File 'lib/adlint/cc1/syntax.rb', line 4323
def identifier_list
@base.identifier_list
end
|
#innermost_parameter_type_list ⇒ Object
4319
4320
4321
|
# File 'lib/adlint/cc1/syntax.rb', line 4319
def innermost_parameter_type_list
@base.innermost_parameter_type_list
end
|
#inspect(indent = 0) ⇒ Object
4327
4328
4329
|
# File 'lib/adlint/cc1/syntax.rb', line 4327
def inspect(indent = 0)
" " * indent + short_class_name
end
|
4307
4308
4309
|
# File 'lib/adlint/cc1/syntax.rb', line 4307
def location
@base ? @base.location || head_location : head_location
end
|
#parameter_type_list ⇒ Object
4315
4316
4317
|
# File 'lib/adlint/cc1/syntax.rb', line 4315
def parameter_type_list
@base.parameter_type_list
end
|