JVMElementFactory for Kotlin

已回答

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

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

请先登录再写评论。