1
0
forked from VimPlug/jedi

possible direction of branch checks for name resolution.

This commit is contained in:
Dave Halter
2014-08-10 13:17:37 +02:00
parent 483f5c14ee
commit f1711f8f9c
7 changed files with 45 additions and 9 deletions

View File

@@ -139,7 +139,7 @@ class Evaluator(object):
operator = copy.copy(_operator)
operator.string = operator.string[:-1]
name = str(expr_list[0].name)
parent = stmt.parent
parent = stmt.parent.get_parent_until(pr.Flow, reverse=True)
if isinstance(parent, (pr.SubModule, fast.Module)):
parent = er.ModuleWrapper(self, parent)
left = self.find_types(parent, name, stmt.start_pos)