Skip to content

Commit

Permalink
refactor(transformer/class-properties): mark transform_assignment_exp…
Browse files Browse the repository at this point in the history
…ression_if_super_member_assignment_target as inline
  • Loading branch information
Dunqing committed Dec 18, 2024
1 parent 5cf253c commit 9748bc6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,9 @@ impl<'a, 'ctx, 'v> StaticInitializerVisitor<'a, 'ctx, 'v> {
}
}

// `#[inline]` into visitor to keep common path where assignment epxression isn't
// `super.prop += 1` fast
#[inline]
fn transform_assignment_expression_if_super_member_assignment_target(
&mut self,
expr: &mut Expression<'a>,
Expand Down

0 comments on commit 9748bc6

Please sign in to comment.