mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41: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
|
@ -37,7 +37,7 @@ fn convert_tt(tt: &SyntaxNode) -> Option<tt::Subtree> {
|
|||
convert_tt(child)?.into()
|
||||
} else if child.kind().is_keyword() || child.kind() == IDENT {
|
||||
let text = child.leaf_text().unwrap().clone();
|
||||
tt::Leaf::from(tt::Ident { text }).into()
|
||||
tt::Leaf::from(tt::Ident { text, id: tt::TokenId::unspecified() }).into()
|
||||
} else if child.kind().is_literal() {
|
||||
tt::Leaf::from(tt::Literal { text: child.leaf_text().unwrap().clone() }).into()
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue