Class: AdLint::Cc1::KandRFunctionDefinition
- Inherits:
-
FunctionDefinition
- Object
- SyntaxNode
- Definition
- FunctionDefinition
- AdLint::Cc1::KandRFunctionDefinition
- 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
- #identifier_list ⇒ Object
-
#initialize(dcl_specs, dcr, dcls, compound_stmt, sym_tbl) ⇒ KandRFunctionDefinition
constructor
A new instance of KandRFunctionDefinition.
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
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
Methods included from Visitable
Constructor Details
#initialize(dcl_specs, dcr, dcls, compound_stmt, sym_tbl) ⇒ KandRFunctionDefinition
4069 4070 4071 4072 |
# File 'lib/adlint/cc1/syntax.rb', line 4069 def initialize(dcl_specs, dcr, dcls, compound_stmt, sym_tbl) param_defs = create_parameters(dcr.identifier_list, dcls, sym_tbl) super(dcl_specs, dcr, param_defs, compound_stmt, sym_tbl) end |
Instance Method Details
#identifier_list ⇒ Object
4074 4075 4076 |
# File 'lib/adlint/cc1/syntax.rb', line 4074 def identifier_list declarator.identifier_list end |