mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
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:
parent
45eb35434d
commit
37199a4cd6
1 changed files with 5 additions and 5 deletions
|
|
@ -1119,13 +1119,13 @@ impl<'a> ArrowFunctionConverter<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Visitor for inserting `this` after `super` in constructor body.
|
/// Visitor for inserting `this` after `super` in constructor body.
|
||||||
struct ConstructorBodyThisAfterSuperInserter<'a, 'arrow> {
|
struct ConstructorBodyThisAfterSuperInserter<'a, 'v> {
|
||||||
this_var_binding: &'arrow BoundIdentifier<'a>,
|
this_var_binding: &'v BoundIdentifier<'a>,
|
||||||
ctx: &'arrow mut TraverseCtx<'a>,
|
ctx: &'v mut TraverseCtx<'a>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, 'b> ConstructorBodyThisAfterSuperInserter<'a, 'b> {
|
impl<'a, 'v> ConstructorBodyThisAfterSuperInserter<'a, 'v> {
|
||||||
fn new(this_var_binding: &'b BoundIdentifier<'a>, ctx: &'b mut TraverseCtx<'a>) -> Self {
|
fn new(this_var_binding: &'v BoundIdentifier<'a>, ctx: &'v mut TraverseCtx<'a>) -> Self {
|
||||||
Self { this_var_binding, ctx }
|
Self { this_var_binding, ctx }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue