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

Introduce pre-order / post-order visitor pattern #813

Merged
merged 2 commits into from
Aug 19, 2023

Conversation

TristonianJones
Copy link
Collaborator

Introduce a visitor with pre and post-order traversal methods.

This change also ensures that MatchDescendents() is bottom-up traversal
and that Children() can be used to model top-down traversal.

There are a couple of missing LICENSE notices added as well.

@TristonianJones TristonianJones requested a review from l46kok August 18, 2023 20:19
common/ast/navigable_test.go Outdated Show resolved Hide resolved
common/ast/navigable.go Show resolved Hide resolved
@TristonianJones TristonianJones merged commit 1a6373d into google:master Aug 19, 2023
@TristonianJones TristonianJones deleted the ast-visitor-update branch August 19, 2023 02:35
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

Successfully merging this pull request may close these issues.

2 participants