[NI] Rename NewConstraintSystem.diagnostics to errors
This commit is contained in:
+1
-1
@@ -236,7 +236,7 @@ class KotlinCallCompleter(
|
||||
}
|
||||
}
|
||||
|
||||
constraintSystem.diagnostics.forEach(diagnosticsHolder::addError)
|
||||
constraintSystem.errors.forEach(diagnosticsHolder::addError)
|
||||
}
|
||||
|
||||
private fun prepareCandidateForCompletion(
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import org.jetbrains.kotlin.resolve.calls.inference.model.ConstraintSystemError
|
||||
|
||||
interface NewConstraintSystem {
|
||||
val hasContradiction: Boolean
|
||||
val diagnostics: List<ConstraintSystemError>
|
||||
val errors: List<ConstraintSystemError>
|
||||
|
||||
fun getBuilder(): ConstraintSystemBuilder
|
||||
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ class NewConstraintSystemImpl(
|
||||
}
|
||||
}
|
||||
|
||||
override val diagnostics: List<ConstraintSystemError>
|
||||
override val errors: List<ConstraintSystemError>
|
||||
get() = storage.errors
|
||||
|
||||
override fun getBuilder() = apply { checkState(State.BUILDING, State.COMPLETION, State.TRANSACTION) }
|
||||
|
||||
+1
-1
@@ -166,7 +166,7 @@ class KotlinResolutionCandidate(
|
||||
get() {
|
||||
processParts(stopOnFirstError = false)
|
||||
|
||||
val systemApplicability = getResultApplicability(getSystem().diagnostics)
|
||||
val systemApplicability = getResultApplicability(getSystem().errors)
|
||||
return maxOf(currentApplicability, systemApplicability, variableApplicability)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user