refactor(traverse): remove unnecessary imports (#5116)

`Atom`, `SourceType` and `Span` from `oxc_span`, and operators from `oxc_syntax` are now re-exported from `oxc_ast` crate. Remove unnecessary `use` statements by importing them all from `oxc_ast`.
This commit is contained in:
overlookmotel 2024-08-23 12:49:32 +00:00
parent c6590aeee3
commit f771d7c402
2 changed files with 2 additions and 14 deletions

View file

@ -113,13 +113,7 @@ export default function generateAncestorsCode(types) {
use oxc_allocator::{Box, Vec};
#[allow(clippy::wildcard_imports)]
use oxc_ast::ast::*;
use oxc_span::{Atom, SourceType, Span};
use oxc_syntax::{
operator::{
AssignmentOperator, BinaryOperator, LogicalOperator, UnaryOperator, UpdateOperator,
},
scope::ScopeId,
};
use oxc_syntax::scope::ScopeId;
/// Type of [\`Ancestor\`].
/// Used in [\`crate::TraverseCtx::retag_stack\`].

View file

@ -17,13 +17,7 @@ use memoffset::offset_of;
use oxc_allocator::{Box, Vec};
#[allow(clippy::wildcard_imports)]
use oxc_ast::ast::*;
use oxc_span::{Atom, SourceType, Span};
use oxc_syntax::{
operator::{
AssignmentOperator, BinaryOperator, LogicalOperator, UnaryOperator, UpdateOperator,
},
scope::ScopeId,
};
use oxc_syntax::scope::ScopeId;
/// Type of [`Ancestor`].
/// Used in [`crate::TraverseCtx::retag_stack`].