Skip to main content

normalize

Function normalize 

Source
pub fn normalize(root: &Root) -> Result<NormalizeTable, NormalizeError>
Expand description

Normalize every binding group in a parsed tree.

Returns the plans for groups that actually need one. A group with no duplicate static key and no dotted path is NOT recorded — consumers keep their existing path for it, which is what bounds this pass’s blast radius.

§Errors

Returns the first NormalizeError in source order, matching nix’s parse-time rejection.