@typescript-deploys/pr-build 4.7.0-pr-48792-4 → 4.7.0-pr-48792-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
@@ -27633,7 +27633,7 @@ var ts;
27633
27633
  return addJSDocComment(finishNode(node, pos));
27634
27634
  }
27635
27635
  function tryParseParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
27636
- var triState = isParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction);
27636
+ var triState = isParenthesizedArrowFunctionExpression();
27637
27637
  if (triState === 0) {
27638
27638
  return undefined;
27639
27639
  }
@@ -27641,16 +27641,16 @@ var ts;
27641
27641
  parseParenthesizedArrowFunctionExpression(true, disallowReturnTypeInArrowFunction) :
27642
27642
  tryParse(function () { return parsePossibleParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction); });
27643
27643
  }
27644
- function isParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
27644
+ function isParenthesizedArrowFunctionExpression() {
27645
27645
  if (token() === 20 || token() === 29 || token() === 131) {
27646
- return lookAhead(function () { return isParenthesizedArrowFunctionExpressionWorker(disallowReturnTypeInArrowFunction); });
27646
+ return lookAhead(isParenthesizedArrowFunctionExpressionWorker);
27647
27647
  }
27648
27648
  if (token() === 38) {
27649
27649
  return 1;
27650
27650
  }
27651
27651
  return 0;
27652
27652
  }
27653
- function isParenthesizedArrowFunctionExpressionWorker(disallowReturnTypeInArrowFunction) {
27653
+ function isParenthesizedArrowFunctionExpressionWorker() {
27654
27654
  if (token() === 131) {
27655
27655
  nextToken();
27656
27656
  if (scanner.hasPrecedingLineBreak()) {
@@ -27666,12 +27666,8 @@ var ts;
27666
27666
  if (second === 21) {
27667
27667
  var third = nextToken();
27668
27668
  switch (third) {
27669
- case 58:
27670
- if (disallowReturnTypeInArrowFunction) {
27671
- return 0;
27672
- }
27673
- return 1;
27674
27669
  case 38:
27670
+ case 58:
27675
27671
  case 18:
27676
27672
  return 1;
27677
27673
  default:
package/lib/tsserver.js CHANGED
@@ -34288,7 +34288,7 @@ var ts;
34288
34288
  return addJSDocComment(finishNode(node, pos));
34289
34289
  }
34290
34290
  function tryParseParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
34291
- var triState = isParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction);
34291
+ var triState = isParenthesizedArrowFunctionExpression();
34292
34292
  if (triState === 0 /* False */) {
34293
34293
  // It's definitely not a parenthesized arrow function expression.
34294
34294
  return undefined;
@@ -34305,9 +34305,9 @@ var ts;
34305
34305
  // False -> There *cannot* be a parenthesized arrow function here.
34306
34306
  // Unknown -> There *might* be a parenthesized arrow function here.
34307
34307
  // Speculatively look ahead to be sure, and rollback if not.
34308
- function isParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
34308
+ function isParenthesizedArrowFunctionExpression() {
34309
34309
  if (token() === 20 /* OpenParenToken */ || token() === 29 /* LessThanToken */ || token() === 131 /* AsyncKeyword */) {
34310
- return lookAhead(function () { return isParenthesizedArrowFunctionExpressionWorker(disallowReturnTypeInArrowFunction); });
34310
+ return lookAhead(isParenthesizedArrowFunctionExpressionWorker);
34311
34311
  }
34312
34312
  if (token() === 38 /* EqualsGreaterThanToken */) {
34313
34313
  // ERROR RECOVERY TWEAK:
@@ -34318,7 +34318,7 @@ var ts;
34318
34318
  // Definitely not a parenthesized arrow function.
34319
34319
  return 0 /* False */;
34320
34320
  }
34321
- function isParenthesizedArrowFunctionExpressionWorker(disallowReturnTypeInArrowFunction) {
34321
+ function isParenthesizedArrowFunctionExpressionWorker() {
34322
34322
  if (token() === 131 /* AsyncKeyword */) {
34323
34323
  nextToken();
34324
34324
  if (scanner.hasPrecedingLineBreak()) {
@@ -34338,13 +34338,8 @@ var ts;
34338
34338
  // but this is probably what the user intended.
34339
34339
  var third = nextToken();
34340
34340
  switch (third) {
34341
- case 58 /* ColonToken */:
34342
- if (disallowReturnTypeInArrowFunction) {
34343
- // "a ? () : ..."
34344
- return 0 /* False */;
34345
- }
34346
- return 1 /* True */;
34347
34341
  case 38 /* EqualsGreaterThanToken */:
34342
+ case 58 /* ColonToken */:
34348
34343
  case 18 /* OpenBraceToken */:
34349
34344
  return 1 /* True */;
34350
34345
  default:
@@ -34482,7 +34482,7 @@ var ts;
34482
34482
  return addJSDocComment(finishNode(node, pos));
34483
34483
  }
34484
34484
  function tryParseParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
34485
- var triState = isParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction);
34485
+ var triState = isParenthesizedArrowFunctionExpression();
34486
34486
  if (triState === 0 /* False */) {
34487
34487
  // It's definitely not a parenthesized arrow function expression.
34488
34488
  return undefined;
@@ -34499,9 +34499,9 @@ var ts;
34499
34499
  // False -> There *cannot* be a parenthesized arrow function here.
34500
34500
  // Unknown -> There *might* be a parenthesized arrow function here.
34501
34501
  // Speculatively look ahead to be sure, and rollback if not.
34502
- function isParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
34502
+ function isParenthesizedArrowFunctionExpression() {
34503
34503
  if (token() === 20 /* OpenParenToken */ || token() === 29 /* LessThanToken */ || token() === 131 /* AsyncKeyword */) {
34504
- return lookAhead(function () { return isParenthesizedArrowFunctionExpressionWorker(disallowReturnTypeInArrowFunction); });
34504
+ return lookAhead(isParenthesizedArrowFunctionExpressionWorker);
34505
34505
  }
34506
34506
  if (token() === 38 /* EqualsGreaterThanToken */) {
34507
34507
  // ERROR RECOVERY TWEAK:
@@ -34512,7 +34512,7 @@ var ts;
34512
34512
  // Definitely not a parenthesized arrow function.
34513
34513
  return 0 /* False */;
34514
34514
  }
34515
- function isParenthesizedArrowFunctionExpressionWorker(disallowReturnTypeInArrowFunction) {
34515
+ function isParenthesizedArrowFunctionExpressionWorker() {
34516
34516
  if (token() === 131 /* AsyncKeyword */) {
34517
34517
  nextToken();
34518
34518
  if (scanner.hasPrecedingLineBreak()) {
@@ -34532,13 +34532,8 @@ var ts;
34532
34532
  // but this is probably what the user intended.
34533
34533
  var third = nextToken();
34534
34534
  switch (third) {
34535
- case 58 /* ColonToken */:
34536
- if (disallowReturnTypeInArrowFunction) {
34537
- // "a ? () : ..."
34538
- return 0 /* False */;
34539
- }
34540
- return 1 /* True */;
34541
34535
  case 38 /* EqualsGreaterThanToken */:
34536
+ case 58 /* ColonToken */:
34542
34537
  case 18 /* OpenBraceToken */:
34543
34538
  return 1 /* True */;
34544
34539
  default:
package/lib/typescript.js CHANGED
@@ -34482,7 +34482,7 @@ var ts;
34482
34482
  return addJSDocComment(finishNode(node, pos));
34483
34483
  }
34484
34484
  function tryParseParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
34485
- var triState = isParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction);
34485
+ var triState = isParenthesizedArrowFunctionExpression();
34486
34486
  if (triState === 0 /* False */) {
34487
34487
  // It's definitely not a parenthesized arrow function expression.
34488
34488
  return undefined;
@@ -34499,9 +34499,9 @@ var ts;
34499
34499
  // False -> There *cannot* be a parenthesized arrow function here.
34500
34500
  // Unknown -> There *might* be a parenthesized arrow function here.
34501
34501
  // Speculatively look ahead to be sure, and rollback if not.
34502
- function isParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
34502
+ function isParenthesizedArrowFunctionExpression() {
34503
34503
  if (token() === 20 /* OpenParenToken */ || token() === 29 /* LessThanToken */ || token() === 131 /* AsyncKeyword */) {
34504
- return lookAhead(function () { return isParenthesizedArrowFunctionExpressionWorker(disallowReturnTypeInArrowFunction); });
34504
+ return lookAhead(isParenthesizedArrowFunctionExpressionWorker);
34505
34505
  }
34506
34506
  if (token() === 38 /* EqualsGreaterThanToken */) {
34507
34507
  // ERROR RECOVERY TWEAK:
@@ -34512,7 +34512,7 @@ var ts;
34512
34512
  // Definitely not a parenthesized arrow function.
34513
34513
  return 0 /* False */;
34514
34514
  }
34515
- function isParenthesizedArrowFunctionExpressionWorker(disallowReturnTypeInArrowFunction) {
34515
+ function isParenthesizedArrowFunctionExpressionWorker() {
34516
34516
  if (token() === 131 /* AsyncKeyword */) {
34517
34517
  nextToken();
34518
34518
  if (scanner.hasPrecedingLineBreak()) {
@@ -34532,13 +34532,8 @@ var ts;
34532
34532
  // but this is probably what the user intended.
34533
34533
  var third = nextToken();
34534
34534
  switch (third) {
34535
- case 58 /* ColonToken */:
34536
- if (disallowReturnTypeInArrowFunction) {
34537
- // "a ? () : ..."
34538
- return 0 /* False */;
34539
- }
34540
- return 1 /* True */;
34541
34535
  case 38 /* EqualsGreaterThanToken */:
34536
+ case 58 /* ColonToken */:
34542
34537
  case 18 /* OpenBraceToken */:
34543
34538
  return 1 /* True */;
34544
34539
  default:
@@ -34482,7 +34482,7 @@ var ts;
34482
34482
  return addJSDocComment(finishNode(node, pos));
34483
34483
  }
34484
34484
  function tryParseParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
34485
- var triState = isParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction);
34485
+ var triState = isParenthesizedArrowFunctionExpression();
34486
34486
  if (triState === 0 /* False */) {
34487
34487
  // It's definitely not a parenthesized arrow function expression.
34488
34488
  return undefined;
@@ -34499,9 +34499,9 @@ var ts;
34499
34499
  // False -> There *cannot* be a parenthesized arrow function here.
34500
34500
  // Unknown -> There *might* be a parenthesized arrow function here.
34501
34501
  // Speculatively look ahead to be sure, and rollback if not.
34502
- function isParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
34502
+ function isParenthesizedArrowFunctionExpression() {
34503
34503
  if (token() === 20 /* OpenParenToken */ || token() === 29 /* LessThanToken */ || token() === 131 /* AsyncKeyword */) {
34504
- return lookAhead(function () { return isParenthesizedArrowFunctionExpressionWorker(disallowReturnTypeInArrowFunction); });
34504
+ return lookAhead(isParenthesizedArrowFunctionExpressionWorker);
34505
34505
  }
34506
34506
  if (token() === 38 /* EqualsGreaterThanToken */) {
34507
34507
  // ERROR RECOVERY TWEAK:
@@ -34512,7 +34512,7 @@ var ts;
34512
34512
  // Definitely not a parenthesized arrow function.
34513
34513
  return 0 /* False */;
34514
34514
  }
34515
- function isParenthesizedArrowFunctionExpressionWorker(disallowReturnTypeInArrowFunction) {
34515
+ function isParenthesizedArrowFunctionExpressionWorker() {
34516
34516
  if (token() === 131 /* AsyncKeyword */) {
34517
34517
  nextToken();
34518
34518
  if (scanner.hasPrecedingLineBreak()) {
@@ -34532,13 +34532,8 @@ var ts;
34532
34532
  // but this is probably what the user intended.
34533
34533
  var third = nextToken();
34534
34534
  switch (third) {
34535
- case 58 /* ColonToken */:
34536
- if (disallowReturnTypeInArrowFunction) {
34537
- // "a ? () : ..."
34538
- return 0 /* False */;
34539
- }
34540
- return 1 /* True */;
34541
34535
  case 38 /* EqualsGreaterThanToken */:
34536
+ case 58 /* ColonToken */:
34542
34537
  case 18 /* OpenBraceToken */:
34543
34538
  return 1 /* True */;
34544
34539
  default:
@@ -34277,7 +34277,7 @@ var ts;
34277
34277
  return addJSDocComment(finishNode(node, pos));
34278
34278
  }
34279
34279
  function tryParseParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
34280
- var triState = isParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction);
34280
+ var triState = isParenthesizedArrowFunctionExpression();
34281
34281
  if (triState === 0 /* False */) {
34282
34282
  // It's definitely not a parenthesized arrow function expression.
34283
34283
  return undefined;
@@ -34294,9 +34294,9 @@ var ts;
34294
34294
  // False -> There *cannot* be a parenthesized arrow function here.
34295
34295
  // Unknown -> There *might* be a parenthesized arrow function here.
34296
34296
  // Speculatively look ahead to be sure, and rollback if not.
34297
- function isParenthesizedArrowFunctionExpression(disallowReturnTypeInArrowFunction) {
34297
+ function isParenthesizedArrowFunctionExpression() {
34298
34298
  if (token() === 20 /* OpenParenToken */ || token() === 29 /* LessThanToken */ || token() === 131 /* AsyncKeyword */) {
34299
- return lookAhead(function () { return isParenthesizedArrowFunctionExpressionWorker(disallowReturnTypeInArrowFunction); });
34299
+ return lookAhead(isParenthesizedArrowFunctionExpressionWorker);
34300
34300
  }
34301
34301
  if (token() === 38 /* EqualsGreaterThanToken */) {
34302
34302
  // ERROR RECOVERY TWEAK:
@@ -34307,7 +34307,7 @@ var ts;
34307
34307
  // Definitely not a parenthesized arrow function.
34308
34308
  return 0 /* False */;
34309
34309
  }
34310
- function isParenthesizedArrowFunctionExpressionWorker(disallowReturnTypeInArrowFunction) {
34310
+ function isParenthesizedArrowFunctionExpressionWorker() {
34311
34311
  if (token() === 131 /* AsyncKeyword */) {
34312
34312
  nextToken();
34313
34313
  if (scanner.hasPrecedingLineBreak()) {
@@ -34327,13 +34327,8 @@ var ts;
34327
34327
  // but this is probably what the user intended.
34328
34328
  var third = nextToken();
34329
34329
  switch (third) {
34330
- case 58 /* ColonToken */:
34331
- if (disallowReturnTypeInArrowFunction) {
34332
- // "a ? () : ..."
34333
- return 0 /* False */;
34334
- }
34335
- return 1 /* True */;
34336
34330
  case 38 /* EqualsGreaterThanToken */:
34331
+ case 58 /* ColonToken */:
34337
34332
  case 18 /* OpenBraceToken */:
34338
34333
  return 1 /* True */;
34339
34334
  default:
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": "4.7.0-pr-48792-4",
5
+ "version": "4.7.0-pr-48792-5",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [