Don't store node names as a joined string#6
Don't store node names as a joined string#6Timmmm wants to merge 1 commit intolezer-parser:masterfrom
Conversation
|
Hi, I'm not really that sure if I will ever do lezer-parser/lezer#35 anymore (since it has a bunch of other tricky implications around interface complexity for parser packages). Also, I don't really see how this PR helps with that. |
|
This doesn't help directly, but I have a future change that lets you export Typescript instead of Javascript, and then you can do: This change is a precursor to that. I think that would be worth doing even if it isn't integrated into the parser type, since user code still might want to do things like iterate over all of the node names, or use |
|
Iterating over node types can be done with |
|
Right, but you can't get a static type of all the node names from |
This stores the node names as an array of strings instead of a joined string. It is preparatory work for fixing lezer-parser/lezer#35 (and depends on the corresponding change in
lezer.