-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It is a variation of `traverse`, except the actions receives a `path-thunk` argument after the visiting node. When called within the action, `path-thunk` returns a list of ascendant nodes of the visiting node, i.e. its car is the immediate parent, and its the last element is the root node on which `traverse-with-path` is called. This is useful for AST walker that needs wider context surrounding the node of concern.
- Loading branch information
1 parent
99f2560
commit 15a98e9
Showing
1 changed file
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters