• Home
  • Raw
  • Download

Lines Matching refs:span_range

24     pub(crate) span_range: SpanRange,  field
39 fn spanned_range(span_range: SpanRange, level: Level, message: String) -> Self; in spanned_range()
46 fn span_range_error(self, span_range: SpanRange, msg: String) -> Self; in span_range_error()
56 fn span_range_help(self, span_range: SpanRange, msg: String) -> Self; in span_range_help()
66 fn span_range_note(self, span_range: SpanRange, msg: String) -> Self; in span_range_note()
70 fn spanned_range(span_range: SpanRange, level: Level, message: String) -> Self { in spanned_range()
73 span_range, in spanned_range()
80 fn span_range_error(mut self, span_range: SpanRange, msg: String) -> Self { in span_range_error()
81 self.children.push((span_range, msg)); in span_range_error()
85 fn span_range_help(mut self, span_range: SpanRange, msg: String) -> Self { in span_range_help()
87 .push((SuggestionKind::Help, msg, Some(span_range))); in span_range_help()
91 fn span_range_note(mut self, span_range: SpanRange, msg: String) -> Self { in span_range_note()
93 .push((SuggestionKind::Note, msg, Some(span_range))); in span_range_note()
228 span_range: SpanRange, in to_tokens()
256 msg.set_span(span_range.last); in to_tokens()
257 let group = quote_spanned!(span_range.last=> { #msg } ); in to_tokens()
258 quote_spanned!(span_range.first=> compile_error!#group) in to_tokens()
262 self.span_range, in to_tokens()
270 .map(|(span_range, msg)| diag_to_tokens(*span_range, &Level::Error, &msg, &[])), in to_tokens()
340 let (span_range, msg) = gut_error(&mut ts).unwrap(); in from()
341 let mut res = Diagnostic::spanned_range(span_range, Level::Error, msg); in from()
343 while let Some((span_range, msg)) = gut_error(&mut ts) { in from()
344 res = res.span_range_error(span_range, msg); in from()