Get rid of the concept of 'isDefaultLib'.
This commit is contained in:
parent
8a959ead4c
commit
cece4411ca
3 changed files with 1 additions and 7 deletions
|
@ -14059,13 +14059,9 @@ namespace ts {
|
||||||
// Check whether the file has declared it is the default lib,
|
// Check whether the file has declared it is the default lib,
|
||||||
// and whether the user has specifically chosen to avoid checking it.
|
// and whether the user has specifically chosen to avoid checking it.
|
||||||
if (compilerOptions.skipDefaultLibCheck) {
|
if (compilerOptions.skipDefaultLibCheck) {
|
||||||
if (node.isDefaultLib) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// If the user specified '--noLib' and a file has a '/// <reference no-default-lib="true"/>',
|
// 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.
|
// then we should treat that file as a default lib.
|
||||||
if (compilerOptions.noLib && node.hasNoDefaultLib) {
|
if (node.hasNoDefaultLib) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -835,7 +835,6 @@ namespace ts {
|
||||||
processImportedModules(file, basePath);
|
processImportedModules(file, basePath);
|
||||||
|
|
||||||
if (isDefaultLib) {
|
if (isDefaultLib) {
|
||||||
file.isDefaultLib = true;
|
|
||||||
files.unshift(file);
|
files.unshift(file);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -1285,7 +1285,6 @@ namespace ts {
|
||||||
// The first node that causes this file to be an external module
|
// The first node that causes this file to be an external module
|
||||||
/* @internal */ externalModuleIndicator: Node;
|
/* @internal */ externalModuleIndicator: Node;
|
||||||
|
|
||||||
/* @internal */ isDefaultLib: boolean;
|
|
||||||
/* @internal */ identifiers: Map<string>;
|
/* @internal */ identifiers: Map<string>;
|
||||||
/* @internal */ nodeCount: number;
|
/* @internal */ nodeCount: number;
|
||||||
/* @internal */ identifierCount: number;
|
/* @internal */ identifierCount: number;
|
||||||
|
|
Loading…
Reference in a new issue