Use macro_rules shift to map text ranges
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user