Skip to main content

Crate draxl_patch

Crate draxl_patch 

Source
Expand description

Structured patch operations over the Draxl semantic model.

The patch layer applies semantic edit operators directly to the Draxl AST. It is intentionally slot-aware, identity-aware, and attachment-aware so callers can express concurrent-friendly structural edits instead of rewriting text.

Structs§

PatchError
Error produced while applying a patch operation.
PatchPath
Path address for scalar field or metadata updates.
RankedDest
Ranked destination for ordered slots.
SlotRef
Public slot reference in the Draxl patch surface.

Enums§

PatchDest
Destination grammar shared by insert and move.
PatchNode
Replaceable, movable, or insertable semantic fragment.
PatchOp
Structured patch operation over the Draxl semantic model.
PatchValue
Scalar value used by set.
SlotOwner
Slot owner used by slot refs and destinations.

Functions§

apply_op
Applies a single patch operation to a file.
apply_ops
Applies a sequence of patch operations in order.