[FIR2IR] Create annotations for IrConstructor
^KT-62262 Fixed
This commit is contained in:
committed by
Space Team
parent
e342d7ff66
commit
fa4de48d0e
+1
@@ -231,6 +231,7 @@ class Fir2IrCallableDeclarationsGenerator(val components: Fir2IrComponents) : Fi
|
|||||||
isExternal = false,
|
isExternal = false,
|
||||||
).apply {
|
).apply {
|
||||||
metadata = FirMetadataSource.Function(constructor)
|
metadata = FirMetadataSource.Function(constructor)
|
||||||
|
annotationGenerator.generate(this, constructor)
|
||||||
// Add to cache before generating parameters to prevent an infinite loop when an annotation value parameter is annotated
|
// Add to cache before generating parameters to prevent an infinite loop when an annotation value parameter is annotated
|
||||||
// with the annotation itself.
|
// with the annotation itself.
|
||||||
@OptIn(LeakedDeclarationCaches::class)
|
@OptIn(LeakedDeclarationCaches::class)
|
||||||
|
|||||||
Reference in New Issue
Block a user