Add basic custom derive lowering

This commit is contained in:
Edwin Cheng 2020-03-18 17:47:59 +08:00
parent e2dd17f75b
commit 34dc8d25c1
11 changed files with 152 additions and 28 deletions

View file

@ -33,7 +33,7 @@ impl TokenTextRange {
}
/// Maps `tt::TokenId` to the relative range of the original token.
#[derive(Debug, PartialEq, Eq, Default)]
#[derive(Debug, PartialEq, Eq, Clone, Default)]
pub struct TokenMap {
/// Maps `tt::TokenId` to the *relative* source range.
entries: Vec<(tt::TokenId, TokenTextRange)>,