From 51a43a02f77186833ade4b854e5895c54384bfb2 Mon Sep 17 00:00:00 2001 From: "Alexander.Likhachev" Date: Thu, 17 Aug 2023 16:59:55 +0200 Subject: [PATCH] [IC] Restore old IncrementalCompilationContext constructor for KSP compatibility --- .../IncrementalCompilationContext.kt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/build-common/src/org/jetbrains/kotlin/incremental/IncrementalCompilationContext.kt b/build-common/src/org/jetbrains/kotlin/incremental/IncrementalCompilationContext.kt index 4ed9be33790..5487d24abf7 100644 --- a/build-common/src/org/jetbrains/kotlin/incremental/IncrementalCompilationContext.kt +++ b/build-common/src/org/jetbrains/kotlin/incremental/IncrementalCompilationContext.kt @@ -28,6 +28,24 @@ class IncrementalCompilationContext( */ val keepIncrementalCompilationCachesInMemory: Boolean = false, ) { + @Deprecated("This constructor is scheduled to be removed. KSP is using it") + constructor( + pathConverter: FileToPathConverter, + storeFullFqNamesInLookupCache: Boolean = false, + transaction: CompilationTransaction = NonRecoverableCompilationTransaction(), + reporter: ICReporter = DoNothingICReporter, + trackChangesInLookupCache: Boolean = false, + keepIncrementalCompilationCachesInMemory: Boolean = false, + ) : this( + pathConverter, + pathConverter, + storeFullFqNamesInLookupCache, + transaction, + reporter, + trackChangesInLookupCache, + keepIncrementalCompilationCachesInMemory + ) + // FIXME: Remove `pathConverter` and require its users to decide whether to use `pathConverterForSourceFiles` or // `pathConverterForClassFiles` val pathConverter = pathConverterForSourceFiles