Class: AdLint::Cc1::AnsiFunctionDefinition

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

Instance Attribute Summary

Attributes inherited from FunctionDefinition

#declarator, #function_body, #parameter_definitions, #symbol, #type_declaration

Attributes inherited from Definition

#declaration_specifiers, #type

Attributes inherited from SyntaxNode

#head_token, #subsequent_sequence_point, #tail_token

Instance Method Summary collapse

Methods inherited from FunctionDefinition

#function_declarator, #identifier, #inspect, #lines, #location, #signature

Methods included from SyntaxNodeCollector

collect_additive_expressions, collect_array_declarators, collect_compound_assignment_expressions, collect_constant_specifiers, collect_equality_expressions, collect_function_declarators, collect_generic_labeled_statements, collect_goto_statements, collect_identifier_declarators, collect_if_else_statements, collect_if_statements, collect_logical_and_expressions, collect_logical_or_expressions, collect_object_specifiers, collect_postfix_decrement_expressions, collect_postfix_increment_expressions, collect_prefix_decrement_expressions, collect_prefix_increment_expressions, collect_relational_expressions, collect_simple_assignment_expressions, collect_typedef_type_specifiers

Methods included from SymbolicElement

#mark_as_referred_by

Methods included from DeclarationSpecifiersHolder

#explicitly_typed?, #function_specifier, #implicitly_typed?, #storage_class_specifier, #type_qualifiers, #type_specifiers

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(dcl_specs, dcr, compound_stmt, sym_tbl) ⇒ AnsiFunctionDefinition

Returns a new instance of AnsiFunctionDefinition.



4128
4129
4130
4131
4132
# File 'lib/adlint/cc1/syntax.rb', line 4128

def initialize(dcl_specs, dcr, compound_stmt, sym_tbl)
  super(dcl_specs, dcr,
        create_parameters(dcr.innermost_parameter_type_list),
        compound_stmt, sym_tbl)
end

Instance Method Details

#parameter_type_listObject



4134
4135
4136
# File 'lib/adlint/cc1/syntax.rb', line 4134

def parameter_type_list
  declarator.parameter_type_list
end