Prototype implementation of umdExport/umdGlobal

This commit is contained in:
Ron Buckton
2020-08-11 19:10:20 -07:00
parent 57e2fe0462
commit abfcdc268c
14 changed files with 401 additions and 60 deletions

View File

@@ -8,6 +8,7 @@ interface DiagnosticDetails {
reportsDeprecated?: {};
isEarly?: boolean;
elidedInCompatabilityPyramid?: boolean;
retired?: boolean; // indicates the code has been retired and is present only to prevent reuse
}
type InputDiagnosticMessageTable = Map<string, DiagnosticDetails>;
@@ -34,6 +35,7 @@ function main(): void {
const diagnosticMessages: InputDiagnosticMessageTable = new Map();
for (const key in diagnosticMessagesJson) {
if (Object.hasOwnProperty.call(diagnosticMessagesJson, key)) {
if (diagnosticMessagesJson[key].retired) continue;
diagnosticMessages.set(key, diagnosticMessagesJson[key]);
}
}