Skip to main content

Module edit_algo

Module edit_algo 

Source
Expand description

Implementation of applying changes to a syntax tree.

Structsยง

ChangedRegion ๐Ÿ”’
A replacement region that can contain later source ordered changeds
EditPlan ๐Ÿ”’
A validated batch of changes in the exact order in which it must execute.
InvalidEditPlan ๐Ÿ”’
Planning failure containing the source-ordered changes use for diag.
PlanEntry ๐Ÿ”’
The dependency info accumulated from one source ordered changes.
PlannedChange ๐Ÿ”’
A change whose target tree and output tracking are fully known.
PreparedElement ๐Ÿ”’
A replacement payload paired with the annotation below it.
SyntaxPath ๐Ÿ”’
A stable structural address expressed as children_with_token indices.
TrackedAnnotation ๐Ÿ”’
An annotation paired with its structural location and registration order.
TreeState ๐Ÿ”’
The evolving immutable root and location metadata for one source tree.
TreeStore ๐Ÿ”’
Owns all evolving trees involved in executing an edit plan.

Enumsยง

NestedChanges ๐Ÿ”’
How changes nested within a replacement region are handled.
PathEdit ๐Ÿ”’
A structural edit used to translate original paths into a current tree.

Functionsยง

apply_edits ๐Ÿ”’
Plans and executes all changes recorded by a SyntaxEditor.
report_intersecting_changes ๐Ÿ”’