[IC] Rename DummyCompilationTransaction -> NonRecoverableCompilationTransaction

This commit is contained in:
Alexander.Likhachev
2023-01-26 20:27:26 +01:00
committed by Space Team
parent 25a3dcf3d1
commit 493da2a8b4
5 changed files with 8 additions and 10 deletions
@@ -82,9 +82,9 @@ inline fun <R> CompilationTransaction.runWithin(
}
/**
* A dummy implementation of compilation transaction
* A non-recoverable implementation of compilation transaction. Changes reverting on failure should be performed externally if needed.
*/
class DummyCompilationTransaction : CompilationTransaction {
class NonRecoverableCompilationTransaction : CompilationTransaction {
override fun registerAddedOrChangedFile(outputFile: Path) {
// do nothing
}
@@ -16,7 +16,7 @@ private fun createDefaultPathConverter(rootProjectDir: File?) = IncrementalFileT
class IncrementalCompilationContext(
val pathConverter: FileToPathConverter,
val storeFullFqNamesInLookupCache: Boolean = false,
val transaction: CompilationTransaction = DummyCompilationTransaction(),
val transaction: CompilationTransaction = NonRecoverableCompilationTransaction(),
val reporter: ICReporter = DoNothingICReporter,
/**
* Controls whether changes in lookup cache should be tracked. Required for the classpath snapshots based IC approach
@@ -32,7 +32,7 @@ class IncrementalCompilationContext(
constructor(
rootProjectDir: File?,
storeFullFqNamesInLookupCache: Boolean = false,
transaction: CompilationTransaction = DummyCompilationTransaction(),
transaction: CompilationTransaction = NonRecoverableCompilationTransaction(),
reporter: ICReporter = DoNothingICReporter,
trackChangesInLookupCache: Boolean = false,
keepIncrementalCompilationCachesInMemory: Boolean = false,