I'm tearing my hair out trying to create a simple ...
# compiler
i
I'm tearing my hair out trying to create a simple property with a class reference in FIR generation. I want to create FIR that's the same as this source:
Copy code
val myProperty = MyClass::class
but I can't figure out how I'm supposed to do this between
buildGetClassCall
and
buildClassReferenceExpression
. Does anyone have any tips?
d
The best way to understand what to generate is to write the expression you're interested in just in code, run the compiler with debugger and inspect what node was created by the compiler. The recreate it in the plugin.
i
Thanks, I'll give that a shot