FIR: Rename stub type for builder inference

This commit is contained in:
Simon Ogorodnik
2021-11-26 15:51:40 +03:00
committed by teamcity
parent 1a288fcdcd
commit bb13583862
18 changed files with 30 additions and 29 deletions
@@ -76,7 +76,7 @@ class FirBuilderInferenceSession(
private fun ConeKotlinType.containsStubType(): Boolean {
return this.contains {
it is ConeStubTypeForBuilderInference
it is ConeStubTypeForChainInference
}
}
@@ -35,7 +35,7 @@ class FirDelegatedPropertyInferenceSession(
private fun ConeKotlinType.containsStubType(): Boolean {
return this.contains {
it is ConeStubTypeForBuilderInference
it is ConeStubTypeForChainInference
}
}
@@ -155,7 +155,7 @@ class FirDelegatedPropertyInferenceSession(
typeVariable as ConeTypeVariable
completionContext.fixVariable(
typeVariable,
ConeStubTypeForFixation(
ConeStubTypeForSyntheticFixation(
ConeStubTypeConstructor(typeVariable, isTypeVariableInSubtyping = false, isForFixation = true),
ConeNullability.create(typeVariable.defaultType.isMarkedNullable)
),
@@ -248,7 +248,7 @@ class FirDelegatedPropertyInferenceSession(
}
stubTypesByTypeVariable.getOrPut(variable) {
ConeStubTypeForBuilderInference(
ConeStubTypeForChainInference(
syntheticVariable,
ConeNullability.create(syntheticVariable.defaultType.isMarkedNullable)
).also {