codept-lib
Loc
Location information within a file
codept-lib.bundled
type t =
| Nowhere
| Simple of {
line : int;
start : int;
stop : int;
}
| Multiline of {
start : int * int;
stop : int * int;
A location within a file
type 'a ext = {
loc : t;
data : 'a;
A data structure to add location data
val pp : Format.formatter -> t -> unit
val nowhere : 'a -> 'a ext
val create : t -> 'a -> 'a ext
val expand : t -> ((int * int) * (int * int)) option
val compress : t -> t
val merge : t -> t -> t
val keep_one : t -> t -> t
val fmap : ('a -> 'b) -> 'a ext -> 'b ext
val list : 'a ext list -> t
module Sch : sig ... end