Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(regular_expression): implement visitor pattern trait for regex A…
…ST (#6055) - resolves #5977 - supersedes #5951 To facilitate easier traversal of the Regex AST, this PR defines a `Visit` trait with default implementations that will walk the entirety of the Regex AST. Methods in the `Visit` trait can be overridden with custom implementations to do things like analyzing only certain nodes in a regular expression, which will be useful for regex-related `oxc_linter` rules. In the future, we should consider automatically generating this code as it is very repetitive, but for now a handwritten visitor is sufficient.
- Loading branch information