fix returns/flow command edge cases

This commit is contained in:
Dave Halter
2014-05-16 12:33:00 +02:00
parent d59e21f43c
commit 8e27ed556e

View File

@@ -114,6 +114,7 @@ def get_module_statements(module):
new = set()
for stmt in stmts:
if isinstance(stmt, pr.Scope):
new |= add_stmts(stmt.inputs)
continue
if isinstance(stmt, pr.KeywordStatement):
stmt = stmt.stmt
@@ -136,4 +137,5 @@ def get_module_statements(module):
for scope in module.walk():
imports |= set(scope.imports)
stmts |= add_stmts(scope.statements)
stmts |= add_stmts(scope.returns)
return stmts, imports