Struct rustc_errors::json::DiagnosticSpanLine [−][src]
Fields
text: Stringhighlight_start: usizeExpand description
1-based, character offset in self.text.
highlight_end: usizeImplementations
impl DiagnosticSpanLine[src]
impl DiagnosticSpanLine[src]fn line_from_source_file(
sf: &SourceFile,
index: usize,
h_start: usize,
h_end: usize
) -> DiagnosticSpanLine[src]
sf: &SourceFile,
index: usize,
h_start: usize,
h_end: usize
) -> DiagnosticSpanLine
fn from_span(span: Span, je: &JsonEmitter) -> Vec<DiagnosticSpanLine>[src]
fn from_span(span: Span, je: &JsonEmitter) -> Vec<DiagnosticSpanLine>[src]Creates a list of DiagnosticSpanLines from span - each line with any part
of span gets a DiagnosticSpanLine, with the highlight indicating the
span within the line.