start to get rid of parent_stmt
This commit is contained in:
1 parent
6d2d23cd78
commit
bf298f0ef4
2 files changed
+17
-24
No files matched your search
+2
-3
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user