Module Sourcemaps.Source_maps

type range = {
  1. start : Location.t;
  2. end_ : Location.t option;
}
module Location : sig ... end
type mapping = {
  1. gen : range;
  2. src : range;
  3. source : string;
  4. name : string option;
}

A source file to generated file mapping

type t = {
  1. mappings : string;
  2. sourceRoot : string;
  3. sources : string list;
  4. sourcesContent : string option list;
  5. names : string list;
  6. version : int;
  7. file : string;
}
include Ppx_yojson_conv_lib.Yojsonable.S with type t := t
val t_of_yojson : Yojson.Safe.t -> t
val yojson_of_t : t -> Yojson.Safe.t
val mk : ?file:string -> ?sourceRoot:string -> ?sourcesContent:(string -> string option) -> mapping list -> t
val to_json : t -> string