• A function to traverse an AST. It traverses it depth first.

    Parameters

    • node: RootResult

      the node to start traversing at.

    • Optional onEnter: NodeVisitor

      node visitor function that will be called on entering the node. This corresponds to preorder traversing.

    • Optional onLeave: NodeVisitor

      node visitor function that will be called on leaving the node. This corresponds to postorder traversing.

    Returns void

Generated using TypeDoc