Skip to main content

Module functions

Module functions 

Source
Expand description

Auto-generated module

🤖 Generated with SplitRS

Functions§

annotation_line_range
Returns the line range covered by annotations in a table.
annotations_for_source
Returns annotations for a specific source file.
annotations_sorted_by_offset
Returns annotations sorted by wasm offset.
count_annotations_in_range
A simple WASM instruction counter.
decode_mappings
Decode the VLQ-encoded mappings string from a Source Map v3 into a Vec<Vec<DecodedSegment>> (outer = lines, inner = segments per line).
generate_source_map_json
Generate a JSON source map with options.
max_wasm_offset
Returns the maximum wasm offset in an annotation table, if any.
merge_source_maps
Merge a list of source maps into one.
min_wasm_offset
Returns the minimum wasm offset in an annotation table, if any.
offset_to_source_pos
Converts a flat byte offset to a SourcePos2 using a line map.
summarize_source_map
Render a source map as a human-readable summary.
to_absolute_mappings
Convert a SourceMap into a flat list of AbsoluteMappings.
total_annotations
Returns the total number of annotations in a table.
unique_source_indices
Returns unique source indices referenced in an annotation table.
validate_vlq_codec
Validate that VLQ encoding is self-consistent for a range of values.
vlq_compression_ratio
Compute a “compression ratio” for VLQ-encoded mapping data.