Structs§
- JSON
Source Map - See https://github.com/tc39/source-map/blob/1930e58ffabefe54038f7455759042c6e3dd590e/source-map-rev3.md.
- Owned
Source Map - An owned, lifetime-free source map.
- Source
Joiner - Source
MapBuilder - The
SourceMapBuilderis a helper to generate 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.