typescript 4.5.0-dev.20211026 → 4.5.0-dev.20211027

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tsc.js CHANGED
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.5";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20211026";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20211027";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  function tryGetNativeMap() {
@@ -49233,7 +49233,7 @@ var ts;
49233
49233
  var _loop_16 = function () {
49234
49234
  i--;
49235
49235
  var t = types[i];
49236
- if (t.flags & 128 && ts.some(templates, function (template) { return isTypeSubtypeOf(t, template); })) {
49236
+ if (t.flags & 128 && ts.some(templates, function (template) { return isTypeMatchedByTemplateLiteralType(t, template); })) {
49237
49237
  ts.orderedRemoveItemAt(types, i);
49238
49238
  }
49239
49239
  };
@@ -52558,10 +52558,11 @@ var ts;
52558
52558
  traceUnionsOrIntersectionsTooLarge(source, target);
52559
52559
  var result = 0;
52560
52560
  var saveErrorInfo = captureErrorCalculationState();
52561
- if (source.flags & 3145728 || target.flags & 3145728) {
52562
- result = getConstituentCount(source) * getConstituentCount(target) >= 4 ?
52563
- recursiveTypeRelatedTo(source, target, reportErrors, intersectionState | 8, recursionFlags) :
52564
- structuredTypeRelatedTo(source, target, reportErrors, intersectionState | 8);
52561
+ if ((source.flags & 1048576 || target.flags & 1048576) && getConstituentCount(source) * getConstituentCount(target) < 4) {
52562
+ result = structuredTypeRelatedTo(source, target, reportErrors, intersectionState | 8);
52563
+ }
52564
+ else if (source.flags & 3145728 || target.flags & 3145728) {
52565
+ result = recursiveTypeRelatedTo(source, target, reportErrors, intersectionState | 8, recursionFlags);
52565
52566
  }
52566
52567
  if (!result && !(source.flags & 1048576) && (source.flags & (469499904) || target.flags & 469499904)) {
52567
52568
  if (result = recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags)) {
@@ -52941,19 +52942,19 @@ var ts;
52941
52942
  var maybeStart = maybeCount;
52942
52943
  maybeKeys[maybeCount] = id;
52943
52944
  maybeCount++;
52945
+ var saveExpandingFlags = expandingFlags;
52944
52946
  if (recursionFlags & 1) {
52945
52947
  sourceStack[sourceDepth] = source;
52946
52948
  sourceDepth++;
52949
+ if (!(expandingFlags & 1) && isDeeplyNestedType(source, sourceStack, sourceDepth))
52950
+ expandingFlags |= 1;
52947
52951
  }
52948
52952
  if (recursionFlags & 2) {
52949
52953
  targetStack[targetDepth] = target;
52950
52954
  targetDepth++;
52955
+ if (!(expandingFlags & 2) && isDeeplyNestedType(target, targetStack, targetDepth))
52956
+ expandingFlags |= 2;
52951
52957
  }
52952
- var saveExpandingFlags = expandingFlags;
52953
- if (!(expandingFlags & 1) && isDeeplyNestedType(source, sourceStack, sourceDepth))
52954
- expandingFlags |= 1;
52955
- if (!(expandingFlags & 2) && isDeeplyNestedType(target, targetStack, targetDepth))
52956
- expandingFlags |= 2;
52957
52958
  var originalHandler;
52958
52959
  var propagatingVarianceFlags = 0;
52959
52960
  if (outofbandVarianceMarkerHandler) {
@@ -52977,13 +52978,13 @@ var ts;
52977
52978
  if (outofbandVarianceMarkerHandler) {
52978
52979
  outofbandVarianceMarkerHandler = originalHandler;
52979
52980
  }
52980
- expandingFlags = saveExpandingFlags;
52981
52981
  if (recursionFlags & 1) {
52982
52982
  sourceDepth--;
52983
52983
  }
52984
52984
  if (recursionFlags & 2) {
52985
52985
  targetDepth--;
52986
52986
  }
52987
+ expandingFlags = saveExpandingFlags;
52987
52988
  if (result) {
52988
52989
  if (result === -1 || (sourceDepth === 0 && targetDepth === 0)) {
52989
52990
  if (result === -1 || result === 3) {
@@ -53238,8 +53239,7 @@ var ts;
53238
53239
  }
53239
53240
  instantiateType(source, makeFunctionTypeMapper(reportUnreliableMarkers));
53240
53241
  }
53241
- var result_9 = inferTypesFromTemplateLiteralType(source, target);
53242
- if (result_9 && ts.every(result_9, function (r, i) { return isValidTypeForTemplateLiteralPlaceholder(r, target.types[i]); })) {
53242
+ if (isTypeMatchedByTemplateLiteralType(source, target)) {
53243
53243
  return -1;
53244
53244
  }
53245
53245
  }
@@ -53399,9 +53399,9 @@ var ts;
53399
53399
  if (source.flags & (524288 | 2097152) && target.flags & 1048576) {
53400
53400
  var objectOnlyTarget = extractTypesOfKind(target, 524288 | 2097152 | 33554432);
53401
53401
  if (objectOnlyTarget.flags & 1048576) {
53402
- var result_10 = typeRelatedToDiscriminatedType(source, objectOnlyTarget);
53403
- if (result_10) {
53404
- return result_10;
53402
+ var result_9 = typeRelatedToDiscriminatedType(source, objectOnlyTarget);
53403
+ if (result_9) {
53404
+ return result_9;
53405
53405
  }
53406
53406
  }
53407
53407
  }
@@ -53448,13 +53448,13 @@ var ts;
53448
53448
  var modifiersRelated = relation === comparableRelation || (relation === identityRelation ? getMappedTypeModifiers(source) === getMappedTypeModifiers(target) :
53449
53449
  getCombinedMappedTypeOptionality(source) <= getCombinedMappedTypeOptionality(target));
53450
53450
  if (modifiersRelated) {
53451
- var result_11;
53451
+ var result_10;
53452
53452
  var targetConstraint = getConstraintTypeFromMappedType(target);
53453
53453
  var sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source), makeFunctionTypeMapper(getCombinedMappedTypeOptionality(source) < 0 ? reportUnmeasurableMarkers : reportUnreliableMarkers));
53454
- if (result_11 = isRelatedTo(targetConstraint, sourceConstraint, 3, reportErrors)) {
53454
+ if (result_10 = isRelatedTo(targetConstraint, sourceConstraint, 3, reportErrors)) {
53455
53455
  var mapper = createTypeMapper([getTypeParameterFromMappedType(source)], [getTypeParameterFromMappedType(target)]);
53456
53456
  if (instantiateType(getNameTypeFromMappedType(source), mapper) === instantiateType(getNameTypeFromMappedType(target), mapper)) {
53457
- return result_11 & isRelatedTo(instantiateType(getTemplateTypeFromMappedType(source), mapper), getTemplateTypeFromMappedType(target), 3, reportErrors);
53457
+ return result_10 & isRelatedTo(instantiateType(getTemplateTypeFromMappedType(source), mapper), getTemplateTypeFromMappedType(target), 3, reportErrors);
53458
53458
  }
53459
53459
  }
53460
53460
  }
@@ -55288,6 +55288,10 @@ var ts;
55288
55288
  inferFromLiteralPartsToTemplateLiteral(source.texts, source.types, target) :
55289
55289
  undefined;
55290
55290
  }
55291
+ function isTypeMatchedByTemplateLiteralType(source, target) {
55292
+ var inferences = inferTypesFromTemplateLiteralType(source, target);
55293
+ return !!inferences && ts.every(inferences, function (r, i) { return isValidTypeForTemplateLiteralPlaceholder(r, target.types[i]); });
55294
+ }
55291
55295
  function getStringLikeTypeForType(type) {
55292
55296
  return type.flags & (1 | 402653316) ? type : getTemplateLiteralType(["", ""], [type]);
55293
55297
  }
@@ -56641,7 +56645,7 @@ var ts;
56641
56645
  mapType(type, mapper);
56642
56646
  }
56643
56647
  function getConstituentCount(type) {
56644
- return type.flags & 3145728 ? type.types.length : 1;
56648
+ return type.flags & 1048576 ? type.types.length : 1;
56645
56649
  }
56646
56650
  function extractTypesOfKind(type, kind) {
56647
56651
  return filterType(type, function (t) { return (t.flags & kind) !== 0; });
@@ -57927,7 +57931,7 @@ var ts;
57927
57931
  return parent.kind === 205 ||
57928
57932
  parent.kind === 207 && parent.expression === node ||
57929
57933
  parent.kind === 206 && parent.expression === node &&
57930
- !(isGenericTypeWithoutNullableConstraint(type) && isGenericIndexType(getTypeOfExpression(parent.argumentExpression)));
57934
+ !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression(parent.argumentExpression)));
57931
57935
  }
57932
57936
  function isGenericTypeWithUnionConstraint(type) {
57933
57937
  return !!(type.flags & 465829888 && getBaseConstraintOrType(type).flags & (98304 | 1048576));
@@ -66056,12 +66060,12 @@ var ts;
66056
66060
  case 264:
66057
66061
  case 267:
66058
66062
  case 266:
66059
- var result_12 = 0;
66063
+ var result_11 = 0;
66060
66064
  var target = resolveAlias(getSymbolOfNode(d));
66061
66065
  ts.forEach(target.declarations, function (d) {
66062
- result_12 |= getDeclarationSpaces(d);
66066
+ result_11 |= getDeclarationSpaces(d);
66063
66067
  });
66064
- return result_12;
66068
+ return result_11;
66065
66069
  case 253:
66066
66070
  case 202:
66067
66071
  case 255:
@@ -79301,8 +79305,8 @@ var ts;
79301
79305
  function convertJsxChildrenToChildrenPropAssignment(children) {
79302
79306
  var nonWhitespaceChildren = ts.getSemanticJsxChildren(children);
79303
79307
  if (ts.length(nonWhitespaceChildren) === 1) {
79304
- var result_13 = transformJsxChildToExpression(nonWhitespaceChildren[0]);
79305
- return result_13 && factory.createPropertyAssignment("children", result_13);
79308
+ var result_12 = transformJsxChildToExpression(nonWhitespaceChildren[0]);
79309
+ return result_12 && factory.createPropertyAssignment("children", result_12);
79306
79310
  }
79307
79311
  var result = ts.mapDefined(children, transformJsxChildToExpression);
79308
79312
  return ts.length(result) ? factory.createPropertyAssignment("children", factory.createArrayLiteralExpression(result)) : undefined;
@@ -93806,15 +93810,15 @@ var ts;
93806
93810
  }
93807
93811
  var oldSourceFile = oldProgram && oldProgram.getSourceFile(file.fileName);
93808
93812
  if (oldSourceFile !== file && file.resolvedModules) {
93809
- var result_14 = [];
93813
+ var result_13 = [];
93810
93814
  var i = 0;
93811
93815
  for (var _i = 0, moduleNames_1 = moduleNames; _i < moduleNames_1.length; _i++) {
93812
93816
  var moduleName = moduleNames_1[_i];
93813
93817
  var resolvedModule = file.resolvedModules.get(moduleName, getModeForResolutionAtIndex(file, i));
93814
93818
  i++;
93815
- result_14.push(resolvedModule);
93819
+ result_13.push(resolvedModule);
93816
93820
  }
93817
- return result_14;
93821
+ return result_13;
93818
93822
  }
93819
93823
  var unknownModuleNames;
93820
93824
  var result;
@@ -98144,9 +98148,9 @@ var ts;
98144
98148
  var targets = importedFileNames.map(function (f) { return ts.getNormalizedAbsolutePath(f, cwd); });
98145
98149
  var shouldFilterIgnoredPaths = !ts.every(targets, ts.containsIgnoredPath);
98146
98150
  if (!preferSymlinks) {
98147
- var result_15 = ts.forEach(targets, function (p) { return !(shouldFilterIgnoredPaths && ts.containsIgnoredPath(p)) && cb(p, referenceRedirect === p); });
98148
- if (result_15)
98149
- return result_15;
98151
+ var result_14 = ts.forEach(targets, function (p) { return !(shouldFilterIgnoredPaths && ts.containsIgnoredPath(p)) && cb(p, referenceRedirect === p); });
98152
+ if (result_14)
98153
+ return result_14;
98150
98154
  }
98151
98155
  var symlinkedDirectories = (_a = host.getSymlinkCache) === null || _a === void 0 ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath();
98152
98156
  var fullImportedFileName = ts.getNormalizedAbsolutePath(importedFileName, cwd);
@@ -98165,10 +98169,10 @@ var ts;
98165
98169
  for (var _i = 0, symlinkDirectories_1 = symlinkDirectories; _i < symlinkDirectories_1.length; _i++) {
98166
98170
  var symlinkDirectory = symlinkDirectories_1[_i];
98167
98171
  var option = ts.resolvePath(symlinkDirectory, relative);
98168
- var result_16 = cb(option, target === referenceRedirect);
98172
+ var result_15 = cb(option, target === referenceRedirect);
98169
98173
  shouldFilterIgnoredPaths = true;
98170
- if (result_16)
98171
- return result_16;
98174
+ if (result_15)
98175
+ return result_15;
98172
98176
  }
98173
98177
  });
98174
98178
  });
package/lib/tsserver.js CHANGED
@@ -100,7 +100,7 @@ var ts;
100
100
  // The following is baselined as a literal template type without intervention
101
101
  /** The version of the TypeScript compiler release */
102
102
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
103
- ts.version = ts.versionMajorMinor + ".0-dev.20211026";
103
+ ts.version = ts.versionMajorMinor + ".0-dev.20211027";
104
104
  /* @internal */
105
105
  var Comparison;
106
106
  (function (Comparison) {
@@ -59342,7 +59342,7 @@ var ts;
59342
59342
  var _loop_16 = function () {
59343
59343
  i--;
59344
59344
  var t = types[i];
59345
- if (t.flags & 128 /* StringLiteral */ && ts.some(templates, function (template) { return isTypeSubtypeOf(t, template); })) {
59345
+ if (t.flags & 128 /* StringLiteral */ && ts.some(templates, function (template) { return isTypeMatchedByTemplateLiteralType(t, template); })) {
59346
59346
  ts.orderedRemoveItemAt(types, i);
59347
59347
  }
59348
59348
  };
@@ -63075,13 +63075,12 @@ var ts;
63075
63075
  traceUnionsOrIntersectionsTooLarge(source, target);
63076
63076
  var result = 0 /* False */;
63077
63077
  var saveErrorInfo = captureErrorCalculationState();
63078
- // Note that these checks are specifically ordered to produce correct results. In particular,
63079
- // we need to deconstruct unions before intersections (because unions are always at the top),
63080
- // and we need to handle "each" relations before "some" relations for the same kind of type.
63081
- if (source.flags & 3145728 /* UnionOrIntersection */ || target.flags & 3145728 /* UnionOrIntersection */) {
63082
- result = getConstituentCount(source) * getConstituentCount(target) >= 4 ?
63083
- recursiveTypeRelatedTo(source, target, reportErrors, intersectionState | 8 /* UnionIntersectionCheck */, recursionFlags) :
63084
- structuredTypeRelatedTo(source, target, reportErrors, intersectionState | 8 /* UnionIntersectionCheck */);
63078
+ if ((source.flags & 1048576 /* Union */ || target.flags & 1048576 /* Union */) && getConstituentCount(source) * getConstituentCount(target) < 4) {
63079
+ // We skip caching when source or target is a union with no more than three constituents.
63080
+ result = structuredTypeRelatedTo(source, target, reportErrors, intersectionState | 8 /* UnionIntersectionCheck */);
63081
+ }
63082
+ else if (source.flags & 3145728 /* UnionOrIntersection */ || target.flags & 3145728 /* UnionOrIntersection */) {
63083
+ result = recursiveTypeRelatedTo(source, target, reportErrors, intersectionState | 8 /* UnionIntersectionCheck */, recursionFlags);
63085
63084
  }
63086
63085
  if (!result && !(source.flags & 1048576 /* Union */) && (source.flags & (469499904 /* StructuredOrInstantiable */) || target.flags & 469499904 /* StructuredOrInstantiable */)) {
63087
63086
  if (result = recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags)) {
@@ -63538,19 +63537,19 @@ var ts;
63538
63537
  var maybeStart = maybeCount;
63539
63538
  maybeKeys[maybeCount] = id;
63540
63539
  maybeCount++;
63540
+ var saveExpandingFlags = expandingFlags;
63541
63541
  if (recursionFlags & 1 /* Source */) {
63542
63542
  sourceStack[sourceDepth] = source;
63543
63543
  sourceDepth++;
63544
+ if (!(expandingFlags & 1 /* Source */) && isDeeplyNestedType(source, sourceStack, sourceDepth))
63545
+ expandingFlags |= 1 /* Source */;
63544
63546
  }
63545
63547
  if (recursionFlags & 2 /* Target */) {
63546
63548
  targetStack[targetDepth] = target;
63547
63549
  targetDepth++;
63550
+ if (!(expandingFlags & 2 /* Target */) && isDeeplyNestedType(target, targetStack, targetDepth))
63551
+ expandingFlags |= 2 /* Target */;
63548
63552
  }
63549
- var saveExpandingFlags = expandingFlags;
63550
- if (!(expandingFlags & 1 /* Source */) && isDeeplyNestedType(source, sourceStack, sourceDepth))
63551
- expandingFlags |= 1 /* Source */;
63552
- if (!(expandingFlags & 2 /* Target */) && isDeeplyNestedType(target, targetStack, targetDepth))
63553
- expandingFlags |= 2 /* Target */;
63554
63553
  var originalHandler;
63555
63554
  var propagatingVarianceFlags = 0;
63556
63555
  if (outofbandVarianceMarkerHandler) {
@@ -63574,13 +63573,13 @@ var ts;
63574
63573
  if (outofbandVarianceMarkerHandler) {
63575
63574
  outofbandVarianceMarkerHandler = originalHandler;
63576
63575
  }
63577
- expandingFlags = saveExpandingFlags;
63578
63576
  if (recursionFlags & 1 /* Source */) {
63579
63577
  sourceDepth--;
63580
63578
  }
63581
63579
  if (recursionFlags & 2 /* Target */) {
63582
63580
  targetDepth--;
63583
63581
  }
63582
+ expandingFlags = saveExpandingFlags;
63584
63583
  if (result) {
63585
63584
  if (result === -1 /* True */ || (sourceDepth === 0 && targetDepth === 0)) {
63586
63585
  if (result === -1 /* True */ || result === 3 /* Maybe */) {
@@ -63918,8 +63917,7 @@ var ts;
63918
63917
  // For example, `foo-${number}` is related to `foo-${string}` even though number isn't related to string.
63919
63918
  instantiateType(source, makeFunctionTypeMapper(reportUnreliableMarkers));
63920
63919
  }
63921
- var result_9 = inferTypesFromTemplateLiteralType(source, target);
63922
- if (result_9 && ts.every(result_9, function (r, i) { return isValidTypeForTemplateLiteralPlaceholder(r, target.types[i]); })) {
63920
+ if (isTypeMatchedByTemplateLiteralType(source, target)) {
63923
63921
  return -1 /* True */;
63924
63922
  }
63925
63923
  }
@@ -64114,9 +64112,9 @@ var ts;
64114
64112
  if (source.flags & (524288 /* Object */ | 2097152 /* Intersection */) && target.flags & 1048576 /* Union */) {
64115
64113
  var objectOnlyTarget = extractTypesOfKind(target, 524288 /* Object */ | 2097152 /* Intersection */ | 33554432 /* Substitution */);
64116
64114
  if (objectOnlyTarget.flags & 1048576 /* Union */) {
64117
- var result_10 = typeRelatedToDiscriminatedType(source, objectOnlyTarget);
64118
- if (result_10) {
64119
- return result_10;
64115
+ var result_9 = typeRelatedToDiscriminatedType(source, objectOnlyTarget);
64116
+ if (result_9) {
64117
+ return result_9;
64120
64118
  }
64121
64119
  }
64122
64120
  }
@@ -64188,13 +64186,13 @@ var ts;
64188
64186
  var modifiersRelated = relation === comparableRelation || (relation === identityRelation ? getMappedTypeModifiers(source) === getMappedTypeModifiers(target) :
64189
64187
  getCombinedMappedTypeOptionality(source) <= getCombinedMappedTypeOptionality(target));
64190
64188
  if (modifiersRelated) {
64191
- var result_11;
64189
+ var result_10;
64192
64190
  var targetConstraint = getConstraintTypeFromMappedType(target);
64193
64191
  var sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source), makeFunctionTypeMapper(getCombinedMappedTypeOptionality(source) < 0 ? reportUnmeasurableMarkers : reportUnreliableMarkers));
64194
- if (result_11 = isRelatedTo(targetConstraint, sourceConstraint, 3 /* Both */, reportErrors)) {
64192
+ if (result_10 = isRelatedTo(targetConstraint, sourceConstraint, 3 /* Both */, reportErrors)) {
64195
64193
  var mapper = createTypeMapper([getTypeParameterFromMappedType(source)], [getTypeParameterFromMappedType(target)]);
64196
64194
  if (instantiateType(getNameTypeFromMappedType(source), mapper) === instantiateType(getNameTypeFromMappedType(target), mapper)) {
64197
- return result_11 & isRelatedTo(instantiateType(getTemplateTypeFromMappedType(source), mapper), getTemplateTypeFromMappedType(target), 3 /* Both */, reportErrors);
64195
+ return result_10 & isRelatedTo(instantiateType(getTemplateTypeFromMappedType(source), mapper), getTemplateTypeFromMappedType(target), 3 /* Both */, reportErrors);
64198
64196
  }
64199
64197
  }
64200
64198
  }
@@ -66277,6 +66275,10 @@ var ts;
66277
66275
  inferFromLiteralPartsToTemplateLiteral(source.texts, source.types, target) :
66278
66276
  undefined;
66279
66277
  }
66278
+ function isTypeMatchedByTemplateLiteralType(source, target) {
66279
+ var inferences = inferTypesFromTemplateLiteralType(source, target);
66280
+ return !!inferences && ts.every(inferences, function (r, i) { return isValidTypeForTemplateLiteralPlaceholder(r, target.types[i]); });
66281
+ }
66280
66282
  function getStringLikeTypeForType(type) {
66281
66283
  return type.flags & (1 /* Any */ | 402653316 /* StringLike */) ? type : getTemplateLiteralType(["", ""], [type]);
66282
66284
  }
@@ -67812,7 +67814,7 @@ var ts;
67812
67814
  mapType(type, mapper);
67813
67815
  }
67814
67816
  function getConstituentCount(type) {
67815
- return type.flags & 3145728 /* UnionOrIntersection */ ? type.types.length : 1;
67817
+ return type.flags & 1048576 /* Union */ ? type.types.length : 1;
67816
67818
  }
67817
67819
  function extractTypesOfKind(type, kind) {
67818
67820
  return filterType(type, function (t) { return (t.flags & kind) !== 0; });
@@ -69310,7 +69312,7 @@ var ts;
69310
69312
  return parent.kind === 205 /* PropertyAccessExpression */ ||
69311
69313
  parent.kind === 207 /* CallExpression */ && parent.expression === node ||
69312
69314
  parent.kind === 206 /* ElementAccessExpression */ && parent.expression === node &&
69313
- !(isGenericTypeWithoutNullableConstraint(type) && isGenericIndexType(getTypeOfExpression(parent.argumentExpression)));
69315
+ !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression(parent.argumentExpression)));
69314
69316
  }
69315
69317
  function isGenericTypeWithUnionConstraint(type) {
69316
69318
  return !!(type.flags & 465829888 /* Instantiable */ && getBaseConstraintOrType(type).flags & (98304 /* Nullable */ | 1048576 /* Union */));
@@ -78739,12 +78741,12 @@ var ts;
78739
78741
  case 264 /* ImportEqualsDeclaration */:
78740
78742
  case 267 /* NamespaceImport */:
78741
78743
  case 266 /* ImportClause */:
78742
- var result_12 = 0 /* None */;
78744
+ var result_11 = 0 /* None */;
78743
78745
  var target = resolveAlias(getSymbolOfNode(d));
78744
78746
  ts.forEach(target.declarations, function (d) {
78745
- result_12 |= getDeclarationSpaces(d);
78747
+ result_11 |= getDeclarationSpaces(d);
78746
78748
  });
78747
- return result_12;
78749
+ return result_11;
78748
78750
  case 253 /* VariableDeclaration */:
78749
78751
  case 202 /* BindingElement */:
78750
78752
  case 255 /* FunctionDeclaration */:
@@ -94917,8 +94919,8 @@ var ts;
94917
94919
  function convertJsxChildrenToChildrenPropAssignment(children) {
94918
94920
  var nonWhitespaceChildren = ts.getSemanticJsxChildren(children);
94919
94921
  if (ts.length(nonWhitespaceChildren) === 1) {
94920
- var result_13 = transformJsxChildToExpression(nonWhitespaceChildren[0]);
94921
- return result_13 && factory.createPropertyAssignment("children", result_13);
94922
+ var result_12 = transformJsxChildToExpression(nonWhitespaceChildren[0]);
94923
+ return result_12 && factory.createPropertyAssignment("children", result_12);
94922
94924
  }
94923
94925
  var result = ts.mapDefined(children, transformJsxChildToExpression);
94924
94926
  return ts.length(result) ? factory.createPropertyAssignment("children", factory.createArrayLiteralExpression(result)) : undefined;
@@ -113718,15 +113720,15 @@ var ts;
113718
113720
  // which per above occurred during the current program creation.
113719
113721
  // Since we assume the filesystem does not change during program creation,
113720
113722
  // it is safe to reuse resolutions from the earlier call.
113721
- var result_14 = [];
113723
+ var result_13 = [];
113722
113724
  var i = 0;
113723
113725
  for (var _i = 0, moduleNames_1 = moduleNames; _i < moduleNames_1.length; _i++) {
113724
113726
  var moduleName = moduleNames_1[_i];
113725
113727
  var resolvedModule = file.resolvedModules.get(moduleName, getModeForResolutionAtIndex(file, i));
113726
113728
  i++;
113727
- result_14.push(resolvedModule);
113729
+ result_13.push(resolvedModule);
113728
113730
  }
113729
- return result_14;
113731
+ return result_13;
113730
113732
  }
113731
113733
  // At this point, we know at least one of the following hold:
113732
113734
  // - file has local declarations for ambient modules
@@ -118788,9 +118790,9 @@ var ts;
118788
118790
  if (!preferSymlinks) {
118789
118791
  // Symlinks inside ignored paths are already filtered out of the symlink cache,
118790
118792
  // so we only need to remove them from the realpath filenames.
118791
- var result_15 = ts.forEach(targets, function (p) { return !(shouldFilterIgnoredPaths && ts.containsIgnoredPath(p)) && cb(p, referenceRedirect === p); });
118792
- if (result_15)
118793
- return result_15;
118793
+ var result_14 = ts.forEach(targets, function (p) { return !(shouldFilterIgnoredPaths && ts.containsIgnoredPath(p)) && cb(p, referenceRedirect === p); });
118794
+ if (result_14)
118795
+ return result_14;
118794
118796
  }
118795
118797
  var symlinkedDirectories = (_a = host.getSymlinkCache) === null || _a === void 0 ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath();
118796
118798
  var fullImportedFileName = ts.getNormalizedAbsolutePath(importedFileName, cwd);
@@ -118810,10 +118812,10 @@ var ts;
118810
118812
  for (var _i = 0, symlinkDirectories_1 = symlinkDirectories; _i < symlinkDirectories_1.length; _i++) {
118811
118813
  var symlinkDirectory = symlinkDirectories_1[_i];
118812
118814
  var option = ts.resolvePath(symlinkDirectory, relative);
118813
- var result_16 = cb(option, target === referenceRedirect);
118815
+ var result_15 = cb(option, target === referenceRedirect);
118814
118816
  shouldFilterIgnoredPaths = true; // We found a non-ignored path in symlinks, so we can reject ignored-path realpaths
118815
- if (result_16)
118816
- return result_16;
118817
+ if (result_15)
118818
+ return result_15;
118817
118819
  }
118818
118820
  });
118819
118821
  });