https://kotlinlang.org logo
Title
t

Tóth István Zoltán

07/16/2022, 8:12 AM
Hi! I'm working on an IR plugin and I'm not sure how to report errors. The easiest way would be to collect the errors during the IR visits/transformations. Is this possible or do I have to use a DeclarationChecker instead? The first thing I would like to report is declaration of variables at some points of the code. I see the point in declaration checkers, only I have to write things twice if I have to work both with Kt and Ir structures.
Nevermind, I've found IrPluginContext.createDiagnosticReporter.