@typescript-deploys/pr-build 5.0.0-pr-52728-5 → 5.0.0-pr-52679-5

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
@@ -42584,7 +42584,6 @@ function createTypeChecker(host) {
42584
42584
  let inlineLevel = 0;
42585
42585
  let currentNode;
42586
42586
  let varianceTypeParameter;
42587
- let isInferencePartiallyBlocked = false;
42588
42587
  const emptySymbols = createSymbolTable();
42589
42588
  const arrayVariances = [1 /* Covariant */];
42590
42589
  const compilerOptions = host.getCompilerOptions();
@@ -42794,15 +42793,14 @@ function createTypeChecker(host) {
42794
42793
  getTypeOfPropertyOfContextualType,
42795
42794
  getFullyQualifiedName,
42796
42795
  getResolvedSignature: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 0 /* Normal */),
42797
- getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray) => getResolvedSignatureWorker(
42796
+ getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray) => runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker(
42798
42797
  call,
42799
42798
  candidatesOutArray,
42800
42799
  /*argumentCount*/
42801
42800
  void 0,
42802
- 32 /* IsForStringLiteralArgumentCompletions */,
42803
- editingArgument
42804
- ),
42805
- getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */),
42801
+ 32 /* IsForStringLiteralArgumentCompletions */
42802
+ )),
42803
+ getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => runWithoutResolvedSignatureCaching(node, () => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */)),
42806
42804
  getExpandedParameters,
42807
42805
  hasEffectiveRestParameter,
42808
42806
  containsArgumentsReference,
@@ -42996,34 +42994,41 @@ function createTypeChecker(host) {
42996
42994
  getMemberOverrideModifierStatus,
42997
42995
  isTypeParameterPossiblyReferenced
42998
42996
  };
42999
- function runWithInferenceBlockedFromSourceNode(node, fn) {
42997
+ function runWithoutResolvedSignatureCaching(node, fn) {
43000
42998
  const containingCall = findAncestor(node, isCallLikeExpression);
43001
42999
  const containingCallResolvedSignature = containingCall && getNodeLinks(containingCall).resolvedSignature;
43000
+ if (containingCall) {
43001
+ getNodeLinks(containingCall).resolvedSignature = void 0;
43002
+ }
43003
+ const result = fn();
43004
+ if (containingCall) {
43005
+ getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature;
43006
+ }
43007
+ return result;
43008
+ }
43009
+ function runWithInferenceBlockedFromSourceNode(node, fn) {
43010
+ const containingCall = findAncestor(node, isCallLikeExpression);
43002
43011
  if (containingCall) {
43003
43012
  let toMarkSkip = node;
43004
43013
  do {
43005
43014
  getNodeLinks(toMarkSkip).skipDirectInference = true;
43006
43015
  toMarkSkip = toMarkSkip.parent;
43007
43016
  } while (toMarkSkip && toMarkSkip !== containingCall);
43008
- getNodeLinks(containingCall).resolvedSignature = void 0;
43009
43017
  }
43010
- isInferencePartiallyBlocked = true;
43011
- const result = fn();
43012
- isInferencePartiallyBlocked = false;
43018
+ const result = runWithoutResolvedSignatureCaching(node, fn);
43013
43019
  if (containingCall) {
43014
43020
  let toMarkSkip = node;
43015
43021
  do {
43016
43022
  getNodeLinks(toMarkSkip).skipDirectInference = void 0;
43017
43023
  toMarkSkip = toMarkSkip.parent;
43018
43024
  } while (toMarkSkip && toMarkSkip !== containingCall);
43019
- getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature;
43020
43025
  }
43021
43026
  return result;
43022
43027
  }
43023
- function getResolvedSignatureWorker(nodeIn, candidatesOutArray, argumentCount, checkMode, editingArgument) {
43028
+ function getResolvedSignatureWorker(nodeIn, candidatesOutArray, argumentCount, checkMode) {
43024
43029
  const node = getParseTreeNode(nodeIn, isCallLikeExpression);
43025
43030
  apparentArgumentCount = argumentCount;
43026
- const res = !node ? void 0 : editingArgument ? runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignature(node, candidatesOutArray, checkMode)) : getResolvedSignature(node, candidatesOutArray, checkMode);
43031
+ const res = !node ? void 0 : getResolvedSignature(node, candidatesOutArray, checkMode);
43027
43032
  apparentArgumentCount = void 0;
43028
43033
  return res;
43029
43034
  }
@@ -69606,7 +69611,7 @@ function createTypeChecker(host) {
69606
69611
  const isTaggedTemplate = node.kind === 212 /* TaggedTemplateExpression */;
69607
69612
  const isDecorator2 = node.kind === 167 /* Decorator */;
69608
69613
  const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
69609
- const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray;
69614
+ const reportErrors2 = !candidatesOutArray;
69610
69615
  let typeArguments;
69611
69616
  if (!isDecorator2 && !isSuperCall(node)) {
69612
69617
  typeArguments = node.typeArguments;
package/lib/tsserver.js CHANGED
@@ -47160,7 +47160,6 @@ function createTypeChecker(host) {
47160
47160
  let inlineLevel = 0;
47161
47161
  let currentNode;
47162
47162
  let varianceTypeParameter;
47163
- let isInferencePartiallyBlocked = false;
47164
47163
  const emptySymbols = createSymbolTable();
47165
47164
  const arrayVariances = [1 /* Covariant */];
47166
47165
  const compilerOptions = host.getCompilerOptions();
@@ -47370,15 +47369,14 @@ function createTypeChecker(host) {
47370
47369
  getTypeOfPropertyOfContextualType,
47371
47370
  getFullyQualifiedName,
47372
47371
  getResolvedSignature: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 0 /* Normal */),
47373
- getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray) => getResolvedSignatureWorker(
47372
+ getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray) => runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker(
47374
47373
  call,
47375
47374
  candidatesOutArray,
47376
47375
  /*argumentCount*/
47377
47376
  void 0,
47378
- 32 /* IsForStringLiteralArgumentCompletions */,
47379
- editingArgument
47380
- ),
47381
- getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */),
47377
+ 32 /* IsForStringLiteralArgumentCompletions */
47378
+ )),
47379
+ getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => runWithoutResolvedSignatureCaching(node, () => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */)),
47382
47380
  getExpandedParameters,
47383
47381
  hasEffectiveRestParameter,
47384
47382
  containsArgumentsReference,
@@ -47572,34 +47570,41 @@ function createTypeChecker(host) {
47572
47570
  getMemberOverrideModifierStatus,
47573
47571
  isTypeParameterPossiblyReferenced
47574
47572
  };
47575
- function runWithInferenceBlockedFromSourceNode(node, fn) {
47573
+ function runWithoutResolvedSignatureCaching(node, fn) {
47576
47574
  const containingCall = findAncestor(node, isCallLikeExpression);
47577
47575
  const containingCallResolvedSignature = containingCall && getNodeLinks(containingCall).resolvedSignature;
47576
+ if (containingCall) {
47577
+ getNodeLinks(containingCall).resolvedSignature = void 0;
47578
+ }
47579
+ const result = fn();
47580
+ if (containingCall) {
47581
+ getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature;
47582
+ }
47583
+ return result;
47584
+ }
47585
+ function runWithInferenceBlockedFromSourceNode(node, fn) {
47586
+ const containingCall = findAncestor(node, isCallLikeExpression);
47578
47587
  if (containingCall) {
47579
47588
  let toMarkSkip = node;
47580
47589
  do {
47581
47590
  getNodeLinks(toMarkSkip).skipDirectInference = true;
47582
47591
  toMarkSkip = toMarkSkip.parent;
47583
47592
  } while (toMarkSkip && toMarkSkip !== containingCall);
47584
- getNodeLinks(containingCall).resolvedSignature = void 0;
47585
47593
  }
47586
- isInferencePartiallyBlocked = true;
47587
- const result = fn();
47588
- isInferencePartiallyBlocked = false;
47594
+ const result = runWithoutResolvedSignatureCaching(node, fn);
47589
47595
  if (containingCall) {
47590
47596
  let toMarkSkip = node;
47591
47597
  do {
47592
47598
  getNodeLinks(toMarkSkip).skipDirectInference = void 0;
47593
47599
  toMarkSkip = toMarkSkip.parent;
47594
47600
  } while (toMarkSkip && toMarkSkip !== containingCall);
47595
- getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature;
47596
47601
  }
47597
47602
  return result;
47598
47603
  }
47599
- function getResolvedSignatureWorker(nodeIn, candidatesOutArray, argumentCount, checkMode, editingArgument) {
47604
+ function getResolvedSignatureWorker(nodeIn, candidatesOutArray, argumentCount, checkMode) {
47600
47605
  const node = getParseTreeNode(nodeIn, isCallLikeExpression);
47601
47606
  apparentArgumentCount = argumentCount;
47602
- const res = !node ? void 0 : editingArgument ? runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignature(node, candidatesOutArray, checkMode)) : getResolvedSignature(node, candidatesOutArray, checkMode);
47607
+ const res = !node ? void 0 : getResolvedSignature(node, candidatesOutArray, checkMode);
47603
47608
  apparentArgumentCount = void 0;
47604
47609
  return res;
47605
47610
  }
@@ -74182,7 +74187,7 @@ function createTypeChecker(host) {
74182
74187
  const isTaggedTemplate = node.kind === 212 /* TaggedTemplateExpression */;
74183
74188
  const isDecorator2 = node.kind === 167 /* Decorator */;
74184
74189
  const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
74185
- const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray;
74190
+ const reportErrors2 = !candidatesOutArray;
74186
74191
  let typeArguments;
74187
74192
  if (!isDecorator2 && !isSuperCall(node)) {
74188
74193
  typeArguments = node.typeArguments;
@@ -44970,7 +44970,6 @@ ${lanes.join("\n")}
44970
44970
  let inlineLevel = 0;
44971
44971
  let currentNode;
44972
44972
  let varianceTypeParameter;
44973
- let isInferencePartiallyBlocked = false;
44974
44973
  const emptySymbols = createSymbolTable();
44975
44974
  const arrayVariances = [1 /* Covariant */];
44976
44975
  const compilerOptions = host.getCompilerOptions();
@@ -45180,15 +45179,14 @@ ${lanes.join("\n")}
45180
45179
  getTypeOfPropertyOfContextualType,
45181
45180
  getFullyQualifiedName,
45182
45181
  getResolvedSignature: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 0 /* Normal */),
45183
- getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray) => getResolvedSignatureWorker(
45182
+ getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray) => runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker(
45184
45183
  call,
45185
45184
  candidatesOutArray,
45186
45185
  /*argumentCount*/
45187
45186
  void 0,
45188
- 32 /* IsForStringLiteralArgumentCompletions */,
45189
- editingArgument
45190
- ),
45191
- getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */),
45187
+ 32 /* IsForStringLiteralArgumentCompletions */
45188
+ )),
45189
+ getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => runWithoutResolvedSignatureCaching(node, () => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */)),
45192
45190
  getExpandedParameters,
45193
45191
  hasEffectiveRestParameter,
45194
45192
  containsArgumentsReference,
@@ -45382,34 +45380,41 @@ ${lanes.join("\n")}
45382
45380
  getMemberOverrideModifierStatus,
45383
45381
  isTypeParameterPossiblyReferenced
45384
45382
  };
45385
- function runWithInferenceBlockedFromSourceNode(node, fn) {
45383
+ function runWithoutResolvedSignatureCaching(node, fn) {
45386
45384
  const containingCall = findAncestor(node, isCallLikeExpression);
45387
45385
  const containingCallResolvedSignature = containingCall && getNodeLinks(containingCall).resolvedSignature;
45386
+ if (containingCall) {
45387
+ getNodeLinks(containingCall).resolvedSignature = void 0;
45388
+ }
45389
+ const result = fn();
45390
+ if (containingCall) {
45391
+ getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature;
45392
+ }
45393
+ return result;
45394
+ }
45395
+ function runWithInferenceBlockedFromSourceNode(node, fn) {
45396
+ const containingCall = findAncestor(node, isCallLikeExpression);
45388
45397
  if (containingCall) {
45389
45398
  let toMarkSkip = node;
45390
45399
  do {
45391
45400
  getNodeLinks(toMarkSkip).skipDirectInference = true;
45392
45401
  toMarkSkip = toMarkSkip.parent;
45393
45402
  } while (toMarkSkip && toMarkSkip !== containingCall);
45394
- getNodeLinks(containingCall).resolvedSignature = void 0;
45395
45403
  }
45396
- isInferencePartiallyBlocked = true;
45397
- const result = fn();
45398
- isInferencePartiallyBlocked = false;
45404
+ const result = runWithoutResolvedSignatureCaching(node, fn);
45399
45405
  if (containingCall) {
45400
45406
  let toMarkSkip = node;
45401
45407
  do {
45402
45408
  getNodeLinks(toMarkSkip).skipDirectInference = void 0;
45403
45409
  toMarkSkip = toMarkSkip.parent;
45404
45410
  } while (toMarkSkip && toMarkSkip !== containingCall);
45405
- getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature;
45406
45411
  }
45407
45412
  return result;
45408
45413
  }
45409
- function getResolvedSignatureWorker(nodeIn, candidatesOutArray, argumentCount, checkMode, editingArgument) {
45414
+ function getResolvedSignatureWorker(nodeIn, candidatesOutArray, argumentCount, checkMode) {
45410
45415
  const node = getParseTreeNode(nodeIn, isCallLikeExpression);
45411
45416
  apparentArgumentCount = argumentCount;
45412
- const res = !node ? void 0 : editingArgument ? runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignature(node, candidatesOutArray, checkMode)) : getResolvedSignature(node, candidatesOutArray, checkMode);
45417
+ const res = !node ? void 0 : getResolvedSignature(node, candidatesOutArray, checkMode);
45413
45418
  apparentArgumentCount = void 0;
45414
45419
  return res;
45415
45420
  }
@@ -71992,7 +71997,7 @@ ${lanes.join("\n")}
71992
71997
  const isTaggedTemplate = node.kind === 212 /* TaggedTemplateExpression */;
71993
71998
  const isDecorator2 = node.kind === 167 /* Decorator */;
71994
71999
  const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
71995
- const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray;
72000
+ const reportErrors2 = !candidatesOutArray;
71996
72001
  let typeArguments;
71997
72002
  if (!isDecorator2 && !isSuperCall(node)) {
71998
72003
  typeArguments = node.typeArguments;
package/lib/typescript.js CHANGED
@@ -44970,7 +44970,6 @@ ${lanes.join("\n")}
44970
44970
  let inlineLevel = 0;
44971
44971
  let currentNode;
44972
44972
  let varianceTypeParameter;
44973
- let isInferencePartiallyBlocked = false;
44974
44973
  const emptySymbols = createSymbolTable();
44975
44974
  const arrayVariances = [1 /* Covariant */];
44976
44975
  const compilerOptions = host.getCompilerOptions();
@@ -45180,15 +45179,14 @@ ${lanes.join("\n")}
45180
45179
  getTypeOfPropertyOfContextualType,
45181
45180
  getFullyQualifiedName,
45182
45181
  getResolvedSignature: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 0 /* Normal */),
45183
- getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray) => getResolvedSignatureWorker(
45182
+ getResolvedSignatureForStringLiteralCompletions: (call, editingArgument, candidatesOutArray) => runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker(
45184
45183
  call,
45185
45184
  candidatesOutArray,
45186
45185
  /*argumentCount*/
45187
45186
  void 0,
45188
- 32 /* IsForStringLiteralArgumentCompletions */,
45189
- editingArgument
45190
- ),
45191
- getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */),
45187
+ 32 /* IsForStringLiteralArgumentCompletions */
45188
+ )),
45189
+ getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => runWithoutResolvedSignatureCaching(node, () => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */)),
45192
45190
  getExpandedParameters,
45193
45191
  hasEffectiveRestParameter,
45194
45192
  containsArgumentsReference,
@@ -45382,34 +45380,41 @@ ${lanes.join("\n")}
45382
45380
  getMemberOverrideModifierStatus,
45383
45381
  isTypeParameterPossiblyReferenced
45384
45382
  };
45385
- function runWithInferenceBlockedFromSourceNode(node, fn) {
45383
+ function runWithoutResolvedSignatureCaching(node, fn) {
45386
45384
  const containingCall = findAncestor(node, isCallLikeExpression);
45387
45385
  const containingCallResolvedSignature = containingCall && getNodeLinks(containingCall).resolvedSignature;
45386
+ if (containingCall) {
45387
+ getNodeLinks(containingCall).resolvedSignature = void 0;
45388
+ }
45389
+ const result = fn();
45390
+ if (containingCall) {
45391
+ getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature;
45392
+ }
45393
+ return result;
45394
+ }
45395
+ function runWithInferenceBlockedFromSourceNode(node, fn) {
45396
+ const containingCall = findAncestor(node, isCallLikeExpression);
45388
45397
  if (containingCall) {
45389
45398
  let toMarkSkip = node;
45390
45399
  do {
45391
45400
  getNodeLinks(toMarkSkip).skipDirectInference = true;
45392
45401
  toMarkSkip = toMarkSkip.parent;
45393
45402
  } while (toMarkSkip && toMarkSkip !== containingCall);
45394
- getNodeLinks(containingCall).resolvedSignature = void 0;
45395
45403
  }
45396
- isInferencePartiallyBlocked = true;
45397
- const result = fn();
45398
- isInferencePartiallyBlocked = false;
45404
+ const result = runWithoutResolvedSignatureCaching(node, fn);
45399
45405
  if (containingCall) {
45400
45406
  let toMarkSkip = node;
45401
45407
  do {
45402
45408
  getNodeLinks(toMarkSkip).skipDirectInference = void 0;
45403
45409
  toMarkSkip = toMarkSkip.parent;
45404
45410
  } while (toMarkSkip && toMarkSkip !== containingCall);
45405
- getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature;
45406
45411
  }
45407
45412
  return result;
45408
45413
  }
45409
- function getResolvedSignatureWorker(nodeIn, candidatesOutArray, argumentCount, checkMode, editingArgument) {
45414
+ function getResolvedSignatureWorker(nodeIn, candidatesOutArray, argumentCount, checkMode) {
45410
45415
  const node = getParseTreeNode(nodeIn, isCallLikeExpression);
45411
45416
  apparentArgumentCount = argumentCount;
45412
- const res = !node ? void 0 : editingArgument ? runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignature(node, candidatesOutArray, checkMode)) : getResolvedSignature(node, candidatesOutArray, checkMode);
45417
+ const res = !node ? void 0 : getResolvedSignature(node, candidatesOutArray, checkMode);
45413
45418
  apparentArgumentCount = void 0;
45414
45419
  return res;
45415
45420
  }
@@ -71992,7 +71997,7 @@ ${lanes.join("\n")}
71992
71997
  const isTaggedTemplate = node.kind === 212 /* TaggedTemplateExpression */;
71993
71998
  const isDecorator2 = node.kind === 167 /* Decorator */;
71994
71999
  const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
71995
- const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray;
72000
+ const reportErrors2 = !candidatesOutArray;
71996
72001
  let typeArguments;
71997
72002
  if (!isDecorator2 && !isSuperCall(node)) {
71998
72003
  typeArguments = node.typeArguments;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.0.0-pr-52728-5",
5
+ "version": "5.0.0-pr-52679-5",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [