KotlinAnalysisApiEngine

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

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun compile(code: String, dependencyCodes: List<String> = emptyList(), javaSourceRoots: List<Path> = emptyList(), jvmClasspathRoots: List<Path> = listOf(File(CharRange::class.java.protectionDomain.codeSource.location.path).toPath()), allowCompilationErrors: Boolean = false): KtFile

Compiles a given code string using Kotlin's Analysis API.