regexpp icon indicating copy to clipboard operation
regexpp copied to clipboard

RegExpVisitor class is not exported

Open bd82 opened this issue 3 years ago • 2 comments

Hello and thanks for this library 👍

It seems the RegExp visitor class is not exported at runtime. However the documentation seems to imply it is.

https://github.com/mysticatea/regexpp/blob/4bcab0b82c2a384d2c45f46e804a46912eb17ad5/src/index.ts#L1-L6

I need the class itself to be exposed in order to modify the traversal, e.g:

  • Halt the traversal when something has been detected.
  • Avoid traversing certain sub-nodes of the AST.

Cheers. Shahar.

bd82 avatar Sep 11 '20 15:09 bd82

👍 would love to see this. In VS Code we cannot import submodules, so I republished a version with this fix for now.

connor4312 avatar Nov 13 '20 22:11 connor4312

Hi @bd82!

Since this repo is unmaintained, you might want to re-open this issue 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

MichaelDeBoey avatar Apr 29 '23 14:04 MichaelDeBoey