Youssef Shoaib [MOD]
10/16/2025, 1:25 PMaddNewImplicitReceivers. Is there a simple way to do that? I'm thinking of using declaration origins, but I can't see how to easily associate that with the FirFunctionCall in a way that'll persist to the Ir.
My use case is incredibly simple:
I want a call like:
with(foo, bar)
to result in 2 receivers added.
Thus in the IR I want to add variables for foo and bar, and simply replace the receiver references to instead refer to them.dmitriy.novozhilov
10/20/2025, 7:42 AMYoussef Shoaib [MOD]
10/20/2025, 7:50 AMwith function are available (and mapping them to temporary ir variables), and when I see an error call with some type, I look up the corresponding variable. I make sure the error call is correct by giving a special name to the owner of the receiver parameter.
Maybe I can vary that special name I guess...
It's still a lot of hoops to jump through for what should be a natural use case for the extensiondmitriy.novozhilov
10/20/2025, 8:53 AM