Mercurial > urweb
diff src/iflow.sml @ 1845:c1e3805e604e
Make Scriptcheck catch more script/message-passing uses, and move the phase earlier in compilation
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 15 Mar 2013 16:09:55 -0400 |
parents | cb0f05bdc183 |
children | 3c93e91e97da |
line wrap: on
line diff
--- a/src/iflow.sml Tue Mar 12 16:21:20 2013 -0400 +++ b/src/iflow.sml Fri Mar 15 16:09:55 2013 -0400 @@ -1795,7 +1795,7 @@ datatype var_source = Input of int | SubInput of int | Unknown -fun check file = +fun check (file : file) = let val () = (St.reset (); rfuns := IM.empty) @@ -1810,7 +1810,7 @@ val exptd = foldl (fn ((d, _), exptd) => case d of DExport (_, _, n, _, _, _) => IS.add (exptd, n) - | _ => exptd) IS.empty file + | _ => exptd) IS.empty (#1 file) fun decl (d, loc) = case d of @@ -2071,7 +2071,7 @@ | _ => () in - app decl file + app decl (#1 file) end val check = fn file =>