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
* @typedef {CONTINUE|SKIP|EXIT} Action Union of the action types
12
9
* @typedef {number} Index Move to the sibling at index next (after node itself is completely traversed). Useful if mutating the tree, such as removing the node the visitor is currently on, or any of its previous siblings (or next siblings, in case of reverse) Results less than 0 or greater than or equal to children.length stop traversing the parent
13
10
* @typedef {[(Action|null|undefined|void)?, (Index|null|undefined)?]} ActionTuple List with one or two values, the first an action, the second an index.
11
+
* @typedef {null|undefined|Action|Index|ActionTuple|void} VisitorResult Any value that can be returned from a visitor
14
12
*/
15
13
16
14
/**
@@ -28,7 +26,7 @@
28
26
* @callback Visitor
29
27
* @param {V} node Found node
30
28
* @param {Array.<Parent>} ancestors Ancestors of node
0 commit comments