[IC] Rename DummyCompilationTransaction -> NonRecoverableCompilationTransaction
This commit is contained in:
committed by
Space Team
parent
25a3dcf3d1
commit
493da2a8b4
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user