File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ const editedAST = visit(ast, {
219219
220220Alternatively to providing enter() and leave() functions, a visitor can
221221instead provide functions named the same as the kinds of AST nodes, or
222- enter/leave visitors at a named key, leading to four permutations of
222+ enter/leave visitors at a named key, leading to three permutations of
223223visitor API:
224224
2252251 . Named visitors triggered when entering a node a specific kind.
@@ -261,23 +261,6 @@ visit(ast, {
261261});
262262```
263263
264- 4 . Parallel visitors for entering and leaving nodes of a specific kind.
265-
266- ``` js
267- visit (ast, {
268- enter: {
269- Kind (node ) {
270- // enter the "Kind" node
271- },
272- },
273- leave: {
274- Kind (node ) {
275- // leave the "Kind" node
276- },
277- },
278- });
279- ```
280-
281264### ` BREAK `
282265
283266The sentinel ` BREAK ` value described in the documentation of ` visitor ` .
You can’t perform that action at this time.
0 commit comments