Package-level declarations

Types

Link copied to clipboard

The object to use the Kotlin Analysis API for code compilation.

Link copied to clipboard
class KotlinEnvironmentContainer(val configuration: CompilerConfiguration)
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun compileContentForTest(content: String, path: Path): KtFile
fun compileContentForTest(content: String, filename: String = "Test.kt"): KtFile
fun compileContentForTest(content: String, environment: KotlinEnvironmentContainer, filename: String = "Test.kt"): KtFile

Use this method if you define a kt file/class as a plain string in your test.

Link copied to clipboard
fun compileForTest(path: Path): KtFile

Use this method if you test a kt file/class in the test resources.

Link copied to clipboard
fun createEnvironment(additionalRootPaths: List<File> = emptyList(), additionalJavaSourceRootPaths: List<File> = emptyList()): KotlinEnvironmentContainer

Create a {@link KotlinEnvironmentContainer} used for test.

Link copied to clipboard
Link copied to clipboard
fun resource(name: String): URI
Link copied to clipboard
Link copied to clipboard
fun resourceUrl(name: String): URL