@typescript-deploys/pr-build 5.0.0-pr-52450-10 → 5.0.0-pr-52434-2

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
@@ -28556,7 +28556,7 @@ var Parser;
28556
28556
  return Tristate.False;
28557
28557
  }
28558
28558
  if (languageVariant === 1 /* JSX */) {
28559
- return lookAhead(() => {
28559
+ const isArrowFunctionInJsx = lookAhead(() => {
28560
28560
  parseOptional(85 /* ConstKeyword */);
28561
28561
  const third = nextToken();
28562
28562
  if (third === 94 /* ExtendsKeyword */) {
@@ -28564,15 +28564,19 @@ var Parser;
28564
28564
  switch (fourth) {
28565
28565
  case 63 /* EqualsToken */:
28566
28566
  case 31 /* GreaterThanToken */:
28567
- return Tristate.False;
28567
+ return false;
28568
28568
  default:
28569
- return Tristate.Unknown;
28569
+ return true;
28570
28570
  }
28571
28571
  } else if (third === 27 /* CommaToken */ || third === 63 /* EqualsToken */) {
28572
- return Tristate.True;
28572
+ return true;
28573
28573
  }
28574
- return Tristate.False;
28574
+ return false;
28575
28575
  });
28576
+ if (isArrowFunctionInJsx) {
28577
+ return Tristate.True;
28578
+ }
28579
+ return Tristate.False;
28576
28580
  }
28577
28581
  return Tristate.Unknown;
28578
28582
  }
@@ -78283,7 +78287,7 @@ function createTypeChecker(host) {
78283
78287
  const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */);
78284
78288
  if (node.expression.kind === 79 /* Identifier */) {
78285
78289
  const id = node.expression;
78286
- const sym = resolveEntityName(
78290
+ const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName(
78287
78291
  id,
78288
78292
  67108863 /* All */,
78289
78293
  /*ignoreErrors*/
@@ -78291,7 +78295,7 @@ function createTypeChecker(host) {
78291
78295
  /*dontResolveAlias*/
78292
78296
  true,
78293
78297
  node
78294
- );
78298
+ ));
78295
78299
  if (sym) {
78296
78300
  markAliasReferenced(sym, id);
78297
78301
  if (getAllSymbolFlags(sym) & 111551 /* Value */) {
package/lib/tsserver.js CHANGED
@@ -32966,7 +32966,7 @@ var Parser;
32966
32966
  return Tristate.False;
32967
32967
  }
32968
32968
  if (languageVariant === 1 /* JSX */) {
32969
- return lookAhead(() => {
32969
+ const isArrowFunctionInJsx = lookAhead(() => {
32970
32970
  parseOptional(85 /* ConstKeyword */);
32971
32971
  const third = nextToken();
32972
32972
  if (third === 94 /* ExtendsKeyword */) {
@@ -32974,15 +32974,19 @@ var Parser;
32974
32974
  switch (fourth) {
32975
32975
  case 63 /* EqualsToken */:
32976
32976
  case 31 /* GreaterThanToken */:
32977
- return Tristate.False;
32977
+ return false;
32978
32978
  default:
32979
- return Tristate.Unknown;
32979
+ return true;
32980
32980
  }
32981
32981
  } else if (third === 27 /* CommaToken */ || third === 63 /* EqualsToken */) {
32982
- return Tristate.True;
32982
+ return true;
32983
32983
  }
32984
- return Tristate.False;
32984
+ return false;
32985
32985
  });
32986
+ if (isArrowFunctionInJsx) {
32987
+ return Tristate.True;
32988
+ }
32989
+ return Tristate.False;
32986
32990
  }
32987
32991
  return Tristate.Unknown;
32988
32992
  }
@@ -82941,7 +82945,7 @@ function createTypeChecker(host) {
82941
82945
  const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */);
82942
82946
  if (node.expression.kind === 79 /* Identifier */) {
82943
82947
  const id = node.expression;
82944
- const sym = resolveEntityName(
82948
+ const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName(
82945
82949
  id,
82946
82950
  67108863 /* All */,
82947
82951
  /*ignoreErrors*/
@@ -82949,7 +82953,7 @@ function createTypeChecker(host) {
82949
82953
  /*dontResolveAlias*/
82950
82954
  true,
82951
82955
  node
82952
- );
82956
+ ));
82953
82957
  if (sym) {
82954
82958
  markAliasReferenced(sym, id);
82955
82959
  if (getAllSymbolFlags(sym) & 111551 /* Value */) {
@@ -160850,6 +160854,7 @@ function convertToBlock(body) {
160850
160854
  if (isExpression(body)) {
160851
160855
  const returnStatement = factory.createReturnStatement(body);
160852
160856
  const file = body.getSourceFile();
160857
+ setTextRange(returnStatement, body);
160853
160858
  suppressLeadingAndTrailingTrivia(returnStatement);
160854
160859
  copyTrailingAsLeadingComments(
160855
160860
  body,
@@ -30993,7 +30993,7 @@ ${lanes.join("\n")}
30993
30993
  return Tristate.False;
30994
30994
  }
30995
30995
  if (languageVariant === 1 /* JSX */) {
30996
- return lookAhead(() => {
30996
+ const isArrowFunctionInJsx = lookAhead(() => {
30997
30997
  parseOptional(85 /* ConstKeyword */);
30998
30998
  const third = nextToken();
30999
30999
  if (third === 94 /* ExtendsKeyword */) {
@@ -31001,15 +31001,19 @@ ${lanes.join("\n")}
31001
31001
  switch (fourth) {
31002
31002
  case 63 /* EqualsToken */:
31003
31003
  case 31 /* GreaterThanToken */:
31004
- return Tristate.False;
31004
+ return false;
31005
31005
  default:
31006
- return Tristate.Unknown;
31006
+ return true;
31007
31007
  }
31008
31008
  } else if (third === 27 /* CommaToken */ || third === 63 /* EqualsToken */) {
31009
- return Tristate.True;
31009
+ return true;
31010
31010
  }
31011
- return Tristate.False;
31011
+ return false;
31012
31012
  });
31013
+ if (isArrowFunctionInJsx) {
31014
+ return Tristate.True;
31015
+ }
31016
+ return Tristate.False;
31013
31017
  }
31014
31018
  return Tristate.Unknown;
31015
31019
  }
@@ -80667,7 +80671,7 @@ ${lanes.join("\n")}
80667
80671
  const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */);
80668
80672
  if (node.expression.kind === 79 /* Identifier */) {
80669
80673
  const id = node.expression;
80670
- const sym = resolveEntityName(
80674
+ const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName(
80671
80675
  id,
80672
80676
  67108863 /* All */,
80673
80677
  /*ignoreErrors*/
@@ -80675,7 +80679,7 @@ ${lanes.join("\n")}
80675
80679
  /*dontResolveAlias*/
80676
80680
  true,
80677
80681
  node
80678
- );
80682
+ ));
80679
80683
  if (sym) {
80680
80684
  markAliasReferenced(sym, id);
80681
80685
  if (getAllSymbolFlags(sym) & 111551 /* Value */) {
@@ -157679,6 +157683,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
157679
157683
  if (isExpression(body)) {
157680
157684
  const returnStatement = factory.createReturnStatement(body);
157681
157685
  const file = body.getSourceFile();
157686
+ setTextRange(returnStatement, body);
157682
157687
  suppressLeadingAndTrailingTrivia(returnStatement);
157683
157688
  copyTrailingAsLeadingComments(
157684
157689
  body,
package/lib/typescript.js CHANGED
@@ -30993,7 +30993,7 @@ ${lanes.join("\n")}
30993
30993
  return Tristate.False;
30994
30994
  }
30995
30995
  if (languageVariant === 1 /* JSX */) {
30996
- return lookAhead(() => {
30996
+ const isArrowFunctionInJsx = lookAhead(() => {
30997
30997
  parseOptional(85 /* ConstKeyword */);
30998
30998
  const third = nextToken();
30999
30999
  if (third === 94 /* ExtendsKeyword */) {
@@ -31001,15 +31001,19 @@ ${lanes.join("\n")}
31001
31001
  switch (fourth) {
31002
31002
  case 63 /* EqualsToken */:
31003
31003
  case 31 /* GreaterThanToken */:
31004
- return Tristate.False;
31004
+ return false;
31005
31005
  default:
31006
- return Tristate.Unknown;
31006
+ return true;
31007
31007
  }
31008
31008
  } else if (third === 27 /* CommaToken */ || third === 63 /* EqualsToken */) {
31009
- return Tristate.True;
31009
+ return true;
31010
31010
  }
31011
- return Tristate.False;
31011
+ return false;
31012
31012
  });
31013
+ if (isArrowFunctionInJsx) {
31014
+ return Tristate.True;
31015
+ }
31016
+ return Tristate.False;
31013
31017
  }
31014
31018
  return Tristate.Unknown;
31015
31019
  }
@@ -80667,7 +80671,7 @@ ${lanes.join("\n")}
80667
80671
  const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 16777216 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */);
80668
80672
  if (node.expression.kind === 79 /* Identifier */) {
80669
80673
  const id = node.expression;
80670
- const sym = resolveEntityName(
80674
+ const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName(
80671
80675
  id,
80672
80676
  67108863 /* All */,
80673
80677
  /*ignoreErrors*/
@@ -80675,7 +80679,7 @@ ${lanes.join("\n")}
80675
80679
  /*dontResolveAlias*/
80676
80680
  true,
80677
80681
  node
80678
- );
80682
+ ));
80679
80683
  if (sym) {
80680
80684
  markAliasReferenced(sym, id);
80681
80685
  if (getAllSymbolFlags(sym) & 111551 /* Value */) {
@@ -157693,6 +157697,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
157693
157697
  if (isExpression(body)) {
157694
157698
  const returnStatement = factory.createReturnStatement(body);
157695
157699
  const file = body.getSourceFile();
157700
+ setTextRange(returnStatement, body);
157696
157701
  suppressLeadingAndTrailingTrivia(returnStatement);
157697
157702
  copyTrailingAsLeadingComments(
157698
157703
  body,
@@ -21799,7 +21799,7 @@ var Parser;
21799
21799
  return Tristate.False;
21800
21800
  }
21801
21801
  if (languageVariant === 1 /* JSX */) {
21802
- return lookAhead(() => {
21802
+ const isArrowFunctionInJsx = lookAhead(() => {
21803
21803
  parseOptional(85 /* ConstKeyword */);
21804
21804
  const third = nextToken();
21805
21805
  if (third === 94 /* ExtendsKeyword */) {
@@ -21807,15 +21807,19 @@ var Parser;
21807
21807
  switch (fourth) {
21808
21808
  case 63 /* EqualsToken */:
21809
21809
  case 31 /* GreaterThanToken */:
21810
- return Tristate.False;
21810
+ return false;
21811
21811
  default:
21812
- return Tristate.Unknown;
21812
+ return true;
21813
21813
  }
21814
21814
  } else if (third === 27 /* CommaToken */ || third === 63 /* EqualsToken */) {
21815
- return Tristate.True;
21815
+ return true;
21816
21816
  }
21817
- return Tristate.False;
21817
+ return false;
21818
21818
  });
21819
+ if (isArrowFunctionInJsx) {
21820
+ return Tristate.True;
21821
+ }
21822
+ return Tristate.False;
21819
21823
  }
21820
21824
  return Tristate.Unknown;
21821
21825
  }
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-52450-10",
5
+ "version": "5.0.0-pr-52434-2",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [