-
Notifications
You must be signed in to change notification settings - Fork 197
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
.visit(...)
does not visit nodes that do not extend Printable
#123
Comments
It appears this was intentional in @843b55b. I have not yet figured out why visiting non-Printable nodes would be a bad idea, even in the ECMAScript context. Assuming there are good reasons for it, perhaps we generalize Also (or possibly alternatively), it might be good to extend field definitions (i.e. |
I'm also having trouble remembering the original rationale… I think it was just for performance reasons (not visiting |
I think that |
Digging deeper into the background, visitation used to be restricted to subtypes of I'm persuaded by your argument that we should relax the restriction even further. In order to be visitable, I think an object just needs to have a string-valued |
This may make sense / not matter for processing ECMAScript related AST's, but it is a weird requirement to force on implementors of custom AST's.
This is a blocker for #57
The text was updated successfully, but these errors were encountered: