@typescript-deploys/pr-build 5.1.0-pr-53040-3 → 5.1.0-pr-52838-7

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
@@ -46261,21 +46261,9 @@ function createTypeChecker(host) {
46261
46261
  });
46262
46262
  }
46263
46263
  function getSymbolIfSameReference(s1, s2) {
46264
- if (s1 === s2)
46265
- return true;
46266
- s1 = getMergedSymbol(s1);
46267
- s2 = getMergedSymbol(s2);
46268
- if (s1 === s2)
46269
- return true;
46270
- s1 = resolveSymbol(s1);
46271
- s2 = resolveSymbol(s2);
46272
- if (s1 === s2)
46273
- return true;
46274
- s1 = getMergedSymbol(s1);
46275
- s2 = getMergedSymbol(s2);
46276
- if (s1 === s2)
46277
- return true;
46278
- return false;
46264
+ if (getMergedSymbol(resolveSymbol(getMergedSymbol(s1))) === getMergedSymbol(resolveSymbol(getMergedSymbol(s2)))) {
46265
+ return s1;
46266
+ }
46279
46267
  }
46280
46268
  function getExportSymbolOfValueSymbolIfExported(symbol) {
46281
46269
  return getMergedSymbol(symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 && symbol.exportSymbol || symbol);
@@ -69205,16 +69193,20 @@ function createTypeChecker(host) {
69205
69193
  ) : createTupleType([type], [8 /* Variadic */]);
69206
69194
  }
69207
69195
  function getSpreadArgumentType(args, index, argCount, restType, context, checkMode) {
69196
+ const inConstContext = isConstTypeVariable(restType);
69208
69197
  if (index >= argCount - 1) {
69209
69198
  const arg = args[argCount - 1];
69210
69199
  if (isSpreadArgument(arg)) {
69211
- return getMutableArrayOrTupleType(arg.kind === 234 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode));
69200
+ const spreadType = arg.kind === 234 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode);
69201
+ if (isArrayLikeType(spreadType)) {
69202
+ return getMutableArrayOrTupleType(spreadType);
69203
+ }
69204
+ return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 227 /* SpreadElement */ ? arg.expression : arg), inConstContext);
69212
69205
  }
69213
69206
  }
69214
69207
  const types = [];
69215
69208
  const flags = [];
69216
69209
  const names = [];
69217
- const inConstContext = isConstTypeVariable(restType);
69218
69210
  for (let i = index; i < argCount; i++) {
69219
69211
  const arg = args[i];
69220
69212
  if (isSpreadArgument(arg)) {
package/lib/tsserver.js CHANGED
@@ -50867,21 +50867,9 @@ function createTypeChecker(host) {
50867
50867
  });
50868
50868
  }
50869
50869
  function getSymbolIfSameReference(s1, s2) {
50870
- if (s1 === s2)
50871
- return true;
50872
- s1 = getMergedSymbol(s1);
50873
- s2 = getMergedSymbol(s2);
50874
- if (s1 === s2)
50875
- return true;
50876
- s1 = resolveSymbol(s1);
50877
- s2 = resolveSymbol(s2);
50878
- if (s1 === s2)
50879
- return true;
50880
- s1 = getMergedSymbol(s1);
50881
- s2 = getMergedSymbol(s2);
50882
- if (s1 === s2)
50883
- return true;
50884
- return false;
50870
+ if (getMergedSymbol(resolveSymbol(getMergedSymbol(s1))) === getMergedSymbol(resolveSymbol(getMergedSymbol(s2)))) {
50871
+ return s1;
50872
+ }
50885
50873
  }
50886
50874
  function getExportSymbolOfValueSymbolIfExported(symbol) {
50887
50875
  return getMergedSymbol(symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 && symbol.exportSymbol || symbol);
@@ -73811,16 +73799,20 @@ function createTypeChecker(host) {
73811
73799
  ) : createTupleType([type], [8 /* Variadic */]);
73812
73800
  }
73813
73801
  function getSpreadArgumentType(args, index, argCount, restType, context, checkMode) {
73802
+ const inConstContext = isConstTypeVariable(restType);
73814
73803
  if (index >= argCount - 1) {
73815
73804
  const arg = args[argCount - 1];
73816
73805
  if (isSpreadArgument(arg)) {
73817
- return getMutableArrayOrTupleType(arg.kind === 234 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode));
73806
+ const spreadType = arg.kind === 234 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode);
73807
+ if (isArrayLikeType(spreadType)) {
73808
+ return getMutableArrayOrTupleType(spreadType);
73809
+ }
73810
+ return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 227 /* SpreadElement */ ? arg.expression : arg), inConstContext);
73818
73811
  }
73819
73812
  }
73820
73813
  const types = [];
73821
73814
  const flags = [];
73822
73815
  const names = [];
73823
- const inConstContext = isConstTypeVariable(restType);
73824
73816
  for (let i = index; i < argCount; i++) {
73825
73817
  const arg = args[i];
73826
73818
  if (isSpreadArgument(arg)) {
@@ -48676,21 +48676,9 @@ ${lanes.join("\n")}
48676
48676
  });
48677
48677
  }
48678
48678
  function getSymbolIfSameReference(s1, s2) {
48679
- if (s1 === s2)
48680
- return true;
48681
- s1 = getMergedSymbol(s1);
48682
- s2 = getMergedSymbol(s2);
48683
- if (s1 === s2)
48684
- return true;
48685
- s1 = resolveSymbol(s1);
48686
- s2 = resolveSymbol(s2);
48687
- if (s1 === s2)
48688
- return true;
48689
- s1 = getMergedSymbol(s1);
48690
- s2 = getMergedSymbol(s2);
48691
- if (s1 === s2)
48692
- return true;
48693
- return false;
48679
+ if (getMergedSymbol(resolveSymbol(getMergedSymbol(s1))) === getMergedSymbol(resolveSymbol(getMergedSymbol(s2)))) {
48680
+ return s1;
48681
+ }
48694
48682
  }
48695
48683
  function getExportSymbolOfValueSymbolIfExported(symbol) {
48696
48684
  return getMergedSymbol(symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 && symbol.exportSymbol || symbol);
@@ -71620,16 +71608,20 @@ ${lanes.join("\n")}
71620
71608
  ) : createTupleType([type], [8 /* Variadic */]);
71621
71609
  }
71622
71610
  function getSpreadArgumentType(args, index, argCount, restType, context, checkMode) {
71611
+ const inConstContext = isConstTypeVariable(restType);
71623
71612
  if (index >= argCount - 1) {
71624
71613
  const arg = args[argCount - 1];
71625
71614
  if (isSpreadArgument(arg)) {
71626
- return getMutableArrayOrTupleType(arg.kind === 234 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode));
71615
+ const spreadType = arg.kind === 234 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode);
71616
+ if (isArrayLikeType(spreadType)) {
71617
+ return getMutableArrayOrTupleType(spreadType);
71618
+ }
71619
+ return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 227 /* SpreadElement */ ? arg.expression : arg), inConstContext);
71627
71620
  }
71628
71621
  }
71629
71622
  const types = [];
71630
71623
  const flags = [];
71631
71624
  const names = [];
71632
- const inConstContext = isConstTypeVariable(restType);
71633
71625
  for (let i = index; i < argCount; i++) {
71634
71626
  const arg = args[i];
71635
71627
  if (isSpreadArgument(arg)) {
package/lib/typescript.js CHANGED
@@ -48676,21 +48676,9 @@ ${lanes.join("\n")}
48676
48676
  });
48677
48677
  }
48678
48678
  function getSymbolIfSameReference(s1, s2) {
48679
- if (s1 === s2)
48680
- return true;
48681
- s1 = getMergedSymbol(s1);
48682
- s2 = getMergedSymbol(s2);
48683
- if (s1 === s2)
48684
- return true;
48685
- s1 = resolveSymbol(s1);
48686
- s2 = resolveSymbol(s2);
48687
- if (s1 === s2)
48688
- return true;
48689
- s1 = getMergedSymbol(s1);
48690
- s2 = getMergedSymbol(s2);
48691
- if (s1 === s2)
48692
- return true;
48693
- return false;
48679
+ if (getMergedSymbol(resolveSymbol(getMergedSymbol(s1))) === getMergedSymbol(resolveSymbol(getMergedSymbol(s2)))) {
48680
+ return s1;
48681
+ }
48694
48682
  }
48695
48683
  function getExportSymbolOfValueSymbolIfExported(symbol) {
48696
48684
  return getMergedSymbol(symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 && symbol.exportSymbol || symbol);
@@ -71620,16 +71608,20 @@ ${lanes.join("\n")}
71620
71608
  ) : createTupleType([type], [8 /* Variadic */]);
71621
71609
  }
71622
71610
  function getSpreadArgumentType(args, index, argCount, restType, context, checkMode) {
71611
+ const inConstContext = isConstTypeVariable(restType);
71623
71612
  if (index >= argCount - 1) {
71624
71613
  const arg = args[argCount - 1];
71625
71614
  if (isSpreadArgument(arg)) {
71626
- return getMutableArrayOrTupleType(arg.kind === 234 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode));
71615
+ const spreadType = arg.kind === 234 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode);
71616
+ if (isArrayLikeType(spreadType)) {
71617
+ return getMutableArrayOrTupleType(spreadType);
71618
+ }
71619
+ return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 227 /* SpreadElement */ ? arg.expression : arg), inConstContext);
71627
71620
  }
71628
71621
  }
71629
71622
  const types = [];
71630
71623
  const flags = [];
71631
71624
  const names = [];
71632
- const inConstContext = isConstTypeVariable(restType);
71633
71625
  for (let i = index; i < argCount; i++) {
71634
71626
  const arg = args[i];
71635
71627
  if (isSpreadArgument(arg)) {
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.1.0-pr-53040-3",
5
+ "version": "5.1.0-pr-52838-7",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [