mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Remove accidental dependency between parse_macro_expansion
and parse
This commit is contained in:
parent
9c2fa76c84
commit
bd0ffb0248
3 changed files with 46 additions and 51 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue