Skip to content

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

Merged
TristonianJones merged 2 commits intogoogle:masterfrom
TristonianJones:ast-visitor-update
Aug 19, 2023
Merged

Introduce pre-order / post-order visitor pattern#813
TristonianJones merged 2 commits intogoogle:masterfrom
TristonianJones:ast-visitor-update

Conversation

@TristonianJones
Copy link
Copy Markdown
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
Comment thread common/ast/navigable_test.go Outdated
Comment thread common/ast/navigable.go
@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