Function walkDescendants

  • A generator that walks the whole AST starting from the children of the given node.

    Parameters

    • node: Node

      the starting node (excluded from the walk).

    • walker: ((node) => Generator<Node>) = walk

      a function that generates a sequence of nodes. By default this is the depth-first "walk" function. For post-order traversal, use "walkLeavesFirst".

        • (node): Generator<Node>
        • A generator that walks the whole AST starting from the provided node, depth-first.

          Parameters

          • node: Node

            the starting node.

          Returns Generator<Node>

    Returns Generator<Node>

Generated using TypeDoc