Skip to content

Conversation

connor4312
Copy link

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

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