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

AST traversal helpers #13

Open
maryo opened this issue Nov 25, 2022 · 1 comment
Open

AST traversal helpers #13

maryo opened this issue Nov 25, 2022 · 1 comment

Comments

@maryo
Copy link

maryo commented Nov 25, 2022

The library is quite cool. Thanks.

Have you been thinking of a feature that would ease AST traversal?

Perhaps something like https://www.doctrine-project.org/projects/doctrine-orm/en/2.13/cookbook/dql-custom-walkers.html
or even something better :-P

Things like collecting all database names or even modifying the tree would be cool (but not easy :-)).

@paranoiq
Copy link
Member

hi, something like this will definitely be needed. in coming weeks i will be porting my migration check rules here. they was all targeted on CREATEs and ALTERs and do not care for expressions and type. but later i will be adding something like this for full static analysis. i did not yet think about how exactly it will be implemented

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

No branches or pull requests

2 participants