[IC] Introduce ICContext to simplify configuration propagation to caches
#KT-49785 In Progress
This commit is contained in:
committed by
Space Team
parent
7171c2531c
commit
581bc89849
@@ -9,6 +9,7 @@ import com.intellij.util.containers.MultiMap
|
||||
import org.jetbrains.kotlin.TestWithWorkingDir
|
||||
import org.jetbrains.kotlin.cli.common.CompilerSystemProperties
|
||||
import org.jetbrains.kotlin.cli.common.toBooleanLenient
|
||||
import org.jetbrains.kotlin.incremental.IncrementalCompilationContext
|
||||
import org.jetbrains.kotlin.incremental.LookupStorage
|
||||
import org.jetbrains.kotlin.incremental.LookupSymbol
|
||||
import org.jetbrains.kotlin.incremental.testingUtils.assertEqualDirectories
|
||||
@@ -50,11 +51,11 @@ class RelocatableCachesTest : TestWithWorkingDir() {
|
||||
private fun fillLookupStorage(projectRoot: File, reverseFiles: Boolean, reverseLookups: Boolean, storeFullFqNames: Boolean = false) {
|
||||
val storageRoot = projectRoot.storageRoot
|
||||
val fileToPathConverter = RelativeFileToPathConverter(projectRoot)
|
||||
val lookupStorage = LookupStorage(
|
||||
storageRoot,
|
||||
fileToPathConverter,
|
||||
storeFullFqNames = storeFullFqNames
|
||||
val icContext = IncrementalCompilationContext(
|
||||
pathConverter = fileToPathConverter,
|
||||
storeFullFqNamesInLookupCache = storeFullFqNames,
|
||||
)
|
||||
val lookupStorage = LookupStorage(storageRoot, icContext)
|
||||
val files = LinkedHashSet<String>()
|
||||
val symbols = LinkedHashSet<LookupSymbol>()
|
||||
val lookups = MultiMap.createOrderedSet<LookupSymbol, String>()
|
||||
|
||||
Reference in New Issue
Block a user