# compiler


11/11/2023, 7:44 PM
Hello! I've wrote compiler plugin that is adding field to class in IR generation phase. Field added as expected for current module, but when I scan for this field in class from other module where current module is as dependency I can't find it. It looks like IR phase is not used for KLIB generation. Only for native platforms. What should I do to make my plugin register new members and apply them in generated KLIB? Currently i'm using IrGenerationExtension.
Probably i should use FirDeclarationsForMetadataProviderExtension
👌 1