mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
refactor(transformer): shorter code in TS namespace transform (#3478)
Small refactor to shorten code.
This commit is contained in:
parent
7e7b4526ba
commit
7f7b5ea9e8
1 changed files with 1 additions and 5 deletions
|
|
@ -83,12 +83,8 @@ impl<'a> TypeScript<'a> {
|
||||||
SPAN,
|
SPAN,
|
||||||
declaration,
|
declaration,
|
||||||
);
|
);
|
||||||
let export_named_decl =
|
|
||||||
ModuleDeclaration::ExportNamedDeclaration(
|
|
||||||
export_named_decl,
|
|
||||||
);
|
|
||||||
let stmt =
|
let stmt =
|
||||||
self.ctx.ast.module_declaration(export_named_decl);
|
Statement::ExportNamedDeclaration(export_named_decl);
|
||||||
new_stmts.push(stmt);
|
new_stmts.push(stmt);
|
||||||
}
|
}
|
||||||
new_stmts.push(transformed_stmt);
|
new_stmts.push(transformed_stmt);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue