[IR] Rename IrAnnotationsFromPluginRegistrar to IrGeneratedDeclarationsRegistrar

In further commits, this service will be used not only for registering
  annotations, but newly generated IR declarations too
This commit is contained in:
Dmitriy Novozhilov
2023-11-24 15:20:37 +02:00
parent 751defc812
commit 1cdc8361d6
19 changed files with 33 additions and 30 deletions
@@ -93,7 +93,7 @@ class SerializableCompanionIrGenerator(
val annotationCall = IrConstructorCallImpl.fromSymbolOwner(irClass.startOffset, irClass.endOffset, annotationType, annotationCtor)
compilerContext.annotationsRegistrar.addMetadataVisibleAnnotationsToElement(irClass, annotationCall)
compilerContext.metadataDeclarationRegistrar.addMetadataVisibleAnnotationsToElement(irClass, annotationCall)
}
private fun IrBuilderWithScope.patchSerializableClassWithMarkerAnnotation(serializer: IrClass) {