def function_call_prepare_action(self, text, loc, fun):
exshared.setpos(loc, text)<EOL>if DEBUG > <NUM_LIT:0>:<EOL><INDENT>print("<STR_LIT>",fun)<EOL>if DEBUG == <NUM_LIT:2>: self.symtab.display()<EOL>if DEBUG > <NUM_LIT:2>: return<EOL><DEDENT>index = self.symtab.lookup_symbol(fun.name, SharedData.KINDS.FUNCTION)<EOL>if index == None:<EOL><INDENT>raise SemanticException("<STR_LIT>" % fun.name)<EOL><DEDENT>self.function_call_stack.append(self.function_call_index)<EOL>self.function_call_index = index<EOL>self.function_arguments_stack.append(self.function_arguments[:])<EOL>del self.function_arguments[:]<EOL>self.codegen.save_used_registers()<EOL>
Code executed after recognising a function call (type and function name)