refactor(transformer/arrow-functions): rename lifetime (#8319)

Follow-on after #8024. Pure refactor. Rename lifetime to `'v` ("v" for visitor).
This commit is contained in:
overlookmotel 2025-01-08 01:52:43 +00:00
parent 45eb35434d
commit 37199a4cd6

View file

@ -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 }
}