[FIR] move deprecations calculation on TYPES phase

can be moved to COMPILER_REQUIRED_ANNOTATIONS phase in the future

^KT-57256 Fixed
This commit is contained in:
Dmitrii Gridin
2023-03-28 17:47:50 +02:00
committed by Space Team
parent f644eb7988
commit 19dbe69651
10 changed files with 103 additions and 13 deletions
@@ -68,7 +68,8 @@ abstract class FirCallableSymbol<D : FirCallableDeclaration> : FirBasedSymbol<D>
fun getDeprecation(apiVersion: ApiVersion): DeprecationsPerUseSite? {
if (!canBeDeprecated()) return null
lazyResolveToPhase(FirResolvePhase.STATUS)
lazyResolveToPhase(FirResolvePhase.TYPES)
return fir.deprecationsProvider.getDeprecationsInfo(apiVersion)
}
@@ -85,6 +86,7 @@ abstract class FirCallableSymbol<D : FirCallableDeclaration> : FirBasedSymbol<D>
else -> lazyResolveToPhase(FirResolvePhase.TYPES)
}
}
override fun toString(): String = "${this::class.simpleName} $callableId"
}