]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_disambiguation/disambiguateTypes.ml
moved dummy_floc from Disambiguate to DisambiguateTypes, since it is now needed by...
[helm.git] / helm / ocaml / cic_disambiguation / disambiguateTypes.ml
index bb513aa6cdbc0cba1141fcdc7cc1f9115a024eca..3e969c87a16e92d6e8dff37d318d31c9f8f6282b 100644 (file)
@@ -115,3 +115,13 @@ let string_of_domain dom =
 
 let empty_environment = Environment.empty
 
+let floc_of_loc (loc_begin, loc_end) =
+  let floc_begin =
+    { Lexing.pos_fname = ""; Lexing.pos_lnum = -1; Lexing.pos_bol = -1;
+      Lexing.pos_cnum = loc_begin }
+  in
+  let floc_end = { floc_begin with Lexing.pos_cnum = loc_end } in
+  (floc_begin, floc_end)
+
+let dummy_floc = floc_of_loc (-1, -1)
+