K3CompileResult

sealed interface K3CompileResult(source)

Base interface for a model compilation result.

Inheritors

Types

Link copied to clipboard
data class Failure(val error: Throwable, val reports: List<Report>) : K3CompileResult

Compilation failed, result contains the final error besides the report list.

Link copied to clipboard
data class Success(val model: K3Model, val reports: List<Report>) : K3CompileResult

Compilation succeeded, the result contains the compiled model.

Properties

Link copied to clipboard
abstract val reports: List<Report>

The list of reports the compiler generated. Should be shown to the user by the implementing application.