MCPcopy Create free account
hub / github.com/rolldown/rolldown / new

Method new

crates/string_wizard/src/source_map/sourcemap_builder.rs:23–31  ·  view source on GitHub ↗
(hires: Hires)

Source from the content-addressed store, hash-verified

21
22impl<'a> SourcemapBuilder<'a> {
23 pub fn new(hires: Hires) -> Self {
24 Self {
25 hires,
26 generated_code_line: 0,
27 generated_code_column: 0,
28 source_id: 0,
29 source_map_builder: oxc_sourcemap::SourceMapBuilder::default(),
30 }
31 }
32
33 pub fn into_source_map(self) -> oxc_sourcemap::SourceMap<'static> {
34 // The oxc builder borrows its strings for `'a`; copy them once into a

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected