[FIR] Get rid of CandidateApplicability.SYNTHETIC_RESOLVED

This commit is contained in:
Dmitriy Novozhilov
2020-09-08 12:05:56 +03:00
parent 19707667fd
commit a148db9d81
2 changed files with 2 additions and 6 deletions
@@ -366,7 +366,7 @@ private fun FirSession.createAdaptedKFunctionType(
internal object DiscriminateSynthetics : CheckerStage() {
override suspend fun check(candidate: Candidate, sink: CheckerSink, callInfo: CallInfo) {
if (candidate.symbol is SyntheticSymbol) {
sink.reportApplicability(CandidateApplicability.SYNTHETIC_RESOLVED)
sink.reportApplicability(CandidateApplicability.RESOLVED_LOW_PRIORITY)
}
}
}
@@ -18,11 +18,7 @@ enum class CandidateApplicability {
RESOLVED_LOW_PRIORITY,
RESOLVED_NEED_PRESERVE_COMPATIBILITY, // call resolved successfully, but using new features that changes resolve
RESOLVED_WITH_ERROR, // call has error, but it is still successful from resolution perspective
RESOLVED; // call success or has uncompleted inference or in other words possible successful candidate
companion object {
val SYNTHETIC_RESOLVED: CandidateApplicability = RESOLVED_LOW_PRIORITY
}
RESOLVED, // call success or has uncompleted inference or in other words possible successful candidate
}
val CandidateApplicability.isSuccess: Boolean