DirectiveContext

A directive body's entire capability set. bindings form a child frame on the environment chain (nearest frame → outer frames → defs → state), giving shadowing and per-iteration isolation for free.

Functions

Link copied to clipboard
abstract fun resolve(template: <Error class: unknown class>, bindings: Map<String, <Error class: unknown class>> = emptyMap()): <Error class: unknown class>

Resolve a sub-template in this directive's position — the result follows the same node/value rules as the directive's own result.

Link copied to clipboard
abstract fun resolveValue(template: <Error class: unknown class>, bindings: Map<String, <Error class: unknown class>> = emptyMap()): <Error class: unknown class>

Resolve a sub-template in value position regardless of where the directive sits — for arguments that are values by nature: a condition, a collection, a pointer string.