From 8d27f102e7edc328de3d76ae6cb48cea5a03b78c Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Wed, 4 Aug 2021 17:39:43 +0300 Subject: [PATCH] Fix typo: addCompetedCall -> addCompletedCall --- .../inference/AbstractManyCandidatesInferenceSession.kt | 2 +- .../fir/resolve/inference/FirBuilderInferenceSession.kt | 2 +- .../kotlin/fir/resolve/inference/FirCallCompleter.kt | 2 +- .../kotlin/fir/resolve/inference/FirInferenceSession.kt | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/AbstractManyCandidatesInferenceSession.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/AbstractManyCandidatesInferenceSession.kt index 04e63d3b64f..b41f62a0249 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/AbstractManyCandidatesInferenceSession.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/AbstractManyCandidatesInferenceSession.kt @@ -30,7 +30,7 @@ abstract class AbstractManyCandidatesInferenceSession( ?.currentStorage() ?: ConstraintStorage.Empty - override fun addCompetedCall(call: T, candidate: Candidate) where T : FirResolvable, T : FirStatement { + override fun addCompletedCall(call: T, candidate: Candidate) where T : FirResolvable, T : FirStatement { // do nothing } diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirBuilderInferenceSession.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirBuilderInferenceSession.kt index be0d8010fc9..6a54f511fd3 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirBuilderInferenceSession.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirBuilderInferenceSession.kt @@ -81,7 +81,7 @@ class FirBuilderInferenceSession( return postponedAtoms.any { !it.analyzed } } - override fun addCompetedCall(call: T, candidate: Candidate) where T : FirResolvable, T : FirStatement { + override fun addCompletedCall(call: T, candidate: Candidate) where T : FirResolvable, T : FirStatement { if (skipCall(call)) return commonCalls += call to candidate } diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirCallCompleter.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirCallCompleter.kt index 56ed0eb3bba..d9f16fed9bb 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirCallCompleter.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirCallCompleter.kt @@ -133,7 +133,7 @@ class FirCallCompleter( ), null ) - inferenceSession.addCompetedCall(completedCall, candidate) + inferenceSession.addCompletedCall(completedCall, candidate) CompletionResult(completedCall, true) } else { inferenceSession.addPartiallyResolvedCall(call) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirInferenceSession.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirInferenceSession.kt index 547e1496122..ce74f7871b5 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirInferenceSession.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirInferenceSession.kt @@ -23,7 +23,7 @@ abstract class FirInferenceSession { abstract fun addPartiallyResolvedCall(call: T) where T : FirResolvable, T : FirStatement abstract fun addErrorCall(call: T) where T : FirResolvable, T : FirStatement - abstract fun addCompetedCall(call: T, candidate: Candidate) where T : FirResolvable, T : FirStatement + abstract fun addCompletedCall(call: T, candidate: Candidate) where T : FirResolvable, T : FirStatement abstract fun inferPostponedVariables( lambda: ResolvedLambdaAtom, @@ -45,7 +45,7 @@ abstract class FirStubInferenceSession : FirInferenceSession() { override fun addPartiallyResolvedCall(call: T) where T : FirResolvable, T : FirStatement {} override fun addErrorCall(call: T) where T : FirResolvable, T : FirStatement {} - override fun addCompetedCall(call: T, candidate: Candidate) where T : FirResolvable, T : FirStatement {} + override fun addCompletedCall(call: T, candidate: Candidate) where T : FirResolvable, T : FirStatement {} override fun inferPostponedVariables( lambda: ResolvedLambdaAtom,