refactored Definition class. therefore the 'goto' function now uses it, too

This commit is contained in:
David Halter committed 2012-07-28 09:37:26 +02:00
1 parent fcf3e80d06
commit e8d4e9a13a
2 files changed
+34 -22

No files matched your search

+1
View File
@@ -110,6 +110,7 @@ def run_goto_test(correct, source, line_nr, line, path):
else:
lst = []
for r in result:
r = r.definition
if isinstance(r, evaluate.InstanceElement):
r = r.var
if isinstance(r, (evaluate.Class, evaluate.Instance)):