Crate source_map_mappings

Source
Expand description

Build Status

Parse the "mappings" string from a source map.

This is intended to be compiled to WebAssembly and eventually used from the mozilla/source-map library. This is not a general purpose source maps library.

§Documentation

📚 Documentation on docs.rs 📚

§License

Licensed under either of

at your option.

§Contributing

See CONTRIBUTING.md for hacking.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Modules§

comparators
Comparator functions for sorting mappings in different ways.

Structs§

AllGeneratedLocationsFor
An iterator returned by Mappings::all_generated_locations_for.
ByOriginalLocation
An iterator returned by Mappings::by_original_location.
Mapping
A single bidirectional mapping.
Mappings
A parsed set of mappings that can be queried.
OriginalLocation
Original location information within a mapping.

Enums§

Bias
When doing fuzzy searching, whether to slide the next larger or next smaller mapping from the queried location.
Error
Errors that can occur during parsing.

Traits§

Observer
A trait for defining a set of RAII types that can observe the start and end of various operations and queries we perform in their constructors and destructors.

Functions§

parse_mappings
Parse a source map’s "mappings" string into a queryable Mappings structure.