From 0bdfc0e0b3191050016a48d4cec2ccb47c682de3 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Tue, 24 Feb 2026 16:04:11 +0000 Subject: [PATCH] refactor(estree/tokens): use wildcard import for AST types (#19681) Pure refactor. Import AST types with a wildcard `use oxc_ast::ast::*` instead of a massive list of types. --- crates/oxc_estree_tokens/src/lib.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/crates/oxc_estree_tokens/src/lib.rs b/crates/oxc_estree_tokens/src/lib.rs index 2a2dc1469e4ef..e5ef4255889e2 100644 --- a/crates/oxc_estree_tokens/src/lib.rs +++ b/crates/oxc_estree_tokens/src/lib.rs @@ -2,14 +2,7 @@ use rustc_hash::FxHashSet; use serde::Serialize; use oxc_allocator::{Allocator, Vec as ArenaVec}; -use oxc_ast::ast::{ - BindingIdentifier, IdentifierName, IdentifierReference, JSXAttribute, JSXAttributeValue, - JSXElementName, JSXExpressionContainer, JSXIdentifier, JSXMemberExpressionObject, - JSXNamespacedName, JSXSpreadAttribute, JSXSpreadChild, LabelIdentifier, MemberExpression, - MetaProperty, ObjectPropertyKind, Program, PropertyKey, TSImportType, TSThisParameter, - TSTypeName, TSTypeParameterDeclaration, TSTypeQuery, TSTypeQueryExprName, WithClause, - WithClauseKeyword, -}; +use oxc_ast::ast::*; use oxc_ast_visit::{Visit, utf8_to_utf16::Utf8ToUtf16, walk}; use oxc_parser::{Kind, Token}; use oxc_span::Span;