Trait swc_common::source_map::SourceMapGenConfig[][src]

pub trait SourceMapGenConfig {
    fn file_name_to_source(&self, f: &FileName) -> String;

    fn name_for_bytepos(&self, _bpos: BytePos) -> Option<&str> { ... }
fn inline_sources_content(&self, f: &FileName) -> bool { ... } }

Required methods

Returns

File path to used in SourceMap.sources.

This should not return content of the file.

Provided methods

You can override this to control sourceContents.

Implementations on Foreign Types

Implementors