swc_ecma_ast

Trait SpanExt

Source
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 { ... }
}

Provided Methods§

Source

fn is_synthesized(&self) -> bool

Source

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

Source

fn comment_range(&self) -> Span

Gets a custom text range to use when emitting comments.

Implementors§

Source§

impl<T: Spanned> SpanExt for T