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:
overlookmotel 2024-09-30 19:09:49 +00:00
parent 02fedf5123
commit 81be5455d0
2 changed files with 3 additions and 3 deletions

View file

@ -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>,

View file

@ -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> {