From 016ae924537797729c27d68b00654b01de628036 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:16:09 +0000 Subject: [PATCH] refactor(transformer/class-properties): rename file (#7767) Cosmetic change. Rename file that deals with static property initializers to have a more descriptive name. --- .../src/es2022/class_properties/mod.rs | 18 +++++++++--------- .../{static_prop.rs => static_prop_init.rs} | 0 2 files changed, 9 insertions(+), 9 deletions(-) rename crates/oxc_transformer/src/es2022/class_properties/{static_prop.rs => static_prop_init.rs} (100%) diff --git a/crates/oxc_transformer/src/es2022/class_properties/mod.rs b/crates/oxc_transformer/src/es2022/class_properties/mod.rs index 2fb2b6f348ebe..69b0ce71559c3 100644 --- a/crates/oxc_transformer/src/es2022/class_properties/mod.rs +++ b/crates/oxc_transformer/src/es2022/class_properties/mod.rs @@ -125,14 +125,14 @@ //! //! Implementation is split into several files: //! -//! * `mod.rs`: Setup and visitor. -//! * `class.rs`: Transform of class body. -//! * `constructor.rs`: Insertion of property initializers into class constructor. -//! * `private.rs`: Transform of private property usages (`this.#prop`). -//! * `private_props.rs`: Structures storing details of private properties. -//! * `static_prop.rs`: Transform of static property initializers. -//! * `class_bindings.rs`: Structure containing bindings for class name and temp var. -//! * `utils.rs`: Utility functions. +//! * `mod.rs`: Setup and visitor. +//! * `class.rs`: Transform of class body. +//! * `constructor.rs`: Insertion of property initializers into class constructor. +//! * `private.rs`: Transform of private property usages (`this.#prop`). +//! * `private_props.rs`: Structures storing details of private properties. +//! * `static_prop_init.rs`: Transform of static property initializers. +//! * `class_bindings.rs`: Structure containing bindings for class name and temp var. +//! * `utils.rs`: Utility functions. //! //! ## References //! @@ -158,7 +158,7 @@ mod class_bindings; mod constructor; mod private; mod private_props; -mod static_prop; +mod static_prop_init; mod utils; use class_bindings::ClassBindings; use private_props::PrivatePropsStack; diff --git a/crates/oxc_transformer/src/es2022/class_properties/static_prop.rs b/crates/oxc_transformer/src/es2022/class_properties/static_prop_init.rs similarity index 100% rename from crates/oxc_transformer/src/es2022/class_properties/static_prop.rs rename to crates/oxc_transformer/src/es2022/class_properties/static_prop_init.rs