Skip to content

Commit

Permalink
refactor(transformer): HelperLoader common transform: re-order fiel…
Browse files Browse the repository at this point in the history
…ds (#6565)

Style nit. Keep fields in same order throughout.
  • Loading branch information
overlookmotel committed Oct 15, 2024
1 parent 50ecade commit 9f02fc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/oxc_transformer/src/common/helper_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ type LoadedHelper<'a> = FxHashMap<Atom<'a>, (Atom<'a>, BoundIdentifier<'a>)>;

/// Stores the state of the helper loader in [`TransformCtx`].
pub struct HelperLoaderStore<'a> {
mode: HelperLoaderMode,
module_name: Cow<'static, str>,
mode: HelperLoaderMode,
/// Symbol ID for the `babelHelpers`.
babel_helpers_symbol_id: Cell<Option<SymbolId>>,
/// Loaded helpers, determined what helpers are loaded and what imports should be added.
Expand All @@ -162,10 +162,10 @@ pub struct HelperLoaderStore<'a> {
impl<'a> HelperLoaderStore<'a> {
pub fn new(options: &HelperLoaderOptions) -> Self {
Self {
mode: options.mode,
module_name: options.module_name.clone(),
loaded_helpers: RefCell::new(FxHashMap::default()),
mode: options.mode,
babel_helpers_symbol_id: Cell::new(None),
loaded_helpers: RefCell::new(FxHashMap::default()),
}
}

Expand Down

0 comments on commit 9f02fc7

Please sign in to comment.