mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
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:
parent
c6590aeee3
commit
f771d7c402
2 changed files with 2 additions and 14 deletions
|
|
@ -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\`].
|
||||
|
|
|
|||
|
|
@ -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`].
|
||||
|
|
|
|||
Loading…
Reference in a new issue