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

Add behaviors to AST Visitors #402

Open
Kuinox opened this issue May 9, 2024 · 1 comment
Open

Add behaviors to AST Visitors #402

Kuinox opened this issue May 9, 2024 · 1 comment

Comments

@Kuinox
Copy link
Member

Kuinox commented May 9, 2024

We should add an enum to have the AST Visitor adopt a certain behavior.
For example, currently the AST Visitor Visit the most specific node and that it, we may want that the Visitor call the base Visitor (which is very practical in the code Formatter), this should be optional since it come at a performance cost.

@Kuinox
Copy link
Member Author

Kuinox commented May 9, 2024

The formatter PR will add the described behavior but it won't be optional. The purpose of this issue/pr is to make it optional.

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

1 participant