mte/unikernel/duniverse/ppxlib/ast/location_error.mli

15 lines
468 B
OCaml
Raw Normal View History

2025-11-11 02:07:51 +01:00
open Import
type t = Astlib.Location.Error.t
val of_exn : exn -> t option
val register_error_of_exn : (exn -> t option) -> unit
val message : t -> string
val set_message : t -> string -> t
val make : loc:Location.t -> string -> sub:(Location.t * string) list -> t
val to_extension : t -> Import.Parsetree.extension
val raise : t -> 'a
val update_loc : t -> Location.t -> t
val get_location : t -> Location.t
val of_extension : Import.Parsetree.extension -> t option