X Jia
07/17/2025, 9:45 AMputValueArgument(0, expr)
I'm not clear on how to get "parameter.indexInParameters" in this case.
And where can I find "the API migration: KT-68003"?
Any help please.dmitriy.novozhilov
07/17/2025, 9:46 AMWojciech Litewka
07/17/2025, 10:05 AMputValueArgument
, the kdoc assumes you have an instance of IrValueParameter
and you want to set an argument that corresponds to it. But if you just specify the index as a constant, you can still do so with call.arguments[N] = expr
. Please only note that this constant index may now be different, e.g. 1 instead of 0, because you now also have to count receivers and context parameters, if any. More on that in the guide I linked.