Fix issues with unreachable flows.

This benefits static analysis as well as autocompletion: Unreachable code (things like code within 'if 0:') should still be resolveable.
This commit is contained in:
Dave Halter
2014-09-03 00:05:37 +02:00
parent ea5b98905e
commit bcc84820fe
4 changed files with 37 additions and 3 deletions

View File

@@ -207,7 +207,7 @@ def test_signature_is_definition():
# Now compare all the attributes that a CallSignature must also have.
for attr_name in dir(definition):
dont_scan = ['defined_names', 'line_nr', 'start_pos', 'documentation',
'doc', 'parent']
'doc', 'parent', 'goto_assignments']
if attr_name.startswith('_') or attr_name in dont_scan:
continue
attribute = getattr(definition, attr_name)