[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:
committed by
Space Team
parent
f644eb7988
commit
19dbe69651
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user