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).
Joe Savona committed
Apr 26, 2023 at 11:27 UTC
dd5069162a042731411b48a20f7397d0bbcda2b8
1 file changed
+3
-1
compiler/forget/src/HIR/BuildHIR.ts
+3
-1
@@ -880,6 +880,9 @@ function lowerStatement(
880
});
881
return;
882
}
883
+ case "EmptyStatement": {
884
+ return;
885
+ }
886
case "ForInStatement":
887
case "ClassDeclaration":
888
case "DeclareClass":
@@ -892,7 +895,6 @@ function lowerStatement(
895
case "DeclareOpaqueType":
896
case "DeclareTypeAlias":
897
case "DeclareVariable":
895
- case "EmptyStatement":
898
case "EnumDeclaration":
899
case "ExportAllDeclaration":
900
case "ExportDefaultDeclaration":