Skip to main content

Module syntax_editor

Module syntax_editor 

Source
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
SyntaxAnnotation
SyntaxEdit
Represents a completed SyntaxEditor operation.
SyntaxEditor
SyntaxMapping
SyntaxMappingBuilder

EnumsΒ§

Change πŸ”’
ChangeKind πŸ”’
PositionRepr πŸ”’

TraitsΒ§

Element
Utility trait to allow calling syntax editor functions with references or owned nodes. Do not use outside of this module.
GetOrCreateWhereClause
Removable

FunctionsΒ§

index_no_trivia
is_ancestor_or_self πŸ”’
is_ancestor_or_self_of_element πŸ”’
ws_after πŸ”’
ws_before πŸ”’
ws_between πŸ”’