(self)
| 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); |