Fix reporting exception problems on Kotlin UAST fields (KT-17714)

This commit is contained in:
Dmitry Jemerov
2017-05-03 19:44:34 +02:00
parent 56d712a02a
commit 8337cd455f
@@ -130,6 +130,12 @@ open class KotlinUField(
override fun getNameIdentifier(): PsiIdentifier {
return super.getNameIdentifier()
}
override fun isPhysical(): Boolean {
return true
}
override fun getContainingFile(): PsiFile? = (psi as? KtLightElement<*, *>)?.kotlinOrigin?.containingFile ?: psi.containingFile
}
open class KotlinULocalVariable(