Remove compiledWithErrors param
`updateIncrementalCache` is not called when code does not compile.
This commit is contained in:
@@ -78,8 +78,7 @@ fun makeCompileServices(
|
||||
|
||||
fun updateIncrementalCache(
|
||||
generatedFiles: List<GeneratedFile<*>>,
|
||||
cache: IncrementalCacheImpl,
|
||||
compiledWithErrors: Boolean
|
||||
cache: IncrementalCacheImpl
|
||||
): CompilationResult {
|
||||
var changesInfo = CompilationResult.NO_CHANGES
|
||||
for (generatedFile in generatedFiles) {
|
||||
@@ -89,10 +88,8 @@ fun updateIncrementalCache(
|
||||
}
|
||||
}
|
||||
|
||||
if (!compiledWithErrors) {
|
||||
val newChangesInfo = cache.clearCacheForRemovedClasses()
|
||||
changesInfo += newChangesInfo
|
||||
}
|
||||
val newChangesInfo = cache.clearCacheForRemovedClasses()
|
||||
changesInfo += newChangesInfo
|
||||
|
||||
return changesInfo
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user