[FIR/IR] Introduce an ability to propagate generated IR annotation to metadata

^KT-58638 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-05-30 13:05:17 +03:00
committed by Space Team
parent 24e07fdfe0
commit 5717b59f52
21 changed files with 222 additions and 27 deletions
@@ -85,7 +85,9 @@ internal fun PhaseContext.firSerializerBase(
fir2IrInput?.let {
ConstValueProviderImpl(fir2IrInput.components)
},
allowErrorTypes = false, exportKDoc = shouldExportKDoc()
allowErrorTypes = false,
exportKDoc = shouldExportKDoc(),
additionalAnnotationsProvider = fir2IrInput?.components?.annotationsFromPluginRegistrar?.createMetadataAnnotationsProvider()
),
configuration.languageVersionSettings,
)