Skip to content

Commit 6808b16

Browse files
janmeieryaacovCR
andauthored
docs: remove fourth permutation of the visit API (#4473)
The fourth permutation was removed in #2957 See #4466 --------- Co-authored-by: Yaacov Rydzinski <[email protected]>
1 parent d07c9c5 commit 6808b16

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

website/pages/api-v16/language.mdx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const editedAST = visit(ast, {
219219

220220
Alternatively to providing enter() and leave() functions, a visitor can
221221
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
223223
visitor API:
224224

225225
1. 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

283266
The sentinel `BREAK` value described in the documentation of `visitor`.

0 commit comments

Comments
 (0)