More of Intellij core question, but in the context of the Kotlin compiler:
I am looking into fixing the parse error, that arises when writing something like
val a: List<String>= listOf()
, where there is no whitespace in between the type parameter and the assignment.
Am I right when I conclude, that the
PsiBuilder
does not allow for splitting tokens but only for remapping? So is it really not (trivially) possible to convert a GTEQ into a GT and an EQ?
kralli
03/26/2022, 5:26 PM
Upon further investigation I am now certain that splitting tokens is currently not possible. It would involve altering the array inside of the
PsiBuilderImpl
, which would require a (substantial) change in the core.
However, I think, I found a viable solution to the problem by handling it analogous to the