Module Source_map.Standard
type t = {version : int;file : string option;sourceroot : string option;sources : string list;sources_content : Js_of_ocaml_compiler.Source_map.Source_content.t option list option;names : string list;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.
*)ignore_list : string list;
}val filter_map :
Js_of_ocaml_compiler.Source_map.Standard.t ->
f:(int -> int option) ->
Js_of_ocaml_compiler.Source_map.Standard.tIf 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.
val merge :
Js_of_ocaml_compiler.Source_map.Standard.t list ->
Js_of_ocaml_compiler.Source_map.Standard.t optionMerge 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.tval of_string :
?tmp_buf:Stdlib.Buffer.t ->
string ->
Js_of_ocaml_compiler.Source_map.Standard.tval of_file :
?tmp_buf:Stdlib.Buffer.t ->
string ->
Js_of_ocaml_compiler.Source_map.Standard.t