Skip to content

Commit

Permalink
refactor(transformer): export var_declarations module from common
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
overlookmotel committed Sep 30, 2024
1 parent 02fedf5 commit 81be545
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions crates/oxc_transformer/src/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down
3 changes: 2 additions & 1 deletion crates/oxc_transformer/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 81be545

Please sign in to comment.