Expand description
Syntax Tree editor
Inspired by Roslynβs SyntaxEditor.
ModulesΒ§
- edit_
algo π - Implementation of applying changes to a syntax tree.
- edits π
- Structural editing for ast using
SyntaxEditor - mapping π
- Maps syntax elements through disjoint syntax nodes.
StructsΒ§
- Position
- Position describing where to insert elements
- Syntax
Annotation - Syntax
Edit - Represents a completed
SyntaxEditoroperation. - Syntax
Editor - Syntax
Mapping - Syntax
Mapping Builder
EnumsΒ§
- Change π
- Change
Kind π - Position
Repr π
TraitsΒ§
- Element
- Utility trait to allow calling syntax editor functions with references or owned nodes. Do not use outside of this module.
- GetOr
Create Where Clause - Removable
FunctionsΒ§
- index_
no_ trivia - is_
ancestor_ πor_ self - is_
ancestor_ πor_ self_ of_ element - ws_
after π - ws_
before π - ws_
between π