mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
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:
1 parent
8e7b68506f
commit
dd5069162a
1 file changed
+3
-1
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user