KT-52027 Encapsulate and fix calculation of parameter indices
This commit is contained in:
committed by
Space Team
parent
a297240870
commit
2d69fd5a8a
-1
@@ -509,7 +509,6 @@ class ExpressionCodegen(
|
||||
callGenerator.genValueAndPut(callee.extensionReceiverParameter!!, receiver, type, this, data)
|
||||
}
|
||||
|
||||
callGenerator.beforeValueParametersStart(callee.contextReceiverParametersCount)
|
||||
callee.valueParameters.subList(callee.contextReceiverParametersCount, callee.valueParameters.size)
|
||||
.forEachIndexed { i, valueParameter -> handleValueParameter(i + contextReceivers.size, valueParameter) }
|
||||
|
||||
|
||||
-2
@@ -36,8 +36,6 @@ interface IrCallGenerator {
|
||||
|
||||
fun beforeCallStart() {}
|
||||
|
||||
fun beforeValueParametersStart(contextReceiversCount: Int) {}
|
||||
|
||||
fun afterCallEnd() {}
|
||||
|
||||
fun genValueAndPut(
|
||||
|
||||
-4
@@ -150,10 +150,6 @@ class IrInlineCodegen(
|
||||
}
|
||||
}
|
||||
|
||||
override fun beforeValueParametersStart(contextReceiversCount: Int) {
|
||||
invocationParamBuilder.markValueParametersStart(contextReceiversCount)
|
||||
}
|
||||
|
||||
override fun genInlineCall(
|
||||
callableMethod: IrCallableMethod,
|
||||
codegen: ExpressionCodegen,
|
||||
|
||||
Reference in New Issue
Block a user