FIR2IR: use AnnotationGenerator to convert file annotations
This commit is contained in:
committed by
teamcityserver
parent
ef6b643b9c
commit
e9a7b64ca0
@@ -84,11 +84,7 @@ class Fir2IrVisitor(
|
||||
file.declarations.forEach {
|
||||
it.toIrDeclaration()
|
||||
}
|
||||
|
||||
annotations = file.annotations.mapNotNull {
|
||||
it.accept(this@Fir2IrVisitor, data) as? IrConstructorCall
|
||||
}
|
||||
|
||||
annotationGenerator.generate(this, file)
|
||||
metadata = FirMetadataSource.File(file)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user