Trait swc_ecma_ast::SourceMapperExt

source ·
pub trait SourceMapperExt {
    // Required method
    fn get_code_map(&self) -> &dyn SourceMapper;

    // Provided methods
    fn is_on_same_line(&self, _lo: BytePos, _hi: BytePos) -> bool { ... }
    fn should_write_separating_line_terminator(
        &self,
        prev: Option<Span>,
        next: Option<Span>,
        format: ListFormat
    ) -> bool { ... }
    fn should_write_leading_line_terminator(
        &self,
        parent_node: Span,
        first_child: Option<Span>,
        format: ListFormat
    ) -> bool { ... }
    fn should_write_closing_line_terminator(
        &self,
        parent_node: Span,
        last_child: Option<Span>,
        format: ListFormat
    ) -> bool { ... }
}

Required Methods§

Provided Methods§

source

fn is_on_same_line(&self, _lo: BytePos, _hi: BytePos) -> bool

source

fn should_write_separating_line_terminator( &self, prev: Option<Span>, next: Option<Span>, format: ListFormat ) -> bool

source

fn should_write_leading_line_terminator( &self, parent_node: Span, first_child: Option<Span>, format: ListFormat ) -> bool

source

fn should_write_closing_line_terminator( &self, parent_node: Span, last_child: Option<Span>, format: ListFormat ) -> bool

Implementations on Foreign Types§

source§

impl SourceMapperExt for SourceMap

source§

impl SourceMapperExt for Rc<SourceMap>

source§

impl SourceMapperExt for Rc<SourceMapperDyn>

source§

impl SourceMapperExt for Arc<SourceMap>

source§

impl SourceMapperExt for Arc<SourceMapperDyn>

source§

impl SourceMapperExt for dyn SourceMapper

Implementors§