Remove IsScope in favor of an is_scope function.
This function was partially implemented anway. Now we've also added a function called 'get_parent_scope', to make it easy to get a scope of a Call, Statement, whatever.
This commit is contained in:
1 parent
1865284fa9
commit
33e5a3280a
8 files changed
+53
-27
No files matched your search
@@ -337,7 +337,7 @@ def _check_array_additions(evaluator, compare_array, module, is_list):
|
||||
backtrack_path = iter(call_path[:separate_index])
|
||||
|
||||
position = c.start_pos
|
||||
scope = c.get_parent_until(pr.IsScope)
|
||||
scope = c.get_parent_scope()
|
||||
|
||||
found = evaluator.eval_call_path(backtrack_path, scope, position)
|
||||
if not compare_array in found:
|
||||
|
||||
Reference in new issue
Block a user