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
val sexp_of_t : t -> Sexplib0.Sexp.t
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