Trait swc_core::ecma::visit::swc_ecma_ast::SpanExt

pub trait SpanExt: Spanned {
    // Provided methods
    fn is_synthesized(&self) -> bool { ... }
    fn starts_on_new_line(&self, format: ListFormat) -> bool { ... }
    fn comment_range(&self) -> Span { ... }
}
Available on crate features __ecma and __visit only.

Provided Methods§

fn is_synthesized(&self) -> bool

fn starts_on_new_line(&self, format: ListFormat) -> bool

fn comment_range(&self) -> Span

Gets a custom text range to use when emitting comments.

Implementors§

§

impl<T> SpanExt for T
where T: Spanned,