KT-59732 [FIR] Get rid of FirErrorImport node
It's no longer relevant, since it's not created anywhere
This commit is contained in:
committed by
Space Team
parent
d6d9402b66
commit
ad2c77b298
-1
@@ -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)
|
||||
|
||||
-4
@@ -72,10 +72,6 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator()
|
||||
}
|
||||
}
|
||||
|
||||
impl(errorImport) {
|
||||
delegateFields(listOf("aliasName", "importedFqName", "isAllUnder", "source"), "delegate")
|
||||
}
|
||||
|
||||
fun ImplementationContext.commonAnnotationConfig() {
|
||||
defaultEmptyList("annotations")
|
||||
default("coneTypeOrNull") {
|
||||
|
||||
-4
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user