I am making a compiler plugin after the “refchecks” phase and I need to access the types of the parameters in a called method.
E.g. if the code is:
myDog.bark(false)
I would need to get that the parameter passed to bark is a Boolean.
However when going through the tree, if I do showRaw on the parameter I get:
Literal(Constant(false))
Is there a way that I can get the type of false easily? I am amenable to changing the phase at which my plugin runs if that helps.