package archetype

  1. Overview
  2. Docs
type t = {
  1. loc_fname : string;
  2. loc_start : int * int;
  3. loc_end : int * int;
  4. loc_bchar : int;
  5. loc_echar : int;
}
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val dummy : t
val make : Stdlib.Lexing.position -> Stdlib.Lexing.position -> t
val of_lexbuf : Stdlib.Lexing.lexbuf -> t
val merge : t -> t -> t
val mergeall : t list -> t
val isdummy : t -> bool
val tostring : t -> string
type 'a loced = {
  1. plloc : t;
  2. pldesc : 'a;
}
val loced_to_yojson : 'a. ('a -> Yojson.Safe.t) -> 'a loced -> Yojson.Safe.t
val loced_of_yojson : 'a. (Yojson.Safe.t -> 'a Ppx_deriving_yojson_runtime.error_or) -> Yojson.Safe.t -> 'a loced Ppx_deriving_yojson_runtime.error_or
val _ : (Yojson.Safe.t -> 'a Ppx_deriving_yojson_runtime.error_or) -> Yojson.Safe.t -> 'a loced Ppx_deriving_yojson_runtime.error_or
val pp_loced : (Core.Format.formatter -> 'a -> unit) -> Core.Format.formatter -> 'a loced -> unit
val loc : 'a loced -> t
val unloc : 'a loced -> 'a
val unlocs : 'a loced list -> 'a list
val aspair : 'a loced -> t * 'a
val lmap : ('a -> 'b) -> 'a loced -> 'b loced
val mkloc : t -> 'a -> 'a loced
val dumloc : 'a -> 'a loced
val deloc : 'a loced -> t * 'a
OCaml

Innovation. Community. Security.