Allowed removeNesting to pull up functions (the only ones affected will be the built-in operators)

This commit is contained in:
Neil Brown 2009-04-07 16:07:46 +00:00
parent 8635039542
commit 85790012b0

View File

@ -227,6 +227,7 @@ removeNesting = pass "Pull nested definitions to top level"
canPull :: A.SpecType -> Bool
canPull (A.Proc _ _ _ _) = True
canPull (A.Function {}) = True
canPull (A.RecordType _ _ _) = True
canPull (A.Protocol _ _) = True
canPull (A.ProtocolCase _ _) = True