Skip to content

Commit cece441

Browse files
Get rid of the concept of 'isDefaultLib'.
1 parent 8a959ea commit cece441

3 files changed

Lines changed: 1 addition & 7 deletions

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14059,13 +14059,9 @@ namespace ts {
1405914059
// Check whether the file has declared it is the default lib,
1406014060
// and whether the user has specifically chosen to avoid checking it.
1406114061
if (compilerOptions.skipDefaultLibCheck) {
14062-
if (node.isDefaultLib) {
14063-
return;
14064-
}
14065-
1406614062
// If the user specified '--noLib' and a file has a '/// <reference no-default-lib="true"/>',
1406714063
// then we should treat that file as a default lib.
14068-
if (compilerOptions.noLib && node.hasNoDefaultLib) {
14064+
if (node.hasNoDefaultLib) {
1406914065
return;
1407014066
}
1407114067
}

src/compiler/program.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,6 @@ namespace ts {
835835
processImportedModules(file, basePath);
836836

837837
if (isDefaultLib) {
838-
file.isDefaultLib = true;
839838
files.unshift(file);
840839
}
841840
else {

src/compiler/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,6 @@ namespace ts {
12851285
// The first node that causes this file to be an external module
12861286
/* @internal */ externalModuleIndicator: Node;
12871287

1288-
/* @internal */ isDefaultLib: boolean;
12891288
/* @internal */ identifiers: Map<string>;
12901289
/* @internal */ nodeCount: number;
12911290
/* @internal */ identifierCount: number;

0 commit comments

Comments
 (0)