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> {
|
fun FirAnnotationContainer.resolvedAnnotationsWithClassIds(anchorElement: FirBasedSymbol<*>): List<FirAnnotation> {
|
||||||
if (isDefinitelyEmpty(anchorElement)) return emptyList()
|
if (isDefinitelyEmpty(anchorElement)) return emptyList()
|
||||||
|
|
||||||
when (anchorElement) {
|
anchorElement.lazyResolveToPhase(FirResolvePhase.TYPES)
|
||||||
is FirBackingFieldSymbol -> anchorElement.propertySymbol
|
|
||||||
else -> anchorElement
|
|
||||||
}.lazyResolveToPhase(FirResolvePhase.TYPES)
|
|
||||||
|
|
||||||
return annotations
|
return annotations
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user