[−][src]Trait syntax::diagnostics::plugin::SourceMapper
Required methods
fn lookup_char_pos(&self, pos: BytePos) -> Loc
fn span_to_lines(&self, sp: Span) -> Result<FileLines, SpanLinesError>
fn span_to_string(&self, sp: Span) -> String
fn span_to_filename(&self, sp: Span) -> FileName
fn merge_spans(&self, sp_lhs: Span, sp_rhs: Span) -> Option<Span>
fn call_span_if_macro(&self, sp: Span) -> Span
fn ensure_source_file_source_present(&self, source_file: Rc<SourceFile>) -> bool
fn doctest_offset_line(&self, file: &FileName, line: usize) -> usize
Implementors
impl SourceMapper for SourceMap
[src]
fn lookup_char_pos(&self, pos: BytePos) -> Loc
[src]
fn span_to_lines(&self, sp: Span) -> FileLinesResult
[src]
fn span_to_string(&self, sp: Span) -> String
[src]
fn span_to_filename(&self, sp: Span) -> FileName
[src]
fn merge_spans(&self, sp_lhs: Span, sp_rhs: Span) -> Option<Span>
[src]
fn call_span_if_macro(&self, sp: Span) -> Span
[src]
fn ensure_source_file_source_present(
&self,
source_file: Lrc<SourceFile>
) -> bool
[src]
&self,
source_file: Lrc<SourceFile>
) -> bool