@typescript-deploys/pr-build 5.0.0-pr-51882-10 → 5.0.0-pr-51884-12

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
@@ -23,7 +23,7 @@ var __export = (target, all) => {
23
23
 
24
24
  // src/compiler/corePublic.ts
25
25
  var versionMajorMinor = "5.0";
26
- var version = `${versionMajorMinor}.0-insiders.20221213`;
26
+ var version = `${versionMajorMinor}.0-insiders.20221214`;
27
27
 
28
28
  // src/compiler/core.ts
29
29
  var emptyArray = [];
@@ -3331,24 +3331,25 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
3331
3331
  SyntaxKind4[SyntaxKind4["JSDocReadonlyTag"] = 339] = "JSDocReadonlyTag";
3332
3332
  SyntaxKind4[SyntaxKind4["JSDocOverrideTag"] = 340] = "JSDocOverrideTag";
3333
3333
  SyntaxKind4[SyntaxKind4["JSDocCallbackTag"] = 341] = "JSDocCallbackTag";
3334
- SyntaxKind4[SyntaxKind4["JSDocEnumTag"] = 342] = "JSDocEnumTag";
3335
- SyntaxKind4[SyntaxKind4["JSDocParameterTag"] = 343] = "JSDocParameterTag";
3336
- SyntaxKind4[SyntaxKind4["JSDocReturnTag"] = 344] = "JSDocReturnTag";
3337
- SyntaxKind4[SyntaxKind4["JSDocThisTag"] = 345] = "JSDocThisTag";
3338
- SyntaxKind4[SyntaxKind4["JSDocTypeTag"] = 346] = "JSDocTypeTag";
3339
- SyntaxKind4[SyntaxKind4["JSDocTemplateTag"] = 347] = "JSDocTemplateTag";
3340
- SyntaxKind4[SyntaxKind4["JSDocTypedefTag"] = 348] = "JSDocTypedefTag";
3341
- SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 349] = "JSDocSeeTag";
3342
- SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 350] = "JSDocPropertyTag";
3343
- SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 351] = "JSDocThrowsTag";
3344
- SyntaxKind4[SyntaxKind4["SyntaxList"] = 352] = "SyntaxList";
3345
- SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 353] = "NotEmittedStatement";
3346
- SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 354] = "PartiallyEmittedExpression";
3347
- SyntaxKind4[SyntaxKind4["CommaListExpression"] = 355] = "CommaListExpression";
3348
- SyntaxKind4[SyntaxKind4["MergeDeclarationMarker"] = 356] = "MergeDeclarationMarker";
3349
- SyntaxKind4[SyntaxKind4["EndOfDeclarationMarker"] = 357] = "EndOfDeclarationMarker";
3350
- SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 358] = "SyntheticReferenceExpression";
3351
- SyntaxKind4[SyntaxKind4["Count"] = 359] = "Count";
3334
+ SyntaxKind4[SyntaxKind4["JSDocOverloadTag"] = 342] = "JSDocOverloadTag";
3335
+ SyntaxKind4[SyntaxKind4["JSDocEnumTag"] = 343] = "JSDocEnumTag";
3336
+ SyntaxKind4[SyntaxKind4["JSDocParameterTag"] = 344] = "JSDocParameterTag";
3337
+ SyntaxKind4[SyntaxKind4["JSDocReturnTag"] = 345] = "JSDocReturnTag";
3338
+ SyntaxKind4[SyntaxKind4["JSDocThisTag"] = 346] = "JSDocThisTag";
3339
+ SyntaxKind4[SyntaxKind4["JSDocTypeTag"] = 347] = "JSDocTypeTag";
3340
+ SyntaxKind4[SyntaxKind4["JSDocTemplateTag"] = 348] = "JSDocTemplateTag";
3341
+ SyntaxKind4[SyntaxKind4["JSDocTypedefTag"] = 349] = "JSDocTypedefTag";
3342
+ SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 350] = "JSDocSeeTag";
3343
+ SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 351] = "JSDocPropertyTag";
3344
+ SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 352] = "JSDocThrowsTag";
3345
+ SyntaxKind4[SyntaxKind4["SyntaxList"] = 353] = "SyntaxList";
3346
+ SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 354] = "NotEmittedStatement";
3347
+ SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 355] = "PartiallyEmittedExpression";
3348
+ SyntaxKind4[SyntaxKind4["CommaListExpression"] = 356] = "CommaListExpression";
3349
+ SyntaxKind4[SyntaxKind4["MergeDeclarationMarker"] = 357] = "MergeDeclarationMarker";
3350
+ SyntaxKind4[SyntaxKind4["EndOfDeclarationMarker"] = 358] = "EndOfDeclarationMarker";
3351
+ SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 359] = "SyntheticReferenceExpression";
3352
+ SyntaxKind4[SyntaxKind4["Count"] = 360] = "Count";
3352
3353
  SyntaxKind4[SyntaxKind4["FirstAssignment"] = 63 /* EqualsToken */] = "FirstAssignment";
3353
3354
  SyntaxKind4[SyntaxKind4["LastAssignment"] = 78 /* CaretEqualsToken */] = "LastAssignment";
3354
3355
  SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 64 /* PlusEqualsToken */] = "FirstCompoundAssignment";
@@ -3377,9 +3378,9 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
3377
3378
  SyntaxKind4[SyntaxKind4["LastStatement"] = 256 /* DebuggerStatement */] = "LastStatement";
3378
3379
  SyntaxKind4[SyntaxKind4["FirstNode"] = 163 /* QualifiedName */] = "FirstNode";
3379
3380
  SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 312 /* JSDocTypeExpression */] = "FirstJSDocNode";
3380
- SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 351 /* JSDocThrowsTag */] = "LastJSDocNode";
3381
+ SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 352 /* JSDocThrowsTag */] = "LastJSDocNode";
3381
3382
  SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 330 /* JSDocTag */] = "FirstJSDocTagNode";
3382
- SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 351 /* JSDocThrowsTag */] = "LastJSDocTagNode";
3383
+ SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 352 /* JSDocThrowsTag */] = "LastJSDocTagNode";
3383
3384
  SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 126 /* AbstractKeyword */] = "FirstContextualKeyword";
3384
3385
  SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 162 /* OfKeyword */] = "LastContextualKeyword";
3385
3386
  return SyntaxKind4;
@@ -9742,8 +9743,8 @@ function getNonAssignedNameOfDeclaration(declaration) {
9742
9743
  switch (declaration.kind) {
9743
9744
  case 79 /* Identifier */:
9744
9745
  return declaration;
9745
- case 350 /* JSDocPropertyTag */:
9746
- case 343 /* JSDocParameterTag */: {
9746
+ case 351 /* JSDocPropertyTag */:
9747
+ case 344 /* JSDocParameterTag */: {
9747
9748
  const { name } = declaration;
9748
9749
  if (name.kind === 163 /* QualifiedName */) {
9749
9750
  return name.right;
@@ -9767,9 +9768,9 @@ function getNonAssignedNameOfDeclaration(declaration) {
9767
9768
  return void 0;
9768
9769
  }
9769
9770
  }
9770
- case 348 /* JSDocTypedefTag */:
9771
+ case 349 /* JSDocTypedefTag */:
9771
9772
  return getNameOfJSDocTypedef(declaration);
9772
- case 342 /* JSDocEnumTag */:
9773
+ case 343 /* JSDocEnumTag */:
9773
9774
  return nameForNamelessJSDocTypedef(declaration);
9774
9775
  case 274 /* ExportAssignment */: {
9775
9776
  const { expression } = declaration;
@@ -9952,6 +9953,14 @@ function formatJSDocLink(link) {
9952
9953
  }
9953
9954
  function getEffectiveTypeParameterDeclarations(node) {
9954
9955
  if (isJSDocSignature(node)) {
9956
+ if (isJSDoc(node.parent)) {
9957
+ const overloadTag = find(node.parent.tags, (tag) => {
9958
+ return isJSDocOverloadTag(tag) && tag.typeExpression === node;
9959
+ });
9960
+ if (overloadTag) {
9961
+ return flatMap(node.parent.tags, (tag) => isJSDocTemplateTag(tag) ? tag.typeParameters : void 0);
9962
+ }
9963
+ }
9955
9964
  return emptyArray;
9956
9965
  }
9957
9966
  if (isJSDocTypeAlias(node)) {
@@ -10035,7 +10044,7 @@ function isUnparsedNode(node) {
10035
10044
  return isUnparsedTextLike(node) || node.kind === 303 /* UnparsedPrologue */ || node.kind === 307 /* UnparsedSyntheticReference */;
10036
10045
  }
10037
10046
  function isJSDocPropertyLikeTag(node) {
10038
- return node.kind === 350 /* JSDocPropertyTag */ || node.kind === 343 /* JSDocParameterTag */;
10047
+ return node.kind === 351 /* JSDocPropertyTag */ || node.kind === 344 /* JSDocParameterTag */;
10039
10048
  }
10040
10049
  function isNodeKind(kind) {
10041
10050
  return kind >= 163 /* FirstNode */;
@@ -10379,8 +10388,8 @@ function isExpressionKind(kind) {
10379
10388
  case 227 /* SpreadElement */:
10380
10389
  case 231 /* AsExpression */:
10381
10390
  case 229 /* OmittedExpression */:
10382
- case 355 /* CommaListExpression */:
10383
- case 354 /* PartiallyEmittedExpression */:
10391
+ case 356 /* CommaListExpression */:
10392
+ case 355 /* PartiallyEmittedExpression */:
10384
10393
  case 235 /* SatisfiesExpression */:
10385
10394
  return true;
10386
10395
  default:
@@ -10466,12 +10475,12 @@ function canHaveSymbol(node) {
10466
10475
  case 178 /* IndexSignature */:
10467
10476
  case 261 /* InterfaceDeclaration */:
10468
10477
  case 341 /* JSDocCallbackTag */:
10469
- case 342 /* JSDocEnumTag */:
10478
+ case 343 /* JSDocEnumTag */:
10470
10479
  case 320 /* JSDocFunctionType */:
10471
- case 343 /* JSDocParameterTag */:
10472
- case 350 /* JSDocPropertyTag */:
10480
+ case 344 /* JSDocParameterTag */:
10481
+ case 351 /* JSDocPropertyTag */:
10473
10482
  case 326 /* JSDocSignature */:
10474
- case 348 /* JSDocTypedefTag */:
10483
+ case 349 /* JSDocTypedefTag */:
10475
10484
  case 325 /* JSDocTypeLiteral */:
10476
10485
  case 288 /* JsxAttribute */:
10477
10486
  case 289 /* JsxAttributes */:
@@ -10528,10 +10537,10 @@ function canHaveLocals(node) {
10528
10537
  case 174 /* GetAccessor */:
10529
10538
  case 178 /* IndexSignature */:
10530
10539
  case 341 /* JSDocCallbackTag */:
10531
- case 342 /* JSDocEnumTag */:
10540
+ case 343 /* JSDocEnumTag */:
10532
10541
  case 320 /* JSDocFunctionType */:
10533
10542
  case 326 /* JSDocSignature */:
10534
- case 348 /* JSDocTypedefTag */:
10543
+ case 349 /* JSDocTypedefTag */:
10535
10544
  case 197 /* MappedType */:
10536
10545
  case 171 /* MethodDeclaration */:
10537
10546
  case 170 /* MethodSignature */:
@@ -10545,17 +10554,17 @@ function canHaveLocals(node) {
10545
10554
  }
10546
10555
  }
10547
10556
  function isDeclarationKind(kind) {
10548
- return kind === 216 /* ArrowFunction */ || kind === 205 /* BindingElement */ || kind === 260 /* ClassDeclaration */ || kind === 228 /* ClassExpression */ || kind === 172 /* ClassStaticBlockDeclaration */ || kind === 173 /* Constructor */ || kind === 263 /* EnumDeclaration */ || kind === 302 /* EnumMember */ || kind === 278 /* ExportSpecifier */ || kind === 259 /* FunctionDeclaration */ || kind === 215 /* FunctionExpression */ || kind === 174 /* GetAccessor */ || kind === 270 /* ImportClause */ || kind === 268 /* ImportEqualsDeclaration */ || kind === 273 /* ImportSpecifier */ || kind === 261 /* InterfaceDeclaration */ || kind === 288 /* JsxAttribute */ || kind === 171 /* MethodDeclaration */ || kind === 170 /* MethodSignature */ || kind === 264 /* ModuleDeclaration */ || kind === 267 /* NamespaceExportDeclaration */ || kind === 271 /* NamespaceImport */ || kind === 277 /* NamespaceExport */ || kind === 166 /* Parameter */ || kind === 299 /* PropertyAssignment */ || kind === 169 /* PropertyDeclaration */ || kind === 168 /* PropertySignature */ || kind === 175 /* SetAccessor */ || kind === 300 /* ShorthandPropertyAssignment */ || kind === 262 /* TypeAliasDeclaration */ || kind === 165 /* TypeParameter */ || kind === 257 /* VariableDeclaration */ || kind === 348 /* JSDocTypedefTag */ || kind === 341 /* JSDocCallbackTag */ || kind === 350 /* JSDocPropertyTag */;
10557
+ return kind === 216 /* ArrowFunction */ || kind === 205 /* BindingElement */ || kind === 260 /* ClassDeclaration */ || kind === 228 /* ClassExpression */ || kind === 172 /* ClassStaticBlockDeclaration */ || kind === 173 /* Constructor */ || kind === 263 /* EnumDeclaration */ || kind === 302 /* EnumMember */ || kind === 278 /* ExportSpecifier */ || kind === 259 /* FunctionDeclaration */ || kind === 215 /* FunctionExpression */ || kind === 174 /* GetAccessor */ || kind === 270 /* ImportClause */ || kind === 268 /* ImportEqualsDeclaration */ || kind === 273 /* ImportSpecifier */ || kind === 261 /* InterfaceDeclaration */ || kind === 288 /* JsxAttribute */ || kind === 171 /* MethodDeclaration */ || kind === 170 /* MethodSignature */ || kind === 264 /* ModuleDeclaration */ || kind === 267 /* NamespaceExportDeclaration */ || kind === 271 /* NamespaceImport */ || kind === 277 /* NamespaceExport */ || kind === 166 /* Parameter */ || kind === 299 /* PropertyAssignment */ || kind === 169 /* PropertyDeclaration */ || kind === 168 /* PropertySignature */ || kind === 175 /* SetAccessor */ || kind === 300 /* ShorthandPropertyAssignment */ || kind === 262 /* TypeAliasDeclaration */ || kind === 165 /* TypeParameter */ || kind === 257 /* VariableDeclaration */ || kind === 349 /* JSDocTypedefTag */ || kind === 341 /* JSDocCallbackTag */ || kind === 351 /* JSDocPropertyTag */;
10549
10558
  }
10550
10559
  function isDeclarationStatementKind(kind) {
10551
10560
  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 */;
10552
10561
  }
10553
10562
  function isStatementKindButNotDeclarationKind(kind) {
10554
- 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 === 353 /* NotEmittedStatement */ || kind === 357 /* EndOfDeclarationMarker */ || kind === 356 /* MergeDeclarationMarker */;
10563
+ 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 */;
10555
10564
  }
10556
10565
  function isDeclaration(node) {
10557
10566
  if (node.kind === 165 /* TypeParameter */) {
10558
- return node.parent && node.parent.kind !== 347 /* JSDocTemplateTag */ || isInJSFile(node);
10567
+ return node.parent && node.parent.kind !== 348 /* JSDocTemplateTag */ || isInJSFile(node);
10559
10568
  }
10560
10569
  return isDeclarationKind(node.kind);
10561
10570
  }
@@ -10612,10 +10621,10 @@ function isCaseOrDefaultClause(node) {
10612
10621
  return kind === 292 /* CaseClause */ || kind === 293 /* DefaultClause */;
10613
10622
  }
10614
10623
  function isJSDocNode(node) {
10615
- return node.kind >= 312 /* FirstJSDocNode */ && node.kind <= 351 /* LastJSDocNode */;
10624
+ return node.kind >= 312 /* FirstJSDocNode */ && node.kind <= 352 /* LastJSDocNode */;
10616
10625
  }
10617
10626
  function isJSDocTag(node) {
10618
- return node.kind >= 330 /* FirstJSDocTagNode */ && node.kind <= 351 /* LastJSDocTagNode */;
10627
+ return node.kind >= 330 /* FirstJSDocTagNode */ && node.kind <= 352 /* LastJSDocTagNode */;
10619
10628
  }
10620
10629
  function isSetAccessor(node) {
10621
10630
  return node.kind === 175 /* SetAccessor */;
@@ -11007,7 +11016,7 @@ function getTokenPosOfNode(node, sourceFile, includeJsDoc) {
11007
11016
  if (includeJsDoc && hasJSDocNodes(node)) {
11008
11017
  return getTokenPosOfNode(node.jsDoc[0], sourceFile);
11009
11018
  }
11010
- if (node.kind === 352 /* SyntaxList */ && node._children.length > 0) {
11019
+ if (node.kind === 353 /* SyntaxList */ && node._children.length > 0) {
11011
11020
  return getTokenPosOfNode(node._children[0], sourceFile, includeJsDoc);
11012
11021
  }
11013
11022
  return skipTrivia(
@@ -11623,7 +11632,7 @@ function isPartOfTypeNode(node) {
11623
11632
  return isHeritageClause(parent.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(parent);
11624
11633
  case 165 /* TypeParameter */:
11625
11634
  return node === parent.constraint;
11626
- case 347 /* JSDocTemplateTag */:
11635
+ case 348 /* JSDocTemplateTag */:
11627
11636
  return node === parent.constraint;
11628
11637
  case 169 /* PropertyDeclaration */:
11629
11638
  case 168 /* PropertySignature */:
@@ -12539,7 +12548,7 @@ function isJSDocConstructSignature(node) {
12539
12548
  return !!name && name.escapedText === "new";
12540
12549
  }
12541
12550
  function isJSDocTypeAlias(node) {
12542
- return node.kind === 348 /* JSDocTypedefTag */ || node.kind === 341 /* JSDocCallbackTag */ || node.kind === 342 /* JSDocEnumTag */;
12551
+ return node.kind === 349 /* JSDocTypedefTag */ || node.kind === 341 /* JSDocCallbackTag */ || node.kind === 343 /* JSDocEnumTag */;
12543
12552
  }
12544
12553
  function isTypeAlias(node) {
12545
12554
  return isJSDocTypeAlias(node) || isTypeAliasDeclaration(node);
@@ -13169,7 +13178,7 @@ function getOperator(expression) {
13169
13178
  }
13170
13179
  function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {
13171
13180
  switch (nodeKind) {
13172
- case 355 /* CommaListExpression */:
13181
+ case 356 /* CommaListExpression */:
13173
13182
  return 0 /* Comma */;
13174
13183
  case 227 /* SpreadElement */:
13175
13184
  return 1 /* Spread */;
@@ -13850,7 +13859,7 @@ function getJSDocTypeParameterDeclarations(node) {
13850
13859
  return flatMap(getJSDocTags(node), (tag) => isNonTypeAliasTemplate(tag) ? tag.typeParameters : void 0);
13851
13860
  }
13852
13861
  function isNonTypeAliasTemplate(tag) {
13853
- return isJSDocTemplateTag(tag) && !(tag.parent.kind === 323 /* JSDoc */ && tag.parent.tags.some(isJSDocTypeAlias));
13862
+ return isJSDocTemplateTag(tag) && !(tag.parent.kind === 323 /* JSDoc */ && (tag.parent.tags.some(isJSDocTypeAlias) || tag.parent.tags.some(isJSDocOverloadTag)));
13854
13863
  }
13855
13864
  function getEffectiveSetAccessorTypeAnnotationNode(node) {
13856
13865
  const parameter = getSetAccessorValueParameter(node);
@@ -14598,7 +14607,7 @@ function getLeftmostExpression(node, stopAtCallExpressions) {
14598
14607
  case 209 /* ElementAccessExpression */:
14599
14608
  case 208 /* PropertyAccessExpression */:
14600
14609
  case 232 /* NonNullExpression */:
14601
- case 354 /* PartiallyEmittedExpression */:
14610
+ case 355 /* PartiallyEmittedExpression */:
14602
14611
  case 235 /* SatisfiesExpression */:
14603
14612
  node = node.expression;
14604
14613
  continue;
@@ -15794,7 +15803,7 @@ function getContainingNodeArray(node) {
15794
15803
  return parent.types;
15795
15804
  case 186 /* TupleType */:
15796
15805
  case 206 /* ArrayLiteralExpression */:
15797
- case 355 /* CommaListExpression */:
15806
+ case 356 /* CommaListExpression */:
15798
15807
  case 272 /* NamedImports */:
15799
15808
  case 276 /* NamedExports */:
15800
15809
  return parent.elements;
@@ -15916,9 +15925,9 @@ function isTypeDeclaration(node) {
15916
15925
  case 261 /* InterfaceDeclaration */:
15917
15926
  case 262 /* TypeAliasDeclaration */:
15918
15927
  case 263 /* EnumDeclaration */:
15919
- case 348 /* JSDocTypedefTag */:
15928
+ case 349 /* JSDocTypedefTag */:
15920
15929
  case 341 /* JSDocCallbackTag */:
15921
- case 342 /* JSDocEnumTag */:
15930
+ case 343 /* JSDocEnumTag */:
15922
15931
  return true;
15923
15932
  case 270 /* ImportClause */:
15924
15933
  return node.isTypeOnly;
@@ -15956,8 +15965,8 @@ function isOptionalDeclaration(declaration) {
15956
15965
  return !!declaration.questionToken;
15957
15966
  case 166 /* Parameter */:
15958
15967
  return !!declaration.questionToken || isJSDocOptionalParameter(declaration);
15959
- case 350 /* JSDocPropertyTag */:
15960
- case 343 /* JSDocParameterTag */:
15968
+ case 351 /* JSDocPropertyTag */:
15969
+ case 344 /* JSDocParameterTag */:
15961
15970
  return isOptionalJSDocPropertyLikeTag(declaration);
15962
15971
  default:
15963
15972
  return false;
@@ -16819,6 +16828,8 @@ function createNodeFactory(flags, baseFactory2) {
16819
16828
  updateJSDocPropertyTag,
16820
16829
  createJSDocCallbackTag,
16821
16830
  updateJSDocCallbackTag,
16831
+ createJSDocOverloadTag,
16832
+ updateJSDocOverloadTag,
16822
16833
  createJSDocAugmentsTag,
16823
16834
  updateJSDocAugmentsTag,
16824
16835
  createJSDocImplementsTag,
@@ -16836,22 +16847,22 @@ function createNodeFactory(flags, baseFactory2) {
16836
16847
  createJSDocLinkPlain,
16837
16848
  updateJSDocLinkPlain,
16838
16849
  get createJSDocTypeTag() {
16839
- return getJSDocTypeLikeTagCreateFunction(346 /* JSDocTypeTag */);
16850
+ return getJSDocTypeLikeTagCreateFunction(347 /* JSDocTypeTag */);
16840
16851
  },
16841
16852
  get updateJSDocTypeTag() {
16842
- return getJSDocTypeLikeTagUpdateFunction(346 /* JSDocTypeTag */);
16853
+ return getJSDocTypeLikeTagUpdateFunction(347 /* JSDocTypeTag */);
16843
16854
  },
16844
16855
  get createJSDocReturnTag() {
16845
- return getJSDocTypeLikeTagCreateFunction(344 /* JSDocReturnTag */);
16856
+ return getJSDocTypeLikeTagCreateFunction(345 /* JSDocReturnTag */);
16846
16857
  },
16847
16858
  get updateJSDocReturnTag() {
16848
- return getJSDocTypeLikeTagUpdateFunction(344 /* JSDocReturnTag */);
16859
+ return getJSDocTypeLikeTagUpdateFunction(345 /* JSDocReturnTag */);
16849
16860
  },
16850
16861
  get createJSDocThisTag() {
16851
- return getJSDocTypeLikeTagCreateFunction(345 /* JSDocThisTag */);
16862
+ return getJSDocTypeLikeTagCreateFunction(346 /* JSDocThisTag */);
16852
16863
  },
16853
16864
  get updateJSDocThisTag() {
16854
- return getJSDocTypeLikeTagUpdateFunction(345 /* JSDocThisTag */);
16865
+ return getJSDocTypeLikeTagUpdateFunction(346 /* JSDocThisTag */);
16855
16866
  },
16856
16867
  get createJSDocAuthorTag() {
16857
16868
  return getJSDocSimpleTagCreateFunction(333 /* JSDocAuthorTag */);
@@ -16902,10 +16913,10 @@ function createNodeFactory(flags, baseFactory2) {
16902
16913
  return getJSDocSimpleTagUpdateFunction(334 /* JSDocDeprecatedTag */);
16903
16914
  },
16904
16915
  get createJSDocThrowsTag() {
16905
- return getJSDocTypeLikeTagCreateFunction(351 /* JSDocThrowsTag */);
16916
+ return getJSDocTypeLikeTagCreateFunction(352 /* JSDocThrowsTag */);
16906
16917
  },
16907
16918
  get updateJSDocThrowsTag() {
16908
- return getJSDocTypeLikeTagUpdateFunction(351 /* JSDocThrowsTag */);
16919
+ return getJSDocTypeLikeTagUpdateFunction(352 /* JSDocThrowsTag */);
16909
16920
  },
16910
16921
  createJSDocEnumTag,
16911
16922
  updateJSDocEnumTag,
@@ -19424,7 +19435,7 @@ function createNodeFactory(flags, baseFactory2) {
19424
19435
  return node;
19425
19436
  }
19426
19437
  function createJSDocTemplateTag(tagName, constraint, typeParameters, comment) {
19427
- const node = createBaseJSDocTag(347 /* JSDocTemplateTag */, tagName != null ? tagName : createIdentifier("template"), comment);
19438
+ const node = createBaseJSDocTag(348 /* JSDocTemplateTag */, tagName != null ? tagName : createIdentifier("template"), comment);
19428
19439
  node.constraint = constraint;
19429
19440
  node.typeParameters = createNodeArray(typeParameters);
19430
19441
  return node;
@@ -19433,7 +19444,7 @@ function createNodeFactory(flags, baseFactory2) {
19433
19444
  return node.tagName !== tagName || node.constraint !== constraint || node.typeParameters !== typeParameters || node.comment !== comment ? update(createJSDocTemplateTag(tagName, constraint, typeParameters, comment), node) : node;
19434
19445
  }
19435
19446
  function createJSDocTypedefTag(tagName, typeExpression, fullName, comment) {
19436
- const node = createBaseJSDocTagDeclaration(348 /* JSDocTypedefTag */, tagName != null ? tagName : createIdentifier("typedef"), comment);
19447
+ const node = createBaseJSDocTagDeclaration(349 /* JSDocTypedefTag */, tagName != null ? tagName : createIdentifier("typedef"), comment);
19437
19448
  node.typeExpression = typeExpression;
19438
19449
  node.fullName = fullName;
19439
19450
  node.name = getJSDocTypeAliasName(fullName);
@@ -19445,7 +19456,7 @@ function createNodeFactory(flags, baseFactory2) {
19445
19456
  return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocTypedefTag(tagName, typeExpression, fullName, comment), node) : node;
19446
19457
  }
19447
19458
  function createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) {
19448
- const node = createBaseJSDocTagDeclaration(343 /* JSDocParameterTag */, tagName != null ? tagName : createIdentifier("param"), comment);
19459
+ const node = createBaseJSDocTagDeclaration(344 /* JSDocParameterTag */, tagName != null ? tagName : createIdentifier("param"), comment);
19449
19460
  node.typeExpression = typeExpression;
19450
19461
  node.name = name;
19451
19462
  node.isNameFirst = !!isNameFirst;
@@ -19456,7 +19467,7 @@ function createNodeFactory(flags, baseFactory2) {
19456
19467
  return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node;
19457
19468
  }
19458
19469
  function createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) {
19459
- const node = createBaseJSDocTagDeclaration(350 /* JSDocPropertyTag */, tagName != null ? tagName : createIdentifier("prop"), comment);
19470
+ const node = createBaseJSDocTagDeclaration(351 /* JSDocPropertyTag */, tagName != null ? tagName : createIdentifier("prop"), comment);
19460
19471
  node.typeExpression = typeExpression;
19461
19472
  node.name = name;
19462
19473
  node.isNameFirst = !!isNameFirst;
@@ -19478,6 +19489,14 @@ function createNodeFactory(flags, baseFactory2) {
19478
19489
  function updateJSDocCallbackTag(node, tagName = getDefaultTagName(node), typeExpression, fullName, comment) {
19479
19490
  return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocCallbackTag(tagName, typeExpression, fullName, comment), node) : node;
19480
19491
  }
19492
+ function createJSDocOverloadTag(tagName, typeExpression, comment) {
19493
+ const node = createBaseJSDocTag(342 /* JSDocOverloadTag */, tagName != null ? tagName : createIdentifier("overload"), comment);
19494
+ node.typeExpression = typeExpression;
19495
+ return node;
19496
+ }
19497
+ function updateJSDocOverloadTag(node, tagName = getDefaultTagName(node), typeExpression, comment) {
19498
+ return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocOverloadTag(tagName, typeExpression, comment), node) : node;
19499
+ }
19481
19500
  function createJSDocAugmentsTag(tagName, className, comment) {
19482
19501
  const node = createBaseJSDocTag(331 /* JSDocAugmentsTag */, tagName != null ? tagName : createIdentifier("augments"), comment);
19483
19502
  node.class = className;
@@ -19492,7 +19511,7 @@ function createNodeFactory(flags, baseFactory2) {
19492
19511
  return node;
19493
19512
  }
19494
19513
  function createJSDocSeeTag(tagName, name, comment) {
19495
- const node = createBaseJSDocTag(349 /* JSDocSeeTag */, tagName != null ? tagName : createIdentifier("see"), comment);
19514
+ const node = createBaseJSDocTag(350 /* JSDocSeeTag */, tagName != null ? tagName : createIdentifier("see"), comment);
19496
19515
  node.name = name;
19497
19516
  return node;
19498
19517
  }
@@ -19570,7 +19589,7 @@ function createNodeFactory(flags, baseFactory2) {
19570
19589
  return node.tagName !== tagName || node.comment !== comment ? update(createJSDocUnknownTag(tagName, comment), node) : node;
19571
19590
  }
19572
19591
  function createJSDocEnumTag(tagName, typeExpression, comment) {
19573
- const node = createBaseJSDocTagDeclaration(342 /* JSDocEnumTag */, tagName != null ? tagName : createIdentifier(getDefaultTagNameForKind(342 /* JSDocEnumTag */)), comment);
19592
+ const node = createBaseJSDocTagDeclaration(343 /* JSDocEnumTag */, tagName != null ? tagName : createIdentifier(getDefaultTagNameForKind(343 /* JSDocEnumTag */)), comment);
19574
19593
  node.typeExpression = typeExpression;
19575
19594
  node.locals = void 0;
19576
19595
  node.nextContainer = void 0;
@@ -20017,18 +20036,18 @@ function createNodeFactory(flags, baseFactory2) {
20017
20036
  return node;
20018
20037
  }
20019
20038
  function createSyntaxList(children) {
20020
- const node = createBaseNode(352 /* SyntaxList */);
20039
+ const node = createBaseNode(353 /* SyntaxList */);
20021
20040
  node._children = children;
20022
20041
  return node;
20023
20042
  }
20024
20043
  function createNotEmittedStatement(original) {
20025
- const node = createBaseNode(353 /* NotEmittedStatement */);
20044
+ const node = createBaseNode(354 /* NotEmittedStatement */);
20026
20045
  node.original = original;
20027
20046
  setTextRange(node, original);
20028
20047
  return node;
20029
20048
  }
20030
20049
  function createPartiallyEmittedExpression(expression, original) {
20031
- const node = createBaseNode(354 /* PartiallyEmittedExpression */);
20050
+ const node = createBaseNode(355 /* PartiallyEmittedExpression */);
20032
20051
  node.expression = expression;
20033
20052
  node.original = original;
20034
20053
  node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */;
@@ -20050,7 +20069,7 @@ function createNodeFactory(flags, baseFactory2) {
20050
20069
  return node;
20051
20070
  }
20052
20071
  function createCommaListExpression(elements) {
20053
- const node = createBaseNode(355 /* CommaListExpression */);
20072
+ const node = createBaseNode(356 /* CommaListExpression */);
20054
20073
  node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements));
20055
20074
  node.transformFlags |= propagateChildrenFlags(node.elements);
20056
20075
  return node;
@@ -20059,19 +20078,19 @@ function createNodeFactory(flags, baseFactory2) {
20059
20078
  return node.elements !== elements ? update(createCommaListExpression(elements), node) : node;
20060
20079
  }
20061
20080
  function createEndOfDeclarationMarker(original) {
20062
- const node = createBaseNode(357 /* EndOfDeclarationMarker */);
20081
+ const node = createBaseNode(358 /* EndOfDeclarationMarker */);
20063
20082
  node.emitNode = {};
20064
20083
  node.original = original;
20065
20084
  return node;
20066
20085
  }
20067
20086
  function createMergeDeclarationMarker(original) {
20068
- const node = createBaseNode(356 /* MergeDeclarationMarker */);
20087
+ const node = createBaseNode(357 /* MergeDeclarationMarker */);
20069
20088
  node.emitNode = {};
20070
20089
  node.original = original;
20071
20090
  return node;
20072
20091
  }
20073
20092
  function createSyntheticReferenceExpression(expression, thisArg) {
20074
- const node = createBaseNode(358 /* SyntheticReferenceExpression */);
20093
+ const node = createBaseNode(359 /* SyntheticReferenceExpression */);
20075
20094
  node.expression = expression;
20076
20095
  node.thisArg = thisArg;
20077
20096
  node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg);
@@ -20276,7 +20295,7 @@ function createNodeFactory(flags, baseFactory2) {
20276
20295
  return updateSatisfiesExpression(outerExpression, expression, outerExpression.type);
20277
20296
  case 232 /* NonNullExpression */:
20278
20297
  return updateNonNullExpression(outerExpression, expression);
20279
- case 354 /* PartiallyEmittedExpression */:
20298
+ case 355 /* PartiallyEmittedExpression */:
20280
20299
  return updatePartiallyEmittedExpression(outerExpression, expression);
20281
20300
  }
20282
20301
  }
@@ -20616,13 +20635,13 @@ function updateWithOriginal(updated, original) {
20616
20635
  }
20617
20636
  function getDefaultTagNameForKind(kind) {
20618
20637
  switch (kind) {
20619
- case 346 /* JSDocTypeTag */:
20638
+ case 347 /* JSDocTypeTag */:
20620
20639
  return "type";
20621
- case 344 /* JSDocReturnTag */:
20640
+ case 345 /* JSDocReturnTag */:
20622
20641
  return "returns";
20623
- case 345 /* JSDocThisTag */:
20642
+ case 346 /* JSDocThisTag */:
20624
20643
  return "this";
20625
- case 342 /* JSDocEnumTag */:
20644
+ case 343 /* JSDocEnumTag */:
20626
20645
  return "enum";
20627
20646
  case 333 /* JSDocAuthorTag */:
20628
20647
  return "author";
@@ -20638,16 +20657,18 @@ function getDefaultTagNameForKind(kind) {
20638
20657
  return "readonly";
20639
20658
  case 340 /* JSDocOverrideTag */:
20640
20659
  return "override";
20641
- case 347 /* JSDocTemplateTag */:
20660
+ case 348 /* JSDocTemplateTag */:
20642
20661
  return "template";
20643
- case 348 /* JSDocTypedefTag */:
20662
+ case 349 /* JSDocTypedefTag */:
20644
20663
  return "typedef";
20645
- case 343 /* JSDocParameterTag */:
20664
+ case 344 /* JSDocParameterTag */:
20646
20665
  return "param";
20647
- case 350 /* JSDocPropertyTag */:
20666
+ case 351 /* JSDocPropertyTag */:
20648
20667
  return "prop";
20649
20668
  case 341 /* JSDocCallbackTag */:
20650
20669
  return "callback";
20670
+ case 342 /* JSDocOverloadTag */:
20671
+ return "overload";
20651
20672
  case 331 /* JSDocAugmentsTag */:
20652
20673
  return "augments";
20653
20674
  case 332 /* JSDocImplementsTag */:
@@ -20784,7 +20805,7 @@ function getTransformFlagsSubtreeExclusions(kind) {
20784
20805
  case 213 /* TypeAssertionExpression */:
20785
20806
  case 235 /* SatisfiesExpression */:
20786
20807
  case 231 /* AsExpression */:
20787
- case 354 /* PartiallyEmittedExpression */:
20808
+ case 355 /* PartiallyEmittedExpression */:
20788
20809
  case 214 /* ParenthesizedExpression */:
20789
20810
  case 106 /* SuperKeyword */:
20790
20811
  return -2147483648 /* OuterExpressionExcludes */;
@@ -22236,10 +22257,10 @@ function isMetaProperty(node) {
22236
22257
  return node.kind === 233 /* MetaProperty */;
22237
22258
  }
22238
22259
  function isPartiallyEmittedExpression(node) {
22239
- return node.kind === 354 /* PartiallyEmittedExpression */;
22260
+ return node.kind === 355 /* PartiallyEmittedExpression */;
22240
22261
  }
22241
22262
  function isCommaListExpression(node) {
22242
- return node.kind === 355 /* CommaListExpression */;
22263
+ return node.kind === 356 /* CommaListExpression */;
22243
22264
  }
22244
22265
  function isTemplateSpan(node) {
22245
22266
  return node.kind === 236 /* TemplateSpan */;
@@ -22362,10 +22383,10 @@ function isExportSpecifier(node) {
22362
22383
  return node.kind === 278 /* ExportSpecifier */;
22363
22384
  }
22364
22385
  function isNotEmittedStatement(node) {
22365
- return node.kind === 353 /* NotEmittedStatement */;
22386
+ return node.kind === 354 /* NotEmittedStatement */;
22366
22387
  }
22367
22388
  function isSyntheticReference(node) {
22368
- return node.kind === 358 /* SyntheticReferenceExpression */;
22389
+ return node.kind === 359 /* SyntheticReferenceExpression */;
22369
22390
  }
22370
22391
  function isExternalModuleReference(node) {
22371
22392
  return node.kind === 280 /* ExternalModuleReference */;
@@ -22499,32 +22520,35 @@ function isJSDocReadonlyTag(node) {
22499
22520
  function isJSDocOverrideTag(node) {
22500
22521
  return node.kind === 340 /* JSDocOverrideTag */;
22501
22522
  }
22523
+ function isJSDocOverloadTag(node) {
22524
+ return node.kind === 342 /* JSDocOverloadTag */;
22525
+ }
22502
22526
  function isJSDocDeprecatedTag(node) {
22503
22527
  return node.kind === 334 /* JSDocDeprecatedTag */;
22504
22528
  }
22505
22529
  function isJSDocEnumTag(node) {
22506
- return node.kind === 342 /* JSDocEnumTag */;
22530
+ return node.kind === 343 /* JSDocEnumTag */;
22507
22531
  }
22508
22532
  function isJSDocParameterTag(node) {
22509
- return node.kind === 343 /* JSDocParameterTag */;
22533
+ return node.kind === 344 /* JSDocParameterTag */;
22510
22534
  }
22511
22535
  function isJSDocReturnTag(node) {
22512
- return node.kind === 344 /* JSDocReturnTag */;
22536
+ return node.kind === 345 /* JSDocReturnTag */;
22513
22537
  }
22514
22538
  function isJSDocThisTag(node) {
22515
- return node.kind === 345 /* JSDocThisTag */;
22539
+ return node.kind === 346 /* JSDocThisTag */;
22516
22540
  }
22517
22541
  function isJSDocTypeTag(node) {
22518
- return node.kind === 346 /* JSDocTypeTag */;
22542
+ return node.kind === 347 /* JSDocTypeTag */;
22519
22543
  }
22520
22544
  function isJSDocTemplateTag(node) {
22521
- return node.kind === 347 /* JSDocTemplateTag */;
22545
+ return node.kind === 348 /* JSDocTemplateTag */;
22522
22546
  }
22523
22547
  function isJSDocTypedefTag(node) {
22524
- return node.kind === 348 /* JSDocTypedefTag */;
22548
+ return node.kind === 349 /* JSDocTypedefTag */;
22525
22549
  }
22526
22550
  function isJSDocPropertyTag(node) {
22527
- return node.kind === 350 /* JSDocPropertyTag */;
22551
+ return node.kind === 351 /* JSDocPropertyTag */;
22528
22552
  }
22529
22553
  function isJSDocImplementsTag(node) {
22530
22554
  return node.kind === 332 /* JSDocImplementsTag */;
@@ -22824,7 +22848,7 @@ function startsWithUseStrict(statements) {
22824
22848
  return firstStatement !== void 0 && isPrologueDirective(firstStatement) && isUseStrictPrologue(firstStatement);
22825
22849
  }
22826
22850
  function isCommaSequence(node) {
22827
- return node.kind === 223 /* BinaryExpression */ && node.operatorToken.kind === 27 /* CommaToken */ || node.kind === 355 /* CommaListExpression */;
22851
+ return node.kind === 223 /* BinaryExpression */ && node.operatorToken.kind === 27 /* CommaToken */ || node.kind === 356 /* CommaListExpression */;
22828
22852
  }
22829
22853
  function isJSDocTypeAssertion(node) {
22830
22854
  return isParenthesizedExpression(node) && isInJSFile(node) && !!getJSDocTypeTag(node);
@@ -22847,7 +22871,7 @@ function isOuterExpression(node, kinds = 15 /* All */) {
22847
22871
  return (kinds & 2 /* TypeAssertions */) !== 0;
22848
22872
  case 232 /* NonNullExpression */:
22849
22873
  return (kinds & 4 /* NonNullAssertions */) !== 0;
22850
- case 354 /* PartiallyEmittedExpression */:
22874
+ case 355 /* PartiallyEmittedExpression */:
22851
22875
  return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0;
22852
22876
  }
22853
22877
  return false;
@@ -23774,7 +23798,7 @@ var forEachChildTable = {
23774
23798
  [279 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) {
23775
23799
  return visitNodes(cbNode, cbNodes, node.illegalDecorators) || visitNodes(cbNode, cbNodes, node.modifiers);
23776
23800
  },
23777
- [355 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
23801
+ [356 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
23778
23802
  return visitNodes(cbNode, cbNodes, node.elements);
23779
23803
  },
23780
23804
  [281 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) {
@@ -23813,7 +23837,7 @@ var forEachChildTable = {
23813
23837
  [323 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) {
23814
23838
  return (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) || visitNodes(cbNode, cbNodes, node.tags);
23815
23839
  },
23816
- [349 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) {
23840
+ [350 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) {
23817
23841
  return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.name) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
23818
23842
  },
23819
23843
  [313 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) {
@@ -23822,8 +23846,8 @@ var forEachChildTable = {
23822
23846
  [314 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) {
23823
23847
  return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right);
23824
23848
  },
23825
- [343 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag,
23826
- [350 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag,
23849
+ [344 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag,
23850
+ [351 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag,
23827
23851
  [333 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) {
23828
23852
  return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
23829
23853
  },
@@ -23833,20 +23857,20 @@ var forEachChildTable = {
23833
23857
  [331 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) {
23834
23858
  return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
23835
23859
  },
23836
- [347 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) {
23860
+ [348 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) {
23837
23861
  return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.constraint) || visitNodes(cbNode, cbNodes, node.typeParameters) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
23838
23862
  },
23839
- [348 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) {
23863
+ [349 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) {
23840
23864
  return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 312 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)));
23841
23865
  },
23842
23866
  [341 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) {
23843
23867
  return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
23844
23868
  },
23845
- [344 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag,
23846
- [346 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag,
23847
- [345 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag,
23848
- [342 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag,
23849
- [351 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag,
23869
+ [345 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag,
23870
+ [347 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag,
23871
+ [346 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag,
23872
+ [343 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag,
23873
+ [352 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag,
23850
23874
  [326 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) {
23851
23875
  return forEach(node.typeParameters, cbNode) || forEach(node.parameters, cbNode) || visitNode2(cbNode, node.type);
23852
23876
  },
@@ -23864,7 +23888,7 @@ var forEachChildTable = {
23864
23888
  [339 /* JSDocReadonlyTag */]: forEachChildInJSDocTag,
23865
23889
  [334 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag,
23866
23890
  [340 /* JSDocOverrideTag */]: forEachChildInJSDocTag,
23867
- [354 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
23891
+ [355 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
23868
23892
  };
23869
23893
  function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
23870
23894
  return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);
@@ -29185,6 +29209,9 @@ var Parser;
29185
29209
  case "callback":
29186
29210
  tag = parseCallbackTag(start2, tagName, margin, indentText);
29187
29211
  break;
29212
+ case "overload":
29213
+ tag = parseOverloadTag(start2, tagName, margin, indentText);
29214
+ break;
29188
29215
  case "see":
29189
29216
  tag = parseSeeTag(start2, tagName, margin, indentText);
29190
29217
  break;
@@ -29413,7 +29440,7 @@ var Parser;
29413
29440
  let child;
29414
29441
  let children;
29415
29442
  while (child = tryParse(() => parseChildParameterOrPropertyTag(target, indent2, name))) {
29416
- if (child.kind === 343 /* JSDocParameterTag */ || child.kind === 350 /* JSDocPropertyTag */) {
29443
+ if (child.kind === 344 /* JSDocParameterTag */ || child.kind === 351 /* JSDocPropertyTag */) {
29417
29444
  children = append(children, child);
29418
29445
  }
29419
29446
  }
@@ -29536,7 +29563,7 @@ var Parser;
29536
29563
  let hasChildren = false;
29537
29564
  while (child = tryParse(() => parseChildPropertyTag(indent2))) {
29538
29565
  hasChildren = true;
29539
- if (child.kind === 346 /* JSDocTypeTag */) {
29566
+ if (child.kind === 347 /* JSDocTypeTag */) {
29540
29567
  if (childTypeTag) {
29541
29568
  const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);
29542
29569
  if (lastError) {
@@ -29594,26 +29621,39 @@ var Parser;
29594
29621
  }
29595
29622
  return createNodeArray(parameters || [], pos);
29596
29623
  }
29597
- function parseCallbackTag(start2, tagName, indent2, indentText) {
29598
- const fullName = parseJSDocTypeNameWithNamespace();
29599
- skipWhitespace();
29600
- let comment = parseTagComments(indent2);
29624
+ function parseJSDocSignature(start2, indent2) {
29601
29625
  const parameters = parseCallbackTagParameters(indent2);
29602
29626
  const returnTag = tryParse(() => {
29603
29627
  if (parseOptionalJsdoc(59 /* AtToken */)) {
29604
29628
  const tag = parseTag(indent2);
29605
- if (tag && tag.kind === 344 /* JSDocReturnTag */) {
29629
+ if (tag && tag.kind === 345 /* JSDocReturnTag */) {
29606
29630
  return tag;
29607
29631
  }
29608
29632
  }
29609
29633
  });
29610
- const typeExpression = finishNode(factory2.createJSDocSignature(void 0, parameters, returnTag), start2);
29634
+ return finishNode(factory2.createJSDocSignature(void 0, parameters, returnTag), start2);
29635
+ }
29636
+ function parseCallbackTag(start2, tagName, indent2, indentText) {
29637
+ const fullName = parseJSDocTypeNameWithNamespace();
29638
+ skipWhitespace();
29639
+ let comment = parseTagComments(indent2);
29640
+ const typeExpression = parseJSDocSignature(start2, indent2);
29611
29641
  if (!comment) {
29612
29642
  comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText);
29613
29643
  }
29614
29644
  const end2 = comment !== void 0 ? getNodePos() : typeExpression.end;
29615
29645
  return finishNode(factory2.createJSDocCallbackTag(tagName, typeExpression, fullName, comment), start2, end2);
29616
29646
  }
29647
+ function parseOverloadTag(start2, tagName, indent2, indentText) {
29648
+ skipWhitespace();
29649
+ let comment = parseTagComments(indent2);
29650
+ const typeExpression = parseJSDocSignature(start2, indent2);
29651
+ if (!comment) {
29652
+ comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText);
29653
+ }
29654
+ const end2 = comment !== void 0 ? getNodePos() : typeExpression.end;
29655
+ return finishNode(factory2.createJSDocOverloadTag(tagName, typeExpression, comment), start2, end2);
29656
+ }
29617
29657
  function escapedTextsEqual(a, b) {
29618
29658
  while (!isIdentifier(a) || !isIdentifier(b)) {
29619
29659
  if (!isIdentifier(a) && !isIdentifier(b) && a.right.escapedText === b.right.escapedText) {
@@ -29636,7 +29676,7 @@ var Parser;
29636
29676
  case 59 /* AtToken */:
29637
29677
  if (canParseTag) {
29638
29678
  const child = tryParseChildTag(target, indent2);
29639
- if (child && (child.kind === 343 /* JSDocParameterTag */ || child.kind === 350 /* JSDocPropertyTag */) && target !== 4 /* CallbackParameter */ && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) {
29679
+ if (child && (child.kind === 344 /* JSDocParameterTag */ || child.kind === 351 /* JSDocPropertyTag */) && target !== 4 /* CallbackParameter */ && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) {
29640
29680
  return false;
29641
29681
  }
29642
29682
  return child;
@@ -35943,9 +35983,9 @@ function createBinder() {
35943
35983
  case 232 /* NonNullExpression */:
35944
35984
  bindNonNullExpressionFlow(node);
35945
35985
  break;
35946
- case 348 /* JSDocTypedefTag */:
35986
+ case 349 /* JSDocTypedefTag */:
35947
35987
  case 341 /* JSDocCallbackTag */:
35948
- case 342 /* JSDocEnumTag */:
35988
+ case 343 /* JSDocEnumTag */:
35949
35989
  bindJSDocTypeAlias(node);
35950
35990
  break;
35951
35991
  case 308 /* SourceFile */: {
@@ -36648,7 +36688,7 @@ function createBinder() {
36648
36688
  }
36649
36689
  function bindJSDocTypeAlias(node) {
36650
36690
  bind(node.tagName);
36651
- if (node.kind !== 342 /* JSDocEnumTag */ && node.fullName) {
36691
+ if (node.kind !== 343 /* JSDocEnumTag */ && node.fullName) {
36652
36692
  setParent(node.fullName, node);
36653
36693
  setParentRecursive(node.fullName, false);
36654
36694
  }
@@ -37392,21 +37432,23 @@ function createBinder() {
37392
37432
  }
37393
37433
  case 265 /* ModuleBlock */:
37394
37434
  return updateStrictModeStatementList(node.statements);
37395
- case 343 /* JSDocParameterTag */:
37435
+ case 344 /* JSDocParameterTag */:
37396
37436
  if (node.parent.kind === 326 /* JSDocSignature */) {
37397
37437
  return bindParameter(node);
37398
37438
  }
37399
37439
  if (node.parent.kind !== 325 /* JSDocTypeLiteral */) {
37400
37440
  break;
37401
37441
  }
37402
- case 350 /* JSDocPropertyTag */:
37442
+ case 351 /* JSDocPropertyTag */:
37403
37443
  const propTag = node;
37404
37444
  const flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 319 /* JSDocOptionalType */ ? 4 /* Property */ | 16777216 /* Optional */ : 4 /* Property */;
37405
37445
  return declareSymbolAndAddToSymbolTable(propTag, flags, 0 /* PropertyExcludes */);
37406
- case 348 /* JSDocTypedefTag */:
37446
+ case 349 /* JSDocTypedefTag */:
37407
37447
  case 341 /* JSDocCallbackTag */:
37408
- case 342 /* JSDocEnumTag */:
37448
+ case 343 /* JSDocEnumTag */:
37409
37449
  return (delayedTypeAliases || (delayedTypeAliases = [])).push(node);
37450
+ case 342 /* JSDocOverloadTag */:
37451
+ return bind(node.typeExpression);
37410
37452
  }
37411
37453
  }
37412
37454
  function bindPropertyWorker(node) {
@@ -37815,7 +37857,7 @@ function createBinder() {
37815
37857
  }
37816
37858
  }
37817
37859
  function bindParameter(node) {
37818
- if (node.kind === 343 /* JSDocParameterTag */ && container.kind !== 326 /* JSDocSignature */) {
37860
+ if (node.kind === 344 /* JSDocParameterTag */ && container.kind !== 326 /* JSDocSignature */) {
37819
37861
  return;
37820
37862
  }
37821
37863
  if (inStrictMode && !(node.flags & 16777216 /* Ambient */)) {
@@ -40280,7 +40322,7 @@ function createTypeChecker(host) {
40280
40322
  let useResult = true;
40281
40323
  if (isFunctionLike(location) && lastLocation && lastLocation !== location.body) {
40282
40324
  if (meaning & result.flags & 788968 /* Type */ && lastLocation.kind !== 323 /* JSDoc */) {
40283
- useResult = result.flags & 262144 /* TypeParameter */ ? lastLocation === location.type || lastLocation.kind === 166 /* Parameter */ || lastLocation.kind === 343 /* JSDocParameterTag */ || lastLocation.kind === 344 /* JSDocReturnTag */ || lastLocation.kind === 165 /* TypeParameter */ : false;
40325
+ useResult = result.flags & 262144 /* TypeParameter */ ? lastLocation === location.type || lastLocation.kind === 166 /* Parameter */ || lastLocation.kind === 344 /* JSDocParameterTag */ || lastLocation.kind === 345 /* JSDocReturnTag */ || lastLocation.kind === 165 /* TypeParameter */ : false;
40284
40326
  }
40285
40327
  if (meaning & result.flags & 3 /* Variable */) {
40286
40328
  if (useOuterVariableScopeInParameter(result, location, lastLocation)) {
@@ -40425,9 +40467,9 @@ function createTypeChecker(host) {
40425
40467
  location = location.parent;
40426
40468
  }
40427
40469
  break;
40428
- case 348 /* JSDocTypedefTag */:
40470
+ case 349 /* JSDocTypedefTag */:
40429
40471
  case 341 /* JSDocCallbackTag */:
40430
- case 342 /* JSDocEnumTag */:
40472
+ case 343 /* JSDocEnumTag */:
40431
40473
  const root = getJSDocRoot(location);
40432
40474
  if (root) {
40433
40475
  location = root.parent;
@@ -43363,8 +43405,8 @@ function createTypeChecker(host) {
43363
43405
  }
43364
43406
  function preserveCommentsOn(node) {
43365
43407
  var _a3;
43366
- if (some(propertySymbol.declarations, (d) => d.kind === 350 /* JSDocPropertyTag */)) {
43367
- const d = (_a3 = propertySymbol.declarations) == null ? void 0 : _a3.find((d2) => d2.kind === 350 /* JSDocPropertyTag */);
43408
+ if (some(propertySymbol.declarations, (d) => d.kind === 351 /* JSDocPropertyTag */)) {
43409
+ const d = (_a3 = propertySymbol.declarations) == null ? void 0 : _a3.find((d2) => d2.kind === 351 /* JSDocPropertyTag */);
43368
43410
  const commentText = getTextOfJSDocComment(d.comment);
43369
43411
  if (commentText) {
43370
43412
  setSyntheticLeadingComments(node, [{ kind: 3 /* MultiLineCommentTrivia */, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }]);
@@ -43532,7 +43574,7 @@ function createTypeChecker(host) {
43532
43574
  function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags, privateSymbolVisitor, bundledImports) {
43533
43575
  let parameterDeclaration = getDeclarationOfKind(parameterSymbol, 166 /* Parameter */);
43534
43576
  if (!parameterDeclaration && !isTransientSymbol(parameterSymbol)) {
43535
- parameterDeclaration = getDeclarationOfKind(parameterSymbol, 343 /* JSDocParameterTag */);
43577
+ parameterDeclaration = getDeclarationOfKind(parameterSymbol, 344 /* JSDocParameterTag */);
43536
43578
  }
43537
43579
  let parameterType = getTypeOfSymbol(parameterSymbol);
43538
43580
  if (parameterDeclaration && isRequiredInitializedParameter(parameterDeclaration)) {
@@ -45462,8 +45504,8 @@ function createTypeChecker(host) {
45462
45504
  function determineIfDeclarationIsVisible() {
45463
45505
  switch (node.kind) {
45464
45506
  case 341 /* JSDocCallbackTag */:
45465
- case 348 /* JSDocTypedefTag */:
45466
- case 342 /* JSDocEnumTag */:
45507
+ case 349 /* JSDocTypedefTag */:
45508
+ case 343 /* JSDocEnumTag */:
45467
45509
  return !!(node.parent && node.parent.parent && node.parent.parent.parent && isSourceFile(node.parent.parent.parent));
45468
45510
  case 205 /* BindingElement */:
45469
45511
  return isDeclarationVisible(node.parent.parent);
@@ -46706,9 +46748,9 @@ function createTypeChecker(host) {
46706
46748
  case 215 /* FunctionExpression */:
46707
46749
  case 216 /* ArrowFunction */:
46708
46750
  case 262 /* TypeAliasDeclaration */:
46709
- case 347 /* JSDocTemplateTag */:
46710
- case 348 /* JSDocTypedefTag */:
46711
- case 342 /* JSDocEnumTag */:
46751
+ case 348 /* JSDocTemplateTag */:
46752
+ case 349 /* JSDocTypedefTag */:
46753
+ case 343 /* JSDocEnumTag */:
46712
46754
  case 341 /* JSDocCallbackTag */:
46713
46755
  case 197 /* MappedType */:
46714
46756
  case 191 /* ConditionalType */: {
@@ -46722,7 +46764,7 @@ function createTypeChecker(host) {
46722
46764
  const thisType = includeThisTypes && (node.kind === 260 /* ClassDeclaration */ || node.kind === 228 /* ClassExpression */ || node.kind === 261 /* InterfaceDeclaration */ || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType;
46723
46765
  return thisType ? append(outerAndOwnTypeParameters, thisType) : outerAndOwnTypeParameters;
46724
46766
  }
46725
- case 343 /* JSDocParameterTag */:
46767
+ case 344 /* JSDocParameterTag */:
46726
46768
  const paramSymbol = getParameterSymbolFromJSDoc(node);
46727
46769
  if (paramSymbol) {
46728
46770
  node = paramSymbol.valueDeclaration;
@@ -47053,7 +47095,7 @@ function createTypeChecker(host) {
47053
47095
  }
47054
47096
  } else {
47055
47097
  type = errorType;
47056
- if (declaration.kind === 342 /* JSDocEnumTag */) {
47098
+ if (declaration.kind === 343 /* JSDocEnumTag */) {
47057
47099
  error(declaration.typeExpression.type, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol));
47058
47100
  } else {
47059
47101
  error(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol));
@@ -48971,6 +49013,22 @@ function createTypeChecker(host) {
48971
49013
  continue;
48972
49014
  }
48973
49015
  }
49016
+ if (isInJSFile(decl) && decl.jsDoc) {
49017
+ let hasJSDocOverloads = false;
49018
+ for (const node of decl.jsDoc) {
49019
+ if (node.tags) {
49020
+ for (const tag of node.tags) {
49021
+ if (isJSDocOverloadTag(tag)) {
49022
+ result.push(getSignatureFromDeclaration(tag.typeExpression));
49023
+ hasJSDocOverloads = true;
49024
+ }
49025
+ }
49026
+ }
49027
+ }
49028
+ if (hasJSDocOverloads) {
49029
+ continue;
49030
+ }
49031
+ }
48974
49032
  result.push(
48975
49033
  !isFunctionExpressionOrArrowFunction(decl) && !isObjectLiteralMethod(decl) && getSignatureOfTypeTag(decl) || getSignatureFromDeclaration(decl)
48976
49034
  );
@@ -52391,10 +52449,7 @@ function createTypeChecker(host) {
52391
52449
  case 207 /* ObjectLiteralExpression */:
52392
52450
  return some(node.properties, isContextSensitive);
52393
52451
  case 206 /* ArrayLiteralExpression */:
52394
- if (node.elements.length > 0) {
52395
- return some(node.elements, isContextSensitive);
52396
- }
52397
- return true;
52452
+ return some(node.elements, isContextSensitive);
52398
52453
  case 224 /* ConditionalExpression */:
52399
52454
  return isContextSensitive(node.whenTrue) || isContextSensitive(node.whenFalse);
52400
52455
  case 223 /* BinaryExpression */:
@@ -54968,14 +55023,7 @@ function createTypeChecker(host) {
54968
55023
  if (match === -1) {
54969
55024
  return defaultValue;
54970
55025
  }
54971
- let nextMatch = discriminable.indexOf(true, match + 1);
54972
- while (nextMatch !== -1) {
54973
- if (!isTypeIdenticalTo(target.types[match], target.types[nextMatch])) {
54974
- return defaultValue;
54975
- }
54976
- nextMatch = discriminable.indexOf(true, nextMatch + 1);
54977
- }
54978
- return target.types[match];
55026
+ return getUnionType(target.types.filter((_, index) => discriminable[index]));
54979
55027
  }
54980
55028
  function isWeakType(type) {
54981
55029
  if (type.flags & 524288 /* Object */) {
@@ -60128,22 +60176,6 @@ function createTypeChecker(host) {
60128
60176
  if (forceTuple || inConstContext || contextualType && someType(contextualType, isTupleLikeType)) {
60129
60177
  return createArrayLiteralType(createTupleType(elementTypes, elementFlags, inConstContext));
60130
60178
  }
60131
- if (elementCount === 0 && contextualType && !checkMode) {
60132
- const contextualElementTypes = [];
60133
- forEachType(contextualType, (type) => {
60134
- if (isArrayLikeType(type)) {
60135
- const elementType = getIndexTypeOfType(type, numberType);
60136
- if (elementType) {
60137
- contextualElementTypes.push(elementType);
60138
- }
60139
- }
60140
- });
60141
- if (contextualElementTypes.length > 1) {
60142
- return createArrayType(getIntersectionType(contextualElementTypes));
60143
- } else if (contextualElementTypes.length === 1) {
60144
- return createArrayType(contextualElementTypes[0]);
60145
- }
60146
- }
60147
60179
  return createArrayLiteralType(createArrayType(elementTypes.length ? getUnionType(sameMap(elementTypes, (t, i) => elementFlags[i] & 8 /* Variadic */ ? getIndexedAccessTypeOrUndefined(t, numberType) || anyType : t), 2 /* Subtype */) : strictNullChecks ? implicitNeverType : undefinedWideningType, inConstContext));
60148
60180
  }
60149
60181
  function createArrayLiteralType(type) {
@@ -66817,9 +66849,9 @@ function createTypeChecker(host) {
66817
66849
  switch (d.kind) {
66818
66850
  case 261 /* InterfaceDeclaration */:
66819
66851
  case 262 /* TypeAliasDeclaration */:
66820
- case 348 /* JSDocTypedefTag */:
66852
+ case 349 /* JSDocTypedefTag */:
66821
66853
  case 341 /* JSDocCallbackTag */:
66822
- case 342 /* JSDocEnumTag */:
66854
+ case 343 /* JSDocEnumTag */:
66823
66855
  return 2 /* ExportType */;
66824
66856
  case 264 /* ModuleDeclaration */:
66825
66857
  return isAmbientModule(d) || getModuleInstanceState(d) !== 0 /* NonInstantiated */ ? 4 /* ExportNamespace */ | 1 /* ExportValue */ : 4 /* ExportNamespace */;
@@ -70591,21 +70623,21 @@ function createTypeChecker(host) {
70591
70623
  return checkJSDocAugmentsTag(node);
70592
70624
  case 332 /* JSDocImplementsTag */:
70593
70625
  return checkJSDocImplementsTag(node);
70594
- case 348 /* JSDocTypedefTag */:
70626
+ case 349 /* JSDocTypedefTag */:
70595
70627
  case 341 /* JSDocCallbackTag */:
70596
- case 342 /* JSDocEnumTag */:
70628
+ case 343 /* JSDocEnumTag */:
70597
70629
  return checkJSDocTypeAliasTag(node);
70598
- case 347 /* JSDocTemplateTag */:
70630
+ case 348 /* JSDocTemplateTag */:
70599
70631
  return checkJSDocTemplateTag(node);
70600
- case 346 /* JSDocTypeTag */:
70632
+ case 347 /* JSDocTypeTag */:
70601
70633
  return checkJSDocTypeTag(node);
70602
70634
  case 327 /* JSDocLink */:
70603
70635
  case 328 /* JSDocLinkCode */:
70604
70636
  case 329 /* JSDocLinkPlain */:
70605
70637
  return checkJSDocLinkLikeTag(node);
70606
- case 343 /* JSDocParameterTag */:
70638
+ case 344 /* JSDocParameterTag */:
70607
70639
  return checkJSDocParameterTag(node);
70608
- case 350 /* JSDocPropertyTag */:
70640
+ case 351 /* JSDocPropertyTag */:
70609
70641
  return checkJSDocPropertyTag(node);
70610
70642
  case 320 /* JSDocFunctionType */:
70611
70643
  checkJSDocFunctionType(node);
@@ -71139,10 +71171,10 @@ function createTypeChecker(host) {
71139
71171
  return entityNameSymbol;
71140
71172
  }
71141
71173
  }
71142
- if (name.parent.kind === 343 /* JSDocParameterTag */) {
71174
+ if (name.parent.kind === 344 /* JSDocParameterTag */) {
71143
71175
  return getParameterSymbolFromJSDoc(name.parent);
71144
71176
  }
71145
- if (name.parent.kind === 165 /* TypeParameter */ && name.parent.parent.kind === 347 /* JSDocTemplateTag */) {
71177
+ if (name.parent.kind === 165 /* TypeParameter */ && name.parent.parent.kind === 348 /* JSDocTemplateTag */) {
71146
71178
  Debug.assert(!isInJSFile(name));
71147
71179
  const typeParameter = getTypeParameterFromJsDoc(name.parent);
71148
71180
  return typeParameter && typeParameter.symbol;
@@ -75148,13 +75180,13 @@ var visitEachChildTable = {
75148
75180
  visitLexicalEnvironment(node.statements, visitor, context)
75149
75181
  );
75150
75182
  },
75151
- [354 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
75183
+ [355 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
75152
75184
  return context.factory.updatePartiallyEmittedExpression(
75153
75185
  node,
75154
75186
  nodeVisitor(node.expression, visitor, isExpression)
75155
75187
  );
75156
75188
  },
75157
- [355 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
75189
+ [356 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
75158
75190
  return context.factory.updateCommaListExpression(
75159
75191
  node,
75160
75192
  nodesVisitor(node.elements, visitor, isExpression)
@@ -81053,7 +81085,7 @@ function transformES2018(context) {
81053
81085
  return visitObjectLiteralExpression(node);
81054
81086
  case 223 /* BinaryExpression */:
81055
81087
  return visitBinaryExpression(node, expressionResultIsUnused2);
81056
- case 355 /* CommaListExpression */:
81088
+ case 356 /* CommaListExpression */:
81057
81089
  return visitCommaListExpression(node, expressionResultIsUnused2);
81058
81090
  case 295 /* CatchClause */:
81059
81091
  return visitCatchClause(node);
@@ -83249,7 +83281,7 @@ function transformES2015(context) {
83249
83281
  return visitParenthesizedExpression(node, expressionResultIsUnused2);
83250
83282
  case 223 /* BinaryExpression */:
83251
83283
  return visitBinaryExpression(node, expressionResultIsUnused2);
83252
- case 355 /* CommaListExpression */:
83284
+ case 356 /* CommaListExpression */:
83253
83285
  return visitCommaListExpression(node, expressionResultIsUnused2);
83254
83286
  case 14 /* NoSubstitutionTemplateLiteral */:
83255
83287
  case 15 /* TemplateHead */:
@@ -85944,7 +85976,7 @@ function transformGenerators(context) {
85944
85976
  switch (node.kind) {
85945
85977
  case 223 /* BinaryExpression */:
85946
85978
  return visitBinaryExpression(node);
85947
- case 355 /* CommaListExpression */:
85979
+ case 356 /* CommaListExpression */:
85948
85980
  return visitCommaListExpression(node);
85949
85981
  case 224 /* ConditionalExpression */:
85950
85982
  return visitConditionalExpression(node);
@@ -88029,9 +88061,9 @@ function transformModule(context) {
88029
88061
  return visitFunctionDeclaration(node);
88030
88062
  case 260 /* ClassDeclaration */:
88031
88063
  return visitClassDeclaration(node);
88032
- case 356 /* MergeDeclarationMarker */:
88064
+ case 357 /* MergeDeclarationMarker */:
88033
88065
  return visitMergeDeclarationMarker(node);
88034
- case 357 /* EndOfDeclarationMarker */:
88066
+ case 358 /* EndOfDeclarationMarker */:
88035
88067
  return visitEndOfDeclarationMarker(node);
88036
88068
  default:
88037
88069
  return visitor(node);
@@ -88048,7 +88080,7 @@ function transformModule(context) {
88048
88080
  return visitExpressionStatement(node);
88049
88081
  case 214 /* ParenthesizedExpression */:
88050
88082
  return visitParenthesizedExpression(node, valueIsDiscarded);
88051
- case 354 /* PartiallyEmittedExpression */:
88083
+ case 355 /* PartiallyEmittedExpression */:
88052
88084
  return visitPartiallyEmittedExpression(node, valueIsDiscarded);
88053
88085
  case 210 /* CallExpression */:
88054
88086
  if (isImportCall(node) && currentSourceFile.impliedNodeFormat === void 0) {
@@ -89823,9 +89855,9 @@ function transformSystemModule(context) {
89823
89855
  return visitCatchClause(node);
89824
89856
  case 238 /* Block */:
89825
89857
  return visitBlock(node);
89826
- case 356 /* MergeDeclarationMarker */:
89858
+ case 357 /* MergeDeclarationMarker */:
89827
89859
  return visitMergeDeclarationMarker(node);
89828
- case 357 /* EndOfDeclarationMarker */:
89860
+ case 358 /* EndOfDeclarationMarker */:
89829
89861
  return visitEndOfDeclarationMarker(node);
89830
89862
  default:
89831
89863
  return visitor(node);
@@ -89973,7 +90005,7 @@ function transformSystemModule(context) {
89973
90005
  return visitExpressionStatement(node);
89974
90006
  case 214 /* ParenthesizedExpression */:
89975
90007
  return visitParenthesizedExpression(node, valueIsDiscarded);
89976
- case 354 /* PartiallyEmittedExpression */:
90008
+ case 355 /* PartiallyEmittedExpression */:
89977
90009
  return visitPartiallyEmittedExpression(node, valueIsDiscarded);
89978
90010
  case 223 /* BinaryExpression */:
89979
90011
  if (isDestructuringAssignment(node)) {
@@ -92374,7 +92406,7 @@ function noEmitNotification(hint, node, callback) {
92374
92406
  }
92375
92407
  function transformNodes(resolver, host, factory2, options, nodes, transformers, allowDtsFiles) {
92376
92408
  var _a2, _b;
92377
- const enabledSyntaxKindFeatures = new Array(359 /* Count */);
92409
+ const enabledSyntaxKindFeatures = new Array(360 /* Count */);
92378
92410
  let lexicalEnvironmentVariableDeclarations;
92379
92411
  let lexicalEnvironmentFunctionDeclarations;
92380
92412
  let lexicalEnvironmentStatements;
@@ -94074,24 +94106,26 @@ function createPrinter(printerOptions = {}, handlers = {}) {
94074
94106
  return;
94075
94107
  case 341 /* JSDocCallbackTag */:
94076
94108
  return emitJSDocCallbackTag(node);
94077
- case 343 /* JSDocParameterTag */:
94078
- case 350 /* JSDocPropertyTag */:
94109
+ case 342 /* JSDocOverloadTag */:
94110
+ return emitJSDocOverloadTag(node);
94111
+ case 344 /* JSDocParameterTag */:
94112
+ case 351 /* JSDocPropertyTag */:
94079
94113
  return emitJSDocPropertyLikeTag(node);
94080
- case 342 /* JSDocEnumTag */:
94081
- case 344 /* JSDocReturnTag */:
94082
- case 345 /* JSDocThisTag */:
94083
- case 346 /* JSDocTypeTag */:
94084
- case 351 /* JSDocThrowsTag */:
94114
+ case 343 /* JSDocEnumTag */:
94115
+ case 345 /* JSDocReturnTag */:
94116
+ case 346 /* JSDocThisTag */:
94117
+ case 347 /* JSDocTypeTag */:
94118
+ case 352 /* JSDocThrowsTag */:
94085
94119
  return emitJSDocSimpleTypedTag(node);
94086
- case 347 /* JSDocTemplateTag */:
94120
+ case 348 /* JSDocTemplateTag */:
94087
94121
  return emitJSDocTemplateTag(node);
94088
- case 348 /* JSDocTypedefTag */:
94122
+ case 349 /* JSDocTypedefTag */:
94089
94123
  return emitJSDocTypedefTag(node);
94090
- case 349 /* JSDocSeeTag */:
94124
+ case 350 /* JSDocSeeTag */:
94091
94125
  return emitJSDocSeeTag(node);
94092
- case 353 /* NotEmittedStatement */:
94093
- case 357 /* EndOfDeclarationMarker */:
94094
- case 356 /* MergeDeclarationMarker */:
94126
+ case 354 /* NotEmittedStatement */:
94127
+ case 358 /* EndOfDeclarationMarker */:
94128
+ case 357 /* MergeDeclarationMarker */:
94095
94129
  return;
94096
94130
  }
94097
94131
  if (isExpression(node)) {
@@ -94186,18 +94220,18 @@ function createPrinter(printerOptions = {}, handlers = {}) {
94186
94220
  return emitJsxSelfClosingElement(node);
94187
94221
  case 285 /* JsxFragment */:
94188
94222
  return emitJsxFragment(node);
94189
- case 352 /* SyntaxList */:
94223
+ case 353 /* SyntaxList */:
94190
94224
  return Debug.fail("SyntaxList should not be printed");
94191
- case 353 /* NotEmittedStatement */:
94225
+ case 354 /* NotEmittedStatement */:
94192
94226
  return;
94193
- case 354 /* PartiallyEmittedExpression */:
94227
+ case 355 /* PartiallyEmittedExpression */:
94194
94228
  return emitPartiallyEmittedExpression(node);
94195
- case 355 /* CommaListExpression */:
94229
+ case 356 /* CommaListExpression */:
94196
94230
  return emitCommaList(node);
94197
- case 356 /* MergeDeclarationMarker */:
94198
- case 357 /* EndOfDeclarationMarker */:
94231
+ case 357 /* MergeDeclarationMarker */:
94232
+ case 358 /* EndOfDeclarationMarker */:
94199
94233
  return;
94200
- case 358 /* SyntheticReferenceExpression */:
94234
+ case 359 /* SyntheticReferenceExpression */:
94201
94235
  return Debug.fail("SyntheticReferenceExpression should not be printed");
94202
94236
  }
94203
94237
  }
@@ -95809,7 +95843,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
95809
95843
  }
95810
95844
  }
95811
95845
  if (node.tags) {
95812
- if (node.tags.length === 1 && node.tags[0].kind === 346 /* JSDocTypeTag */ && !node.comment) {
95846
+ if (node.tags.length === 1 && node.tags[0].kind === 347 /* JSDocTypeTag */ && !node.comment) {
95813
95847
  writeSpace();
95814
95848
  emit(node.tags[0]);
95815
95849
  } else {
@@ -95884,6 +95918,10 @@ function createPrinter(printerOptions = {}, handlers = {}) {
95884
95918
  emitJSDocComment(tag.comment);
95885
95919
  emitJSDocSignature(tag.typeExpression);
95886
95920
  }
95921
+ function emitJSDocOverloadTag(tag) {
95922
+ emitJSDocComment(tag.comment);
95923
+ emitJSDocSignature(tag.typeExpression);
95924
+ }
95887
95925
  function emitJSDocSimpleTag(tag) {
95888
95926
  emitJSDocTagName(tag.tagName);
95889
95927
  emitJSDocComment(tag.comment);
@@ -97111,7 +97149,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
97111
97149
  const skipTrailingComments = end < 0 || (emitFlags & 2048 /* NoTrailingComments */) !== 0 || node.kind === 11 /* JsxText */;
97112
97150
  if ((pos > 0 || end > 0) && pos !== end) {
97113
97151
  if (!skipLeadingComments) {
97114
- emitLeadingComments(pos, node.kind !== 353 /* NotEmittedStatement */);
97152
+ emitLeadingComments(pos, node.kind !== 354 /* NotEmittedStatement */);
97115
97153
  }
97116
97154
  if (!skipLeadingComments || pos >= 0 && (emitFlags & 1024 /* NoLeadingComments */) !== 0) {
97117
97155
  containerPos = pos;
@@ -97134,7 +97172,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
97134
97172
  containerPos = savedContainerPos;
97135
97173
  containerEnd = savedContainerEnd;
97136
97174
  declarationListContainerEnd = savedDeclarationListContainerEnd;
97137
- if (!skipTrailingComments && node.kind !== 353 /* NotEmittedStatement */) {
97175
+ if (!skipTrailingComments && node.kind !== 354 /* NotEmittedStatement */) {
97138
97176
  emitTrailingComments(end);
97139
97177
  }
97140
97178
  }
@@ -97386,7 +97424,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
97386
97424
  }
97387
97425
  } else {
97388
97426
  const source = sourceMapRange.source || sourceMapSource;
97389
- if (node.kind !== 353 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) {
97427
+ if (node.kind !== 354 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) {
97390
97428
  emitSourcePos(sourceMapRange.source || sourceMapSource, skipSourceTrivia(source, sourceMapRange.pos));
97391
97429
  }
97392
97430
  if (emitFlags & 128 /* NoNestedSourceMaps */) {
@@ -97401,7 +97439,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
97401
97439
  if (emitFlags & 128 /* NoNestedSourceMaps */) {
97402
97440
  sourceMapsDisabled = false;
97403
97441
  }
97404
- if (node.kind !== 353 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) {
97442
+ if (node.kind !== 354 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) {
97405
97443
  emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end);
97406
97444
  }
97407
97445
  }