1
0
forked from VimPlug/jedi

Readability for completion parts.

This commit is contained in:
Dave Halter
2016-05-19 11:33:17 +02:00
parent 323581e253
commit 055ff8be23
3 changed files with 24 additions and 20 deletions

View File

@@ -156,11 +156,13 @@ class Script(object):
:return: Completion objects, sorted by name and __ comes last.
:rtype: list of :class:`classes.Completion`
"""
debug.speed('completions start')
path = self._user_context.get_path_until_cursor()
completion = Completion(
self._evaluator, self._parser, self._user_context,
self._pos, self.call_signatures
)
return completion.completions()
return completion.completions(path)
def goto_definitions(self):
"""