2021-01-11 12:13:41 -05:00
|
|
|
// Copyright 2018-2021 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.
|
|
|
|
|
|
|
|
((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);
|