[FIR] Add pretty toString to Candidate
This commit is contained in:
committed by
Space Team
parent
5665139865
commit
a14cab7245
@@ -123,6 +123,12 @@ class Candidate(
|
|||||||
override fun hashCode(): Int {
|
override fun hashCode(): Int {
|
||||||
return symbol.hashCode()
|
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
|
val Candidate.fullyAnalyzed: Boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user