forked from VimPlug/jedi
Starting to try to move some functions away from Evaluator.
This time eval_trailer.
This commit is contained in:
@@ -6,7 +6,9 @@ from itertools import chain
|
||||
from contextlib import contextmanager
|
||||
|
||||
from parso.python import tree
|
||||
|
||||
from jedi.parser_utils import get_parent_scope
|
||||
from jedi.evaluate.syntax_tree import eval_trailer
|
||||
|
||||
|
||||
def is_stdlib_path(path):
|
||||
@@ -88,7 +90,7 @@ def evaluate_call_of_leaf(context, leaf, cut_own_trailer=False):
|
||||
|
||||
values = context.eval_node(base)
|
||||
for trailer in trailers:
|
||||
values = context.eval_trailer(values, trailer)
|
||||
values = eval_trailer(context, values, trailer)
|
||||
return values
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user