Kotlin Uast: support class literal expressions.
Ability to get type of class of class literal expressions.
This commit is contained in:
+4
-1
@@ -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) }
|
||||
}
|
||||
Reference in New Issue
Block a user