Trait dprint_swc_ecma_ast_view::SourceFile [−][src]
pub trait SourceFile { fn text(&self) -> &str; fn span(&self) -> Span; fn lines_count(&self) -> usize; fn line_index(&self, pos: BytePos) -> usize; fn line_start(&self, line_index: usize) -> BytePos; fn line_end(&self, line_index: usize) -> BytePos { ... } fn line_and_column_index(&self, pos: BytePos) -> LineAndColumnIndex { ... } }