Kotlin Uast: support class literal expressions.

Ability to get type of class of class literal expressions.
This commit is contained in:
Yan Zhulanow
2016-03-22 20:11:23 +03:00
parent 6172f23d9b
commit 1ac6c0f2e9
4 changed files with 37 additions and 1 deletions
@@ -19,9 +19,12 @@ import com.intellij.psi.PsiClassObjectAccessExpression
import org.jetbrains.uast.NoEvaluate
import org.jetbrains.uast.UClassLiteralExpression
import org.jetbrains.uast.UElement
import org.jetbrains.uast.UType
import org.jetbrains.uast.psi.PsiElementBacked
class JavaUClassLiteralExpression(
override val psi: PsiClassObjectAccessExpression,
override val parent: UElement
) : JavaAbstractUElement(), UClassLiteralExpression, PsiElementBacked, JavaTypeHelper, NoEvaluate
) : JavaAbstractUElement(), UClassLiteralExpression, PsiElementBacked, JavaTypeHelper, NoEvaluate {
override val type: UType by lz { JavaConverter.convert(psi.type, this) }
}