[IC] Restore old IncrementalCompilationContext constructor for KSP compatibility

This commit is contained in:
Alexander.Likhachev
2023-08-17 16:59:55 +02:00
committed by Space Team
parent 4d1ea3c441
commit 51a43a02f7
@@ -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