Introduce hierarchy of inference sessions

This commit is contained in:
Victor Petukhov
2021-03-19 15:25:19 +03:00
parent 80ac62864d
commit 999d1f982e
4 changed files with 28 additions and 10 deletions
@@ -12,8 +12,12 @@ import org.jetbrains.kotlin.types.TypeConstructor
import org.jetbrains.kotlin.types.UnwrappedType
interface InferenceSession {
val parentSession: InferenceSession?
companion object {
val default = object : InferenceSession {
override val parentSession: InferenceSession? = null
override fun shouldRunCompletion(candidate: KotlinResolutionCandidate): Boolean = true
override fun addPartialCallInfo(callInfo: PartialCallInfo) {}
override fun addErrorCallInfo(callInfo: ErrorCallInfo) {}