Commits
Click on a commit to change the comparison rangerefactor(traverse): move code generation from JavaScript to Rust
Move the traverse crate's code generation scripts from `crates/oxc_traverse/scripts/`
to `tasks/ast_tools/src/generators/traverse.rs`, rewriting them in Rust.
This change:
- Creates a new `TraverseGenerator` in ast_tools that generates:
- `traverse.rs` - The `Traverse` trait with enter/exit methods
- `ancestor.rs` - The `Ancestor` enum and related types
- `walk.rs` - The `walk_*` functions for AST traversal
- Removes the old JavaScript-based code generation (build.rs and scripts/)
- Filters types to only include those from `oxc_ast/src/ast/` module
- Generates offset constants only for structs with visited fields
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>