1
0
forked from VimPlug/jedi

Usages are pretty solid now except for parser issues.

This commit is contained in:
Dave Halter
2014-11-22 15:43:23 +01:00
parent b82e1e28e5
commit f1cbd45575
5 changed files with 25 additions and 9 deletions

View File

@@ -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'):