[FIR] Get rid of implicit type refs with source
#KT-55835
This commit is contained in:
committed by
Space Team
parent
91dad7b952
commit
070b694247
+1
-7
@@ -313,10 +313,6 @@ object BuilderConfigurator : AbstractBuilderConfigurator<FirTreeBuilder>(FirTree
|
||||
withCopy()
|
||||
}
|
||||
|
||||
builder(implicitTypeRef) {
|
||||
withCopy()
|
||||
}
|
||||
|
||||
builder(breakExpression) {
|
||||
parents += loopJumpBuilder
|
||||
}
|
||||
@@ -442,9 +438,7 @@ object BuilderConfigurator : AbstractBuilderConfigurator<FirTreeBuilder>(FirTree
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
findImplementationsWithElementInParents(annotationContainer) {
|
||||
it.type !in setOf("FirImplicitTypeRefImpl")
|
||||
}.forEach {
|
||||
findImplementationsWithElementInParents(annotationContainer).forEach {
|
||||
it.builder?.parents?.add(annotationContainerBuilder)
|
||||
}
|
||||
|
||||
|
||||
+1
-6
@@ -536,12 +536,7 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator()
|
||||
}
|
||||
|
||||
impl(functionTypeRef)
|
||||
impl(implicitTypeRef) {
|
||||
defaultEmptyList("annotations")
|
||||
default("source") {
|
||||
notNull = true
|
||||
}
|
||||
}
|
||||
noImpl(implicitTypeRef)
|
||||
|
||||
impl(reference, "FirStubReference") {
|
||||
default("source") {
|
||||
|
||||
Reference in New Issue
Block a user