Get rid of the concept of 'isDefaultLib'.

This commit is contained in:
Daniel Rosenwasser 2015-11-09 14:40:57 -08:00
parent 8a959ead4c
commit cece4411ca
3 changed files with 1 additions and 7 deletions

View file

@ -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 '/// <reference no-default-lib="true"/>',
// then we should treat that file as a default lib.
if (compilerOptions.noLib && node.hasNoDefaultLib) {
if (node.hasNoDefaultLib) {
return;
}
}

View file

@ -835,7 +835,6 @@ namespace ts {
processImportedModules(file, basePath);
if (isDefaultLib) {
file.isDefaultLib = true;
files.unshift(file);
}
else {

View file

@ -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<string>;
/* @internal */ nodeCount: number;
/* @internal */ identifierCount: number;