diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/CandidateCollector.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/CandidateCollector.kt index 7bbf65ac9a7..5b4832d71c6 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/CandidateCollector.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/CandidateCollector.kt @@ -19,10 +19,11 @@ open class CandidateCollector( val components: BodyResolveComponents, val resolutionStageRunner: ResolutionStageRunner ) { - val groupNumbers = mutableListOf() - val candidates = mutableListOf() + private val groupNumbers = mutableListOf() + private val candidates = mutableListOf() var currentApplicability = CandidateApplicability.HIDDEN + private set fun newDataSet() { groupNumbers.clear() @@ -73,10 +74,10 @@ open class CandidateCollector( // Collects properties that potentially could be invoke receivers, like 'propertyName()', // and initiates further invoke resolution by adding property-bound invoke consumers class InvokeReceiverCandidateCollector( - val towerResolver: FirTowerResolver, - val invokeCallInfo: CallInfo, + private val towerResolver: FirTowerResolver, + private val invokeCallInfo: CallInfo, components: BodyResolveComponents, - val invokeConsumer: AccumulatingTowerDataConsumer, + private val invokeConsumer: AccumulatingTowerDataConsumer, resolutionStageRunner: ResolutionStageRunner ) : CandidateCollector(components, resolutionStageRunner) { override fun consumeCandidate(group: Int, candidate: Candidate): CandidateApplicability {