Skip to content

Commit e35a1a7

Browse files
committed
Rename dependOnNewChanges to aggregating
1 parent 2360958 commit e35a1a7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/src/main/kotlin/com/google/devtools/ksp/processing/CodeGenerator.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ interface CodeGenerator {
7777
/**
7878
* Dependencies of an output file.
7979
*/
80-
class Dependencies private constructor(val isAllSources: Boolean, val dependOnNewChanges: Boolean, val originatingFiles: List<KSFile>) {
80+
class Dependencies private constructor(val isAllSources: Boolean, val aggregating: Boolean, val originatingFiles: List<KSFile>) {
8181

8282
/**
8383
* Create a [Dependencies] to associate with an output.
8484
*
85-
* @param dependOnNewChanges whether the output should be invalidated on a new source file or a change in any of the existing files.
85+
* @param aggregating whether the output should be invalidated on a new source file or a change in any of the existing files.
8686
* Namely, whenever there are new information.
8787
* @param sources Sources for this output to depend on.
8888
*/
89-
constructor(dependOnNewChanges: Boolean, vararg sources: KSFile) : this(false, dependOnNewChanges, sources.toList())
89+
constructor(aggregating: Boolean, vararg sources: KSFile) : this(false, aggregating, sources.toList())
9090
companion object {
9191
/**
9292
* A short-hand to all source files.

compiler-plugin/src/main/kotlin/com/google/devtools/ksp/processing/impl/CodeGeneratorImpl.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class CodeGeneratorImpl(
6464
val sources = if (dependencies.isAllSources) {
6565
allSources + anyChangesWildcard
6666
} else {
67-
if (dependencies.dependOnNewChanges) {
67+
if (dependencies.aggregating) {
6868
dependencies.originatingFiles + anyChangesWildcard
6969
} else {
7070
dependencies.originatingFiles

0 commit comments

Comments
 (0)