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

Add support for inserting new nodes #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

benjamingwynn
Copy link

Implements this.insertBefore(node) and this.insertAfter(node) to support adding new nodes to the AST, either before the current node or after it.

Allows inserting nodes before/after the currently iterated node on the AST
by calling this.insertBefore(node) and this.insertAfter(node).
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.

1 participant