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 {
|
file.declarations.forEach {
|
||||||
it.toIrDeclaration()
|
it.toIrDeclaration()
|
||||||
}
|
}
|
||||||
|
annotationGenerator.generate(this, file)
|
||||||
annotations = file.annotations.mapNotNull {
|
|
||||||
it.accept(this@Fir2IrVisitor, data) as? IrConstructorCall
|
|
||||||
}
|
|
||||||
|
|
||||||
metadata = FirMetadataSource.File(file)
|
metadata = FirMetadataSource.File(file)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user