forked from VimPlug/jedi
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:
@@ -19,7 +19,7 @@ def usages(evaluator, definitions, search_name, mods):
|
||||
|
||||
def check_call_for_usage(call):
|
||||
stmt = call.parent
|
||||
while not isinstance(stmt.parent, pr.IsScope):
|
||||
while not stmt.parent.is_scope():
|
||||
stmt = stmt.parent
|
||||
# New definition, call cannot be a part of stmt
|
||||
if len(call.name) == 1 and call.execution is None \
|
||||
|
||||
Reference in New Issue
Block a user