Allowed removeNesting to pull up functions (the only ones affected will be the built-in operators)
This commit is contained in:
parent
8635039542
commit
85790012b0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user