Module Source_map.Mappings
type decoded = Js_of_ocaml_compiler.Source_map.map listval empty : Js_of_ocaml_compiler.Source_map.Mappings.tThe empty mapping.
val is_empty : Js_of_ocaml_compiler.Source_map.Mappings.t -> boolTest whether the mapping is empty.
val of_string_unsafe : string -> Js_of_ocaml_compiler.Source_map.Mappings.tof_string_unsafe does not perform any validation of its argument, unlike decode_exn. It is guaranteed that of_string_unsafe and to_string are inverse functions. Time complexity O(1)
val decode_exn :
Js_of_ocaml_compiler.Source_map.Mappings.t ->
Js_of_ocaml_compiler.Source_map.Mappings.decodedParse the mappings.
val encode :
Js_of_ocaml_compiler.Source_map.Mappings.decoded ->
Js_of_ocaml_compiler.Source_map.Mappings.tEncode the mappings.
val encode_with_offset :
Js_of_ocaml_compiler.Source_map.Mappings.decoded ->
Js_of_ocaml_compiler.Source_map.Offset.t
* Js_of_ocaml_compiler.Source_map.Mappings.tEncode the mappings shifted by the returned offset so that the encoded mapping is more compact. This is useful to combining multiple mappings into an Index.t
val number_of_lines : Js_of_ocaml_compiler.Source_map.Mappings.t -> intval first_line : Js_of_ocaml_compiler.Source_map.Mappings.t -> intval to_string : Js_of_ocaml_compiler.Source_map.Mappings.t -> stringReturns the mappings as a string in the Source map v3 format. Time complexity O(1)