From 0a5a2aa1a7de0183beaacf0db3a4d08a8ddefdbd Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Sat, 28 Feb 2026 12:59:25 +0000 Subject: [PATCH] refactor(estree/tokens): make `ESTreeUnsafeToken` type private (#19835) Pure refactor. Do not expose `ESTreeUnsafeToken` type publically. It's an internal type. --- crates/oxc_estree_tokens/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/oxc_estree_tokens/src/lib.rs b/crates/oxc_estree_tokens/src/lib.rs index 0d9ebda881c44..8c473438dfb4d 100644 --- a/crates/oxc_estree_tokens/src/lib.rs +++ b/crates/oxc_estree_tokens/src/lib.rs @@ -95,10 +95,10 @@ impl ESTree for ESTreeSafeToken<'_> { /// Token whose value may not be JSON-safe. /// /// Used for strings, templates, regexes, JSXText. -pub struct ESTreeUnsafeToken<'a> { - pub token_type: TokenType, - pub value: &'a str, - pub span: Span, +struct ESTreeUnsafeToken<'a> { + token_type: TokenType, + value: &'a str, + span: Span, } impl ESTree for ESTreeUnsafeToken<'_> {