mysticatea / regexpp

The regular expression parser for ECMAScript.
MIT License
153 stars 15 forks source link

✨ add parents to regexp visitor #18

Open connor4312 opened 3 years ago

connor4312 commented 3 years ago

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 https://github.com/mysticatea/regexpp/issues/16

MichaelDeBoey commented 1 year ago

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