1
0
forked from VimPlug/jedi

Move eval_atom to the syntax tree module.

This commit is contained in:
Dave Halter
2017-09-27 16:27:37 +02:00
parent 5415a6164f
commit b997b538a7
3 changed files with 78 additions and 69 deletions

View File

@@ -10,6 +10,7 @@ from parso.python import tree
from parso import split_lines
from jedi._compatibility import u
from jedi.evaluate.syntax_tree import eval_atom
from jedi.evaluate.helpers import evaluate_call_of_leaf
from jedi.cache import time_cache
@@ -206,7 +207,7 @@ def evaluate_goto_definition(evaluator, context, leaf):
elif parent.type == 'trailer':
return evaluate_call_of_leaf(context, leaf)
elif isinstance(leaf, tree.Literal):
return context.evaluator.eval_atom(context, leaf)
return eval_atom(context, leaf)
return []