improvement(ast): generate the visit.rs file. (#4001)

Performance degression is expected since now we are doing more work by visiting things that we wouldn't enter before.
This commit is contained in:
rzvxa 2024-07-02 10:18:47 +00:00
parent 7538af12d8
commit 7a3cb830b4
4 changed files with 4048 additions and 3281 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,7 @@
#![allow(clippy::wildcard_imports)]
// TODO: I'm not sure if it is a but or intentional but clippy needs this allowed both on this
// module and the generated one.
#![allow(clippy::self_named_module_files)]
//! # Oxc AST
//!
@ -19,11 +22,18 @@ mod ast_kind_impl;
pub mod precedence;
pub mod syntax_directed_operations;
mod trivia;
pub mod visit;
mod generated {
pub mod ast_kind;
pub mod span;
pub mod visit;
}
pub mod visit {
mod visit_mut;
pub use crate::generated::visit::*;
pub use visit_mut::*;
}
pub use generated::ast_kind;

View file

@ -1,7 +0,0 @@
#![allow(clippy::module_inception)]
mod visit;
mod visit_mut;
pub use visit::*;
pub use visit_mut::*;

File diff suppressed because it is too large Load diff