You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/control-flow/simple-visitor.ts
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ export function visitCfgInReverseOrder(
49
49
* @param graph - The control flow graph.
50
50
* @param startNodes - The nodes to start the traversal from.
51
51
* @param visitor - The visitor function to call for each node, if you return true the traversal from this node will be stopped.
52
+
* @param invertedCfg - Optionally provide an inverted control flow graph, if not provided the function will create one by inverting the given graph, which can be expensive for large graphs.
52
53
*
53
54
* This function is of type {@link SimpleCfgVisitor}.
54
55
* @see {@link visitCfgInReverseOrder} for a traversal in reversed order
@@ -57,12 +58,13 @@ export function visitCfgInOrder(
57
58
graph: ControlFlowGraph,
58
59
startNodes: readonlyNodeId[],
59
60
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type -- void is used to indicate that the return value is ignored/we never stop
0 commit comments