-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd34f14
commit b4dd837
Showing
8 changed files
with
201 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
kotlin-code-generation/src/test/kotlin/_test/MutableSpiRegistry.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@file:OptIn(ExperimentalKotlinPoetApi::class) | ||
|
||
package io.toolisticon.kotlin.generation._test | ||
|
||
import com.squareup.kotlinpoet.ExperimentalKotlinPoetApi | ||
import io.toolisticon.kotlin.generation.spi.KotlinCodeGenerationSpiRegistry | ||
import io.toolisticon.kotlin.generation.spi.UnboundKotlinCodeGenerationProcessor | ||
import io.toolisticon.kotlin.generation.spi.UnboundKotlinCodeGenerationStrategy | ||
import io.toolisticon.kotlin.generation.spi.processor.KotlinCodeGenerationProcessorList | ||
import io.toolisticon.kotlin.generation.spi.strategy.KotlinCodeGenerationStrategyList | ||
import kotlin.reflect.KClass | ||
|
||
class MutableSpiRegistry( | ||
val strategyList: MutableList<UnboundKotlinCodeGenerationStrategy> = mutableListOf(), | ||
val processorList: MutableList<UnboundKotlinCodeGenerationProcessor> = mutableListOf(), | ||
) : KotlinCodeGenerationSpiRegistry { | ||
override val contextTypeUpperBound: KClass<*> = TestContext::class | ||
|
||
override val strategies: KotlinCodeGenerationStrategyList get() = KotlinCodeGenerationStrategyList(strategyList) | ||
override val processors: KotlinCodeGenerationProcessorList get() = KotlinCodeGenerationProcessorList(processorList) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
kotlin-code-generation/src/test/kotlin/_test/TestDeclaration.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.toolisticon.kotlin.generation._test | ||
|
||
import com.squareup.kotlinpoet.ClassName | ||
|
||
data class TestDeclaration( | ||
val rootClassName: ClassName, | ||
val testInput: TestInput | ||
) { | ||
|
||
} |
Oops, something went wrong.