Skip to content

Commit 68152f3

Browse files
committed
refactor(estree/tokens): move raw transfer-related files into subdirectory (#19892)
Pure refactor. Move files related to raw transfer into their own directory, mirroring that all files related to JSON serialization have their own directory too.
1 parent 1f9c115 commit 68152f3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/oxc_estree_tokens/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
//! Both implementations also convert UTF-8 spans to UTF-16.
1313
1414
mod context;
15-
mod estree_kind;
1615
mod json;
1716
mod jsx_state;
1817
mod options;
File renamed without changes.

crates/oxc_estree_tokens/src/raw_transfer.rs renamed to crates/oxc_estree_tokens/src/raw_transfer/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ use oxc_ast_visit::{
1111
};
1212
use oxc_parser::{Kind, Token};
1313

14-
use crate::{
15-
context::Context, estree_kind::ESTreeKind, options::ESTreeTokenConfig, visitor::Visitor,
16-
};
14+
use crate::{context::Context, options::ESTreeTokenConfig, visitor::Visitor};
15+
16+
mod estree_kind;
17+
use estree_kind::ESTreeKind;
1718

1819
/// Walk AST and convert all token kinds to `ESTreeKind` discriminants.
1920
/// Also convert token spans from UTF-8 byte offsets to UTF-16 offsets.

0 commit comments

Comments
 (0)