[NI] Propagate information about safe call to receiver argument
This commit is contained in:
@@ -66,11 +66,13 @@ class KotlinCallResolver(
|
|||||||
): Collection<ResolvedKotlinCall> {
|
): Collection<ResolvedKotlinCall> {
|
||||||
kotlinCall.checkCallInvariants()
|
kotlinCall.checkCallInvariants()
|
||||||
|
|
||||||
|
val isSafeCall = (kotlinCall.explicitReceiver as? SimpleKotlinCallArgument)?.isSafeCall ?: false
|
||||||
|
|
||||||
val resolutionCandidates = givenCandidates.map {
|
val resolutionCandidates = givenCandidates.map {
|
||||||
SimpleKotlinResolutionCandidate(callContext,
|
SimpleKotlinResolutionCandidate(callContext,
|
||||||
kotlinCall,
|
kotlinCall,
|
||||||
if (it.dispatchReceiver == null) ExplicitReceiverKind.NO_EXPLICIT_RECEIVER else ExplicitReceiverKind.DISPATCH_RECEIVER,
|
if (it.dispatchReceiver == null) ExplicitReceiverKind.NO_EXPLICIT_RECEIVER else ExplicitReceiverKind.DISPATCH_RECEIVER,
|
||||||
it.dispatchReceiver?.let { ReceiverExpressionKotlinCallArgument(it) },
|
it.dispatchReceiver?.let { ReceiverExpressionKotlinCallArgument(it, isSafeCall) },
|
||||||
null,
|
null,
|
||||||
it.descriptor,
|
it.descriptor,
|
||||||
it.knownTypeParametersResultingSubstitutor,
|
it.knownTypeParametersResultingSubstitutor,
|
||||||
|
|||||||
Reference in New Issue
Block a user