Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcard visitor matcher #9

Open
joepie91 opened this issue Jun 17, 2020 · 2 comments
Open

Wildcard visitor matcher #9

joepie91 opened this issue Jun 17, 2020 · 2 comments

Comments

@joepie91
Copy link

Currently, it's only possible to specify either a) concrete types, or b) aliases. In some cases (especially for debugging purposes), it would be useful to be able to specify a * visitor that fires on any kind of node. Unfortunately @babel/types does not seem to provide an alias for this.

Perhaps this would be useful as a feature in babel-walk?

@Arrow66
Copy link

Arrow66 commented Jul 2, 2020

hi @joepie91 i was looking for the same .at least implement enter() and exit() inside visitors

@ForbesLindesay
Copy link
Member

I would accept a pull request that adds a * visitor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants