mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
refactor(transformer): export var_declarations module from common module (#6183)
Tiny refactor. Export `var_declarations` module from `common`, rather than `var_declarations::VarDeclarationsStore`. Once we have more common transforms, the namespace of `common` module will become crowded.
This commit is contained in:
parent
02fedf5123
commit
81be5455d0
2 changed files with 3 additions and 3 deletions
|
|
@ -6,10 +6,9 @@ use oxc_traverse::{Traverse, TraverseCtx};
|
|||
|
||||
use crate::TransformCtx;
|
||||
|
||||
mod var_declarations;
|
||||
pub mod var_declarations;
|
||||
|
||||
use var_declarations::VarDeclarations;
|
||||
pub use var_declarations::VarDeclarationsStore;
|
||||
|
||||
pub struct Common<'a, 'ctx> {
|
||||
var_declarations: VarDeclarations<'a, 'ctx>,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@ use oxc_diagnostics::OxcDiagnostic;
|
|||
use oxc_span::SourceType;
|
||||
|
||||
use crate::{
|
||||
common::VarDeclarationsStore, helpers::module_imports::ModuleImports, TransformOptions,
|
||||
common::var_declarations::VarDeclarationsStore, helpers::module_imports::ModuleImports,
|
||||
TransformOptions,
|
||||
};
|
||||
|
||||
pub struct TransformCtx<'a> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue