mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Add basic custom derive lowering
This commit is contained in:
parent
e2dd17f75b
commit
34dc8d25c1
11 changed files with 152 additions and 28 deletions
|
@ -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)>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue