Hi, I’m looking for a way to chain a `.also` to a ...
# compiler
j
Hi, I’m looking for a way to chain a
.also
to a function call via a compiler plugin. ex:
foo()
->
foo().also { log(it) }
. Is this still just an IrCall change or some other concept?
y
irCall with a lambda argument or a function reference argument
j
Looking at the IrCall, are you saying
.also
would have a parameter to the function it is chained on or is it a context receiver?
or extension receiver? Sorry I’m not sure how extension functions are representd in IR
y
it'll have it as an extension receiver IIRC
j
ok thanks, i’ll try to make something happen!