mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
refactor(transformer/typescript): pass &mut T not &mut ArenaBox<T> (#7000)
`&mut ArenaBox<T>` is a double-reference. `&mut T` is shorter and easier to read.
This commit is contained in:
parent
c945fe71b3
commit
ae226710f2
1 changed files with 1 additions and 2 deletions
|
|
@ -1,4 +1,3 @@
|
|||
use oxc_allocator::Box as ArenaBox;
|
||||
use oxc_ast::{ast::*, NONE};
|
||||
use oxc_span::SPAN;
|
||||
use oxc_syntax::reference::ReferenceFlags;
|
||||
|
|
@ -51,7 +50,7 @@ impl<'a, 'ctx> Traverse<'a> for TypeScriptModule<'a, 'ctx> {
|
|||
impl<'a, 'ctx> TypeScriptModule<'a, 'ctx> {
|
||||
fn transform_ts_import_equals(
|
||||
&self,
|
||||
decl: &mut ArenaBox<'a, TSImportEqualsDeclaration<'a>>,
|
||||
decl: &mut TSImportEqualsDeclaration<'a>,
|
||||
ctx: &mut TraverseCtx<'a>,
|
||||
) -> Declaration<'a> {
|
||||
let kind = VariableDeclarationKind::Var;
|
||||
|
|
|
|||
Loading…
Reference in a new issue