[NI] Rename NewConstraintSystem.diagnostics to errors
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user