FIR: drop some usages of ConeTypeContext
This commit is contained in:
committed by
TeamCityServer
parent
81ff9b820a
commit
d1194e5fd2
+1
-1
@@ -441,7 +441,7 @@ class FirTypeResolverImpl(private val session: FirSession) : FirTypeResolver() {
|
||||
private fun createFunctionalType(typeRef: FirFunctionTypeRef): ConeClassLikeType {
|
||||
val parameters =
|
||||
listOfNotNull(typeRef.receiverTypeRef?.coneType) +
|
||||
typeRef.valueParameters.map { it.returnTypeRef.coneType.withParameterNameAnnotation(it, session.typeContext) } +
|
||||
typeRef.valueParameters.map { it.returnTypeRef.coneType.withParameterNameAnnotation(it) } +
|
||||
listOf(typeRef.returnTypeRef.coneType)
|
||||
val classId = if (typeRef.isSuspend) {
|
||||
StandardClassIds.SuspendFunctionN(typeRef.parametersCount)
|
||||
|
||||
+2
-2
@@ -344,7 +344,7 @@ class FirCallCompletionResultsWriterTransformer(
|
||||
|
||||
private fun ConeKotlinType.removeExactAttribute(): ConeKotlinType {
|
||||
if (attributes.contains(CompilerConeAttributes.Exact)) {
|
||||
return withAttributes(attributes.remove(CompilerConeAttributes.Exact), session.typeContext)
|
||||
return withAttributes(attributes.remove(CompilerConeAttributes.Exact))
|
||||
}
|
||||
|
||||
return this
|
||||
@@ -910,7 +910,7 @@ internal class FirDeclarationCompletionResultsWriter(
|
||||
typeRef.resolvedTypeFromPrototype(it)
|
||||
} ?: typeRef
|
||||
if (data is ApproximationData.ApproximateByStatus) {
|
||||
return result.approximatedIfNeededOrSelf(typeApproximator, data.visibility, typeContext, data.isInline)
|
||||
return result.approximatedIfNeededOrSelf(typeApproximator, data.visibility, data.isInline)
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
-1
@@ -319,7 +319,6 @@ class FirSyntheticCallGenerator(
|
||||
val returnType = rightArgumentType.resolvedTypeFromPrototype(
|
||||
rightArgumentType.type.withAttributes(
|
||||
ConeAttributes.create(listOf(CompilerConeAttributes.Exact)),
|
||||
session.typeContext,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
-3
@@ -627,7 +627,6 @@ open class FirDeclarationsResolveTransformer(transformer: FirBodyResolveTransfor
|
||||
returnExpression.resultType.approximatedIfNeededOrSelf(
|
||||
session.typeApproximator,
|
||||
simpleFunction?.visibilityForApproximation(),
|
||||
transformer.session.typeContext,
|
||||
simpleFunction?.isInline == true
|
||||
)
|
||||
)
|
||||
@@ -989,7 +988,6 @@ open class FirDeclarationsResolveTransformer(transformer: FirBodyResolveTransfor
|
||||
expectedType.approximatedIfNeededOrSelf(
|
||||
session.typeApproximator,
|
||||
backingField.visibilityForApproximation(),
|
||||
session.typeContext,
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -1014,7 +1012,6 @@ open class FirDeclarationsResolveTransformer(transformer: FirBodyResolveTransfor
|
||||
expectedType.approximatedIfNeededOrSelf(
|
||||
session.typeApproximator,
|
||||
variable.visibilityForApproximation(),
|
||||
session.typeContext,
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user