[FIR] move file annotations to the FirFileAnnotationsContainer

This commit is contained in:
Ilya Kirillov
2022-12-07 17:08:11 +01:00
committed by teamcity
parent 67adc3fb1a
commit b962fcddc8
8 changed files with 65 additions and 18 deletions
@@ -552,7 +552,10 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator()
noImpl(userTypeRef)
impl(file) {
default("symbol", "FirFileSymbol()")
default("annotations") {
value = "annotationsContainer.annotations"
withGetter = true
}
}
noImpl(argumentList)
@@ -452,6 +452,7 @@ object NodeConfigurator : AbstractFieldConfigurator<FirTreeBuilder>(FirTreeBuild
}
file.configure {
+field("annotationsContainer", fileAnnotationsContainer).withTransform()
+field("packageDirective", packageDirective)
+fieldList(import).withTransform()
+declarations.withTransform()