public interface TreePatcher
Modifier and Type | Method and Description |
---|---|
void |
insert(CompositeElement parent,
TreeElement anchorBefore,
OuterLanguageElement toInsert)
Inserts toInsert into tree
|
default LeafElement |
removeRange(LeafElement leaf,
TextRange rangeToRemove,
CharTable table)
Removes "middle" part of the leaf and returns the new leaf with content of the right and left parts
e.g.
|
default LeafElement |
split(LeafElement leaf,
int offset,
CharTable table)
Splits the leaf into two leaves with the same type as the original leaf
|
void insert(CompositeElement parent, TreeElement anchorBefore, OuterLanguageElement toInsert)
default LeafElement split(LeafElement leaf, int offset, CharTable table)
default LeafElement removeRange(LeafElement leaf, TextRange rangeToRemove, CharTable table)