mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(ast): UsingDeclaration is not a typescript syntax (#3482)
This commit is contained in:
parent
9dc58d582d
commit
ea53267956
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue