Usages are pretty solid now except for parser issues.
This commit is contained in:
1 parent
b82e1e28e5
commit
f1cbd45575
5 files changed
+25
-9
No files matched your search
@@ -446,6 +446,8 @@ class Evaluator(object):
|
||||
stmt = name.parent
|
||||
if isinstance(stmt, pr.ExprStmt) and name in stmt.get_defined_names():
|
||||
return [name]
|
||||
elif isinstance(stmt, (pr.Param, pr.Function, pr.Class)) and stmt.name is name:
|
||||
return [name]
|
||||
|
||||
scope = name.get_parent_scope()
|
||||
if pr.is_node(name.parent, 'trailer'):
|
||||
|
||||
Reference in new issue
Block a user