[FIR-TEST] Count all ConeKotlinErrorType as error types
This commit is contained in:
@@ -313,17 +313,13 @@ class FirResolveBench(val withProgress: Boolean) {
|
|||||||
resolvedTypes++
|
resolvedTypes++
|
||||||
val type = resolvedTypeRef.type
|
val type = resolvedTypeRef.type
|
||||||
if (type is ConeKotlinErrorType || type is ConeClassErrorType) {
|
if (type is ConeKotlinErrorType || type is ConeClassErrorType) {
|
||||||
if (resolvedTypeRef.psi == null) {
|
errorTypes++
|
||||||
implicitTypes++
|
if (resolvedTypeRef is FirErrorTypeRef && resolvedTypeRef.diagnostic is ConeStubDiagnostic) {
|
||||||
} else {
|
return
|
||||||
errorTypes++
|
|
||||||
if (resolvedTypeRef is FirErrorTypeRef && resolvedTypeRef.diagnostic is ConeStubDiagnostic) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
val psi = resolvedTypeRef.psi!!
|
|
||||||
val problem = "${resolvedTypeRef::class.simpleName} -> ${type::class.simpleName}: ${type.render()}"
|
|
||||||
reportProblem(problem, psi)
|
|
||||||
}
|
}
|
||||||
|
val psi = resolvedTypeRef.psi ?: return
|
||||||
|
val problem = "${resolvedTypeRef::class.simpleName} -> ${type::class.simpleName}: ${type.render()}"
|
||||||
|
reportProblem(problem, psi)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user