assign ids to tokens

This commit is contained in:
Aleksey Kladov 2019-02-11 19:28:39 +03:00
parent b356ab46f2
commit 58897dd8dd
4 changed files with 15 additions and 3 deletions

View file

@ -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 }) => {