1
0
forked from VimPlug/jedi

Move the parsing away from user_context to api.py.

This commit is contained in:
Dave Halter
2016-06-27 08:48:36 +02:00
parent 0445d51d34
commit 969100e471
5 changed files with 20 additions and 25 deletions

View File

@@ -1,4 +1,3 @@
import re
from itertools import chain
from jedi.parser import token
@@ -74,10 +73,9 @@ def get_user_scope(module, position):
class Completion:
def __init__(self, evaluator, parser, code_lines, position, call_signatures_method):
def __init__(self, evaluator, module, code_lines, position, call_signatures_method):
self._evaluator = evaluator
self._parser = parser
self._module = evaluator.wrap(parser.module())
self._module = evaluator.wrap(module)
self._code_lines = code_lines
# The first step of completions is to get the name