Use macro_rules shift to map text ranges

This commit is contained in:
Edwin Cheng 2019-11-05 02:09:16 +08:00
parent 7e28924012
commit 604bdc6ffe
4 changed files with 26 additions and 51 deletions

View file

@ -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 {