Minor: remove default values for markChunk parameters

This commit is contained in:
Alexey Tsvetkov
2015-12-09 21:54:46 +03:00
parent 6a74b1c8bf
commit ef4b3c99f4
2 changed files with 5 additions and 5 deletions
@@ -32,7 +32,7 @@ class FSOperationsHelper(
fun hasMarkedDirty(): Boolean = markedDirty
fun markChunk(recursively: Boolean = false, kotlinOnly: Boolean = true, excludeFiles: Set<File> = setOf()) {
fun markChunk(recursively: Boolean, kotlinOnly: Boolean, excludeFiles: Set<File> = setOf()) {
fun shouldMark(file: File): Boolean {
if (kotlinOnly && !KotlinSourceFileCollector.isKotlinSourceFile(file)) return false
@@ -226,7 +226,7 @@ public class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR
saveVersions(context, chunk)
if (targets.any { hasKotlin[it] == null }) {
fsOperations.markChunk(excludeFiles = filesToCompile.values().toSet())
fsOperations.markChunk(recursively = false, kotlinOnly = true, excludeFiles = filesToCompile.values().toSet())
}
for (target in targets) {
@@ -276,7 +276,7 @@ public class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR
when {
inlineAdded -> {
allCompiledFiles.clear()
fsOperations.markChunk(recursively = true, excludeFiles = compiledFiles)
fsOperations.markChunk(recursively = true, kotlinOnly = true, excludeFiles = compiledFiles)
return
}
constantsChanged -> {
@@ -284,7 +284,7 @@ public class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR
return
}
protoChanged -> {
fsOperations.markChunk(excludeFiles = allCompiledFiles)
fsOperations.markChunk(recursively = false, kotlinOnly = true, excludeFiles = allCompiledFiles)
}
}
@@ -365,7 +365,7 @@ public class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR
rebuildAfterCacheVersionChanged[target] = true
}
fsOperations.markChunk()
fsOperations.markChunk(recursively = false, kotlinOnly = true)
return
}