Expand description
Implementation of applying changes to a syntax tree.
Structsยง
- Changed
Region ๐ - A replacement region that can contain later source ordered changeds
- Edit
Plan ๐ - A validated batch of changes in the exact order in which it must execute.
- Invalid
Edit ๐Plan - Planning failure containing the source-ordered changes use for diag.
- Plan
Entry ๐ - The dependency info accumulated from one source ordered changes.
- Planned
Change ๐ - A change whose target tree and output tracking are fully known.
- Prepared
Element ๐ - A replacement payload paired with the annotation below it.
- Syntax
Path ๐ - A stable structural address expressed as
children_with_tokenindices. - Tracked
Annotation ๐ - An annotation paired with its structural location and registration order.
- Tree
State ๐ - The evolving immutable root and location metadata for one source tree.
- Tree
Store ๐ - Owns all evolving trees involved in executing an edit plan.
Enumsยง
- Nested
Changes ๐ - How changes nested within a replacement region are handled.
- Path
Edit ๐ - 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