ParameterType

sealed interface ParameterType

The kind of value a FunctionParameter accepts.

For native functions this is decided at build time by the native library processor, which emits the matching variant into the generated module.

Inheritors

Types

Link copied to clipboard
data object Dynamic : ParameterType

A parameter that receives a com.quarkdown.core.function.value.DynamicValue verbatim, without conversion. Used by user-defined functions, whose arguments stay raw Quarkdown text.

Link copied to clipboard
data class Injected(val kind: InjectionKind) : ParameterType

A parameter supplied from the com.quarkdown.core.function.call.FunctionCall rather than by the call site.

Link copied to clipboard

A parameter that accepts a lambda block. Enables the binder's fast path that parses an inline argument as a lambda instead of evaluating it as an expression first.

Link copied to clipboard
data class Static(val displayName: String) : ParameterType

A parameter whose conversion from a loosely typed argument is generated at build time.

Properties

Link copied to clipboard
abstract val displayName: String

Name shown in rendered signatures and in argument mismatch errors, e.g. Size.