K3lpImportResolver

fun interface K3lpImportResolver(source)

Contract interface for resolving local import paths encountered during model compilation.

Inheritors

Types

Link copied to clipboard

A no-operation import resolver if no import handling is needed. This will fail for any passed path and cause compilation errors for any encountered non-CLDR import statement.

Functions

Link copied to clipboard
abstract suspend fun resolveLocalImport(path: String): TextSourceFile

Resolves a local import from given path and returns a text source file. This function may throw in error cases, in which case a compilation error report will be generated. This will not necessarily abort compilation immediately, but it is guaranteed that the final compilation result is failure.