Searched refs:span_range (Results 1 – 4 of 4) sorted by relevance
/external/rust/crates/proc-macro-error/src/ |
D | diagnostic.rs | 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() [all …]
|
D | macros.rs | 25 … let span_range = (&$span).FIRST_ARG_MUST_EITHER_BE_Span_OR_IMPLEMENT_ToTokens_OR_BE_SpanRange(); localVariable 28 span_range, 45 … let span_range = (&$span).FIRST_ARG_MUST_EITHER_BE_Span_OR_IMPLEMENT_ToTokens_OR_BE_SpanRange(); localVariable 47 let diag = $crate::Diagnostic::spanned_range(span_range, $level, $msg.to_string()); 62 … let span_range = (&$span).FIRST_ARG_MUST_EITHER_BE_Span_OR_IMPLEMENT_ToTokens_OR_BE_SpanRange(); localVariable 65 span_range, 80 … let span_range = (&$span).FIRST_ARG_MUST_EITHER_BE_Span_OR_IMPLEMENT_ToTokens_OR_BE_SpanRange(); localVariable 82 $crate::Diagnostic::spanned_range(span_range, $level, $msg.to_string())
|
/external/rust/crates/proc-macro-error/src/imp/ |
D | delegate.rs | 27 span_range, in emit_diagnostic() 33 let span = span_range.collapse().unwrap(); in emit_diagnostic() 48 (SuggestionKind::Note, Some(span_range)) => { in emit_diagnostic() 49 res.span_note(span_range.collapse().unwrap(), msg) in emit_diagnostic() 51 (SuggestionKind::Help, Some(span_range)) => { in emit_diagnostic() 52 res.span_help(span_range.collapse().unwrap(), msg) in emit_diagnostic() 59 for (span_range, msg) in children { in emit_diagnostic() 60 let span = span_range.collapse().unwrap(); in emit_diagnostic()
|
/external/rust/crates/regex-syntax/src/ast/ |
D | parse.rs | 2399 fn span_range(subject: &str, range: Range<usize>) -> Span { in span_range() function 2482 span: span_range(pat, (range.end - 2)..(range.end - 1)), in flag_set() 2489 span: span_range(pat, (range.start + 2)..(range.end - 2)), in flag_set() 2495 span: span_range(pat, range.clone()), in flag_set() 2497 span: span_range(pat, (range.start + 2)..(range.end - 1)), in flag_set() 2673 span_range(pat, 0..pat.len()), in parse_comments() 2676 lit_with('f', span_range(pat, 26..27)), in parse_comments() 2677 lit_with('o', span_range(pat, 27..28)), in parse_comments() 2678 lit_with('o', span_range(pat, 28..29)), in parse_comments() 2679 lit_with('b', span_range(pat, 74..75)), in parse_comments() [all …]
|