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