Class: AdLint::Cc1::AnsiFunctionDeclarator

Inherits:
FunctionDeclarator show all
Defined in:
lib/adlint/cc1/syntax.rb

Instance Attribute Summary collapse

Attributes inherited from FunctionDeclarator

#base

Attributes inherited from Declarator

#pointer

Attributes inherited from SyntaxNode

#head_token, #subsequent_sequence_point, #tail_token

Instance Method Summary collapse

Methods inherited from FunctionDeclarator

#function?, #identifier, #inspect, #location

Methods inherited from Declarator

#abstract?, #base, #full=, #full?, #function?, #identifier, #variable?

Methods inherited from SyntaxNode

#head_location, #inspect, #location, #short_class_name, #tail_location

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Constructor Details

#initialize(base_dcr, param_type_list) ⇒ AnsiFunctionDeclarator



3285
3286
3287
3288
# File 'lib/adlint/cc1/syntax.rb', line 3285

def initialize(base_dcr, param_type_list)
  super(base_dcr)
  @parameter_type_list = param_type_list
end

Instance Attribute Details

#parameter_type_listObject

Returns the value of attribute parameter_type_list.



3290
3291
3292
# File 'lib/adlint/cc1/syntax.rb', line 3290

def parameter_type_list
  @parameter_type_list
end

Instance Method Details

#identifier_listObject



3296
3297
3298
# File 'lib/adlint/cc1/syntax.rb', line 3296

def identifier_list
  @base.identifier_list
end

#innermost_parameter_type_listObject



3292
3293
3294
# File 'lib/adlint/cc1/syntax.rb', line 3292

def innermost_parameter_type_list
  @base.innermost_parameter_type_list || @parameter_type_list
end