code: def function_end_action(self, text, loc, fun):
          
          if DEBUG > 0:
              print("FUN_END:",fun)
              if DEBUG == 2: self.symtab.display()
              if DEBUG > 2: return
          #set function's attribute to number of function parameters
          self.symtab.set_attribute(self.shared.function_index, self.shared.function_params)
          #clear local function symbols (but leave function name)
          self.symtab.clear_symbols(self.shared.function_index + 1)
          self.codegen.function_end()
docs: Code executed at the end of function definition