Structs§
- JSON
Source Map - See https://tc39.es/ecma426/#sec-source-map-format.
- Owned
Source Map - An owned, lifetime-free source map.
- Source
Joiner - Source
MapBuilder - Helper to build a
SourceMap. - Source
MapSource - Sourcemap
Visualizer - The
SourcemapVisualizeris a helper for sourcemap testing. It print the mapping of original content and final content tokens.
Traits§
Functions§
- adjust_
sourcemap_ dst_ lines - Strips the first
linesdestination lines from the sourcemap, decrementing all remaining destination line numbers accordingly. Used to re-anchor a sourcemap after removing a prefix (e.g. a shebang line) from the generated code. - collapse_
sourcemaps - empty_
sourcemap - Builds an empty sourcemap with no tokens, sources, names, or contents.
Type Aliases§
- Source
Map - Rolldown always stores and produces owned sourcemaps, so we alias the
lifetime-parameterized
oxc_sourcemap::SourceMapto its'staticform.