1
0
forked from VimPlug/jedi

Simplify get_parent_scope

This commit is contained in:
Dave Halter
2014-08-12 01:37:58 +02:00
parent 33e5a3280a
commit 6b7ce590fa
3 changed files with 5 additions and 6 deletions

View File

@@ -220,13 +220,12 @@ class Evaluator(object):
"""Follow a call is following a function, variable, string, etc."""
path = call.generate_call_path()
# TODO use scope_parent
# find the statement of the Scope
s = call
while not s.parent.is_scope():
s = s.parent
par = s.parent
return self.eval_call_path(path, par, s.start_pos)
scope = s.parent
return self.eval_call_path(path, scope, s.start_pos)
def eval_call_path(self, path, scope, position):
"""