Skip to main content

Module patch

Module patch 

Source
Expand description

Canonical-AST patches per spec §5.4.

A patch is a structured edit to a Stage. Operations are addressed by NodeId (the path-based ID from crate::ids). Patches are applied transactionally by apply_patch: the result is returned as a fresh Stage value, leaving the input untouched. The caller is responsible for type-checking and re-publishing the result.

Enums§

Patch
PatchError

Functions§

apply_patch
Apply a patch and return the resulting stage. The input is cloned; the original is untouched.