[FIR] Rename CheckDeprecatedSinceKotlin resolution stage to CheckHiddenDeclaration
This commit is contained in:
committed by
Space Team
parent
f12ecb3011
commit
528a2d3c62
@@ -7,7 +7,7 @@ package org.jetbrains.kotlin.fir.resolve.calls
|
|||||||
|
|
||||||
sealed class CallKind(vararg resolutionSequence: ResolutionStage) {
|
sealed class CallKind(vararg resolutionSequence: ResolutionStage) {
|
||||||
object VariableAccess : CallKind(
|
object VariableAccess : CallKind(
|
||||||
CheckDeprecatedSinceKotlin,
|
CheckHiddenDeclaration,
|
||||||
CheckVisibility,
|
CheckVisibility,
|
||||||
DiscriminateSynthetics,
|
DiscriminateSynthetics,
|
||||||
CheckExplicitReceiverConsistency,
|
CheckExplicitReceiverConsistency,
|
||||||
@@ -38,7 +38,7 @@ sealed class CallKind(vararg resolutionSequence: ResolutionStage) {
|
|||||||
)
|
)
|
||||||
|
|
||||||
object Function : CallKind(
|
object Function : CallKind(
|
||||||
CheckDeprecatedSinceKotlin,
|
CheckHiddenDeclaration,
|
||||||
CheckVisibility,
|
CheckVisibility,
|
||||||
DiscriminateSynthetics,
|
DiscriminateSynthetics,
|
||||||
MapArguments,
|
MapArguments,
|
||||||
@@ -62,7 +62,7 @@ sealed class CallKind(vararg resolutionSequence: ResolutionStage) {
|
|||||||
)
|
)
|
||||||
|
|
||||||
object DelegatingConstructorCall : CallKind(
|
object DelegatingConstructorCall : CallKind(
|
||||||
CheckDeprecatedSinceKotlin,
|
CheckHiddenDeclaration,
|
||||||
CheckVisibility,
|
CheckVisibility,
|
||||||
MapArguments,
|
MapArguments,
|
||||||
CheckExplicitReceiverConsistency,
|
CheckExplicitReceiverConsistency,
|
||||||
@@ -80,7 +80,7 @@ sealed class CallKind(vararg resolutionSequence: ResolutionStage) {
|
|||||||
)
|
)
|
||||||
|
|
||||||
object CallableReference : CallKind(
|
object CallableReference : CallKind(
|
||||||
CheckDeprecatedSinceKotlin,
|
CheckHiddenDeclaration,
|
||||||
CheckVisibility,
|
CheckVisibility,
|
||||||
DiscriminateSynthetics,
|
DiscriminateSynthetics,
|
||||||
NoTypeArguments,
|
NoTypeArguments,
|
||||||
|
|||||||
@@ -702,7 +702,7 @@ internal object CheckCallModifiers : CheckerStage() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal object CheckDeprecatedSinceKotlin : ResolutionStage() {
|
internal object CheckHiddenDeclaration : ResolutionStage() {
|
||||||
override suspend fun check(candidate: Candidate, callInfo: CallInfo, sink: CheckerSink, context: ResolutionContext) {
|
override suspend fun check(candidate: Candidate, callInfo: CallInfo, sink: CheckerSink, context: ResolutionContext) {
|
||||||
val symbol = candidate.symbol as? FirCallableSymbol<*> ?: return
|
val symbol = candidate.symbol as? FirCallableSymbol<*> ?: return
|
||||||
val deprecation = symbol.getDeprecation(context.session, callInfo.callSite)
|
val deprecation = symbol.getDeprecation(context.session, callInfo.callSite)
|
||||||
|
|||||||
Reference in New Issue
Block a user