1
0
forked from VimPlug/jedi

CallDef -> CallSignature

This commit is contained in:
Dave Halter
2014-03-13 22:55:16 +01:00
parent 4b5ac063d3
commit 2bb40fcee8
2 changed files with 7 additions and 7 deletions

View File

@@ -135,9 +135,9 @@ class Script(object):
if not dot:
# add named params
for call_def in self.call_signatures():
if not isinstance(call_def.module, compiled.CompiledObject):
for p in call_def.params:
for call_sig in self.call_signatures():
if not isinstance(call_sig.module, compiled.CompiledObject):
for p in call_sig.params:
# Allow access on _definition here, because it's a
# public API and we don't want to make the internal
# Name object public.
@@ -481,7 +481,7 @@ class Script(object):
This would return ``None``.
:rtype: list of :class:`classes.CallDef`
:rtype: list of :class:`classes.CallSignature`
"""
user_stmt = self._parser.user_stmt_with_whitespace()
@@ -494,7 +494,7 @@ class Script(object):
origins = cache.cache_call_signatures(_callable, user_stmt)
debug.speed('func_call followed')
return [classes.CallDef(self._evaluator, o, index, call) for o in origins
return [classes.CallSignature(self._evaluator, o, index, call) for o in origins
if o.isinstance(er.Function, er.Instance, er.Class)
or isinstance(o, compiled.CompiledObject) and o.type() != 'module']