Unused nodes
dtolnay opened this issue · 2 comments
These two nodes are currently unused by any other nodes; there might be others:
Lines 68 to 73 in 07d5806
Are these needed as intermediate data structures in your parser without being present in the syntax tree, or can they be removed from the ungrammar?
These are alternative top-level nodes for macro expansion. Ie, top-level macro expands to MacroItems nodes.
They are somewhat of an implementation detail of rust-analyzer at the moment, maybe we can/should unify them with file/block contents nodes.
In other words, we probably need to change something around here, but to figure out what exactly, we need to carefully review macro expansion needs.
Closing as the grammar file is no longer maintained