Method: AdLint::Cc1::FunctionDefinition#initialize

Defined in:
lib/adlint/cc1/syntax.rb

#initialize(dcl_specs, dcr, param_defs, compound_stmt, sym_tbl) ⇒ FunctionDefinition

Returns a new instance of FunctionDefinition.



4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
# File 'lib/adlint/cc1/syntax.rb', line 4010

def initialize(dcl_specs, dcr, param_defs, compound_stmt, sym_tbl)
  super(dcl_specs)

  @declarator = dcr
  @parameter_definitions = param_defs
  @function_body = compound_stmt
  @symbol = sym_tbl.create_new_symbol(ObjectName, identifier)
  @type_declaration = build_type_declaration(dcl_specs, sym_tbl)
  build_label_references(compound_stmt)
end