KotlinAnalysisApiEngine
object KotlinAnalysisApiEngine
The object to use the Kotlin Analysis API for code compilation.
Functions
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.