Skip to content

✨ add parents to regexp visitor#18

Open
connor4312 wants to merge 1 commit intomysticatea:masterfrom
connor4312:node-history
Open

✨ add parents to regexp visitor#18
connor4312 wants to merge 1 commit intomysticatea:masterfrom
connor4312:node-history

Conversation

@connor4312
Copy link
Copy Markdown

Simple change, mostly churn. Adds a readonly array as the second parameter to visitors, containing the parent tree. Reuses the same array internally, pushing and popping nodes, so should have a relatively minimal performance impact.

Fixes #16

@MichaelDeBoey
Copy link
Copy Markdown

Hi @connor4312!

Since this repo is unmaintained, you might want to re-open this PR in the @eslint-community fork https://github.com/eslint-community/regexpp

For more info about why we created this organization, you can read https://eslint.org/blog/2023/03/announcing-eslint-community-org

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.

Expose parents in regexp vistor

2 participants