Skip to content

org.jetbrains.kotlin.analysis.api.compilation

Types

KaCodeCompilationException

Thrown when an exception occurred while analyzing the code to be compiled, or during target platform code generation.

KaCompilationOptions

An immutable set of options for in-memory compilation via compile.

KaCompilationOptionsBuilder

KaCompilationResult

sealed class KaCompilationResult

An in-memory compilation result returned from compile.

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

A single file produced by an in-memory compilation performed by compile.

KaCompilerFacilityModuleActualizer

Actualizer for common source modules.

Properties

Functions

compile

context(session: KaSession)
fun compile(file: KtFile, options: KaCompilationOptions): KaCompilationResult

Compiles the given file in-memory using the specified options.

createCompilationOptions

Creates a new KaCompilationOptions instance using the given DSL init block.