From fd7d0001384cc8bce461c6ce7c7e5e37625abc11 Mon Sep 17 00:00:00 2001 From: Anastasiya Shadrina Date: Wed, 3 Nov 2021 20:22:13 +0700 Subject: [PATCH] [FE] Minor: rename ApplicableArgumentWithConstraint --- .../kotlin/resolve/calls/components/ResolutionParts.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/ResolutionParts.kt b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/ResolutionParts.kt index 49e247ead14..2a25d4ec636 100644 --- a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/ResolutionParts.kt +++ b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/ResolutionParts.kt @@ -655,7 +655,7 @@ private fun ResolutionCandidate.prepareExpectedType(expectedType: UnwrappedType) return resolvedCall.knownParametersSubstitutor.safeSubstitute(resultType) } -private data class ApplicableArgumentWithConstraint( +private data class ApplicableContextReceiverArgumentWithConstraint( val argument: SimpleKotlinCallArgument, val argumentType: UnwrappedType, val expectedType: UnwrappedType, @@ -665,14 +665,14 @@ private data class ApplicableArgumentWithConstraint( private fun ResolutionCandidate.getReceiverArgumentWithConstraintIfCompatible( argument: SimpleKotlinCallArgument, parameter: ParameterDescriptor -): ApplicableArgumentWithConstraint? { +): ApplicableContextReceiverArgumentWithConstraint? { val csBuilder = getSystem().getBuilder() val expectedTypeUnprepared = argument.getExpectedType(parameter, callComponents.languageVersionSettings) val expectedType = prepareExpectedType(expectedTypeUnprepared) val argumentType = captureFromTypeParameterUpperBoundIfNeeded(argument.receiver.stableType, expectedType) val position = ReceiverConstraintPositionImpl(argument) return if (csBuilder.isSubtypeConstraintCompatible(argumentType, expectedType, position)) - ApplicableArgumentWithConstraint(argument, argumentType, expectedType, position) + ApplicableContextReceiverArgumentWithConstraint(argument, argumentType, expectedType, position) else null }