Added support for for-each replicators to the freeNamesIn function

This commit is contained in:
Neil Brown 2008-03-23 00:08:48 +00:00
parent 6f76f6385e
commit 4e9a00a5b7

View File

@ -74,6 +74,7 @@ freeNamesIn = doGeneric
where
(repName, fns) = case rep of
A.For _ n b c -> (n, Map.union (freeNamesIn b) (freeNamesIn c))
A.ForEach _ n b -> (n, freeNamesIn b)
doSpecType :: A.SpecType -> NameMap
doSpecType (A.Proc _ _ fs p) = Map.difference (freeNamesIn p) (freeNamesIn fs)