From 37199a4cd65d77d71992d10d0d66108a9b680e0f Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Wed, 8 Jan 2025 01:52:43 +0000 Subject: [PATCH] refactor(transformer/arrow-functions): rename lifetime (#8319) Follow-on after #8024. Pure refactor. Rename lifetime to `'v` ("v" for visitor). --- .../src/common/arrow_function_converter.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/oxc_transformer/src/common/arrow_function_converter.rs b/crates/oxc_transformer/src/common/arrow_function_converter.rs index 4a869757b12b9..c5a45f2fe4294 100644 --- a/crates/oxc_transformer/src/common/arrow_function_converter.rs +++ b/crates/oxc_transformer/src/common/arrow_function_converter.rs @@ -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 } }