]> matita.cs.unibo.it Git - helm.git/commitdiff
use a dummy location when no location is provided
authorStefano Zacchiroli <zack@upsilon.cc>
Thu, 5 Feb 2004 13:29:56 +0000 (13:29 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Thu, 5 Feb 2004 13:29:56 +0000 (13:29 +0000)
helm/ocaml/cic_disambiguation/disambiguate.ml

index f753b30ae714d724df1968653b0c4c14ba6f10ac..a539ffd8cba2c468397f61bf8658d0ba9b0741cf 100644 (file)
@@ -196,7 +196,7 @@ let interpretate ~context ~env ast =
   in
   match ast with
   | CicAst.AttributedTerm (`Loc loc, term) -> aux loc context term
-  | _ -> assert false
+  | term -> aux (-1, -1) context term
 
 let domain_of_term ~context ast =
     (* "aux" keeps domain in reverse order and doesn't care about duplicates.
@@ -295,7 +295,7 @@ let domain_of_term ~context ast =
             
   match ast with
   | CicAst.AttributedTerm (`Loc loc, term) -> rev_uniq (aux loc context term)
-  | _ -> assert false
+  | term -> aux (-1, -1) context term
 
 
   (* dom1 \ dom2 *)