Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/oxc_allocator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ pub use dummies::*;
))]
mod generated {
#[cfg(debug_assertions)]
pub mod assert_layouts;
mod assert_layouts;
pub mod fixed_size_constants;
}
#[cfg(all(
Expand Down
27 changes: 14 additions & 13 deletions crates/oxc_ast/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,24 @@ pub mod precedence;
mod trivia;

mod generated {
#[cfg(debug_assertions)]
pub mod assert_layouts;
pub mod ast_builder;
pub mod ast_kind;
pub mod derive_clone_in;
pub mod derive_content_eq;
pub mod derive_dummy;

#[cfg(debug_assertions)]
mod assert_layouts;
mod ast_builder;
mod derive_clone_in;
mod derive_content_eq;
mod derive_dummy;
#[cfg(feature = "serialize")]
pub mod derive_estree;
pub mod derive_get_address;
pub mod derive_get_span;
pub mod derive_get_span_mut;
pub mod derive_take_in;
pub mod get_id;
mod derive_estree;
mod derive_get_address;
mod derive_get_span;
mod derive_get_span_mut;
mod derive_take_in;
mod get_id;
}

pub use generated::{ast_builder, ast_kind};
pub use generated::ast_kind;

pub use crate::{
ast::comment::{Comment, CommentContent, CommentKind, CommentPosition},
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_formatter/src/formatter/trivia.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use oxc_syntax::comment_node;

use crate::{
formatter::comments::{is_alignable_comment, is_end_of_line_comment, is_own_line_comment},
generated::{ast_nodes::SiblingNode, format},
generated::ast_nodes::SiblingNode,
write,
};

Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_formatter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

mod generated {
pub mod ast_nodes;
pub mod format;
mod format;
}
mod formatter;
mod options;
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub mod table;
mod generated {
#[cfg(all(feature = "oxlint2", not(feature = "disable_oxlint2")))]
#[cfg(debug_assertions)]
pub mod assert_layouts;
mod assert_layouts;
mod rule_runner_impls;
}

Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_regular_expression/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mod surrogate_pair;

mod generated {
#[cfg(debug_assertions)]
pub mod assert_layouts;
mod assert_layouts;
mod derive_clone_in;
mod derive_content_eq;
}
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_span/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ pub use span::{GetSpan, GetSpanMut, SPAN, Span};

mod generated {
#[cfg(debug_assertions)]
pub mod assert_layouts;
mod assert_layouts;
mod derive_dummy;
#[cfg(feature = "serialize")]
pub mod derive_estree;
mod derive_estree;
}

#[doc(hidden)]
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_syntax/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub mod xml_entities;

mod generated {
#[cfg(debug_assertions)]
pub mod assert_layouts;
mod assert_layouts;
mod derive_clone_in;
mod derive_content_eq;
mod derive_dummy;
Expand Down
2 changes: 1 addition & 1 deletion napi/parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub fn raw_transfer_supported() -> bool {
mod generated {
// Note: We intentionally don't import `generated/derive_estree.rs`. It's not needed.
#[cfg(debug_assertions)]
pub mod assert_layouts;
mod assert_layouts;
#[cfg(all(target_pointer_width = "64", target_endian = "little"))]
pub mod raw_transfer_constants;
}
Expand Down
Loading