381 |
val (params, env) = checkParams (env, cxt, params) |
val (params, env) = checkParams (env, cxt, params) |
382 |
(* check the actor state variable definitions *) |
(* check the actor state variable definitions *) |
383 |
val (vds, env) = let |
val (vds, env) = let |
384 |
fun checkStateVar (vd, (vds, env)) = let |
fun checkStateVar ((isOut, vd), (vds, env)) = let |
385 |
val (x, x', e') = checkVarDecl (env, cxt, AST.ActorStateVar, vd) |
val (x, x', e') = checkVarDecl (env, cxt, AST.ActorStateVar, vd) |
386 |
in |
in |
387 |
(AST.VD_Decl(x', e')::vds, Env.insertLocal(env, x, x')) |
((isOut, AST.VD_Decl(x', e'))::vds, Env.insertLocal(env, x, x')) |
388 |
end |
end |
389 |
val (vds, env) = List.foldl checkStateVar ([], env) state |
val (vds, env) = List.foldl checkStateVar ([], env) state |
390 |
in |
in |