Skip to content

Commit

Permalink
IncrementalCPIT: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ting-yuan committed Feb 2, 2024
1 parent 9e11186 commit b05d5c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ class IncrementalCPIT(val useKSP2: Boolean) {

val func2Dirty = listOf(
"l1/src/main/kotlin/p1/TopFunc1.kt" to setOf(
"w: [ksp] p1/K3.kt",
"w: [ksp] processing done",
),
)
Expand Down Expand Up @@ -126,7 +125,6 @@ class IncrementalCPIT(val useKSP2: Boolean) {

val prop2Dirty = listOf(
"l1/src/main/kotlin/p1/TopProp1.kt" to setOf(
"w: [ksp] p1/K3.kt",
"w: [ksp] processing done",
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,15 @@ class Validator : SymbolProcessor {
codeGenerator.createNewFile(Dependencies(false), "p1", "l5", "log")
codeGenerator.associateWithClasses(listOf(l5), "p1", "l5", "log")

// create an output from MyTopFunc1, declared in TopFunc1.kt, and k3
// create an output from MyTopFunc1, declared in TopFunc1.kt
val myTopFunc1 = resolver.getFunctionDeclarationsByName("p1.MyTopFunc1", true).single()
codeGenerator.createNewFile(Dependencies(false), "p1", "MyTopFunc1", "log")
codeGenerator.associateWithFunctions(listOf(myTopFunc1), "p1", "MyTopFunc1", "log")
codeGenerator.associateWithClasses(listOf(k3), "p1", "MyTopFunc1", "log")

// create an output from MyTopFunc1, declared in TopFunc1.kt, and k3
// create an output from MyTopProp1, declared in TopFunc1.kt
val myTopProp1 = resolver.getPropertyDeclarationByName("p1.MyTopProp1", true)!!
codeGenerator.createNewFile(Dependencies(false), "p1", "MyTopProp1", "log")
codeGenerator.associateWithProperties(listOf(myTopProp1), "p1", "MyTopProp1", "log")
codeGenerator.associateWithClasses(listOf(k3), "p1", "MyTopProp1", "log")
logger.warn("processing done")

processed = true
Expand Down

0 comments on commit b05d5c2

Please sign in to comment.