[NI] Rename NewConstraintSystem.diagnostics to errors

This commit is contained in:
Dmitriy Novozhilov
2020-08-25 18:16:14 +03:00
parent 59b2cb6393
commit 686c17a234
8 changed files with 9 additions and 9 deletions
@@ -299,12 +299,12 @@ class CoroutineInferenceSession(
for (completedCall in commonCalls) {
updateCall(completedCall, nonFixedTypesToResultSubstitutor, nonFixedTypesToResult)
reportErrors(completedCall, completedCall.resolvedCall, commonSystem.diagnostics)
reportErrors(completedCall, completedCall.resolvedCall, commonSystem.errors)
}
for (callInfo in partiallyResolvedCallsInfo) {
val resolvedCall = completeCall(callInfo, atomCompleter) ?: continue
reportErrors(callInfo, resolvedCall, commonSystem.diagnostics)
reportErrors(callInfo, resolvedCall, commonSystem.errors)
}
for (simpleCall in simpleCommonCalls) {
@@ -170,7 +170,7 @@ abstract class ManyCandidatesResolver<D : CallableDescriptor>(
diagnosticsHolder: KotlinDiagnosticsHolder.SimpleHolder,
commonSystem: NewConstraintSystem
): CallResolutionResult {
val diagnostics = diagnosticsHolder.getDiagnostics() + callResolutionResult.diagnostics + commonSystem.diagnostics.asDiagnostics()
val diagnostics = diagnosticsHolder.getDiagnostics() + callResolutionResult.diagnostics + commonSystem.errors.asDiagnostics()
return CompletedCallResolutionResult(callResolutionResult.resultCallAtom, diagnostics, commonSystem.asReadOnlyStorage())
}
}
@@ -281,7 +281,7 @@ class PSICallResolver(
): ManyCandidates<D> {
val resolvedCalls = diagnostic.candidates.map {
kotlinToResolvedCallTransformer.onlyTransform<D>(
it.resolvedCall, it.diagnosticsFromResolutionParts + it.getSystem().diagnostics.asDiagnostics()
it.resolvedCall, it.diagnosticsFromResolutionParts + it.getSystem().errors.asDiagnostics()
)
}