mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Use macro_rules shift to map text ranges
This commit is contained in:
parent
7e28924012
commit
604bdc6ffe
4 changed files with 26 additions and 51 deletions
|
@ -118,6 +118,10 @@ impl MacroRules {
|
|||
shift_subtree(&mut tt, self.shift);
|
||||
mbe_expander::expand(self, &tt)
|
||||
}
|
||||
|
||||
pub fn shift(&self) -> u32 {
|
||||
self.shift
|
||||
}
|
||||
}
|
||||
|
||||
impl Rule {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue