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

Method into_source_map

crates/string_wizard/src/source_map/sourcemap_builder.rs:33–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
35 // `'static` sourcemap so the result can be stored independently.
36 self.source_map_builder.into_owned_sourcemap().into_inner()
37 }
38
39 pub fn set_source_and_content(&mut self, id: &'a str, content: &'a str) {
40 self.source_id = self.source_map_builder.set_source_and_content(id, content);

Callers 1

source_mapMethod · 0.80

Calls 1

into_innerMethod · 0.45

Tested by

no test coverage detected