[FIR] Add pretty toString to Candidate

This commit is contained in:
Dmitriy Novozhilov
2022-10-11 11:11:38 +03:00
committed by Space Team
parent 5665139865
commit a14cab7245
@@ -123,6 +123,12 @@ class Candidate(
override fun hashCode(): Int {
return symbol.hashCode()
}
override fun toString(): String {
val okOrFail = if (applicability.isSuccess) "OK" else "FAIL"
val step = "$passedStages/${callInfo.callKind.resolutionSequence.size}"
return "$okOrFail($step): $symbol"
}
}
val Candidate.fullyAnalyzed: Boolean