package loc

  1. Overview
  2. Docs
type t = {
  1. start : Offset.t;
  2. stop : Offset.t;
}

A range refers to a chunk of the file, from start (included) to stop (excluded).

val equal : t -> t -> bool
val sexp_of_t : t -> Sexplib0.Sexp.t
val of_positions : start:Lexing.position -> stop:Lexing.position -> t
val interval : t -> t -> t

Build the range that covers both inputs, and what may be in between.

OCaml

Innovation. Community. Security.