def check_user_stmt(user_stmt): if user_stmt is None \ or not isinstance(user_stmt, pr.Statement): return None, 0 call, index, stop = helpers.search_function_definition(user_stmt, self.pos) return call, index
def _func_call_and_param_index(self): debug.speed("func_call start") call, index = None, 0 if call is None: user_stmt = self._parser.user_stmt if user_stmt is not None and isinstance(user_stmt, pr.Statement): call, index, _ = helpers.search_function_definition(user_stmt, self.pos) debug.speed("func_call parsed") return call, index
def _func_call_and_param_index(self): debug.speed('func_call start') call, index = None, 0 if call is None: user_stmt = self._user_stmt() if user_stmt is not None and isinstance(user_stmt, pr.Statement): call, index, _ = helpers.search_function_definition( user_stmt, self._pos) debug.speed('func_call parsed') return call, index