More of Intellij core question, but in the context...
# compiler
k
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?
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
SAFE_CALL
or
ELVIS
token types.