Class: DeltaTreeGenerator

DeltaTreeGenerator()

Generator class for delta trees, i.e. process trees that are annotated with diff-related information

Constructor

new DeltaTreeGenerator()

Source:
See:

Methods

deltaTree(tree, editScript) → {DeltaNode}

Create a standard delta tree out of a base tree and an edit script. The standard delta tree does not contain "move from" and "deleted" placeholders.
Parameters:
Name Type Description
tree Node The root of the tree to transform into a delta tree.
editScript EditScript The delta.
Source:
Returns:
The root of the delta tree.
Type
DeltaNode

trimmedDeltaTree(tree, editScript) → {DeltaNode}

Create a trimmed version of the delta tree that does not contain "move-from" or "deleted" placeholders.
Parameters:
Name Type Description
tree Node The root of the tree to transform into a delta tree.
editScript EditScript The delta.
Source:
Returns:
The root of the delta tree.
Type
DeltaNode