Ppxlib.LocationOverrides the Location module of OCaml
There are less functions in this module. However the API should be more stable than the Location module of OCaml.
type t = Warnings.loc = {loc_start : Lexing.position;loc_end : Lexing.position;loc_ghost : Base.Bool.t;}val in_file : Base.String.t -> tReturn an empty ghost range located in a given file.
val none : tAn arbitrary value of type t; describes an empty ghost range.
val raise_errorf :
?loc:t ->
('a, Caml.Format.formatter, Base.Unit.t, 'b) format4 ->
'aRaise a located error. The exception is caught by driver and handled appropriately
val of_lexbuf : Lexing.lexbuf -> tReturn the location corresponding to the last matched regular expression
val report_exception : Caml.Format.formatter -> Base.Exn.t -> Base.Unit.tReport an exception on the given formatter
val print : Caml.Format.formatter -> t -> Base.Unit.tPrints File "...", line ..., characters ...-...:
val compare_pos : Lexing.position -> Lexing.position -> Base.Int.tval min_pos : Lexing.position -> Lexing.position -> Lexing.positionval max_pos : Lexing.position -> Lexing.position -> Lexing.positionval compare : t -> t -> Base.Int.tmodule Error : sig ... endexception Error of Error.t