Package-level declarations

Types

Link copied to clipboard
interface ReferenceNode<R, D> : Node

Represents a node that may reference some definition that is generated by elsewhere in the document.

Link copied to clipboard
typealias ResolvedReference<R, D> = Pair<R, D>

A pair of a referenced linked to its resolved definition.

Link copied to clipboard

Property that can be assigned to each ReferenceNode. It contains the definition that the reference refers to.

Functions

Link copied to clipboard
fun <R, D> ReferenceNode<R, D>.getDefinition(context: Context): D?
Link copied to clipboard
fun <R, D> ReferenceNode<R, D>.setDefinition(context: MutableContext, definition: D)

Registers the given definition as the definition associated with this reference within the document handled by context.