1
0
forked from VimPlug/jedi

fix Definition.name API for params

This commit is contained in:
Dave Halter
2014-03-13 22:48:02 +01:00
parent eaa56c47cc
commit 2ae5dad78b
3 changed files with 12 additions and 7 deletions

View File

@@ -138,7 +138,10 @@ class Script(object):
for call_def in self.call_signatures():
if not isinstance(call_def.module, compiled.CompiledObject):
for p in call_def.params:
completions.append((p.get_name(), p))
# Allow access on _definition here, because it's a
# public API and we don't want to make the internal
# Name object public.
completions.append((p._definition.get_name(), p))
if not path and not isinstance(user_stmt, pr.Import):
# add keywords