Quick compiler IR question. How do I instantiate a...
# compiler
a
Quick compiler IR question. How do I instantiate a IrGetObjectValue? I'm seeting
DeclarationIrBuilder.irGetObjectValue
but I don't know how to produce the IrType and IrClassSymbol. Is there a way to get those if I have a full-path string to the object I'm trying to access?
s
Use
pluginContext.referenceClass
to resolve symbol and then class.defaultType to get the type
a
Thanks!