AbstractMany...InferenceSession -> FirInferenceSessionForChainedResolve
This commit is contained in:
committed by
teamcity
parent
6342eb96c0
commit
2fc372413e
+1
-1
@@ -32,7 +32,7 @@ class FirBuilderInferenceSession(
|
|||||||
private val lambda: FirAnonymousFunction,
|
private val lambda: FirAnonymousFunction,
|
||||||
resolutionContext: ResolutionContext,
|
resolutionContext: ResolutionContext,
|
||||||
private val stubsForPostponedVariables: Map<ConeTypeVariable, ConeStubType>,
|
private val stubsForPostponedVariables: Map<ConeTypeVariable, ConeStubType>,
|
||||||
) : AbstractManyCandidatesInferenceSession(resolutionContext) {
|
) : FirInferenceSessionForChainedResolve(resolutionContext) {
|
||||||
private val commonCalls: MutableList<Pair<FirStatement, Candidate>> = mutableListOf()
|
private val commonCalls: MutableList<Pair<FirStatement, Candidate>> = mutableListOf()
|
||||||
|
|
||||||
override val currentConstraintStorage: ConstraintStorage
|
override val currentConstraintStorage: ConstraintStorage
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ class FirDelegatedPropertyInferenceSession(
|
|||||||
val property: FirProperty,
|
val property: FirProperty,
|
||||||
resolutionContext: ResolutionContext,
|
resolutionContext: ResolutionContext,
|
||||||
private val postponedArgumentsAnalyzer: PostponedArgumentsAnalyzer,
|
private val postponedArgumentsAnalyzer: PostponedArgumentsAnalyzer,
|
||||||
) : AbstractManyCandidatesInferenceSession(resolutionContext) {
|
) : FirInferenceSessionForChainedResolve(resolutionContext) {
|
||||||
|
|
||||||
private val currentConstraintSystem = components.session.inferenceComponents.createConstraintSystem()
|
private val currentConstraintSystem = components.session.inferenceComponents.createConstraintSystem()
|
||||||
override val currentConstraintStorage: ConstraintStorage get() = currentConstraintSystem.currentStorage()
|
override val currentConstraintStorage: ConstraintStorage get() = currentConstraintSystem.currentStorage()
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@ import org.jetbrains.kotlin.resolve.calls.inference.model.InitialConstraint
|
|||||||
import org.jetbrains.kotlin.resolve.calls.inference.model.NewConstraintSystemImpl
|
import org.jetbrains.kotlin.resolve.calls.inference.model.NewConstraintSystemImpl
|
||||||
import org.jetbrains.kotlin.types.model.*
|
import org.jetbrains.kotlin.types.model.*
|
||||||
|
|
||||||
abstract class AbstractManyCandidatesInferenceSession(
|
abstract class FirInferenceSessionForChainedResolve(
|
||||||
protected val resolutionContext: ResolutionContext
|
protected val resolutionContext: ResolutionContext
|
||||||
) : FirInferenceSession() {
|
) : FirInferenceSession() {
|
||||||
override fun fixSyntheticTypeVariableWithNotEnoughInformation(
|
override fun fixSyntheticTypeVariableWithNotEnoughInformation(
|
||||||
Reference in New Issue
Block a user