From b3a5f3eb597dbf9243eebd2fd40b151324981b13 Mon Sep 17 00:00:00 2001 From: Dunqing <29533304+Dunqing@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:59:40 +0000 Subject: [PATCH] refactor(transformer/class-properties): mark `transform_assignment_expression_if_super_member_assignment_target` as inline (#7993) I forgot to mark it as inline like other methods do. --- .../src/es2022/class_properties/static_prop_init.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/oxc_transformer/src/es2022/class_properties/static_prop_init.rs b/crates/oxc_transformer/src/es2022/class_properties/static_prop_init.rs index 2d85e95983820..184d3fb123322 100644 --- a/crates/oxc_transformer/src/es2022/class_properties/static_prop_init.rs +++ b/crates/oxc_transformer/src/es2022/class_properties/static_prop_init.rs @@ -528,6 +528,9 @@ impl<'a, 'ctx, 'v> StaticInitializerVisitor<'a, 'ctx, 'v> { } } + // `#[inline]` into visitor to keep common path where assignment expression isn't + // `super.prop += 1` fast + #[inline] fn transform_assignment_expression_if_super_member_assignment_target( &mut self, expr: &mut Expression<'a>,