Skip to main content

Crate rhaiper_map

Crate rhaiper_map 

Source
Expand description

Resolving positions through a Source Map v3 mappings string, without std.

Only the mappings field is needed to map a generated position back to a source position, so a device can embed that one string rather than a whole JSON document. Parsing the JSON envelope is the host’s job.

Columns are in whatever unit the producer used. The rhaiper crate writes UTF-16 code units, as the Source Map v3 specification requires; that differs from rhai’s own character-counted columns only on lines containing astral-plane characters such as emoji.

Modules§

vlq
Base64 VLQ, the integer encoding used by the mappings field of a Source Map v3.

Structs§

Resolved
A source position recovered from a mapping.

Functions§

resolve
Maps a generated position back to its source position.