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

Is estraverse.Controller API? #35

Open
iccir opened this issue Nov 9, 2014 · 2 comments
Open

Is estraverse.Controller API? #35

iccir opened this issue Nov 9, 2014 · 2 comments

Comments

@iccir
Copy link

iccir commented Nov 9, 2014

I use estraverse.traverse in oj to iterate over the esprima AST. I'd like to use estraverse.Controller directly, so I can use Controller#path and Controller#parents.

In estraverse.js, these methods are commented as API. However, no documentation or usage information exists in the README or wiki.

Just to make sure: Controller is intended to be API, right?

@Constellation
Copy link
Member

Right.
There's no documentation for Controller APIs, it's my mistake.
But yes, Controller is API (if the function is not _ prefixed). So you can use it :)

@iccir
Copy link
Author

iccir commented Nov 15, 2014

Awesome! Thanks :) (and thanks for the great project!)

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

2 participants