@@ -61,7 +61,7 @@ and bind' =
6161 | SeqB of bind * bind
6262 | VarB of var * exp
6363 | InclB of exp
64- | TypeErrorB of exp
64+ | TypeAssertB of bool * exp
6565
6666
6767let uniq_count = ref 0
@@ -73,7 +73,7 @@ let rec every_var pr b =
7373 | SeqB (b1 , b2 ) -> every_var pr b1 && every_var pr b2
7474 | VarB (v , _ ) -> pr v
7575 | InclB (_ ) -> false
76- | TypeErrorB (_ ) -> true
76+ | TypeAssertB (_ ) -> true
7777
7878let index n = " _" ^ string_of_int n
7979
@@ -419,7 +419,7 @@ let label_of_bind b =
419419 | SeqB _ -> " SeqB"
420420 | VarB _ -> " VarB"
421421 | InclB _ -> " InclB"
422- | TypeErrorB _ -> " TypeErrorB "
422+ | TypeAssertB _ -> " TypeAssertB "
423423
424424
425425let string_of_var x = " \" " ^ x.it ^ " \" "
@@ -480,7 +480,7 @@ and string_of_bind b =
480480 | SeqB (b1 , b2 ) -> node' [string_of_bind b1; string_of_bind b2]
481481 | VarB (x , e ) -> node' [string_of_var x; string_of_exp e]
482482 | InclB (e ) -> node' [string_of_exp e]
483- | TypeErrorB ( e ) -> node' [string_of_exp e]
483+ | TypeAssertB ( b , e ) -> node' [string_of_bool b; string_of_exp e]
484484
485485(* Import *)
486486
@@ -528,4 +528,4 @@ and imports_bind bind =
528528 | SeqB (bind1 , bind2 ) -> imports_bind bind1 @ imports_bind bind2
529529 | VarB (_ , exp ) -> imports_exp exp
530530 | InclB exp -> imports_exp exp
531- | TypeErrorB exp -> imports_exp exp
531+ | TypeAssertB ( _ , exp ) -> imports_exp exp
0 commit comments