FirBasedSymbol: call lazyResolveToPhase directly on a backing field

This commit is contained in:
Mikhail Glukhikh
2023-04-24 18:12:56 +02:00
committed by Space Team
parent 156be26982
commit 4589463e92
@@ -111,10 +111,7 @@ private fun FirAnnotationContainer.isDefinitelyEmpty(anchorElement: FirBasedSymb
fun FirAnnotationContainer.resolvedAnnotationsWithClassIds(anchorElement: FirBasedSymbol<*>): List<FirAnnotation> {
if (isDefinitelyEmpty(anchorElement)) return emptyList()
when (anchorElement) {
is FirBackingFieldSymbol -> anchorElement.propertySymbol
else -> anchorElement
}.lazyResolveToPhase(FirResolvePhase.TYPES)
anchorElement.lazyResolveToPhase(FirResolvePhase.TYPES)
return annotations
}