package ocaml-webworker

  1. Overview
  2. Docs
type t = Location.t = {
  1. loc_start : Std.Lexing.position;
  2. loc_end : Std.Lexing.position;
  3. loc_ghost : bool;
}
val compare_pos : Std.Lexing.position -> Location.t -> int
val union : Location.t -> Location.t -> Location.t
val extend : Location.t -> Location.t -> Location.t
val prepare_errors : exn list -> Location.error list

Filter valid errors, log invalid ones

val print : unit -> Location.t -> string
val print_loc : (unit -> 'a -> string) -> unit -> 'a Location.loc -> string