@typescript-deploys/pr-build 5.3.0-pr-55267-31 → 5.3.0-pr-56064-15

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
@@ -48109,7 +48109,7 @@ function createTypeChecker(host) {
48109
48109
  return result;
48110
48110
  }
48111
48111
  function createAnonymousTypeNode(type2) {
48112
- var _a2, _b2;
48112
+ var _a2;
48113
48113
  const typeId = type2.id;
48114
48114
  const symbol = type2.symbol;
48115
48115
  if (symbol) {
@@ -48135,20 +48135,6 @@ function createTypeChecker(host) {
48135
48135
  return visitAndTransformType(type2, createTypeNodeFromObjectType);
48136
48136
  }
48137
48137
  } else {
48138
- const isInstantiationExpressionType = !!(getObjectFlags(type2) & 8388608 /* InstantiationExpressionType */);
48139
- if (isInstantiationExpressionType) {
48140
- const instantiationExpressionType = type2;
48141
- if (isTypeQueryNode(instantiationExpressionType.node)) {
48142
- const typeNode = serializeExistingTypeNode(context, instantiationExpressionType.node);
48143
- if (typeNode) {
48144
- return typeNode;
48145
- }
48146
- }
48147
- if ((_b2 = context.visitedTypes) == null ? void 0 : _b2.has(typeId)) {
48148
- return createElidedInformationPlaceholder(context);
48149
- }
48150
- return visitAndTransformType(type2, createTypeNodeFromObjectType);
48151
- }
48152
48138
  return createTypeNodeFromObjectType(type2);
48153
48139
  }
48154
48140
  function shouldWriteTypeOfFunctionSymbol() {
@@ -58991,6 +58977,7 @@ function createTypeChecker(host) {
58991
58977
  ) : strictNullChecks && modifiers & 8 /* ExcludeOptional */ && isOptional ? getTypeWithFacts(propType, 524288 /* NEUndefined */) : propType;
58992
58978
  }
58993
58979
  function instantiateAnonymousType(type, mapper, aliasSymbol, aliasTypeArguments) {
58980
+ Debug.assert(type.symbol, "anonymous type must have symbol to be instantiated");
58994
58981
  const result = createObjectType(type.objectFlags & ~(524288 /* CouldContainTypeVariablesComputed */ | 1048576 /* CouldContainTypeVariables */) | 64 /* Instantiated */, type.symbol);
58995
58982
  if (type.objectFlags & 32 /* Mapped */) {
58996
58983
  result.declaration = type.declaration;
@@ -62238,6 +62225,7 @@ function createTypeChecker(host) {
62238
62225
  const sourceObjectFlags = getObjectFlags(source2);
62239
62226
  const targetObjectFlags = getObjectFlags(target2);
62240
62227
  if (sourceObjectFlags & 64 /* Instantiated */ && targetObjectFlags & 64 /* Instantiated */ && source2.symbol === target2.symbol || sourceObjectFlags & 4 /* Reference */ && targetObjectFlags & 4 /* Reference */ && source2.target === target2.target) {
62228
+ Debug.assertEqual(sourceSignatures.length, targetSignatures.length);
62241
62229
  for (let i = 0; i < targetSignatures.length; i++) {
62242
62230
  const related = signatureRelatedTo(
62243
62231
  sourceSignatures[i],
@@ -72455,14 +72443,7 @@ function createTypeChecker(host) {
72455
72443
  hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0);
72456
72444
  hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);
72457
72445
  if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {
72458
- const result3 = createAnonymousType(
72459
- /*symbol*/
72460
- void 0,
72461
- resolved.members,
72462
- callSignatures,
72463
- constructSignatures,
72464
- resolved.indexInfos
72465
- );
72446
+ const result3 = createAnonymousType(createSymbol(0 /* None */, "__instantiationExpression" /* InstantiationExpression */), resolved.members, callSignatures, constructSignatures, resolved.indexInfos);
72466
72447
  result3.objectFlags |= 8388608 /* InstantiationExpressionType */;
72467
72448
  result3.node = node;
72468
72449
  return result3;
package/lib/tsserver.js CHANGED
@@ -6573,6 +6573,7 @@ var InternalSymbolName = /* @__PURE__ */ ((InternalSymbolName2) => {
6573
6573
  InternalSymbolName2["ExportEquals"] = "export=";
6574
6574
  InternalSymbolName2["Default"] = "default";
6575
6575
  InternalSymbolName2["This"] = "this";
6576
+ InternalSymbolName2["InstantiationExpression"] = "__instantiationExpression";
6576
6577
  return InternalSymbolName2;
6577
6578
  })(InternalSymbolName || {});
6578
6579
  var NodeCheckFlags = /* @__PURE__ */ ((NodeCheckFlags2) => {
@@ -52821,7 +52822,7 @@ function createTypeChecker(host) {
52821
52822
  return result;
52822
52823
  }
52823
52824
  function createAnonymousTypeNode(type2) {
52824
- var _a2, _b2;
52825
+ var _a2;
52825
52826
  const typeId = type2.id;
52826
52827
  const symbol = type2.symbol;
52827
52828
  if (symbol) {
@@ -52847,20 +52848,6 @@ function createTypeChecker(host) {
52847
52848
  return visitAndTransformType(type2, createTypeNodeFromObjectType);
52848
52849
  }
52849
52850
  } else {
52850
- const isInstantiationExpressionType = !!(getObjectFlags(type2) & 8388608 /* InstantiationExpressionType */);
52851
- if (isInstantiationExpressionType) {
52852
- const instantiationExpressionType = type2;
52853
- if (isTypeQueryNode(instantiationExpressionType.node)) {
52854
- const typeNode = serializeExistingTypeNode(context, instantiationExpressionType.node);
52855
- if (typeNode) {
52856
- return typeNode;
52857
- }
52858
- }
52859
- if ((_b2 = context.visitedTypes) == null ? void 0 : _b2.has(typeId)) {
52860
- return createElidedInformationPlaceholder(context);
52861
- }
52862
- return visitAndTransformType(type2, createTypeNodeFromObjectType);
52863
- }
52864
52851
  return createTypeNodeFromObjectType(type2);
52865
52852
  }
52866
52853
  function shouldWriteTypeOfFunctionSymbol() {
@@ -63703,6 +63690,7 @@ function createTypeChecker(host) {
63703
63690
  ) : strictNullChecks && modifiers & 8 /* ExcludeOptional */ && isOptional ? getTypeWithFacts(propType, 524288 /* NEUndefined */) : propType;
63704
63691
  }
63705
63692
  function instantiateAnonymousType(type, mapper, aliasSymbol, aliasTypeArguments) {
63693
+ Debug.assert(type.symbol, "anonymous type must have symbol to be instantiated");
63706
63694
  const result = createObjectType(type.objectFlags & ~(524288 /* CouldContainTypeVariablesComputed */ | 1048576 /* CouldContainTypeVariables */) | 64 /* Instantiated */, type.symbol);
63707
63695
  if (type.objectFlags & 32 /* Mapped */) {
63708
63696
  result.declaration = type.declaration;
@@ -66950,6 +66938,7 @@ function createTypeChecker(host) {
66950
66938
  const sourceObjectFlags = getObjectFlags(source2);
66951
66939
  const targetObjectFlags = getObjectFlags(target2);
66952
66940
  if (sourceObjectFlags & 64 /* Instantiated */ && targetObjectFlags & 64 /* Instantiated */ && source2.symbol === target2.symbol || sourceObjectFlags & 4 /* Reference */ && targetObjectFlags & 4 /* Reference */ && source2.target === target2.target) {
66941
+ Debug.assertEqual(sourceSignatures.length, targetSignatures.length);
66953
66942
  for (let i = 0; i < targetSignatures.length; i++) {
66954
66943
  const related = signatureRelatedTo(
66955
66944
  sourceSignatures[i],
@@ -77167,14 +77156,7 @@ function createTypeChecker(host) {
77167
77156
  hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0);
77168
77157
  hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);
77169
77158
  if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {
77170
- const result3 = createAnonymousType(
77171
- /*symbol*/
77172
- void 0,
77173
- resolved.members,
77174
- callSignatures,
77175
- constructSignatures,
77176
- resolved.indexInfos
77177
- );
77159
+ const result3 = createAnonymousType(createSymbol(0 /* None */, "__instantiationExpression" /* InstantiationExpression */), resolved.members, callSignatures, constructSignatures, resolved.indexInfos);
77178
77160
  result3.objectFlags |= 8388608 /* InstantiationExpressionType */;
77179
77161
  result3.node = node;
77180
77162
  return result3;
@@ -166334,7 +166316,6 @@ function getOutliningSpanForNode(n, sourceFile) {
166334
166316
  case 275 /* NamedImports */:
166335
166317
  case 279 /* NamedExports */:
166336
166318
  case 300 /* ImportAttributes */:
166337
- case 300 /* AssertClause */:
166338
166319
  return spanForImportExportElements(n);
166339
166320
  }
166340
166321
  function spanForImportExportElements(node) {
@@ -7048,6 +7048,7 @@ declare namespace ts {
7048
7048
  ExportEquals = "export=",
7049
7049
  Default = "default",
7050
7050
  This = "this",
7051
+ InstantiationExpression = "__instantiationExpression",
7051
7052
  }
7052
7053
  /**
7053
7054
  * This represents a string whose leading underscore have been escaped by adding extra leading underscores.
package/lib/typescript.js CHANGED
@@ -4338,6 +4338,7 @@ ${lanes.join("\n")}
4338
4338
  InternalSymbolName2["ExportEquals"] = "export=";
4339
4339
  InternalSymbolName2["Default"] = "default";
4340
4340
  InternalSymbolName2["This"] = "this";
4341
+ InternalSymbolName2["InstantiationExpression"] = "__instantiationExpression";
4341
4342
  return InternalSymbolName2;
4342
4343
  })(InternalSymbolName || {});
4343
4344
  NodeCheckFlags = /* @__PURE__ */ ((NodeCheckFlags2) => {
@@ -50588,7 +50589,7 @@ ${lanes.join("\n")}
50588
50589
  return result;
50589
50590
  }
50590
50591
  function createAnonymousTypeNode(type2) {
50591
- var _a2, _b2;
50592
+ var _a2;
50592
50593
  const typeId = type2.id;
50593
50594
  const symbol = type2.symbol;
50594
50595
  if (symbol) {
@@ -50614,20 +50615,6 @@ ${lanes.join("\n")}
50614
50615
  return visitAndTransformType(type2, createTypeNodeFromObjectType);
50615
50616
  }
50616
50617
  } else {
50617
- const isInstantiationExpressionType = !!(getObjectFlags(type2) & 8388608 /* InstantiationExpressionType */);
50618
- if (isInstantiationExpressionType) {
50619
- const instantiationExpressionType = type2;
50620
- if (isTypeQueryNode(instantiationExpressionType.node)) {
50621
- const typeNode = serializeExistingTypeNode(context, instantiationExpressionType.node);
50622
- if (typeNode) {
50623
- return typeNode;
50624
- }
50625
- }
50626
- if ((_b2 = context.visitedTypes) == null ? void 0 : _b2.has(typeId)) {
50627
- return createElidedInformationPlaceholder(context);
50628
- }
50629
- return visitAndTransformType(type2, createTypeNodeFromObjectType);
50630
- }
50631
50618
  return createTypeNodeFromObjectType(type2);
50632
50619
  }
50633
50620
  function shouldWriteTypeOfFunctionSymbol() {
@@ -61470,6 +61457,7 @@ ${lanes.join("\n")}
61470
61457
  ) : strictNullChecks && modifiers & 8 /* ExcludeOptional */ && isOptional ? getTypeWithFacts(propType, 524288 /* NEUndefined */) : propType;
61471
61458
  }
61472
61459
  function instantiateAnonymousType(type, mapper, aliasSymbol, aliasTypeArguments) {
61460
+ Debug.assert(type.symbol, "anonymous type must have symbol to be instantiated");
61473
61461
  const result = createObjectType(type.objectFlags & ~(524288 /* CouldContainTypeVariablesComputed */ | 1048576 /* CouldContainTypeVariables */) | 64 /* Instantiated */, type.symbol);
61474
61462
  if (type.objectFlags & 32 /* Mapped */) {
61475
61463
  result.declaration = type.declaration;
@@ -64717,6 +64705,7 @@ ${lanes.join("\n")}
64717
64705
  const sourceObjectFlags = getObjectFlags(source2);
64718
64706
  const targetObjectFlags = getObjectFlags(target2);
64719
64707
  if (sourceObjectFlags & 64 /* Instantiated */ && targetObjectFlags & 64 /* Instantiated */ && source2.symbol === target2.symbol || sourceObjectFlags & 4 /* Reference */ && targetObjectFlags & 4 /* Reference */ && source2.target === target2.target) {
64708
+ Debug.assertEqual(sourceSignatures.length, targetSignatures.length);
64720
64709
  for (let i = 0; i < targetSignatures.length; i++) {
64721
64710
  const related = signatureRelatedTo(
64722
64711
  sourceSignatures[i],
@@ -74934,14 +74923,7 @@ ${lanes.join("\n")}
74934
74923
  hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0);
74935
74924
  hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);
74936
74925
  if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {
74937
- const result3 = createAnonymousType(
74938
- /*symbol*/
74939
- void 0,
74940
- resolved.members,
74941
- callSignatures,
74942
- constructSignatures,
74943
- resolved.indexInfos
74944
- );
74926
+ const result3 = createAnonymousType(createSymbol(0 /* None */, "__instantiationExpression" /* InstantiationExpression */), resolved.members, callSignatures, constructSignatures, resolved.indexInfos);
74945
74927
  result3.objectFlags |= 8388608 /* InstantiationExpressionType */;
74946
74928
  result3.node = node;
74947
74929
  return result3;
@@ -165718,7 +165700,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
165718
165700
  case 275 /* NamedImports */:
165719
165701
  case 279 /* NamedExports */:
165720
165702
  case 300 /* ImportAttributes */:
165721
- case 300 /* AssertClause */:
165722
165703
  return spanForImportExportElements(n);
165723
165704
  }
165724
165705
  function spanForImportExportElements(node) {
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.3.0-pr-55267-31",
5
+ "version": "5.3.0-pr-56064-15",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -115,5 +115,5 @@
115
115
  "node": "20.1.0",
116
116
  "npm": "8.19.4"
117
117
  },
118
- "gitHead": "3edb3a1972e7ecce853ac28793346f36f57496df"
118
+ "gitHead": "ae08d55687a71a017681b3ffbd701c119b1d3a76"
119
119
  }