FIR: remove extra layers of caching above JavaSymbolProvider
There needs to be exactly one postcompute-aware cache in order to avoid breaking recursive calls to getClassLikeSymbolByFqName.
This commit is contained in:
-3
@@ -100,8 +100,6 @@ abstract class AbstractFirDeserializedSymbolsProvider(
|
||||
val classPostProcessor: DeserializedClassPostProcessor
|
||||
) : ClassMetadataFindResult()
|
||||
|
||||
class ClassWithoutMetadata(val symbol: FirRegularClassSymbol?) : ClassMetadataFindResult()
|
||||
|
||||
object ShouldDeserializeViaParent : ClassMetadataFindResult()
|
||||
}
|
||||
|
||||
@@ -146,7 +144,6 @@ abstract class AbstractFirDeserializedSymbolsProvider(
|
||||
)
|
||||
symbol to postProcessor
|
||||
}
|
||||
is ClassMetadataFindResult.ClassWithoutMetadata -> result.symbol to null
|
||||
ClassMetadataFindResult.ShouldDeserializeViaParent -> findAndDeserializeClassViaParent(classId) to null
|
||||
null -> null to null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user