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/visit should traverse into symbols on SomeDecl nodes #5480

Closed
tsandall opened this issue Dec 13, 2022 · 0 comments · Fixed by #5515
Closed

ast/visit should traverse into symbols on SomeDecl nodes #5480

tsandall opened this issue Dec 13, 2022 · 0 comments · Fixed by #5515
Labels

Comments

@tsandall
Copy link
Member

Currently the ast/visit implementation doesn't traverse into the symbols on SomeDecl nodes. Callers providing their own visitor implementation for static analysis will find this surprising. The workaround for the time being is to have the caller manually deal with SomeDecl nodes, but it would be better if the ast/visit implementations handled this.

@tsandall tsandall added the bug label Dec 13, 2022
srenatus added a commit to srenatus/opa that referenced this issue Jan 2, 2023
These had been overlooked, it seems. Adjusted the test element counts
for the new nodes getting recorded.

It seems like there's no test coverage for the deprecated ast.Walk() and
ast.WalkBeforeAndAfter() methods.

Fixes open-policy-agent#5480.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
srenatus added a commit that referenced this issue Jan 2, 2023
These had been overlooked, it seems. Adjusted the test element counts
for the new nodes getting recorded.

It seems like there's no test coverage for the deprecated ast.Walk() and
ast.WalkBeforeAndAfter() methods.

Fixes #5480.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
harikannan512 pushed a commit to harikannan512/opa that referenced this issue Jan 3, 2023
These had been overlooked, it seems. Adjusted the test element counts
for the new nodes getting recorded.

It seems like there's no test coverage for the deprecated ast.Walk() and
ast.WalkBeforeAndAfter() methods.

Fixes open-policy-agent#5480.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
Signed-off-by: harikannan <hariprasad.kannan@wexinc,com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant