[NI] Extract interface InferenceSession to a separate file

This commit is contained in:
Mikhail Zarechenskiy
2018-03-15 10:40:09 +03:00
parent 1a5282c4b7
commit 50027225a1
2 changed files with 20 additions and 12 deletions
@@ -0,0 +1,20 @@
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.resolve.calls.components
import org.jetbrains.kotlin.resolve.calls.model.CallResolutionResult
interface InferenceSession {
companion object {
val default = object : InferenceSession {
override fun shouldFixTypeVariables(): Boolean = false
override fun addPartiallyResolvedCall(call: CallResolutionResult) {}
}
}
fun shouldFixTypeVariables(): Boolean
fun addPartiallyResolvedCall(call: CallResolutionResult)
}
@@ -176,15 +176,3 @@ class KotlinCallCompleter(
)
}
}
interface InferenceSession {
companion object {
val default = object : InferenceSession {
override fun shouldFixTypeVariables(): Boolean = false
override fun addPartiallyResolvedCall(call: CallResolutionResult) {}
}
}
fun shouldFixTypeVariables(): Boolean
fun addPartiallyResolvedCall(call: CallResolutionResult)
}