• Visit all nodes reachable from the start node in the control flow graph, traversing the dependencies but ignoring cycles.

    Parameters

    • graph: ControlFlowGraph

      The control flow graph.

    • startNode: NodeId

      The node to start the traversal from.

    • visitor: ((node: NodeId) => boolean | void)

      The visitor function to call for each node, if you return true the traversal from this node will be stopped.

        • (node): boolean | void
        • Parameters

          Returns boolean | void

    Returns void