Trait swc_ecma_ast::SourceMapperExt
source · [−]pub trait SourceMapperExt {
fn get_code_map(&self) -> &dyn SourceMapper;
fn is_on_same_line(&self, _lo: BytePos, _hi: BytePos) -> bool { ... }
fn should_write_separating_line_terminator<P: Spanned, N: Spanned>(
&self,
prev: Option<P>,
next: Option<N>,
format: ListFormat
) -> bool { ... }
fn should_write_leading_line_terminator<N: Spanned>(
&self,
parent_node: Span,
children: &[N],
format: ListFormat
) -> bool { ... }
fn should_write_closing_line_terminator<N: Spanned>(
&self,
parent_node: Span,
children: &[N],
format: ListFormat
) -> bool { ... }
}
Required Methods
source
fn get_code_map(&self) -> &dyn SourceMapper
Provided Methods
source
fn is_on_same_line(&self, _lo: BytePos, _hi: BytePos) -> bool
sourcefn should_write_separating_line_terminator<P: Spanned, N: Spanned>(
fn should_write_separating_line_terminator<P: Spanned, N: Spanned>(
&self,
prev: Option<P>,
next: Option<N>,
format: ListFormat
) -> bool
sourcefn should_write_leading_line_terminator<N: Spanned>(
fn should_write_leading_line_terminator<N: Spanned>(
&self,
parent_node: Span,
children: &[N],
format: ListFormat
) -> bool
sourcefn should_write_closing_line_terminator<N: Spanned>(