Remove accidental dependency between parse_macro_expansion and parse

This commit is contained in:
Lukas Wirth 2024-03-07 11:16:40 +01:00
parent 9c2fa76c84
commit bd0ffb0248
3 changed files with 46 additions and 51 deletions

View file

@ -31,11 +31,13 @@ impl mbe::SpanMapper<Span> for SpanMap {
self.span_for_range(range)
}
}
impl mbe::SpanMapper<Span> for SpanMapRef<'_> {
fn span_for(&self, range: TextRange) -> Span {
self.span_for_range(range)
}
}
impl SpanMap {
pub fn span_for_range(&self, range: TextRange) -> Span {
match self {