@@ -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
@@ -429,7 +429,7 @@ let label_of_bind b =
429429 | SeqB _ -> " SeqB"
430430 | VarB _ -> " VarB"
431431 | InclB _ -> " InclB"
432- | TypeErrorB _ -> " TypeErrorB "
432+ | TypeAssertB _ -> " TypeAssertB "
433433
434434
435435let string_of_var x = " \" " ^ x.it ^ " \" "
@@ -490,7 +490,7 @@ and string_of_bind b =
490490 | SeqB (b1 , b2 ) -> node' [string_of_bind b1; string_of_bind b2]
491491 | VarB (x , e ) -> node' [string_of_var x; string_of_exp e]
492492 | InclB (e ) -> node' [string_of_exp e]
493- | TypeErrorB ( e ) -> node' [string_of_exp e]
493+ | TypeAssertB ( b , e ) -> node' [string_of_bool b; string_of_exp e]
494494
495495(* Import *)
496496
@@ -538,4 +538,4 @@ and imports_bind bind =
538538 | SeqB (bind1 , bind2 ) -> imports_bind bind1 @ imports_bind bind2
539539 | VarB (_ , exp ) -> imports_exp exp
540540 | InclB exp -> imports_exp exp
541- | TypeErrorB exp -> imports_exp exp
541+ | TypeAssertB ( _ , exp ) -> imports_exp exp
0 commit comments