mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +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> {
|
fn create_variable_declaration(&self, name: &Atom<'a>) -> Declaration<'a> {
|
||||||
let kind = VariableDeclarationKind::Let;
|
let kind = VariableDeclarationKind::Let;
|
||||||
let declarator = {
|
let declarations = {
|
||||||
let ident = BindingIdentifier::new(SPAN, name.clone());
|
let ident = BindingIdentifier::new(SPAN, name.clone());
|
||||||
let pattern_kind = self.ctx.ast.binding_pattern_identifier(ident);
|
let pattern_kind = self.ctx.ast.binding_pattern_identifier(ident);
|
||||||
let binding = self.ctx.ast.binding_pattern(pattern_kind, None, false);
|
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(
|
Declaration::VariableDeclaration(self.ctx.ast.variable_declaration(
|
||||||
SPAN,
|
SPAN,
|
||||||
kind,
|
kind,
|
||||||
declarator,
|
declarations,
|
||||||
Modifiers::empty(),
|
Modifiers::empty(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue