Skip to content

Commit

Permalink
refactor(transformer/class-properties): mark `transform_assignment_ex…
Browse files Browse the repository at this point in the history
…pression_if_super_member_assignment_target` as inline (#7993)

I forgot to mark it as inline like other methods do.
  • Loading branch information
Dunqing committed Dec 18, 2024
1 parent 5cf253c commit b3a5f3e
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 expression 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 b3a5f3e

Please sign in to comment.