From ac097e916051288cc982136e4e22c2766cb4bd91 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Fri, 20 Dec 2024 10:07:24 +0000 Subject: [PATCH] refactor(transformer/class-properties): rename file (#8036) Pure refactor. Rename file to make filename more descriptive of what it does. --- .../src/es2022/class_properties/mod.rs | 26 +++++++++---------- ..._init.rs => static_block_and_prop_init.rs} | 0 2 files changed, 13 insertions(+), 13 deletions(-) rename crates/oxc_transformer/src/es2022/class_properties/{static_prop_init.rs => static_block_and_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 ad38d3d8a345a..13149dd4603d7 100644 --- a/crates/oxc_transformer/src/es2022/class_properties/mod.rs +++ b/crates/oxc_transformer/src/es2022/class_properties/mod.rs @@ -175,18 +175,18 @@ //! //! Implementation is split into several files: //! -//! * `mod.rs`: Setup and visitor. -//! * `class.rs`: Transform of class body. -//! * `prop_decl.rs`: Transform of property declarations (instance and static). -//! * `constructor.rs`: Insertion of property initializers into class constructor. -//! * `instance_prop_init.rs`: Transform of instance property initializers. -//! * `static_prop_init.rs`: Transform of static property initializers and static blocks. -//! * `computed_key.rs`: Transform of property/method computed keys. -//! * `private_field.rs`: Transform of private fields (`this.#prop`). -//! * `super.rs`: Transform `super` expressions. -//! * `class_details.rs`: Structures containing details of classes and private properties. -//! * `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. +//! * `prop_decl.rs`: Transform of property declarations (instance and static). +//! * `constructor.rs`: Insertion of property initializers into class constructor. +//! * `instance_prop_init.rs`: Transform of instance property initializers. +//! * `static_block_and_prop_init.rs`: Transform of static property initializers and static blocks. +//! * `computed_key.rs`: Transform of property/method computed keys. +//! * `private_field.rs`: Transform of private fields (`this.#prop`). +//! * `super.rs`: Transform `super` expressions. +//! * `class_details.rs`: Structures containing details of classes and private properties. +//! * `class_bindings.rs`: Structure containing bindings for class name and temp var. +//! * `utils.rs`: Utility functions. //! //! ## References //! @@ -215,7 +215,7 @@ mod constructor; mod instance_prop_init; mod private_field; mod prop_decl; -mod static_prop_init; +mod static_block_and_prop_init; mod supers; mod utils; use class_bindings::ClassBindings; diff --git a/crates/oxc_transformer/src/es2022/class_properties/static_prop_init.rs b/crates/oxc_transformer/src/es2022/class_properties/static_block_and_prop_init.rs similarity index 100% rename from crates/oxc_transformer/src/es2022/class_properties/static_prop_init.rs rename to crates/oxc_transformer/src/es2022/class_properties/static_block_and_prop_init.rs