Do a depth first walk of a tree, applying pre() and post() actions as we go.

Hierarchy

  • TreeVisitor

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected adaptor

adaptor: ITreeAdaptor

Methods

visit

  • Visit every node in tree t and trigger an action for each node before/after having visited all of its children. Bottom up walk. Execute both actions even if t has no children. Ignore return results from transforming children since they will have altered the child list of this node (their parent). Return result of applying post action to this node.

    Parameters

    Returns any

Generated using TypeDoc