[K/N] Do not use LazyIr for per-file caches
#KT-63789 Fixed
This commit is contained in:
+9
-11
@@ -118,18 +118,16 @@ abstract class BasicIrModuleDeserializer(
|
||||
|
||||
fileToDeserializerMap[file] = fileDeserializationState.fileDeserializer
|
||||
|
||||
if (!fileStrategy.onDemand) {
|
||||
val topLevelDeclarations = fileDeserializationState.fileDeserializer.reversedSignatureIndex.keys
|
||||
topLevelDeclarations.forEach {
|
||||
moduleReversedFileIndex.putIfAbsent(it, fileDeserializationState) // TODO Why not simple put?
|
||||
}
|
||||
val topLevelDeclarations = fileDeserializationState.fileDeserializer.reversedSignatureIndex.keys
|
||||
topLevelDeclarations.forEach {
|
||||
moduleReversedFileIndex.putIfAbsent(it, fileDeserializationState) // TODO Why not simple put?
|
||||
}
|
||||
|
||||
if (fileStrategy.theWholeWorld) {
|
||||
fileDeserializationState.enqueueAllDeclarations()
|
||||
}
|
||||
if (fileStrategy.theWholeWorld || fileStrategy.explicitlyExported) {
|
||||
moduleDeserializationState.enqueueFile(fileDeserializationState)
|
||||
}
|
||||
if (fileStrategy.theWholeWorld) {
|
||||
fileDeserializationState.enqueueAllDeclarations()
|
||||
}
|
||||
if (fileStrategy.theWholeWorld || fileStrategy.explicitlyExported) {
|
||||
moduleDeserializationState.enqueueFile(fileDeserializationState)
|
||||
}
|
||||
|
||||
return fileDeserializationState
|
||||
|
||||
+1
-1
@@ -398,7 +398,7 @@ enum class DeserializationStrategy(
|
||||
val theWholeWorld: Boolean,
|
||||
val inlineBodies: Boolean
|
||||
) {
|
||||
ON_DEMAND(true, true, false, false, true),
|
||||
ON_DEMAND(true, false, false, false, false),
|
||||
ONLY_REFERENCED(false, true, false, false, true),
|
||||
ALL(false, true, true, true, true),
|
||||
EXPLICITLY_EXPORTED(false, true, true, false, true),
|
||||
|
||||
Reference in New Issue
Block a user