This page left intentionally blank

Supports EmptyStatement nodes by ignoring them. Note no tests because 
format-on-save clears away any empty statements and there is, rather 
frustratingly, no way to tell VSCode not to format on save for a specific file 
via the file contents itself or project configuration (at least, not that i can 
find).
This commit is contained in:
Joe Savona
2023-04-26 11:27:38 -07:00
parent 8e7b68506f
commit dd5069162a
+3 -1
View File
@@ -880,6 +880,9 @@ function lowerStatement(
});
return;
}
case "EmptyStatement": {
return;
}
case "ForInStatement":
case "ClassDeclaration":
case "DeclareClass":
@@ -892,7 +895,6 @@ function lowerStatement(
case "DeclareOpaqueType":
case "DeclareTypeAlias":
case "DeclareVariable":
case "EmptyStatement":
case "EnumDeclaration":
case "ExportAllDeclaration":
case "ExportDefaultDeclaration":