Skip to main content

canonical_declarations

Function canonical_declarations 

Source
pub fn canonical_declarations(source: &str) -> Option<Vec<DeclCanon>>
Expand description

Canonicalize every top-level declaration of source. None when the source does not parse or the declaration identities are ambiguous (duplicates) — callers fail closed to their pre-DR behavior. A multi-workflow program’s workflow X { … } blocks are single units (matching merge’s depth-0 split), with alpha applied to their nested rules.