localContexts

fun localContexts(vararg contexts: Any?)(source)

Runtime declaration for the localContexts contexts plugin function.

This function is a stub that is replaced at compile time by the Kone contexts compiler plugin. It registers the provided contexts as local contexts available in the current scope.

Parameters

contexts

The context instances to register as local contexts.

Throws

Always thrown at runtime; this function must be transformed by the Kone contexts compiler plugin before execution.