JVMElementFactory for Kotlin

Answered

Hello! Is there any class, that can create Kotlin psi elements? JVMElementFactory has implementations for Java and Groovy, but I cannot find an implementation for Kotlin.

Also, for some reason, when I add Kotlin plugin to my plugin dependencies, sources of the plugin are not loaded. Do you have any idea, why?

0
1 comment

It would be quite hard to implement it fully from Kotlin's POV.

Please see whether JvmElementActionsFactory is enough, otherwise you can use org.jetbrains.kotlin.psi.KtPsiFactory from Kotlin plugin directly.

0

Please sign in to leave a comment.