Ignore empty statements

This commit is contained in:
Andrew Morris
2023-03-07 10:09:56 +11:00
parent be9b078864
commit 19904c41ec

View File

@@ -244,13 +244,7 @@ impl ModuleCompiler {
span: block.span,
});
}
Stmt::Empty(empty) => {
self.diagnostics.push(Diagnostic {
level: DiagnosticLevel::InternalError,
message: "TODO: module level Empty statement".to_string(),
span: empty.span,
});
}
Stmt::Empty(_) => {}
Stmt::Debugger(debugger) => {
self.diagnostics.push(Diagnostic {
level: DiagnosticLevel::InternalError,
@@ -450,13 +444,7 @@ impl ModuleCompiler {
span: block.span,
});
}
Empty(empty) => {
self.diagnostics.push(Diagnostic {
level: DiagnosticLevel::InternalError,
message: "TODO: module level Empty statement".to_string(),
span: empty.span,
});
}
Empty(_) => {}
Debugger(debugger) => {
self.diagnostics.push(Diagnostic {
level: DiagnosticLevel::InternalError,