When using the kotlin-compiler-test framework, is ...
# compiler
h
When using the kotlin-compiler-test framework, is there any option to validate a custom output file/folder produced by the plugin?
b
You probably want to write your own Handler for this: https://github.com/JetBrains/kotlin/blob/5f6ab897a88b60d6baf0df1bc84cb90614a06b61/compiler/test-infrastructure/ReadMe.md#writing-handlers There are abstract
AbstractIrHandler
and
FirAnalysisHandler
classes depending on when you actually generate the output.
h
In IR, thanks, will take a look
Another question, what's the replacement of
fir2irStep()
to test IR code in 2.2.0-RC? (I can still use the Fir2IrResultsConverter) I used the demiurg906/kotlin-compiler-plugin-template, but it's not updated to 2.2.0-RC
b
I plan to update the template to use
AbstractFirPhasedDiagnosticTest
as the base class for diagnostic tests instead. This will make it closer to what we do in the compiler for diagnostic tests: running all stages until it fails.
👍 1
h
Thank you for the update of the template.