From ea532679560bb0bd0ae76e9dde4611b595a3ea28 Mon Sep 17 00:00:00 2001 From: Dunqing <29533304+Dunqing@users.noreply.github.com> Date: Fri, 31 May 2024 11:15:37 +0000 Subject: [PATCH] fix(ast): UsingDeclaration is not a typescript syntax (#3482) --- crates/oxc_ast/src/ast/js.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/oxc_ast/src/ast/js.rs b/crates/oxc_ast/src/ast/js.rs index a11963b0b..c70e73a47 100644 --- a/crates/oxc_ast/src/ast/js.rs +++ b/crates/oxc_ast/src/ast/js.rs @@ -1627,6 +1627,7 @@ impl<'a> Declaration<'a> { Self::VariableDeclaration(decl) => decl.is_typescript_syntax(), Self::FunctionDeclaration(func) => func.is_typescript_syntax(), Self::ClassDeclaration(class) => class.is_typescript_syntax(), + Self::UsingDeclaration(_) => false, _ => true, } }