KT-59732 [FIR] Get rid of FirErrorImport node

It's no longer relevant, since it's not created anywhere
This commit is contained in:
Roman Golyshev
2023-11-30 14:41:50 +01:00
committed by Space Team
parent d6d9402b66
commit ad2c77b298
11 changed files with 0 additions and 159 deletions
@@ -79,7 +79,6 @@ object FirTreeBuilder : AbstractFirTreeBuilder() {
val import by element(Declaration)
val resolvedImport by element(Declaration, import)
val errorImport by element(Declaration, import, diagnosticHolder)
val loop by sealedElement(Expression, statement, targetElement)
val errorLoop by element(Expression, loop, diagnosticHolder)
@@ -72,10 +72,6 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator()
}
}
impl(errorImport) {
delegateFields(listOf("aliasName", "importedFqName", "isAllUnder", "source"), "delegate")
}
fun ImplementationContext.commonAnnotationConfig() {
defaultEmptyList("annotations")
default("coneTypeOrNull") {
@@ -530,10 +530,6 @@ object NodeConfigurator : AbstractFieldConfigurator<FirTreeBuilder>(FirTreeBuild
)
}
errorImport.configure {
+field("delegate", import)
}
annotation.configure {
+field("useSiteTarget", annotationUseSiteTargetType, nullable = true, withReplace = true)
+field("annotationTypeRef", typeRef, withReplace = true).withTransform()