Ancora.Canonical (ancora v1.0.0-rc.1)

Copy Markdown View Source

Canonical form used by the source drift detector.

Normalization strips quoted-AST metadata and makes no other changes. In particular, variable names, charlists, and sigils remain distinct. Plain mix format preserves those literal forms. A mix format --migrate rewrite can change them and should be acknowledged in the subject spec.

Summary

Functions

Strips metadata from every quoted-AST node.

Functions

normalize(ast)

@spec normalize(Macro.t()) :: Macro.t()

Strips metadata from every quoted-AST node.