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, {
219
219
220
220
Alternatively to providing enter() and leave() functions, a visitor can
221
221
instead 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
223
223
visitor API:
224
224
225
225
1 . Named visitors triggered when entering a node a specific kind.
@@ -261,23 +261,6 @@ visit(ast, {
261
261
});
262
262
```
263
263
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
-
281
264
### ` BREAK `
282
265
283
266
The sentinel ` BREAK ` value described in the documentation of ` visitor ` .
You can’t perform that action at this time.
0 commit comments