8
8
addSyntheticLeadingComment,
9
9
AliasDeclarationNode,
10
10
AllAccessorDeclarations,
11
+ AllScriptTargetFeatures,
11
12
AmbientModuleDeclaration,
12
13
and,
13
14
AnonymousType,
@@ -344,7 +345,6 @@ import {
344
345
getResolveJsonModule,
345
346
getRestParameterElementType,
346
347
getRootDeclaration,
347
- getScriptTargetFeatures,
348
348
getSelectedEffectiveModifierFlags,
349
349
getSemanticJsxChildren,
350
350
getSetAccessorValueParameter,
@@ -32377,8 +32377,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
32377
32377
32378
32378
function getSuggestedLibForNonExistentName(name: __String | Identifier) {
32379
32379
const missingName = diagnosticName(name);
32380
- const allFeatures = getScriptTargetFeatures();
32381
- const typeFeatures = allFeatures.get(missingName);
32380
+ const typeFeatures = AllScriptTargetFeatures.get(missingName);
32382
32381
return typeFeatures && firstIterator(typeFeatures.keys());
32383
32382
}
32384
32383
@@ -32388,8 +32387,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
32388
32387
return undefined;
32389
32388
}
32390
32389
const containingTypeName = symbolName(container);
32391
- const allFeatures = getScriptTargetFeatures();
32392
- const typeFeatures = allFeatures.get(containingTypeName);
32390
+ const typeFeatures = AllScriptTargetFeatures.get(containingTypeName);
32393
32391
if (typeFeatures) {
32394
32392
for (const [libTarget, featuresOfType] of typeFeatures) {
32395
32393
if (contains(featuresOfType, missingProperty)) {
0 commit comments