Module Middle.Location

Storing locations in the original source

type t = {
  1. filename : string;
  2. line_num : int;
  3. col_num : int;
  4. 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