oxc/crates/oxc_regular_expression
camchenry 77647931e4 feat(regular_expression): implement visitor pattern trait for regex AST (#6055)
- resolves https://github.com/oxc-project/oxc/issues/5977
- supersedes https://github.com/oxc-project/oxc/pull/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.
2024-09-26 05:04:46 +00:00
..
examples feat(regular_expression): implement visitor pattern trait for regex AST (#6055) 2024-09-26 05:04:46 +00:00
src feat(regular_expression): implement visitor pattern trait for regex AST (#6055) 2024-09-26 05:04:46 +00:00
Cargo.toml release(crates): v0.30.1 (#6016) 2024-09-24 14:03:03 +08:00
CHANGELOG.md release(oxc): crates v0.28.0 (#5696) 2024-09-11 17:57:55 +08:00
README.md chore: use dprint to format js, json and markdown 2024-09-08 13:24:58 +08:00