FirBasedSymbol: call lazyResolveToPhase directly on a backing field
This commit is contained in:
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user