[FIR] introduce FirFileAnnotationsContainer
This commit is contained in:
+1
@@ -30,6 +30,7 @@ object FirTreeBuilder : AbstractFirTreeBuilder() {
|
||||
val contextReceiver by element(Declaration)
|
||||
|
||||
val elementWithResolvePhase by element(Other)
|
||||
val fileAnnotationsContainer by element(Other, elementWithResolvePhase, annotationContainer)
|
||||
val declaration by sealedElement(Declaration, elementWithResolvePhase, annotationContainer)
|
||||
val typeParameterRefsOwner by sealedElement(Declaration)
|
||||
val typeParametersOwner by sealedElement(Declaration, typeParameterRefsOwner)
|
||||
|
||||
+4
@@ -83,6 +83,10 @@ object NodeConfigurator : AbstractFieldConfigurator<FirTreeBuilder>(FirTreeBuild
|
||||
shouldBeAbstractClass()
|
||||
}
|
||||
|
||||
fileAnnotationsContainer.configure {
|
||||
+field("containingFileSymbol", type("fir.symbols.impl", "FirFileSymbol"), argument = null)
|
||||
}
|
||||
|
||||
declaration.configure {
|
||||
+symbolWithPackage("fir.symbols", "FirBasedSymbol", "out FirDeclaration")
|
||||
+field("moduleData", firModuleDataType)
|
||||
|
||||
+1
@@ -113,6 +113,7 @@ fun SmartPrinter.printImplementation(implementation: Implementation) {
|
||||
!element.type.contains("Reference")
|
||||
&& !element.type.contains("ResolvedQualifier")
|
||||
&& !element.type.endsWith("Ref")
|
||||
&& !element.type.endsWith("AnnotationsContainer")
|
||||
}?.let { symbolFields ->
|
||||
println("init {")
|
||||
for (symbolField in symbolFields) {
|
||||
|
||||
Reference in New Issue
Block a user