[NI] Introduce method to add extra constraints before completion
This commit is contained in:
+3
@@ -5,16 +5,19 @@
|
||||
|
||||
package org.jetbrains.kotlin.resolve.calls.components
|
||||
|
||||
import org.jetbrains.kotlin.resolve.calls.inference.NewConstraintSystem
|
||||
import org.jetbrains.kotlin.resolve.calls.model.CallResolutionResult
|
||||
|
||||
interface InferenceSession {
|
||||
companion object {
|
||||
val default = object : InferenceSession {
|
||||
override fun prepareBeforeCompletion(commonSystem: NewConstraintSystem) {}
|
||||
override fun shouldFixTypeVariables(): Boolean = false
|
||||
override fun addPartiallyResolvedCall(call: CallResolutionResult) {}
|
||||
}
|
||||
}
|
||||
|
||||
fun prepareBeforeCompletion(commonSystem: NewConstraintSystem)
|
||||
fun shouldFixTypeVariables(): Boolean
|
||||
fun addPartiallyResolvedCall(call: CallResolutionResult)
|
||||
}
|
||||
Reference in New Issue
Block a user