File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 99import { visitParents } from 'unist-util-visit-parents'
1010
1111/**
12- * Visit children of tree which pass a test
12+ * Visit children of tree which pass test.
1313 *
14- * @param tree Abstract syntax tree to walk
15- * @param test Test, optional
16- * @param visitor Function to run for each node
17- * @param reverse Visit the tree in reverse, defaults to false
14+ * @param tree
15+ * Tree to walk
16+ * @param [test]
17+ * `unist-util-is`-compatible test
18+ * @param visitor
19+ * Function called for nodes that pass `test`.
20+ * @param reverse
21+ * Traverse in reverse preorder (NRL) instead of preorder (NLR) (default).
1822 */
1923export const visit =
2024 /**
@@ -53,4 +57,5 @@ export const visit =
5357 }
5458 }
5559 )
60+
5661export { CONTINUE , EXIT , SKIP } from 'unist-util-visit-parents'
You can’t perform that action at this time.
0 commit comments