fn from_span_end(span: &Span, je: &JsonEmitter) -> Vec<DiagnosticSpanLine> {
        let lines = get_lines_for_span!(span, je);

        let mut result = Vec::new();
        let fm = &*lines.file;

        for (i, line) in lines.lines.iter().enumerate() {
            // Invariant - CodeMap::span_to_lines will not return extra context
            // lines - the last line returned is the last line of `span`.
            let highlight = if i == lines.lines.len() - 1 {
                (line.end_col.0 + 1, line.end_col.0 + 1)
            } else {
                (0, 0)
            };
            result.push(DiagnosticSpanLine::line_from_filemap(fm,
                                                              line.line_index,
                                                              highlight.0,
                                                              highlight.1));
        }

        result
    }
/// Create a list of DiagnosticSpanLines from span - the result covers all
/// of `span`, but the highlight is zero-length and at the end of `span`.
Create a list of DiagnosticSpanLines from span - the result covers all
of `span`, but the highlight is zero-length and at the end of `span`.
Create a list of DiagnosticSpanLines from span - the result covers all of ` span ` but the highlight is zero - length and at the end of ` span ` .
fn from_span_end(span: &Span, je: &JsonEmitter) -> Vec<DiagnosticSpanLine> {
        let lines = get_lines_for_span!(span, je);
        let mut result = Vec::new();
        let fm = &*lines.file;
        for (i, line) in lines.lines.iter().enumerate() {
            // Invariant - CodeMap::span_to_lines will not return extra context
            // lines - the last line returned is the last line of `span`.
            let highlight = if i == lines.lines.len() - 1 {
                (line.end_col.0 + 1, line.end_col.0 + 1)
            } else {
                (0, 0)
            };
            result.push(DiagnosticSpanLine::line_from_filemap(fm,
                                                              line.line_index,
                                                              highlight.0,
                                                              highlight.1));
        }
        result
    }
fn from_span_end ( span : & Span , je : & JsonEmitter ) -> Vec < DiagnosticSpanLine > { let lines = get_lines_for_span ! ( span je ) ; let mut result = Vec :: new ( ) ; let fm = & * lines . file ; for ( i , line ) in lines . lines . iter ( ) . enumerate ( ) { // Invariant - CodeMap::span_to_lines will not return extra context // lines - the last line returned is the last line of `span`. let highlight = if i == lines . lines . len ( ) - 1 { ( line . end_col . 0 + 1 , line . end_col . 0 + 1 ) } else { ( 0 , 0 ) } ; result . push ( DiagnosticSpanLine :: line_from_filemap ( fm , line . line_index , highlight . 0 , highlight . 1 ) ) ; } result }
Create a list of DiagnosticSpanLines from span - the result covers all
of `span`, but the highlight is zero-length and at the end of `span`.
Create a list of DiagnosticSpanLines from span - the result covers all of ` span ` but the highlight is zero - length and at the end of ` span ` .
span
&Span
je
&JsonEmitter
span
&Span
je
&JsonEmitter