mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
refactor(transformer): shorten imports (#6643)
Style nit. Shorten `use` statements in transformer.
This commit is contained in:
parent
f3451d7ec4
commit
92812349e5
4 changed files with 7 additions and 6 deletions
|
|
@ -51,7 +51,7 @@ use oxc_semantic::ScopeFlags;
|
|||
use oxc_span::{GetSpan, SPAN};
|
||||
use oxc_traverse::{Ancestor, Traverse, TraverseCtx};
|
||||
|
||||
use crate::{common::helper_loader::Helper, context::TransformCtx};
|
||||
use crate::{common::helper_loader::Helper, TransformCtx};
|
||||
|
||||
pub struct AsyncToGenerator<'a, 'ctx> {
|
||||
ctx: &'ctx TransformCtx<'a>,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
use oxc_ast::ast::{Expression, Statement};
|
||||
use oxc_traverse::{Traverse, TraverseCtx};
|
||||
|
||||
use crate::context::TransformCtx;
|
||||
use crate::es2017::async_to_generator::AsyncToGenerator;
|
||||
use crate::es2017::options::ES2017Options;
|
||||
use crate::{
|
||||
es2017::{async_to_generator::AsyncToGenerator, options::ES2017Options},
|
||||
TransformCtx,
|
||||
};
|
||||
|
||||
mod async_to_generator;
|
||||
pub mod options;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use oxc_ast::ast::*;
|
||||
use oxc_traverse::{Traverse, TraverseCtx};
|
||||
|
||||
use crate::context::TransformCtx;
|
||||
use crate::TransformCtx;
|
||||
|
||||
mod object_rest_spread;
|
||||
mod options;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ use serde::Deserialize;
|
|||
use oxc_ast::ast::*;
|
||||
use oxc_traverse::{Traverse, TraverseCtx};
|
||||
|
||||
use crate::context::TransformCtx;
|
||||
use crate::TransformCtx;
|
||||
|
||||
mod object_rest;
|
||||
mod object_spread;
|
||||
|
|
|
|||
Loading…
Reference in a new issue