jon.recoil.org

Module Source_map.Standard

type t = {
  1. version : int;
  2. file : string option;
  3. sourceroot : string option;
  4. sources : string list;
  5. sources_content : Js_of_ocaml_compiler.Source_map.Source_content.t option list option;
  6. names : string list;
  7. mappings : Js_of_ocaml_compiler.Source_map.Mappings.t;
    (*

    Left uninterpreted, since most useful operations can be performed efficiently directly on the encoded form, and a full decoding can be costly for big sourcemaps.

    *)
  8. ignore_list : string list;
}

If f l returns Some l', map line l to l' (in the generated file) in the returned debug mappings. If f l returns None, remove debug mappings which concern line l of the generated file.

Merge two lists of debug mappings. The time cost of the merge is more than linear in function of the size of the input mappings.

val empty : inline_source_content:bool -> Js_of_ocaml_compiler.Source_map.Standard.t
val of_string : ?tmp_buf:Stdlib.Buffer.t -> string -> Js_of_ocaml_compiler.Source_map.Standard.t