More goto improvements.

This commit is contained in:
Dave Halter committed 2014-11-21 15:45:17 +01:00
1 parent eb0bfb4381
commit 22fbcf6c77
3 files changed
+10 -4

No files matched your search

+2 -1
View File
@@ -454,7 +454,8 @@ class Evaluator(object):
return iterable.unite(self.find_types(typ, name, is_goto=True)
for typ in types)
else:
return self.find_types(scope, name, search_global=True, is_goto=True)
return self.find_types(scope, name, name.start_pos,
search_global=True, is_goto=True)
if isinstance(stmt, pr.Import):
# Nowhere to goto for aliases
if stmt.alias == call_path[0]: