FalseHonesty
08/18/2020, 9:34 PMlower
function in my Transformer class seems to be called correctly, but my two visitors never seem to be called. I attempted to debug what happens in the lower
function, but execution gets passed to a class called IRDeclarationBase
when visiting the main
function, which is a class I can't find the source for. Nothing seems to be called after that. Does anyone have any ideas as to what I'm doing wrong?shikasd
08/18/2020, 9:44 PMir2stringWhole
) that this function gets converted into? Does it have SetVariable
expression?
You can also try to visit more generic call, I assume IR could have a bit different representation than you'd expect.FalseHonesty
08/18/2020, 9:50 PMir2stringWhole
function, that's very handy. It turns out, it looks like this https://gist.github.com/FalseHonesty/cdb670fe4c640a5bfe8fd899de2b9a02, which now makes sense. Thank you so much! Also, do you happen to know if/how I could check if the class being instantiated by a IrConstructorCall
extends a different class?FalseHonesty
08/18/2020, 10:17 PM