@typescript-deploys/pr-build 5.0.0-pr-49929-73 → 5.0.0-pr-52280-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.
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.0";
57
- var version = `${versionMajorMinor}.0-insiders.20230116`;
57
+ var version = `${versionMajorMinor}.0-insiders.20230118`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -2966,14 +2966,15 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
2966
2966
  SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 350] = "JSDocSeeTag";
2967
2967
  SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 351] = "JSDocPropertyTag";
2968
2968
  SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 352] = "JSDocThrowsTag";
2969
- SyntaxKind4[SyntaxKind4["SyntaxList"] = 353] = "SyntaxList";
2970
- SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 354] = "NotEmittedStatement";
2971
- SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 355] = "PartiallyEmittedExpression";
2972
- SyntaxKind4[SyntaxKind4["CommaListExpression"] = 356] = "CommaListExpression";
2973
- SyntaxKind4[SyntaxKind4["MergeDeclarationMarker"] = 357] = "MergeDeclarationMarker";
2974
- SyntaxKind4[SyntaxKind4["EndOfDeclarationMarker"] = 358] = "EndOfDeclarationMarker";
2975
- SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 359] = "SyntheticReferenceExpression";
2976
- SyntaxKind4[SyntaxKind4["Count"] = 360] = "Count";
2969
+ SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 353] = "JSDocSatisfiesTag";
2970
+ SyntaxKind4[SyntaxKind4["SyntaxList"] = 354] = "SyntaxList";
2971
+ SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 355] = "NotEmittedStatement";
2972
+ SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 356] = "PartiallyEmittedExpression";
2973
+ SyntaxKind4[SyntaxKind4["CommaListExpression"] = 357] = "CommaListExpression";
2974
+ SyntaxKind4[SyntaxKind4["MergeDeclarationMarker"] = 358] = "MergeDeclarationMarker";
2975
+ SyntaxKind4[SyntaxKind4["EndOfDeclarationMarker"] = 359] = "EndOfDeclarationMarker";
2976
+ SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 360] = "SyntheticReferenceExpression";
2977
+ SyntaxKind4[SyntaxKind4["Count"] = 361] = "Count";
2977
2978
  SyntaxKind4[SyntaxKind4["FirstAssignment"] = 63 /* EqualsToken */] = "FirstAssignment";
2978
2979
  SyntaxKind4[SyntaxKind4["LastAssignment"] = 78 /* CaretEqualsToken */] = "LastAssignment";
2979
2980
  SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 64 /* PlusEqualsToken */] = "FirstCompoundAssignment";
@@ -3002,9 +3003,9 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
3002
3003
  SyntaxKind4[SyntaxKind4["LastStatement"] = 256 /* DebuggerStatement */] = "LastStatement";
3003
3004
  SyntaxKind4[SyntaxKind4["FirstNode"] = 163 /* QualifiedName */] = "FirstNode";
3004
3005
  SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 312 /* JSDocTypeExpression */] = "FirstJSDocNode";
3005
- SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 352 /* JSDocThrowsTag */] = "LastJSDocNode";
3006
+ SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 353 /* JSDocSatisfiesTag */] = "LastJSDocNode";
3006
3007
  SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 330 /* JSDocTag */] = "FirstJSDocTagNode";
3007
- SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 352 /* JSDocThrowsTag */] = "LastJSDocTagNode";
3008
+ SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 353 /* JSDocSatisfiesTag */] = "LastJSDocTagNode";
3008
3009
  SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 126 /* AbstractKeyword */] = "FirstContextualKeyword";
3009
3010
  SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 162 /* OfKeyword */] = "LastContextualKeyword";
3010
3011
  return SyntaxKind4;
@@ -5355,7 +5356,6 @@ var Diagnostics = {
5355
5356
  An_export_declaration_cannot_have_modifiers: diag(1193, 1 /* Error */, "An_export_declaration_cannot_have_modifiers_1193", "An export declaration cannot have modifiers."),
5356
5357
  Export_declarations_are_not_permitted_in_a_namespace: diag(1194, 1 /* Error */, "Export_declarations_are_not_permitted_in_a_namespace_1194", "Export declarations are not permitted in a namespace."),
5357
5358
  export_Asterisk_does_not_re_export_a_default: diag(1195, 1 /* Error */, "export_Asterisk_does_not_re_export_a_default_1195", "'export *' does not re-export a default."),
5358
- Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified: diag(1196, 1 /* Error */, "Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196", "Catch clause variable type annotation must be 'any' or 'unknown' if specified."),
5359
5359
  Catch_clause_variable_cannot_have_an_initializer: diag(1197, 1 /* Error */, "Catch_clause_variable_cannot_have_an_initializer_1197", "Catch clause variable cannot have an initializer."),
5360
5360
  An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: diag(1198, 1 /* Error */, "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198", "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),
5361
5361
  Unterminated_Unicode_escape_sequence: diag(1199, 1 /* Error */, "Unterminated_Unicode_escape_sequence_1199", "Unterminated Unicode escape sequence."),
@@ -6301,7 +6301,7 @@ var Diagnostics = {
6301
6301
  Compiler_option_0_may_only_be_used_with_build: diag(5093, 1 /* Error */, "Compiler_option_0_may_only_be_used_with_build_5093", "Compiler option '--{0}' may only be used with '--build'."),
6302
6302
  Compiler_option_0_may_not_be_used_with_build: diag(5094, 1 /* Error */, "Compiler_option_0_may_not_be_used_with_build_5094", "Compiler option '--{0}' may not be used with '--build'."),
6303
6303
  Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later: diag(5095, 1 /* Error */, "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095", "Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),
6304
- Option_allowImportingTsExtensions_can_only_be_used_when_moduleResolution_is_set_to_bundler_and_either_noEmit_or_emitDeclarationOnly_is_set: diag(5096, 1 /* Error */, "Option_allowImportingTsExtensions_can_only_be_used_when_moduleResolution_is_set_to_bundler_and_eithe_5096", "Option 'allowImportingTsExtensions' can only be used when 'moduleResolution' is set to 'bundler' and either 'noEmit' or 'emitDeclarationOnly' is set."),
6304
+ Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set: diag(5096, 1 /* Error */, "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096", "Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),
6305
6305
  An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled: diag(5097, 1 /* Error */, "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097", "An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),
6306
6306
  Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler: diag(5098, 1 /* Error */, "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098", "Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),
6307
6307
  Import_assignment_is_not_allowed_when_moduleResolution_is_set_to_bundler_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead: diag(5099, 1 /* Error */, "Import_assignment_is_not_allowed_when_moduleResolution_is_set_to_bundler_Consider_using_import_Aster_5099", `Import assignment is not allowed when 'moduleResolution' is set to 'bundler'. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),
@@ -7223,7 +7223,8 @@ var Diagnostics = {
7223
7223
  _0_is_possibly_null: diag(18047, 1 /* Error */, "_0_is_possibly_null_18047", "'{0}' is possibly 'null'."),
7224
7224
  _0_is_possibly_undefined: diag(18048, 1 /* Error */, "_0_is_possibly_undefined_18048", "'{0}' is possibly 'undefined'."),
7225
7225
  _0_is_possibly_null_or_undefined: diag(18049, 1 /* Error */, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."),
7226
- The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here.")
7226
+ The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."),
7227
+ Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string.")
7227
7228
  };
7228
7229
 
7229
7230
  // src/compiler/scanner.ts
@@ -9963,8 +9964,8 @@ function isExpressionKind(kind) {
9963
9964
  case 227 /* SpreadElement */:
9964
9965
  case 231 /* AsExpression */:
9965
9966
  case 229 /* OmittedExpression */:
9966
- case 356 /* CommaListExpression */:
9967
- case 355 /* PartiallyEmittedExpression */:
9967
+ case 357 /* CommaListExpression */:
9968
+ case 356 /* PartiallyEmittedExpression */:
9968
9969
  case 235 /* SatisfiesExpression */:
9969
9970
  return true;
9970
9971
  default:
@@ -10103,7 +10104,7 @@ function isDeclarationStatementKind(kind) {
10103
10104
  return kind === 259 /* FunctionDeclaration */ || kind === 279 /* MissingDeclaration */ || kind === 260 /* ClassDeclaration */ || kind === 261 /* InterfaceDeclaration */ || kind === 262 /* TypeAliasDeclaration */ || kind === 263 /* EnumDeclaration */ || kind === 264 /* ModuleDeclaration */ || kind === 269 /* ImportDeclaration */ || kind === 268 /* ImportEqualsDeclaration */ || kind === 275 /* ExportDeclaration */ || kind === 274 /* ExportAssignment */ || kind === 267 /* NamespaceExportDeclaration */;
10104
10105
  }
10105
10106
  function isStatementKindButNotDeclarationKind(kind) {
10106
- return kind === 249 /* BreakStatement */ || kind === 248 /* ContinueStatement */ || kind === 256 /* DebuggerStatement */ || kind === 243 /* DoStatement */ || kind === 241 /* ExpressionStatement */ || kind === 239 /* EmptyStatement */ || kind === 246 /* ForInStatement */ || kind === 247 /* ForOfStatement */ || kind === 245 /* ForStatement */ || kind === 242 /* IfStatement */ || kind === 253 /* LabeledStatement */ || kind === 250 /* ReturnStatement */ || kind === 252 /* SwitchStatement */ || kind === 254 /* ThrowStatement */ || kind === 255 /* TryStatement */ || kind === 240 /* VariableStatement */ || kind === 244 /* WhileStatement */ || kind === 251 /* WithStatement */ || kind === 354 /* NotEmittedStatement */ || kind === 358 /* EndOfDeclarationMarker */ || kind === 357 /* MergeDeclarationMarker */;
10107
+ return kind === 249 /* BreakStatement */ || kind === 248 /* ContinueStatement */ || kind === 256 /* DebuggerStatement */ || kind === 243 /* DoStatement */ || kind === 241 /* ExpressionStatement */ || kind === 239 /* EmptyStatement */ || kind === 246 /* ForInStatement */ || kind === 247 /* ForOfStatement */ || kind === 245 /* ForStatement */ || kind === 242 /* IfStatement */ || kind === 253 /* LabeledStatement */ || kind === 250 /* ReturnStatement */ || kind === 252 /* SwitchStatement */ || kind === 254 /* ThrowStatement */ || kind === 255 /* TryStatement */ || kind === 240 /* VariableStatement */ || kind === 244 /* WhileStatement */ || kind === 251 /* WithStatement */ || kind === 355 /* NotEmittedStatement */ || kind === 359 /* EndOfDeclarationMarker */ || kind === 358 /* MergeDeclarationMarker */;
10107
10108
  }
10108
10109
  function isDeclaration(node) {
10109
10110
  if (node.kind === 165 /* TypeParameter */) {
@@ -10160,7 +10161,7 @@ function isCaseOrDefaultClause(node) {
10160
10161
  return kind === 292 /* CaseClause */ || kind === 293 /* DefaultClause */;
10161
10162
  }
10162
10163
  function isJSDocNode(node) {
10163
- return node.kind >= 312 /* FirstJSDocNode */ && node.kind <= 352 /* LastJSDocNode */;
10164
+ return node.kind >= 312 /* FirstJSDocNode */ && node.kind <= 353 /* LastJSDocNode */;
10164
10165
  }
10165
10166
  function hasJSDocNodes(node) {
10166
10167
  if (!canHaveJSDoc(node))
@@ -10295,7 +10296,7 @@ function getTokenPosOfNode(node, sourceFile, includeJsDoc) {
10295
10296
  if (includeJsDoc && hasJSDocNodes(node)) {
10296
10297
  return getTokenPosOfNode(node.jsDoc[0], sourceFile);
10297
10298
  }
10298
- if (node.kind === 353 /* SyntaxList */ && node._children.length > 0) {
10299
+ if (node.kind === 354 /* SyntaxList */ && node._children.length > 0) {
10299
10300
  return getTokenPosOfNode(node._children[0], sourceFile, includeJsDoc);
10300
10301
  }
10301
10302
  return skipTrivia(
@@ -11030,7 +11031,7 @@ function filterOwnedJSDocTags(hostNode, jsDoc) {
11030
11031
  return ownsJSDocTag(hostNode, jsDoc) ? [jsDoc] : void 0;
11031
11032
  }
11032
11033
  function ownsJSDocTag(hostNode, tag) {
11033
- return !isJSDocTypeTag(tag) || !tag.parent || !isJSDoc(tag.parent) || !isParenthesizedExpression(tag.parent.parent) || tag.parent.parent === hostNode;
11034
+ return !(isJSDocTypeTag(tag) || isJSDocSatisfiesTag(tag)) || !tag.parent || !isJSDoc(tag.parent) || !isParenthesizedExpression(tag.parent.parent) || tag.parent.parent === hostNode;
11034
11035
  }
11035
11036
  function getNextJSDocCommentLocation(node) {
11036
11037
  const parent = node.parent;
@@ -11285,7 +11286,7 @@ function getOperator(expression) {
11285
11286
  }
11286
11287
  function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {
11287
11288
  switch (nodeKind) {
11288
- case 356 /* CommaListExpression */:
11289
+ case 357 /* CommaListExpression */:
11289
11290
  return 0 /* Comma */;
11290
11291
  case 227 /* SpreadElement */:
11291
11292
  return 1 /* Spread */;
@@ -11594,9 +11595,21 @@ function modifierToFlag(token) {
11594
11595
  }
11595
11596
  return 0 /* None */;
11596
11597
  }
11598
+ function isBinaryLogicalOperator(token) {
11599
+ return token === 56 /* BarBarToken */ || token === 55 /* AmpersandAmpersandToken */;
11600
+ }
11597
11601
  function isLogicalOrCoalescingAssignmentOperator(token) {
11598
11602
  return token === 75 /* BarBarEqualsToken */ || token === 76 /* AmpersandAmpersandEqualsToken */ || token === 77 /* QuestionQuestionEqualsToken */;
11599
11603
  }
11604
+ function isLogicalOrCoalescingAssignmentExpression(expr) {
11605
+ return isBinaryExpression(expr) && isLogicalOrCoalescingAssignmentOperator(expr.operatorToken.kind);
11606
+ }
11607
+ function isLogicalOrCoalescingBinaryOperator(token) {
11608
+ return isBinaryLogicalOperator(token) || token === 60 /* QuestionQuestionToken */;
11609
+ }
11610
+ function isLogicalOrCoalescingBinaryExpression(expr) {
11611
+ return isBinaryExpression(expr) && isLogicalOrCoalescingBinaryOperator(expr.operatorToken.kind);
11612
+ }
11600
11613
  function isAssignmentOperator(token) {
11601
11614
  return token >= 63 /* FirstAssignment */ && token <= 78 /* LastAssignment */;
11602
11615
  }
@@ -11706,7 +11719,7 @@ function getLeftmostExpression(node, stopAtCallExpressions) {
11706
11719
  case 209 /* ElementAccessExpression */:
11707
11720
  case 208 /* PropertyAccessExpression */:
11708
11721
  case 232 /* NonNullExpression */:
11709
- case 355 /* PartiallyEmittedExpression */:
11722
+ case 356 /* PartiallyEmittedExpression */:
11710
11723
  case 235 /* SatisfiesExpression */:
11711
11724
  node = node.expression;
11712
11725
  continue;
@@ -13365,6 +13378,12 @@ function createNodeFactory(flags, baseFactory2) {
13365
13378
  get updateJSDocThrowsTag() {
13366
13379
  return getJSDocTypeLikeTagUpdateFunction(352 /* JSDocThrowsTag */);
13367
13380
  },
13381
+ get createJSDocSatisfiesTag() {
13382
+ return getJSDocTypeLikeTagCreateFunction(353 /* JSDocSatisfiesTag */);
13383
+ },
13384
+ get updateJSDocSatisfiesTag() {
13385
+ return getJSDocTypeLikeTagUpdateFunction(353 /* JSDocSatisfiesTag */);
13386
+ },
13368
13387
  createJSDocEnumTag,
13369
13388
  updateJSDocEnumTag,
13370
13389
  createJSDocUnknownTag,
@@ -16524,18 +16543,18 @@ function createNodeFactory(flags, baseFactory2) {
16524
16543
  return node;
16525
16544
  }
16526
16545
  function createSyntaxList(children) {
16527
- const node = createBaseNode(353 /* SyntaxList */);
16546
+ const node = createBaseNode(354 /* SyntaxList */);
16528
16547
  node._children = children;
16529
16548
  return node;
16530
16549
  }
16531
16550
  function createNotEmittedStatement(original) {
16532
- const node = createBaseNode(354 /* NotEmittedStatement */);
16551
+ const node = createBaseNode(355 /* NotEmittedStatement */);
16533
16552
  node.original = original;
16534
16553
  setTextRange(node, original);
16535
16554
  return node;
16536
16555
  }
16537
16556
  function createPartiallyEmittedExpression(expression, original) {
16538
- const node = createBaseNode(355 /* PartiallyEmittedExpression */);
16557
+ const node = createBaseNode(356 /* PartiallyEmittedExpression */);
16539
16558
  node.expression = expression;
16540
16559
  node.original = original;
16541
16560
  node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */;
@@ -16557,7 +16576,7 @@ function createNodeFactory(flags, baseFactory2) {
16557
16576
  return node;
16558
16577
  }
16559
16578
  function createCommaListExpression(elements) {
16560
- const node = createBaseNode(356 /* CommaListExpression */);
16579
+ const node = createBaseNode(357 /* CommaListExpression */);
16561
16580
  node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements));
16562
16581
  node.transformFlags |= propagateChildrenFlags(node.elements);
16563
16582
  return node;
@@ -16566,19 +16585,19 @@ function createNodeFactory(flags, baseFactory2) {
16566
16585
  return node.elements !== elements ? update(createCommaListExpression(elements), node) : node;
16567
16586
  }
16568
16587
  function createEndOfDeclarationMarker(original) {
16569
- const node = createBaseNode(358 /* EndOfDeclarationMarker */);
16588
+ const node = createBaseNode(359 /* EndOfDeclarationMarker */);
16570
16589
  node.emitNode = {};
16571
16590
  node.original = original;
16572
16591
  return node;
16573
16592
  }
16574
16593
  function createMergeDeclarationMarker(original) {
16575
- const node = createBaseNode(357 /* MergeDeclarationMarker */);
16594
+ const node = createBaseNode(358 /* MergeDeclarationMarker */);
16576
16595
  node.emitNode = {};
16577
16596
  node.original = original;
16578
16597
  return node;
16579
16598
  }
16580
16599
  function createSyntheticReferenceExpression(expression, thisArg) {
16581
- const node = createBaseNode(359 /* SyntheticReferenceExpression */);
16600
+ const node = createBaseNode(360 /* SyntheticReferenceExpression */);
16582
16601
  node.expression = expression;
16583
16602
  node.thisArg = thisArg;
16584
16603
  node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg);
@@ -16818,7 +16837,7 @@ function createNodeFactory(flags, baseFactory2) {
16818
16837
  return updateSatisfiesExpression(outerExpression, expression, outerExpression.type);
16819
16838
  case 232 /* NonNullExpression */:
16820
16839
  return updateNonNullExpression(outerExpression, expression);
16821
- case 355 /* PartiallyEmittedExpression */:
16840
+ case 356 /* PartiallyEmittedExpression */:
16822
16841
  return updatePartiallyEmittedExpression(outerExpression, expression);
16823
16842
  }
16824
16843
  }
@@ -17354,7 +17373,7 @@ function getTransformFlagsSubtreeExclusions(kind) {
17354
17373
  case 213 /* TypeAssertionExpression */:
17355
17374
  case 235 /* SatisfiesExpression */:
17356
17375
  case 231 /* AsExpression */:
17357
- case 355 /* PartiallyEmittedExpression */:
17376
+ case 356 /* PartiallyEmittedExpression */:
17358
17377
  case 214 /* ParenthesizedExpression */:
17359
17378
  case 106 /* SuperKeyword */:
17360
17379
  return -2147483648 /* OuterExpressionExcludes */;
@@ -17779,7 +17798,7 @@ function isMetaProperty(node) {
17779
17798
  return node.kind === 233 /* MetaProperty */;
17780
17799
  }
17781
17800
  function isCommaListExpression(node) {
17782
- return node.kind === 356 /* CommaListExpression */;
17801
+ return node.kind === 357 /* CommaListExpression */;
17783
17802
  }
17784
17803
  function isTemplateSpan(node) {
17785
17804
  return node.kind === 236 /* TemplateSpan */;
@@ -17860,7 +17879,7 @@ function isExportSpecifier(node) {
17860
17879
  return node.kind === 278 /* ExportSpecifier */;
17861
17880
  }
17862
17881
  function isNotEmittedStatement(node) {
17863
- return node.kind === 354 /* NotEmittedStatement */;
17882
+ return node.kind === 355 /* NotEmittedStatement */;
17864
17883
  }
17865
17884
  function isExternalModuleReference(node) {
17866
17885
  return node.kind === 280 /* ExternalModuleReference */;
@@ -17946,6 +17965,9 @@ function isJSDocTypeTag(node) {
17946
17965
  function isJSDocTemplateTag(node) {
17947
17966
  return node.kind === 348 /* JSDocTemplateTag */;
17948
17967
  }
17968
+ function isJSDocSatisfiesTag(node) {
17969
+ return node.kind === 353 /* JSDocSatisfiesTag */;
17970
+ }
17949
17971
 
17950
17972
  // src/compiler/factory/utilities.ts
17951
17973
  function isLocalName(node) {
@@ -17967,7 +17989,7 @@ function findUseStrictPrologue(statements) {
17967
17989
  return void 0;
17968
17990
  }
17969
17991
  function isCommaSequence(node) {
17970
- return node.kind === 223 /* BinaryExpression */ && node.operatorToken.kind === 27 /* CommaToken */ || node.kind === 356 /* CommaListExpression */;
17992
+ return node.kind === 223 /* BinaryExpression */ && node.operatorToken.kind === 27 /* CommaToken */ || node.kind === 357 /* CommaListExpression */;
17971
17993
  }
17972
17994
  function isJSDocTypeAssertion(node) {
17973
17995
  return isParenthesizedExpression(node) && isInJSFile(node) && !!getJSDocTypeTag(node);
@@ -17985,7 +18007,7 @@ function isOuterExpression(node, kinds = 15 /* All */) {
17985
18007
  return (kinds & 2 /* TypeAssertions */) !== 0;
17986
18008
  case 232 /* NonNullExpression */:
17987
18009
  return (kinds & 4 /* NonNullAssertions */) !== 0;
17988
- case 355 /* PartiallyEmittedExpression */:
18010
+ case 356 /* PartiallyEmittedExpression */:
17989
18011
  return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0;
17990
18012
  }
17991
18013
  return false;
@@ -18648,7 +18670,7 @@ var forEachChildTable = {
18648
18670
  [279 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) {
18649
18671
  return visitNodes(cbNode, cbNodes, node.illegalDecorators) || visitNodes(cbNode, cbNodes, node.modifiers);
18650
18672
  },
18651
- [356 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
18673
+ [357 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
18652
18674
  return visitNodes(cbNode, cbNodes, node.elements);
18653
18675
  },
18654
18676
  [281 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) {
@@ -18720,6 +18742,7 @@ var forEachChildTable = {
18720
18742
  [347 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag,
18721
18743
  [346 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag,
18722
18744
  [343 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag,
18745
+ [353 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag,
18723
18746
  [352 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag,
18724
18747
  [342 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag,
18725
18748
  [326 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) {
@@ -18739,7 +18762,7 @@ var forEachChildTable = {
18739
18762
  [339 /* JSDocReadonlyTag */]: forEachChildInJSDocTag,
18740
18763
  [334 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag,
18741
18764
  [340 /* JSDocOverrideTag */]: forEachChildInJSDocTag,
18742
- [355 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
18765
+ [356 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
18743
18766
  };
18744
18767
  function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
18745
18768
  return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);
@@ -24747,6 +24770,9 @@ var Parser;
24747
24770
  case "overload":
24748
24771
  tag = parseOverloadTag(start2, tagName, margin, indentText);
24749
24772
  break;
24773
+ case "satisfies":
24774
+ tag = parseSatisfiesTag(start2, tagName, margin, indentText);
24775
+ break;
24750
24776
  case "see":
24751
24777
  tag = parseSeeTag(start2, tagName, margin, indentText);
24752
24778
  break;
@@ -25055,6 +25081,14 @@ var Parser;
25055
25081
  const className = parseExpressionWithTypeArgumentsForAugments();
25056
25082
  return finishNode(factory2.createJSDocAugmentsTag(tagName, className, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2);
25057
25083
  }
25084
+ function parseSatisfiesTag(start2, tagName, margin, indentText) {
25085
+ const typeExpression = parseJSDocTypeExpression(
25086
+ /*mayOmitBraces*/
25087
+ false
25088
+ );
25089
+ const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0;
25090
+ return finishNode(factory2.createJSDocSatisfiesTag(tagName, typeExpression, comments2), start2);
25091
+ }
25058
25092
  function parseExpressionWithTypeArgumentsForAugments() {
25059
25093
  const usedBrace = parseOptional(18 /* OpenBraceToken */);
25060
25094
  const pos = getNodePos();
@@ -26891,7 +26925,7 @@ var commandOptionsWithoutBuild = [
26891
26925
  {
26892
26926
  name: "allowImportingTsExtensions",
26893
26927
  type: "boolean",
26894
- affectsModuleResolution: true,
26928
+ affectsSemanticDiagnostics: true,
26895
26929
  category: Diagnostics.Modules,
26896
26930
  description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
26897
26931
  defaultValueDescription: false
@@ -30392,13 +30426,12 @@ function createBinder() {
30392
30426
  } else if (node.kind === 221 /* PrefixUnaryExpression */ && node.operator === 53 /* ExclamationToken */) {
30393
30427
  node = node.operand;
30394
30428
  } else {
30395
- return node.kind === 223 /* BinaryExpression */ && (node.operatorToken.kind === 55 /* AmpersandAmpersandToken */ || node.operatorToken.kind === 56 /* BarBarToken */ || node.operatorToken.kind === 60 /* QuestionQuestionToken */);
30429
+ return isLogicalOrCoalescingBinaryExpression(node);
30396
30430
  }
30397
30431
  }
30398
30432
  }
30399
30433
  function isLogicalAssignmentExpression(node) {
30400
- node = skipParentheses(node);
30401
- return isBinaryExpression(node) && isLogicalOrCoalescingAssignmentOperator(node.operatorToken.kind);
30434
+ return isLogicalOrCoalescingAssignmentExpression(skipParentheses(node));
30402
30435
  }
30403
30436
  function isTopLevelLogicalExpression(node) {
30404
30437
  while (isParenthesizedExpression(node.parent) || isPrefixUnaryExpression(node.parent) && node.parent.operator === 53 /* ExclamationToken */) {
@@ -30781,7 +30814,7 @@ function createBinder() {
30781
30814
  };
30782
30815
  }
30783
30816
  const operator = node.operatorToken.kind;
30784
- if (operator === 55 /* AmpersandAmpersandToken */ || operator === 56 /* BarBarToken */ || operator === 60 /* QuestionQuestionToken */ || isLogicalOrCoalescingAssignmentOperator(operator)) {
30817
+ if (isLogicalOrCoalescingBinaryOperator(operator) || isLogicalOrCoalescingAssignmentOperator(operator)) {
30785
30818
  if (isTopLevelLogicalExpression(node)) {
30786
30819
  const postExpressionLabel = createBranchLabel();
30787
30820
  bindLogicalLikeExpression(node, postExpressionLabel, postExpressionLabel);
@@ -33838,13 +33871,13 @@ var visitEachChildTable = {
33838
33871
  );
33839
33872
  },
33840
33873
  // Transformation nodes
33841
- [355 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
33874
+ [356 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
33842
33875
  return context.factory.updatePartiallyEmittedExpression(
33843
33876
  node,
33844
33877
  Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
33845
33878
  );
33846
33879
  },
33847
- [356 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
33880
+ [357 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
33848
33881
  return context.factory.updateCommaListExpression(
33849
33882
  node,
33850
33883
  nodesVisitor(node.elements, visitor, isExpression)
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-49929-73",
5
+ "version": "5.0.0-pr-52280-7",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -60,7 +60,7 @@
60
60
  "chokidar": "^3.5.3",
61
61
  "del": "^6.1.1",
62
62
  "diff": "^5.1.0",
63
- "esbuild": "^0.16.5",
63
+ "esbuild": "^0.17.2",
64
64
  "eslint": "^8.22.0",
65
65
  "eslint-formatter-autolinkable-stylish": "^1.2.0",
66
66
  "eslint-plugin-import": "^2.26.0",