Greg Shrago
Greg Shrago
Yes, token list are not generated as not very efficient way of accessing PSI. https://github.com/JetBrains/Grammar-Kit/blob/a083a8a6f94527543c4e9a7b0d1605bcc5a773bc/src/org/intellij/grammar/generator/RuleMethodsHelper.java#L166 Workaround is to use custom implementations via methods or class mixins.
Why collect all tokens in a list to get the n-th item? One can simply iterate `element.getNextSibling()` and check the elementType.
Yes, that's possible.
Right. For lists the exact quantity logic is not currently implemented.
https://youtrack.jetbrains.com/issue/IJPL-163473/Freeze-in-IgnoreManagerbulkFileListener1.handleEvent
Done as 3d46700d8b263d3d028887be92d96f77b242891c on 18.10.2024