Module Gil_syntax.Location

Representation of a location in a source file

type position = {
  1. pos_line : int;
  2. pos_column : int;
}
val position_to_yojson : position -> Yojson.Safe.t
val position_of_yojson : Yojson.Safe.t -> position Ppx_deriving_yojson_runtime.error_or
type t = {
  1. loc_start : position;
  2. loc_end : position;
  3. loc_source : string;
}
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val equal : t -> t -> Ppx_deriving_runtime.bool
val none : t
val pp : t Fmt.t
val pp_log_opt : Stdlib.Format.formatter -> t option -> unit