[FIR] DeprecationProvider: inline builder, fix named arguments, cosmetic
This commit is contained in:
committed by
teamcity
parent
a80870bc8f
commit
539e5f82e2
@@ -630,7 +630,7 @@ internal object CheckCallModifiers : CheckerStage() {
|
||||
internal object CheckDeprecatedSinceKotlin : ResolutionStage() {
|
||||
override suspend fun check(candidate: Candidate, callInfo: CallInfo, sink: CheckerSink, context: ResolutionContext) {
|
||||
val symbol = candidate.symbol as? FirCallableSymbol<*> ?: return
|
||||
val deprecation = symbol.getDeprecation(context.session.languageVersionSettings.apiVersion, callInfo.callSite)
|
||||
val deprecation = symbol.getDeprecation(context.session, callInfo.callSite)
|
||||
if (deprecation != null && deprecation.deprecationLevel == DeprecationLevelValue.HIDDEN) {
|
||||
sink.yieldDiagnostic(HiddenCandidate)
|
||||
}
|
||||
|
||||
+1
-1
@@ -124,7 +124,7 @@ class FirTypeResolverImpl(private val session: FirSession) : FirTypeResolver() {
|
||||
diagnostic = ConeVisibilityError(symbol)
|
||||
}
|
||||
|
||||
val deprecation = symbol.getDeprecation(session.languageVersionSettings.apiVersion, useSiteFile)
|
||||
val deprecation = symbol.getDeprecation(session, useSiteFile)
|
||||
if (deprecation != null && deprecation.deprecationLevel == DeprecationLevelValue.HIDDEN) {
|
||||
symbolApplicability = minOf(CandidateApplicability.HIDDEN, symbolApplicability)
|
||||
diagnostic = null
|
||||
|
||||
Reference in New Issue
Block a user