1
0
forked from VimPlug/jedi

start to get rid of parent_stmt

This commit is contained in:
David Halter
2013-02-07 18:34:18 +01:00
parent 6d2d23cd78
commit bf298f0ef4
2 changed files with 17 additions and 24 deletions

View File

@@ -639,10 +639,9 @@ def follow_call_list(call_list, follow_array=False):
def follow_call(call):
"""Follow a call is following a function, variable, string, etc."""
scope = call.parent_stmt.parent
path = call.generate_call_path()
position = call.parent_stmt.start_pos
return follow_call_path(path, scope, position)
scope = call.get_parent_until(pr.Scope)
return follow_call_path(path, scope, call.start_pos)
def follow_call_path(path, scope, position):