Skip to main content

Module label_dispatch

Module label_dispatch 

Source
Expand description

Visit every labelled annotation / verbatim block in a document and dispatch the registered handler’s on_label and on_validate hooks.

The walker is the analysis-side glue between the parser and the extension registry: a label whose namespace is registered goes through schema pre-validation, then (if pre-validation passes) the handler is asked for diagnostics. Schema-level failures and handler-emitted diagnostics both surface as AnalysisDiagnostics on the same channel as the existing footnote / table checks.

Bounded extensibility: a label whose namespace is not registered is silently ignored — unknown namespaces are not document errors.

Functions§

dispatch_labels
Walk document and append diagnostics for every labelled node whose namespace is registered in registry. No-op on an empty registry.