mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
parent
851318b413
commit
8e089a9f2d
1 changed files with 2 additions and 2 deletions
|
|
@ -292,7 +292,7 @@ impl<'a> TypeScript<'a> {
|
|||
// ^^^^^^^
|
||||
fn create_variable_declaration(&self, name: &Atom<'a>) -> Declaration<'a> {
|
||||
let kind = VariableDeclarationKind::Let;
|
||||
let declarator = {
|
||||
let declarations = {
|
||||
let ident = BindingIdentifier::new(SPAN, name.clone());
|
||||
let pattern_kind = self.ctx.ast.binding_pattern_identifier(ident);
|
||||
let binding = self.ctx.ast.binding_pattern(pattern_kind, None, false);
|
||||
|
|
@ -302,7 +302,7 @@ impl<'a> TypeScript<'a> {
|
|||
Declaration::VariableDeclaration(self.ctx.ast.variable_declaration(
|
||||
SPAN,
|
||||
kind,
|
||||
declarator,
|
||||
declarations,
|
||||
Modifiers::empty(),
|
||||
))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue