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§
- Patch
Error - Error produced while applying a patch operation.
- Patch
Path - Path address for scalar field or metadata updates.
- Patch
Text Error - Error produced while parsing, resolving, or applying textual patch ops.
- Ranked
Dest - Ranked destination for ordered slots.
- SlotRef
- Public slot reference in the Draxl patch surface.
- Surface
Fragment - Fragment source carried verbatim until schema resolution picks a parser.
- Surface
Node Ref - Parsed
@idnode reference. - Surface
Path - Parsed scalar path before schema resolution.
- Surface
Path Segment - Parsed scalar path segment.
- Surface
Ranked Dest - Parsed ranked destination before schema resolution.
- Surface
Slot Ref - Parsed slot reference before schema resolution.
- Surface
Value - Parsed scalar value before type resolution.
Enums§
- Patch
Dest - Destination grammar shared by
insertandmove. - Patch
Node - Replaceable, movable, or insertable semantic fragment.
- PatchOp
- Structured patch operation over the Draxl semantic model.
- Patch
Value - Scalar value used by
set. - Slot
Owner - Slot owner used by slot refs and destinations.
- Surface
Dest - Parsed move destination before schema resolution.
- Surface
Patch Op - Unresolved textual patch op parsed from the canonical patch surface.
- Surface
Slot Owner - Parsed owner for a slot ref.
- Surface
Value Kind - Surface scalar value variants.
Functions§
- apply_
op - Applies a single patch operation to a file.
- apply_
op_ for_ language - Applies a single patch operation to a file using the selected lower language.
- apply_
ops - Applies a sequence of patch operations in order.
- apply_
ops_ for_ language - Applies a sequence of patch operations in order using the selected lower language.
- apply_
patch_ text - Parses, resolves, and applies textual patch ops in order.
- apply_
patch_ text_ for_ language - Parses, resolves, and applies textual patch ops in order using the selected lower language.
- parse_
patch_ ops - Parses canonical textual patch syntax into unresolved surface ops.
- resolve_
patch_ ops - Resolves textual patch ops against the current file into ordinary
PatchOps. - resolve_
patch_ ops_ for_ language - Resolves textual patch ops against the current file into ordinary
PatchOps using the selected lower language.