mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
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:
parent
7538af12d8
commit
7a3cb830b4
4 changed files with 4048 additions and 3281 deletions
4037
crates/oxc_ast/src/generated/visit.rs
Normal file
4037
crates/oxc_ast/src/generated/visit.rs
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
Loading…
Reference in a new issue