Xad Kile
12/11/2024, 2:14 PMmyLambda
passed to a function call like this one
fun outerFunction(){
someFunctionCall(myLambda = {...}, otherStuff)
}
Ideally, I would like to generate an entirely new lambda, and replace the current myLambda
. I have managed to do all that except for finding a declaration parent for my new lambda.
I am doing this within visitCall
and I think the correct parent should be whatever is calling someFunctionCall
, in this case that is outerFunction
.
However, I cannot find a way to get the declaration of outerFunction
from the IrCall
at visitCall
. Is this the proper way to find parent for my new lambda? Am I missing something here? Thank you