I want to generate an init block using FIR. What's...
# compiler
h
I want to generate an init block using FIR. What's the entry point to do this,
FirDeclarationGenerationExtension
? This extension contains
generateConstructors
.
d
You can't do it in FIR. Use
IrGenerationExtension
instead
FirDeclarationGenerationExtension
allows to generate only declarations, which are visible to user and can be called from the user code And
init
blocks are "invisible" from this point of view
h
Okay, thank you.