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.
|
import * as AST from "./ast" |
|
import { RegExpParser } from "./parser" |
|
import { RegExpValidator } from "./validator" |
|
import { RegExpVisitor } from "./visitor" |
|
|
|
export { AST, RegExpParser, RegExpValidator } |
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.
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.
regexpp/src/index.ts
Lines 1 to 6 in 4bcab0b
I need the class itself to be exposed in order to modify the traversal, e.g:
Cheers.
Shahar.