1
0
forked from VimPlug/jedi

Starting to try to move some functions away from Evaluator.

This time eval_trailer.
This commit is contained in:
Dave Halter
2017-09-27 16:21:02 +02:00
parent 313e1b3875
commit 5415a6164f
6 changed files with 35 additions and 30 deletions
+3 -1
View File
@@ -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