Diagnostics for expression_compiler

This commit is contained in:
Andrew Morris
2023-02-21 13:02:17 +11:00
parent e4cd05c634
commit 58ddce654a
3 changed files with 718 additions and 355 deletions

View File

@@ -5,7 +5,7 @@ declare const Debug: {
export default function main() {
let triNum = 0;
for (let i = 1; ; i++) {
for (let i = 1;; i++) {
triNum += i;
const factorCount = countFactors(triNum);

File diff suppressed because it is too large Load Diff

View File

@@ -58,7 +58,7 @@ impl FunctionCompiler {
};
}
fn todo(&mut self, span: swc_common::Span, message: &str) {
pub fn todo(&mut self, span: swc_common::Span, message: &str) {
self.diagnostics.push(Diagnostic {
level: DiagnosticLevel::InternalError,
message: format!("TODO: {}", message),