KtLightElements: make light annotations lazier
Allow to get annotation list and to invoke `findAnnotation` without building delegate
Introduce KtLightNullabilityAnnotation which holds nullability information and is built
before delegate is built
This commit is contained in:
@@ -229,7 +229,7 @@ internal object KotlinConverter {
|
||||
is KtContainerNode -> element.getExpression()?.let {
|
||||
KotlinConverter.convertExpression(it, parentCallback, requiredType)
|
||||
} ?: el<UExpression> { UastEmptyExpression }
|
||||
is KtLightAnnotation.LightExpressionValue<*> -> {
|
||||
is KtLightAnnotationForSourceEntry.LightExpressionValue<*> -> {
|
||||
val expression = element.originalExpression
|
||||
when (expression) {
|
||||
is KtExpression -> KotlinConverter.convertExpression(expression, parentCallback, requiredType)
|
||||
|
||||
Reference in New Issue
Block a user