1
0
forked from VimPlug/jedi

follow_call_path -> eval_call_path

This commit is contained in:
Dave Halter
2013-12-27 14:40:23 +01:00
parent 91f377eeb6
commit 46dd0a9abe
2 changed files with 6 additions and 6 deletions

View File

@@ -579,9 +579,9 @@ class Evaluator(object):
s = call
while not s.parent.isinstance(pr.IsScope):
s = s.parent
return self.follow_call_path(path, s.parent, s.start_pos)
return self.eval_call_path(path, s.parent, s.start_pos)
def follow_call_path(self, path, scope, position):
def eval_call_path(self, path, scope, position):
"""
Follows a path generated by `pr.StatementElement.generate_call_path()`.
"""
@@ -686,7 +686,7 @@ class Evaluator(object):
pos = pos[0], pos[1] + 1
if call_path:
scopes = self.follow_call_path(iter(call_path), scope, pos)
scopes = self.eval_call_path(iter(call_path), scope, pos)
search_global = False
pos = None
else: