Middle.Location
Storing locations in the original source
type t = {
filename : string;
line_num : int;
col_num : int;
included_from : t option;
}
Source code locations
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
include Ppx_hash_lib.Hashable.S with type t := t
val hash_fold_t : t Base__Ppx_hash_lib.hash_fold
val hash : t -> Base__Ppx_hash_lib.Std.Hash.hash_value
val compare : t -> t -> int
val empty : t
val pp : ?print_file:bool -> ?print_line:bool -> string option -> t Fmt.t
val pp_context_for : (t * string Stdlib.Array.t) Fmt.t
val initial_file_loc : t -> t
Returns the position this location lives at in the first (i.e., non-included) file