Hi all, I am trying to modify `myLambda` passed to...
# k2-adopters
x
Hi all, I am trying to modify
myLambda
passed to a function call like this one
Copy code
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