diff --git a/crates/oxc_transformer/src/common/arrow_function_converter.rs b/crates/oxc_transformer/src/common/arrow_function_converter.rs index 986e7460b..9e3d9630c 100644 --- a/crates/oxc_transformer/src/common/arrow_function_converter.rs +++ b/crates/oxc_transformer/src/common/arrow_function_converter.rs @@ -586,8 +586,8 @@ impl<'a> ArrowFunctionConverter<'a> { /// Transforms a `MemberExpression` whose object is a `super` expression. /// - /// In the [`AsyncToGenerator`](crate::es2017::async_to_generator::AsyncToGenerator) and - /// [`AsyncGeneratorFunctions`](crate::es2018::async_generator_functions::AsyncGeneratorFunctions) plugins, + /// In the [`AsyncToGenerator`](crate::es2017::AsyncToGenerator) and + /// [`AsyncGeneratorFunctions`](crate::es2018::AsyncGeneratorFunctions) plugins, /// we move the body of an async method to a new generator function. This can cause /// `super` expressions to appear in unexpected places, leading to syntax errors. /// diff --git a/crates/oxc_transformer/src/es2017/mod.rs b/crates/oxc_transformer/src/es2017/mod.rs index 8e8beb9a9..740102d7e 100644 --- a/crates/oxc_transformer/src/es2017/mod.rs +++ b/crates/oxc_transformer/src/es2017/mod.rs @@ -1,12 +1,12 @@ -pub(crate) mod async_to_generator; +mod async_to_generator; mod options; -pub use async_to_generator::AsyncGeneratorExecutor; +pub use async_to_generator::{AsyncGeneratorExecutor, AsyncToGenerator}; pub use options::ES2017Options; use oxc_ast::ast::{Expression, Function, Statement}; use oxc_traverse::{Traverse, TraverseCtx}; -use crate::{es2017::async_to_generator::AsyncToGenerator, TransformCtx}; +use crate::TransformCtx; #[allow(dead_code)] pub struct ES2017<'a, 'ctx> { diff --git a/crates/oxc_transformer/src/es2018/mod.rs b/crates/oxc_transformer/src/es2018/mod.rs index 49d2af88e..46e63ebec 100644 --- a/crates/oxc_transformer/src/es2018/mod.rs +++ b/crates/oxc_transformer/src/es2018/mod.rs @@ -1,8 +1,8 @@ -pub(crate) mod async_generator_functions; +mod async_generator_functions; mod object_rest_spread; mod options; -use async_generator_functions::AsyncGeneratorFunctions; +pub use async_generator_functions::AsyncGeneratorFunctions; pub use object_rest_spread::{ObjectRestSpread, ObjectRestSpreadOptions}; pub use options::ES2018Options; use oxc_ast::ast::*; diff --git a/crates/oxc_transformer/src/es2020/mod.rs b/crates/oxc_transformer/src/es2020/mod.rs index a90d86bd6..1648ac95f 100644 --- a/crates/oxc_transformer/src/es2020/mod.rs +++ b/crates/oxc_transformer/src/es2020/mod.rs @@ -2,7 +2,7 @@ mod nullish_coalescing_operator; mod optional_chaining; mod options; -pub use nullish_coalescing_operator::NullishCoalescingOperator; +use nullish_coalescing_operator::NullishCoalescingOperator; pub use optional_chaining::OptionalChaining; pub use options::ES2020Options; use oxc_ast::ast::*; diff --git a/crates/oxc_transformer/src/jsx/jsx_impl.rs b/crates/oxc_transformer/src/jsx/jsx_impl.rs index ab2840201..86069e594 100644 --- a/crates/oxc_transformer/src/jsx/jsx_impl.rs +++ b/crates/oxc_transformer/src/jsx/jsx_impl.rs @@ -100,8 +100,8 @@ use oxc_syntax::{ }; use oxc_traverse::{BoundIdentifier, Traverse, TraverseCtx}; -use super::diagnostics; -pub use super::{ +use super::{ + diagnostics, jsx_self::JsxSelf, jsx_source::JsxSource, options::{JsxOptions, JsxRuntime}, diff --git a/crates/oxc_transformer/src/jsx/mod.rs b/crates/oxc_transformer/src/jsx/mod.rs index 815ceff76..78cbcde01 100644 --- a/crates/oxc_transformer/src/jsx/mod.rs +++ b/crates/oxc_transformer/src/jsx/mod.rs @@ -12,8 +12,8 @@ mod jsx_source; mod options; mod refresh; pub(crate) use comments::update_options_with_comments; -pub use display_name::ReactDisplayName; -pub use jsx_impl::JsxImpl; +use display_name::ReactDisplayName; +use jsx_impl::JsxImpl; use jsx_self::JsxSelf; pub use options::{JsxOptions, JsxRuntime, ReactRefreshOptions}; use refresh::ReactRefresh;