package ppx_expect

  1. Overview
  2. Docs
type t = {
  1. filename : File.Name.t;
  2. line_number : Base.int;
  3. line_start : Base.int;
  4. start_pos : Base.int;
  5. end_pos : Base.int;
}

Location within a file

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 Base.Exported_for_specific_uses.Ppx_compare_lib.Comparable.S with type t := t
val beginning_of_file : File.Name.t -> t
val of_source_code_position : Base.Source_code_position.t -> t
include Base.Comparable.S with type t := t
val (>=) : t -> t -> bool
val (<=) : t -> t -> bool
val (=) : t -> t -> bool
val (>) : t -> t -> bool
val (<) : t -> t -> bool
val (<>) : t -> t -> bool
val equal : t -> t -> bool
val compare : t -> t -> int
val min : t -> t -> t
val max : t -> t -> t
val ascending : t -> t -> int
val descending : t -> t -> int
val between : t -> low:t -> high:t -> bool
val clamp_exn : t -> min:t -> max:t -> t
val clamp : t -> min:t -> max:t -> t Base__.Or_error.t
type comparator_witness
val comparator : (t, comparator_witness) Base__Comparator.comparator
OCaml

Innovation. Community. Security.