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

Support AstEditor in visitor editing pattern #599

Merged
merged 1 commit into from
May 25, 2022

Conversation

TwitchBronBron
Copy link
Member

Currently the AST walkers support transforming the AST by returning a new statement/expression. However, this does not work well in watch mode because those are permanent transformations.

This PR adds an option to provide an AstEditor as part of the WalkOptions, so those edits will be done using the AstEditor, therefore enabling this pattern for watch mode plugins.

@TwitchBronBron TwitchBronBron merged commit 806c0f2 into master May 25, 2022
@TwitchBronBron TwitchBronBron deleted the ast-editor-visitor-edits branch May 25, 2022 12:44
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.

None yet

1 participant