From cece4411ca7169a1cbdbe63cb6ed747f69c03b2c Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Mon, 9 Nov 2015 14:40:57 -0800 Subject: [PATCH] Get rid of the concept of 'isDefaultLib'. --- src/compiler/checker.ts | 6 +----- src/compiler/program.ts | 1 - src/compiler/types.ts | 1 - 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 9b0c5d3468..c302d71025 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -14059,13 +14059,9 @@ namespace ts { // Check whether the file has declared it is the default lib, // and whether the user has specifically chosen to avoid checking it. if (compilerOptions.skipDefaultLibCheck) { - if (node.isDefaultLib) { - return; - } - // If the user specified '--noLib' and a file has a '/// ', // then we should treat that file as a default lib. - if (compilerOptions.noLib && node.hasNoDefaultLib) { + if (node.hasNoDefaultLib) { return; } } diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 4822a86b52..a4fce102c6 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -835,7 +835,6 @@ namespace ts { processImportedModules(file, basePath); if (isDefaultLib) { - file.isDefaultLib = true; files.unshift(file); } else { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index f536a1e469..d10010bc81 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -1285,7 +1285,6 @@ namespace ts { // The first node that causes this file to be an external module /* @internal */ externalModuleIndicator: Node; - /* @internal */ isDefaultLib: boolean; /* @internal */ identifiers: Map; /* @internal */ nodeCount: number; /* @internal */ identifierCount: number;