KaCompilationResult¶
sealed class KaCompilationResult
The type has been moved to a new package. Use <strong>org.jetbrains.kotlin.analysis.api.compilation.KaCompilationResult</strong> instead.
An in-memory compilation result returned from KaCompilerFacility.
Compilation fails if there are critical errors reported either on the frontend or on the backend side. Keep in mind that KaCompilationResult is a part of the Analysis API, so it should only be used inside an analysis block.
Inheritors¶
Types¶
Failure¶
class Failure(val errors: List<KaDiagnostic>, mutedExceptions: List<Throwable> = emptyList()) : KaCompilationResult
A failed compilation result.
Success¶
class Success(
val output: List<KaCompiledFile>,
val capturedValues: List<KaCodeFragmentCapturedValue>,
var canBeCached: Boolean,
mutedExceptions: List<Throwable> = emptyList()
) : KaCompilationResult
A successful compilation result.
Properties¶
mutedExceptions¶
val mutedExceptions: List<Throwable>
A list of exceptions that were thrown during compilation but workaround somehow