Lines Matching refs:span
75 /// The primary span of the error.
76 span: &'e ast::Span,
77 /// An auxiliary and optional span, in case the error needs to point to
87 span: err.span(),
98 span: err.span(),
119 for span in &spans.multi_line {
122 span.start.line,
123 span.start.column,
124 span.end.line,
125 span.end.column - 1
164 /// and end position of the span have different line numbers. The spans are
176 // off by one, since a span can occur immediately after the last `\n`,
189 spans.add(fmter.span.clone());
190 if let Some(span) = fmter.aux_span {
191 spans.add(span.clone());
196 /// Add the given span to this sequence, putting it in the right place.
197 fn add(&mut self, span: ast::Span) {
200 if span.is_one_line() {
201 let i = span.start.line - 1; // because lines are 1-indexed
202 self.by_line[i].push(span);
205 self.multi_line.push(span);
210 /// Notate the pattern string with carents (`^`) pointing at each span
245 for span in spans {
246 for _ in pos..(span.start.column - 1) {
250 let note_len = span.end.column.saturating_sub(span.start.column);