org.jetbrains.kotlin.analysis.api.compilation¶
Types¶
KaCodeCompilationException¶
class KaCodeCompilationException(cause: Throwable) : RuntimeException
Thrown when an exception occurred while analyzing the code to be compiled, or during target platform code generation.
KaCompilationOptions¶
@SubclassOptInRequired(markerClass = [KaImplementationDetail::class])
interface KaCompilationOptions : KaLifetimeOwner
An immutable set of options for in-memory compilation via compile.
KaCompilationOptionsBuilder¶
@SubclassOptInRequired(markerClass = [KaImplementationDetail::class])
interface KaCompilationOptionsBuilder : KaLifetimeOwner
A DSL builder for KaCompilationOptions.
KaCompilationResult¶
sealed class KaCompilationResult
An in-memory compilation result returned from compile.
KaCompilationTarget¶
enum class KaCompilationTarget : Enum<KaCompilationTarget>
The target platform of the compilation performed by compile.
KaCompiledClassHandler¶
fun interface KaCompiledClassHandler
A handler which is called whenever a new class file is produced, when compiling sources to the JVM target.
KaCompiledFile¶
@SubclassOptInRequired(markerClass = [KaImplementationDetail::class])
interface KaCompiledFile
A single file produced by an in-memory compilation performed by compile.
KaCompilerFacilityModuleActualizer¶
fun interface KaCompilerFacilityModuleActualizer
Actualizer for common source modules.
Properties¶
Functions¶
compile¶
context(session: KaSession)
fun compile(file: KtFile, options: KaCompilationOptions): KaCompilationResult
createCompilationOptions¶
context(session: KaSession)
fun createCompilationOptions(init: KaCompilationOptionsBuilder.() -> Unit): KaCompilationOptions
Creates a new KaCompilationOptions instance using the given DSL init block.