2023-01-02 16:00:42 -05:00
|
|
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
2020-07-19 13:49:44 -04:00
|
|
|
|
|
|
|
// Diagnostic provides an abstraction for advice/errors received from a
|
|
|
|
// compiler, which is strongly influenced by the format of TypeScript
|
|
|
|
// diagnostics.
|
2021-02-04 17:18:32 -05:00
|
|
|
"use strict";
|
2020-07-19 13:49:44 -04:00
|
|
|
|
|
|
|
((window) => {
|
|
|
|
const DiagnosticCategory = {
|
2020-09-12 05:53:57 -04:00
|
|
|
0: "Warning",
|
|
|
|
1: "Error",
|
|
|
|
2: "Suggestion",
|
|
|
|
3: "Message",
|
2020-07-19 13:49:44 -04:00
|
|
|
|
2020-09-12 05:53:57 -04:00
|
|
|
Warning: 0,
|
|
|
|
Error: 1,
|
|
|
|
Suggestion: 2,
|
|
|
|
Message: 3,
|
2020-07-19 13:49:44 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
window.__bootstrap.diagnostics = {
|
|
|
|
DiagnosticCategory,
|
|
|
|
};
|
|
|
|
})(this);
|