Minor. Drop unused function in resolution
This commit is contained in:
-30
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
package org.jetbrains.kotlin.resolve.calls.tower
|
package org.jetbrains.kotlin.resolve.calls.tower
|
||||||
|
|
||||||
import org.jetbrains.kotlin.descriptors.CallableDescriptor
|
|
||||||
import org.jetbrains.kotlin.name.Name
|
import org.jetbrains.kotlin.name.Name
|
||||||
import org.jetbrains.kotlin.resolve.calls.tasks.ExplicitReceiverKind
|
import org.jetbrains.kotlin.resolve.calls.tasks.ExplicitReceiverKind
|
||||||
import org.jetbrains.kotlin.resolve.scopes.receivers.DetailedReceiver
|
import org.jetbrains.kotlin.resolve.scopes.receivers.DetailedReceiver
|
||||||
@@ -135,35 +134,6 @@ private class NoExplicitReceiverScopeTowerProcessor<C: Candidate>(
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun <D : CallableDescriptor, C : Candidate> processCommonAndSyntheticMembers(
|
|
||||||
receiverForMember: ReceiverValueWithSmartCastInfo,
|
|
||||||
scopeTowerLevel: ScopeTowerLevel,
|
|
||||||
collectCandidates: CandidatesCollector,
|
|
||||||
candidateFactory: CandidateFactory<C>,
|
|
||||||
isExplicitReceiver: Boolean
|
|
||||||
): List<C> {
|
|
||||||
val (members, syntheticExtension) =
|
|
||||||
scopeTowerLevel.collectCandidates(null)
|
|
||||||
.filter {
|
|
||||||
it.descriptor.dispatchReceiverParameter == null || it.descriptor.extensionReceiverParameter == null
|
|
||||||
}.partition { !it.requiresExtensionReceiver }
|
|
||||||
|
|
||||||
return members.map {
|
|
||||||
candidateFactory.createCandidate(
|
|
||||||
it,
|
|
||||||
if (isExplicitReceiver) ExplicitReceiverKind.DISPATCH_RECEIVER else ExplicitReceiverKind.NO_EXPLICIT_RECEIVER,
|
|
||||||
extensionReceiver = null
|
|
||||||
)
|
|
||||||
} +
|
|
||||||
syntheticExtension.map {
|
|
||||||
candidateFactory.createCandidate(
|
|
||||||
it,
|
|
||||||
if (isExplicitReceiver) ExplicitReceiverKind.EXTENSION_RECEIVER else ExplicitReceiverKind.NO_EXPLICIT_RECEIVER,
|
|
||||||
extensionReceiver = receiverForMember
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun <C : Candidate> createSimpleProcessorWithoutClassValueReceiver(
|
private fun <C : Candidate> createSimpleProcessorWithoutClassValueReceiver(
|
||||||
scopeTower: ImplicitScopeTower,
|
scopeTower: ImplicitScopeTower,
|
||||||
context: CandidateFactory<C>,
|
context: CandidateFactory<C>,
|
||||||
|
|||||||
Reference in New Issue
Block a user