File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ booleanMaybe = functionDeclaration.async;
279279
280280var variableDeclaration : ESTree . VariableDeclaration ;
281281var declarations : ESTree . VariableDeclarator [ ] = variableDeclaration . declarations ;
282- string = variableDeclaration . kind ; // "var" | "let" | "const"
282+ string = variableDeclaration . kind ; // "var" | "let" | "const" | "using" | "await using"
283283
284284var variableDeclarator : ESTree . VariableDeclarator ;
285285pattern = variableDeclarator . id ; // Pattern
@@ -908,3 +908,14 @@ switch (exportDefaultDeclaration.declaration.type) {
908908 default :
909909 never = exportDefaultDeclaration . declaration ;
910910}
911+
912+ switch ( variableDeclaration . kind ) {
913+ case "var" :
914+ case "let" :
915+ case "const" :
916+ case "using" :
917+ case "await using" :
918+ break ;
919+ default :
920+ never = variableDeclaration . kind ;
921+ }
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ export interface FunctionDeclaration extends MaybeNamedFunctionDeclaration {
247247export interface VariableDeclaration extends BaseDeclaration {
248248 type : "VariableDeclaration" ;
249249 declarations : VariableDeclarator [ ] ;
250- kind : "var" | "let" | "const" ;
250+ kind : "var" | "let" | "const" | "using" | "await using" ;
251251}
252252
253253export interface VariableDeclarator extends BaseNode {
You can’t perform that action at this time.
0 commit comments