Skip to main content

Module expand_ops

Module expand_ops 

Source
Expand description

expand_ops — materialize op-variant choices.

Each (domain, op_type) that needs expansion has a matching arm in lookup_expansion returning the ExpandFn to apply. Plain match because the compiler runs at build time on a single thread — a table behind a sync primitive would be overkill, and a match makes the catalog trivially auditable. All expansions stamp EXPANDED_KEY = "true" for idempotence.

Constants§

EXPANDED_KEY
Idempotence stamp key.

Functions§

expand_ops
Expand ops in-place per the static expansion registry. Pure.

Type Aliases§

ExpandFn
Per-op expansion function. Mutates the node in place; returns Err only on malformed input the compiler can’t recover from.