diff --git a/crates/oxc_estree_tokens/src/lib.rs b/crates/oxc_estree_tokens/src/lib.rs index 2edcb97a5d612..d0f3498307167 100644 --- a/crates/oxc_estree_tokens/src/lib.rs +++ b/crates/oxc_estree_tokens/src/lib.rs @@ -12,7 +12,6 @@ //! Both implementations also convert UTF-8 spans to UTF-16. mod context; -mod estree_kind; mod json; mod jsx_state; mod options; diff --git a/crates/oxc_estree_tokens/src/estree_kind.rs b/crates/oxc_estree_tokens/src/raw_transfer/estree_kind.rs similarity index 100% rename from crates/oxc_estree_tokens/src/estree_kind.rs rename to crates/oxc_estree_tokens/src/raw_transfer/estree_kind.rs diff --git a/crates/oxc_estree_tokens/src/raw_transfer.rs b/crates/oxc_estree_tokens/src/raw_transfer/mod.rs similarity index 98% rename from crates/oxc_estree_tokens/src/raw_transfer.rs rename to crates/oxc_estree_tokens/src/raw_transfer/mod.rs index d90459191463b..8aa56ef2fb473 100644 --- a/crates/oxc_estree_tokens/src/raw_transfer.rs +++ b/crates/oxc_estree_tokens/src/raw_transfer/mod.rs @@ -11,9 +11,10 @@ use oxc_ast_visit::{ }; use oxc_parser::{Kind, Token}; -use crate::{ - context::Context, estree_kind::ESTreeKind, options::ESTreeTokenConfig, visitor::Visitor, -}; +use crate::{context::Context, options::ESTreeTokenConfig, visitor::Visitor}; + +mod estree_kind; +use estree_kind::ESTreeKind; /// Walk AST and convert all token kinds to `ESTreeKind` discriminants. /// Also convert token spans from UTF-8 byte offsets to UTF-16 offsets.