summaryrefslogtreecommitdiff
path: root/compiler/Print.ml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--compiler/Print.ml12
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/Print.ml b/compiler/Print.ml
index b570bf5f..a136f87e 100644
--- a/compiler/Print.ml
+++ b/compiler/Print.ml
@@ -85,9 +85,9 @@ module Values = struct
(* Happens when we aggregate values *)
"@Array[" ^ String.concat ", " field_values ^ "]"
| _ ->
- craise_opt_meta meta
+ craise_opt_meta __FILE__ __LINE__ meta
("Inconsistent value: " ^ show_typed_value v))
- | _ -> craise_opt_meta meta "Inconsistent typed value")
+ | _ -> craise_opt_meta __FILE__ __LINE__ meta "Inconsistent typed value")
| VBottom -> "⊥ : " ^ ty_to_string env v.ty
| VBorrow bc -> borrow_content_to_string ~meta env bc
| VLoan lc -> loan_content_to_string ~meta env lc
@@ -183,8 +183,8 @@ module Values = struct
(* Assumed type *)
match (aty, field_values) with
| TBox, [ bv ] -> "@Box(" ^ bv ^ ")"
- | _ -> craise_opt_meta meta "Inconsistent value")
- | _ -> craise_opt_meta meta "Inconsistent typed value")
+ | _ -> craise_opt_meta __FILE__ __LINE__ meta "Inconsistent value")
+ | _ -> craise_opt_meta __FILE__ __LINE__ meta "Inconsistent typed value")
| ABottom -> "⊥ : " ^ ty_to_string env v.ty
| ABorrow bc -> aborrow_content_to_string ~meta env bc
| ALoan lc -> aloan_content_to_string ~meta env lc
@@ -343,7 +343,7 @@ module Contexts = struct
in
indent ^ bv ^ ty ^ " -> " ^ typed_value_to_string ~meta env tv ^ " ;"
| EAbs abs -> abs_to_string ~meta env verbose indent indent_incr abs
- | EFrame -> craise_opt_meta meta "Can't print a Frame element"
+ | EFrame -> craise_opt_meta __FILE__ __LINE__ meta "Can't print a Frame element"
let opt_env_elem_to_string ?(meta : Meta.meta option = None) (env : fmt_env)
(verbose : bool) (with_var_types : bool) (indent : string)
@@ -498,7 +498,7 @@ module Contexts = struct
| EBinding (BDummy _, _) -> num_dummies := !num_abs + 1
| EBinding (BVar _, _) -> num_bindings := !num_bindings + 1
| EAbs _ -> num_abs := !num_abs + 1
- | _ -> craise_opt_meta meta "Unreachable")
+ | _ -> craise_opt_meta __FILE__ __LINE__ meta "Unreachable")
f;
"\n# Frame " ^ string_of_int i ^ ":" ^ "\n- locals: "
^ string_of_int !num_bindings