1
0
forked from VimPlug/jedi

don't use function_definition as a name anymore, also not in helper functions

This commit is contained in:
David Halter
2013-08-21 13:38:13 +04:30
parent 80ec8da513
commit 2e8432de21
4 changed files with 11 additions and 11 deletions

View File

@@ -502,9 +502,9 @@ class Script(object):
return []
user_stmt = self._user_stmt()
with common.scale_speed_settings(settings.scale_function_definition):
with common.scale_speed_settings(settings.scale_call_signatures):
_callable = lambda: evaluate.follow_call(call)
origins = cache.cache_function_definition(_callable, user_stmt)
origins = cache.cache_call_signatures(_callable, user_stmt)
debug.speed('func_call followed')
return [api_classes.CallDef(o, index, call) for o in origins
@@ -516,7 +516,7 @@ class Script(object):
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(
call, index, _ = helpers.search_call_signatures(
user_stmt, self._pos)
debug.speed('func_call parsed')
return call, index