module NRef = NReference
let debug_print _ = ();;
+(* let debug_print s = prerr_endline (Lazy.force s);; *)
let cic_name_of_name = function
| Ast.Ident (n, None) -> n
| _ -> assert false (* god bless Bologna *)
and aux_option ~localize loc context annotation = function
| None -> NCic.Implicit annotation
+ | Some (CicNotationPt.AttributedTerm (`Loc loc, term)) ->
+ let res = aux_option ~localize loc context annotation (Some term) in
+ if localize then NCicUntrusted.NCicHash.add localization_tbl res loc;
+ res
+ | Some (CicNotationPt.AttributedTerm (_, term)) ->
+ aux_option ~localize loc context annotation (Some term)
+ | Some CicNotationPt.Implicit -> NCic.Implicit annotation
| Some term -> aux ~localize loc context term
in
aux ~localize:true HExtlib.dummy_floc context ast