Skip to content

Commit

Permalink
refactor(transformer/arrow-functions): rename lifetime (#8319)
Browse files Browse the repository at this point in the history
Follow-on after #8024. Pure refactor. Rename lifetime to `'v` ("v" for visitor).
  • Loading branch information
overlookmotel committed Jan 8, 2025
1 parent aebe0ea commit 9127571
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/oxc_transformer/src/common/arrow_function_converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1119,13 +1119,13 @@ impl<'a> ArrowFunctionConverter<'a> {
}

/// Visitor for inserting `this` after `super` in constructor body.
struct ConstructorBodyThisAfterSuperInserter<'a, 'arrow> {
this_var_binding: &'arrow BoundIdentifier<'a>,
ctx: &'arrow mut TraverseCtx<'a>,
struct ConstructorBodyThisAfterSuperInserter<'a, 'v> {
this_var_binding: &'v BoundIdentifier<'a>,
ctx: &'v mut TraverseCtx<'a>,
}

impl<'a, 'b> ConstructorBodyThisAfterSuperInserter<'a, 'b> {
fn new(this_var_binding: &'b BoundIdentifier<'a>, ctx: &'b mut TraverseCtx<'a>) -> Self {
impl<'a, 'v> ConstructorBodyThisAfterSuperInserter<'a, 'v> {
fn new(this_var_binding: &'v BoundIdentifier<'a>, ctx: &'v mut TraverseCtx<'a>) -> Self {
Self { this_var_binding, ctx }
}

Expand Down

0 comments on commit 9127571

Please sign in to comment.