mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
assign ids to tokens
This commit is contained in:
parent
b356ab46f2
commit
58897dd8dd
4 changed files with 15 additions and 3 deletions
|
@ -41,7 +41,7 @@ fn parse_subtree(tt: &tt::Subtree) -> Option<crate::Subtree> {
|
|||
}
|
||||
}
|
||||
tt::Leaf::Punct(punct) => crate::Leaf::from(*punct).into(),
|
||||
tt::Leaf::Ident(tt::Ident { text }) => {
|
||||
tt::Leaf::Ident(tt::Ident { text, id: _ }) => {
|
||||
crate::Leaf::from(crate::Ident { text: text.clone() }).into()
|
||||
}
|
||||
tt::Leaf::Literal(tt::Literal { text }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue