@typescript-deploys/pr-build 5.5.0-pr-57207-16 → 5.5.0-pr-55267-105

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
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.5";
21
- var version = `${versionMajorMinor}.0-insiders.20240307`;
21
+ var version = `${versionMajorMinor}.0-insiders.20240308`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -3340,13 +3340,12 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
3340
3340
  SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 348] = "JSDocPropertyTag";
3341
3341
  SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 349] = "JSDocThrowsTag";
3342
3342
  SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 350] = "JSDocSatisfiesTag";
3343
- SyntaxKind4[SyntaxKind4["JSDocImportTag"] = 351] = "JSDocImportTag";
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["SyntheticReferenceExpression"] = 356] = "SyntheticReferenceExpression";
3349
- SyntaxKind4[SyntaxKind4["Count"] = 357] = "Count";
3343
+ SyntaxKind4[SyntaxKind4["SyntaxList"] = 351] = "SyntaxList";
3344
+ SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 352] = "NotEmittedStatement";
3345
+ SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 353] = "PartiallyEmittedExpression";
3346
+ SyntaxKind4[SyntaxKind4["CommaListExpression"] = 354] = "CommaListExpression";
3347
+ SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 355] = "SyntheticReferenceExpression";
3348
+ SyntaxKind4[SyntaxKind4["Count"] = 356] = "Count";
3350
3349
  SyntaxKind4[SyntaxKind4["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment";
3351
3350
  SyntaxKind4[SyntaxKind4["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment";
3352
3351
  SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment";
@@ -3375,9 +3374,9 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
3375
3374
  SyntaxKind4[SyntaxKind4["LastStatement"] = 259 /* DebuggerStatement */] = "LastStatement";
3376
3375
  SyntaxKind4[SyntaxKind4["FirstNode"] = 166 /* QualifiedName */] = "FirstNode";
3377
3376
  SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 309 /* JSDocTypeExpression */] = "FirstJSDocNode";
3378
- SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 351 /* JSDocImportTag */] = "LastJSDocNode";
3377
+ SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 350 /* JSDocSatisfiesTag */] = "LastJSDocNode";
3379
3378
  SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 327 /* JSDocTag */] = "FirstJSDocTagNode";
3380
- SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 351 /* JSDocImportTag */] = "LastJSDocTagNode";
3379
+ SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 350 /* JSDocSatisfiesTag */] = "LastJSDocTagNode";
3381
3380
  SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 128 /* AbstractKeyword */] = "FirstContextualKeyword";
3382
3381
  SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 165 /* OfKeyword */] = "LastContextualKeyword";
3383
3382
  return SyntaxKind4;
@@ -8437,7 +8436,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
8437
8436
  var tokenValue;
8438
8437
  var tokenFlags;
8439
8438
  var commentDirectives;
8440
- var skipJsDocLeadingAsterisks = 0;
8439
+ var inJSDocType = 0;
8441
8440
  var scriptKind = 0 /* Unknown */;
8442
8441
  var jsDocParsingMode = 0 /* ParseAll */;
8443
8442
  setText(text, start, length2);
@@ -8488,7 +8487,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
8488
8487
  setOnError,
8489
8488
  resetTokenState,
8490
8489
  setTextPos: resetTokenState,
8491
- setSkipJsDocLeadingAsterisks,
8490
+ setInJSDocType,
8492
8491
  tryScan,
8493
8492
  lookAhead,
8494
8493
  scanRange
@@ -9204,7 +9203,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
9204
9203
  return pos += 2, token = 43 /* AsteriskAsteriskToken */;
9205
9204
  }
9206
9205
  pos++;
9207
- if (skipJsDocLeadingAsterisks && !asteriskSeen && tokenFlags & 1 /* PrecedingLineBreak */) {
9206
+ if (inJSDocType && !asteriskSeen && tokenFlags & 1 /* PrecedingLineBreak */) {
9208
9207
  asteriskSeen = true;
9209
9208
  continue;
9210
9209
  }
@@ -9982,8 +9981,8 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
9982
9981
  tokenValue = void 0;
9983
9982
  tokenFlags = 0 /* None */;
9984
9983
  }
9985
- function setSkipJsDocLeadingAsterisks(skip) {
9986
- skipJsDocLeadingAsterisks += skip ? 1 : -1;
9984
+ function setInJSDocType(inType) {
9985
+ inJSDocType += inType ? 1 : -1;
9987
9986
  }
9988
9987
  }
9989
9988
  function codePointAt(s, i) {
@@ -11036,8 +11035,8 @@ function isExpressionKind(kind) {
11036
11035
  case 230 /* SpreadElement */:
11037
11036
  case 234 /* AsExpression */:
11038
11037
  case 232 /* OmittedExpression */:
11039
- case 355 /* CommaListExpression */:
11040
- case 354 /* PartiallyEmittedExpression */:
11038
+ case 354 /* CommaListExpression */:
11039
+ case 353 /* PartiallyEmittedExpression */:
11041
11040
  case 238 /* SatisfiesExpression */:
11042
11041
  return true;
11043
11042
  default:
@@ -11208,7 +11207,7 @@ function isDeclarationStatementKind(kind) {
11208
11207
  return kind === 262 /* FunctionDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 270 /* NamespaceExportDeclaration */;
11209
11208
  }
11210
11209
  function isStatementKindButNotDeclarationKind(kind) {
11211
- return kind === 252 /* BreakStatement */ || kind === 251 /* ContinueStatement */ || kind === 259 /* DebuggerStatement */ || kind === 246 /* DoStatement */ || kind === 244 /* ExpressionStatement */ || kind === 242 /* EmptyStatement */ || kind === 249 /* ForInStatement */ || kind === 250 /* ForOfStatement */ || kind === 248 /* ForStatement */ || kind === 245 /* IfStatement */ || kind === 256 /* LabeledStatement */ || kind === 253 /* ReturnStatement */ || kind === 255 /* SwitchStatement */ || kind === 257 /* ThrowStatement */ || kind === 258 /* TryStatement */ || kind === 243 /* VariableStatement */ || kind === 247 /* WhileStatement */ || kind === 254 /* WithStatement */ || kind === 353 /* NotEmittedStatement */;
11210
+ return kind === 252 /* BreakStatement */ || kind === 251 /* ContinueStatement */ || kind === 259 /* DebuggerStatement */ || kind === 246 /* DoStatement */ || kind === 244 /* ExpressionStatement */ || kind === 242 /* EmptyStatement */ || kind === 249 /* ForInStatement */ || kind === 250 /* ForOfStatement */ || kind === 248 /* ForStatement */ || kind === 245 /* IfStatement */ || kind === 256 /* LabeledStatement */ || kind === 253 /* ReturnStatement */ || kind === 255 /* SwitchStatement */ || kind === 257 /* ThrowStatement */ || kind === 258 /* TryStatement */ || kind === 243 /* VariableStatement */ || kind === 247 /* WhileStatement */ || kind === 254 /* WithStatement */ || kind === 352 /* NotEmittedStatement */;
11212
11211
  }
11213
11212
  function isDeclaration(node) {
11214
11213
  if (node.kind === 168 /* TypeParameter */) {
@@ -11269,10 +11268,10 @@ function isCaseOrDefaultClause(node) {
11269
11268
  return kind === 296 /* CaseClause */ || kind === 297 /* DefaultClause */;
11270
11269
  }
11271
11270
  function isJSDocNode(node) {
11272
- return node.kind >= 309 /* FirstJSDocNode */ && node.kind <= 351 /* LastJSDocNode */;
11271
+ return node.kind >= 309 /* FirstJSDocNode */ && node.kind <= 350 /* LastJSDocNode */;
11273
11272
  }
11274
11273
  function isJSDocTag(node) {
11275
- return node.kind >= 327 /* FirstJSDocTagNode */ && node.kind <= 351 /* LastJSDocTagNode */;
11274
+ return node.kind >= 327 /* FirstJSDocTagNode */ && node.kind <= 350 /* LastJSDocTagNode */;
11276
11275
  }
11277
11276
  function isSetAccessor(node) {
11278
11277
  return node.kind === 178 /* SetAccessor */;
@@ -11713,7 +11712,7 @@ function getTokenPosOfNode(node, sourceFile, includeJsDoc) {
11713
11712
  if (includeJsDoc && hasJSDocNodes(node)) {
11714
11713
  return getTokenPosOfNode(node.jsDoc[0], sourceFile);
11715
11714
  }
11716
- if (node.kind === 352 /* SyntaxList */ && node._children.length > 0) {
11715
+ if (node.kind === 351 /* SyntaxList */ && node._children.length > 0) {
11717
11716
  return getTokenPosOfNode(node._children[0], sourceFile, includeJsDoc);
11718
11717
  }
11719
11718
  return skipTrivia(
@@ -13664,7 +13663,6 @@ function tryGetModuleSpecifierFromDeclaration(node) {
13664
13663
  ))) == null ? void 0 : _a.arguments[0];
13665
13664
  case 272 /* ImportDeclaration */:
13666
13665
  case 278 /* ExportDeclaration */:
13667
- case 351 /* JSDocImportTag */:
13668
13666
  return tryCast(node.moduleSpecifier, isStringLiteralLike);
13669
13667
  case 271 /* ImportEqualsDeclaration */:
13670
13668
  return tryCast((_b = tryCast(node.moduleReference, isExternalModuleReference)) == null ? void 0 : _b.expression, isStringLiteralLike);
@@ -13686,7 +13684,6 @@ function getExternalModuleName(node) {
13686
13684
  switch (node.kind) {
13687
13685
  case 272 /* ImportDeclaration */:
13688
13686
  case 278 /* ExportDeclaration */:
13689
- case 351 /* JSDocImportTag */:
13690
13687
  return node.moduleSpecifier;
13691
13688
  case 271 /* ImportEqualsDeclaration */:
13692
13689
  return node.moduleReference.kind === 283 /* ExternalModuleReference */ ? node.moduleReference.expression : void 0;
@@ -13713,7 +13710,7 @@ function getNamespaceDeclarationNode(node) {
13713
13710
  }
13714
13711
  }
13715
13712
  function isDefaultImport(node) {
13716
- return (node.kind === 272 /* ImportDeclaration */ || node.kind === 351 /* JSDocImportTag */) && !!node.importClause && !!node.importClause.name;
13713
+ return node.kind === 272 /* ImportDeclaration */ && !!node.importClause && !!node.importClause.name;
13717
13714
  }
13718
13715
  function hasQuestionToken(node) {
13719
13716
  if (node) {
@@ -14486,7 +14483,7 @@ function getOperator(expression) {
14486
14483
  }
14487
14484
  function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {
14488
14485
  switch (nodeKind) {
14489
- case 355 /* CommaListExpression */:
14486
+ case 354 /* CommaListExpression */:
14490
14487
  return 0 /* Comma */;
14491
14488
  case 230 /* SpreadElement */:
14492
14489
  return 1 /* Spread */;
@@ -16035,7 +16032,7 @@ function getLeftmostExpression(node, stopAtCallExpressions) {
16035
16032
  case 212 /* ElementAccessExpression */:
16036
16033
  case 211 /* PropertyAccessExpression */:
16037
16034
  case 235 /* NonNullExpression */:
16038
- case 354 /* PartiallyEmittedExpression */:
16035
+ case 353 /* PartiallyEmittedExpression */:
16039
16036
  case 238 /* SatisfiesExpression */:
16040
16037
  node = node.expression;
16041
16038
  continue;
@@ -17422,7 +17419,7 @@ function getContainingNodeArray(node) {
17422
17419
  return parent.types;
17423
17420
  case 189 /* TupleType */:
17424
17421
  case 209 /* ArrayLiteralExpression */:
17425
- case 355 /* CommaListExpression */:
17422
+ case 354 /* CommaListExpression */:
17426
17423
  case 275 /* NamedImports */:
17427
17424
  case 279 /* NamedExports */:
17428
17425
  return parent.elements;
@@ -18607,8 +18604,6 @@ function createNodeFactory(flags, baseFactory2) {
18607
18604
  updateJSDocImplementsTag,
18608
18605
  createJSDocSeeTag,
18609
18606
  updateJSDocSeeTag,
18610
- createJSDocImportTag,
18611
- updateJSDocImportTag,
18612
18607
  createJSDocNameReference,
18613
18608
  updateJSDocNameReference,
18614
18609
  createJSDocMemberName,
@@ -21381,17 +21376,6 @@ function createNodeFactory(flags, baseFactory2) {
21381
21376
  function updateJSDocEnumTag(node, tagName = getDefaultTagName(node), typeExpression, comment) {
21382
21377
  return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node;
21383
21378
  }
21384
- function createJSDocImportTag(tagName, importClause, moduleSpecifier, attributes, comment) {
21385
- const node = createBaseJSDocTag(351 /* JSDocImportTag */, tagName ?? createIdentifier("import"), comment);
21386
- node.importClause = importClause;
21387
- node.moduleSpecifier = moduleSpecifier;
21388
- node.attributes = attributes;
21389
- node.comment = comment;
21390
- return node;
21391
- }
21392
- function updateJSDocImportTag(node, tagName, importClause, moduleSpecifier, attributes, comment) {
21393
- return node.tagName !== tagName || node.comment !== comment || node.importClause !== importClause || node.moduleSpecifier !== moduleSpecifier || node.attributes !== attributes ? update(createJSDocImportTag(tagName, importClause, moduleSpecifier, attributes, comment), node) : node;
21394
- }
21395
21379
  function createJSDocText(text) {
21396
21380
  const node = createBaseNode(321 /* JSDocText */);
21397
21381
  node.text = text;
@@ -21789,18 +21773,18 @@ function createNodeFactory(flags, baseFactory2) {
21789
21773
  return node;
21790
21774
  }
21791
21775
  function createSyntaxList(children) {
21792
- const node = createBaseNode(352 /* SyntaxList */);
21776
+ const node = createBaseNode(351 /* SyntaxList */);
21793
21777
  node._children = children;
21794
21778
  return node;
21795
21779
  }
21796
21780
  function createNotEmittedStatement(original) {
21797
- const node = createBaseNode(353 /* NotEmittedStatement */);
21781
+ const node = createBaseNode(352 /* NotEmittedStatement */);
21798
21782
  node.original = original;
21799
21783
  setTextRange(node, original);
21800
21784
  return node;
21801
21785
  }
21802
21786
  function createPartiallyEmittedExpression(expression, original) {
21803
- const node = createBaseNode(354 /* PartiallyEmittedExpression */);
21787
+ const node = createBaseNode(353 /* PartiallyEmittedExpression */);
21804
21788
  node.expression = expression;
21805
21789
  node.original = original;
21806
21790
  node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */;
@@ -21822,7 +21806,7 @@ function createNodeFactory(flags, baseFactory2) {
21822
21806
  return node;
21823
21807
  }
21824
21808
  function createCommaListExpression(elements) {
21825
- const node = createBaseNode(355 /* CommaListExpression */);
21809
+ const node = createBaseNode(354 /* CommaListExpression */);
21826
21810
  node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements));
21827
21811
  node.transformFlags |= propagateChildrenFlags(node.elements);
21828
21812
  return node;
@@ -21831,7 +21815,7 @@ function createNodeFactory(flags, baseFactory2) {
21831
21815
  return node.elements !== elements ? update(createCommaListExpression(elements), node) : node;
21832
21816
  }
21833
21817
  function createSyntheticReferenceExpression(expression, thisArg) {
21834
- const node = createBaseNode(356 /* SyntheticReferenceExpression */);
21818
+ const node = createBaseNode(355 /* SyntheticReferenceExpression */);
21835
21819
  node.expression = expression;
21836
21820
  node.thisArg = thisArg;
21837
21821
  node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg);
@@ -22077,7 +22061,7 @@ function createNodeFactory(flags, baseFactory2) {
22077
22061
  return updateSatisfiesExpression(outerExpression, expression, outerExpression.type);
22078
22062
  case 235 /* NonNullExpression */:
22079
22063
  return updateNonNullExpression(outerExpression, expression);
22080
- case 354 /* PartiallyEmittedExpression */:
22064
+ case 353 /* PartiallyEmittedExpression */:
22081
22065
  return updatePartiallyEmittedExpression(outerExpression, expression);
22082
22066
  }
22083
22067
  }
@@ -22487,8 +22471,6 @@ function getDefaultTagNameForKind(kind) {
22487
22471
  return "augments";
22488
22472
  case 329 /* JSDocImplementsTag */:
22489
22473
  return "implements";
22490
- case 351 /* JSDocImportTag */:
22491
- return "import";
22492
22474
  default:
22493
22475
  return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`);
22494
22476
  }
@@ -22629,7 +22611,7 @@ function getTransformFlagsSubtreeExclusions(kind) {
22629
22611
  case 216 /* TypeAssertionExpression */:
22630
22612
  case 238 /* SatisfiesExpression */:
22631
22613
  case 234 /* AsExpression */:
22632
- case 354 /* PartiallyEmittedExpression */:
22614
+ case 353 /* PartiallyEmittedExpression */:
22633
22615
  case 217 /* ParenthesizedExpression */:
22634
22616
  case 108 /* SuperKeyword */:
22635
22617
  return -2147483648 /* OuterExpressionExcludes */;
@@ -24267,10 +24249,10 @@ function isMetaProperty(node) {
24267
24249
  return node.kind === 236 /* MetaProperty */;
24268
24250
  }
24269
24251
  function isPartiallyEmittedExpression(node) {
24270
- return node.kind === 354 /* PartiallyEmittedExpression */;
24252
+ return node.kind === 353 /* PartiallyEmittedExpression */;
24271
24253
  }
24272
24254
  function isCommaListExpression(node) {
24273
- return node.kind === 355 /* CommaListExpression */;
24255
+ return node.kind === 354 /* CommaListExpression */;
24274
24256
  }
24275
24257
  function isTemplateSpan(node) {
24276
24258
  return node.kind === 239 /* TemplateSpan */;
@@ -24393,10 +24375,10 @@ function isExportSpecifier(node) {
24393
24375
  return node.kind === 281 /* ExportSpecifier */;
24394
24376
  }
24395
24377
  function isNotEmittedStatement(node) {
24396
- return node.kind === 353 /* NotEmittedStatement */;
24378
+ return node.kind === 352 /* NotEmittedStatement */;
24397
24379
  }
24398
24380
  function isSyntheticReference(node) {
24399
- return node.kind === 356 /* SyntheticReferenceExpression */;
24381
+ return node.kind === 355 /* SyntheticReferenceExpression */;
24400
24382
  }
24401
24383
  function isExternalModuleReference(node) {
24402
24384
  return node.kind === 283 /* ExternalModuleReference */;
@@ -24563,9 +24545,6 @@ function isJSDocImplementsTag(node) {
24563
24545
  function isJSDocSatisfiesTag(node) {
24564
24546
  return node.kind === 350 /* JSDocSatisfiesTag */;
24565
24547
  }
24566
- function isJSDocImportTag(node) {
24567
- return node.kind === 351 /* JSDocImportTag */;
24568
- }
24569
24548
 
24570
24549
  // src/compiler/factory/utilities.ts
24571
24550
  function createEmptyExports(factory2) {
@@ -24948,7 +24927,7 @@ function isOuterExpression(node, kinds = 15 /* All */) {
24948
24927
  return (kinds & 2 /* TypeAssertions */) !== 0;
24949
24928
  case 235 /* NonNullExpression */:
24950
24929
  return (kinds & 4 /* NonNullAssertions */) !== 0;
24951
- case 354 /* PartiallyEmittedExpression */:
24930
+ case 353 /* PartiallyEmittedExpression */:
24952
24931
  return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0;
24953
24932
  }
24954
24933
  return false;
@@ -26024,7 +26003,7 @@ var forEachChildTable = {
26024
26003
  [282 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) {
26025
26004
  return visitNodes(cbNode, cbNodes, node.modifiers);
26026
26005
  },
26027
- [355 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
26006
+ [354 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
26028
26007
  return visitNodes(cbNode, cbNodes, node.elements);
26029
26008
  },
26030
26009
  [284 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) {
@@ -26119,8 +26098,7 @@ var forEachChildTable = {
26119
26098
  [336 /* JSDocReadonlyTag */]: forEachChildInJSDocTag,
26120
26099
  [331 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag,
26121
26100
  [337 /* JSDocOverrideTag */]: forEachChildInJSDocTag,
26122
- [351 /* JSDocImportTag */]: forEachChildInJSDocImportTag,
26123
- [354 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
26101
+ [353 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
26124
26102
  };
26125
26103
  function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
26126
26104
  return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);
@@ -26171,9 +26149,6 @@ function forEachChildInJSDocLinkCodeOrPlain(node, cbNode, _cbNodes) {
26171
26149
  function forEachChildInJSDocTag(node, cbNode, cbNodes) {
26172
26150
  return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
26173
26151
  }
26174
- function forEachChildInJSDocImportTag(node, cbNode, cbNodes) {
26175
- return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.importClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.attributes) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
26176
- }
26177
26152
  function forEachChildInPartiallyEmittedExpression(node, cbNode, _cbNodes) {
26178
26153
  return visitNode2(cbNode, node.expression);
26179
26154
  }
@@ -28166,7 +28141,7 @@ var Parser;
28166
28141
  );
28167
28142
  }
28168
28143
  function parseJSDocType() {
28169
- scanner.setSkipJsDocLeadingAsterisks(true);
28144
+ scanner.setInJSDocType(true);
28170
28145
  const pos = getNodePos();
28171
28146
  if (parseOptional(144 /* ModuleKeyword */)) {
28172
28147
  const moduleTag = factory2.createJSDocNamepathType(
@@ -28185,12 +28160,12 @@ var Parser;
28185
28160
  nextTokenJSDoc();
28186
28161
  }
28187
28162
  }
28188
- scanner.setSkipJsDocLeadingAsterisks(false);
28163
+ scanner.setInJSDocType(false);
28189
28164
  return finishNode(moduleTag, pos);
28190
28165
  }
28191
28166
  const hasDotDotDot = parseOptional(26 /* DotDotDotToken */);
28192
28167
  let type = parseTypeOrTypePredicate();
28193
- scanner.setSkipJsDocLeadingAsterisks(false);
28168
+ scanner.setInJSDocType(false);
28194
28169
  if (hasDotDotDot) {
28195
28170
  type = finishNode(factory2.createJSDocVariadicType(type), pos);
28196
28171
  }
@@ -31753,28 +31728,22 @@ var Parser;
31753
31728
  if (identifier && !tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration()) {
31754
31729
  return parseImportEqualsDeclaration(pos, hasJSDoc, modifiers, identifier, isTypeOnly);
31755
31730
  }
31756
- const importClause = tryParseImportClause(identifier, afterImportPos, isTypeOnly);
31757
- const moduleSpecifier = parseModuleSpecifier();
31758
- const attributes = tryParseImportAttributes();
31759
- parseSemicolon();
31760
- const node = factory2.createImportDeclaration(modifiers, importClause, moduleSpecifier, attributes);
31761
- return withJSDoc(finishNode(node, pos), hasJSDoc);
31762
- }
31763
- function tryParseImportClause(identifier, pos, isTypeOnly, skipJsDocLeadingAsterisks = false) {
31764
31731
  let importClause;
31765
31732
  if (identifier || // import id
31766
31733
  token() === 42 /* AsteriskToken */ || // import *
31767
31734
  token() === 19 /* OpenBraceToken */) {
31768
- importClause = parseImportClause(identifier, pos, isTypeOnly, skipJsDocLeadingAsterisks);
31735
+ importClause = parseImportClause(identifier, afterImportPos, isTypeOnly);
31769
31736
  parseExpected(161 /* FromKeyword */);
31770
31737
  }
31771
- return importClause;
31772
- }
31773
- function tryParseImportAttributes() {
31738
+ const moduleSpecifier = parseModuleSpecifier();
31774
31739
  const currentToken2 = token();
31740
+ let attributes;
31775
31741
  if ((currentToken2 === 118 /* WithKeyword */ || currentToken2 === 132 /* AssertKeyword */) && !scanner.hasPrecedingLineBreak()) {
31776
- return parseImportAttributes(currentToken2);
31742
+ attributes = parseImportAttributes(currentToken2);
31777
31743
  }
31744
+ parseSemicolon();
31745
+ const node = factory2.createImportDeclaration(modifiers, importClause, moduleSpecifier, attributes);
31746
+ return withJSDoc(finishNode(node, pos), hasJSDoc);
31778
31747
  }
31779
31748
  function parseImportAttribute() {
31780
31749
  const pos = getNodePos();
@@ -31841,14 +31810,10 @@ var Parser;
31841
31810
  const finished = withJSDoc(finishNode(node, pos), hasJSDoc);
31842
31811
  return finished;
31843
31812
  }
31844
- function parseImportClause(identifier, pos, isTypeOnly, skipJsDocLeadingAsterisks) {
31813
+ function parseImportClause(identifier, pos, isTypeOnly) {
31845
31814
  let namedBindings;
31846
31815
  if (!identifier || parseOptional(28 /* CommaToken */)) {
31847
- if (skipJsDocLeadingAsterisks)
31848
- scanner.setSkipJsDocLeadingAsterisks(true);
31849
31816
  namedBindings = token() === 42 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(275 /* NamedImports */);
31850
- if (skipJsDocLeadingAsterisks)
31851
- scanner.setSkipJsDocLeadingAsterisks(false);
31852
31817
  }
31853
31818
  return finishNode(factory2.createImportClause(isTypeOnly, identifier, namedBindings), pos);
31854
31819
  }
@@ -32419,9 +32384,6 @@ var Parser;
32419
32384
  case "throws":
32420
32385
  tag = parseThrowsTag(start2, tagName, margin, indentText);
32421
32386
  break;
32422
- case "import":
32423
- tag = parseImportTag(start2, tagName, margin, indentText);
32424
- break;
32425
32387
  default:
32426
32388
  tag = parseUnknownTag(start2, tagName, margin, indentText);
32427
32389
  break;
@@ -32741,32 +32703,13 @@ var Parser;
32741
32703
  const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0;
32742
32704
  return finishNode(factory2.createJSDocSatisfiesTag(tagName, typeExpression, comments2), start2);
32743
32705
  }
32744
- function parseImportTag(start2, tagName, margin, indentText) {
32745
- const afterImportTagPos = scanner.getTokenFullStart();
32746
- let identifier;
32747
- if (isIdentifier2()) {
32748
- identifier = parseIdentifier();
32749
- }
32750
- const importClause = tryParseImportClause(
32751
- identifier,
32752
- afterImportTagPos,
32753
- /*isTypeOnly*/
32754
- true,
32755
- /*skipJsDocLeadingAsterisks*/
32756
- true
32757
- );
32758
- const moduleSpecifier = parseModuleSpecifier();
32759
- const attributes = tryParseImportAttributes();
32760
- const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0;
32761
- return finishNode(factory2.createJSDocImportTag(tagName, importClause, moduleSpecifier, attributes, comments2), start2);
32762
- }
32763
32706
  function parseExpressionWithTypeArgumentsForAugments() {
32764
32707
  const usedBrace = parseOptional(19 /* OpenBraceToken */);
32765
32708
  const pos = getNodePos();
32766
32709
  const expression = parsePropertyAccessEntityNameExpression();
32767
- scanner.setSkipJsDocLeadingAsterisks(true);
32710
+ scanner.setInJSDocType(true);
32768
32711
  const typeArguments = tryParseTypeArguments();
32769
- scanner.setSkipJsDocLeadingAsterisks(false);
32712
+ scanner.setInJSDocType(false);
32770
32713
  const node = factory2.createExpressionWithTypeArguments(expression, typeArguments);
32771
32714
  const res = finishNode(node, pos);
32772
32715
  if (usedBrace) {
@@ -39442,7 +39385,6 @@ function createBinder() {
39442
39385
  var lastContainer;
39443
39386
  var delayedTypeAliases;
39444
39387
  var seenThisKeyword;
39445
- var jsDocImports;
39446
39388
  var currentFlow;
39447
39389
  var currentBreakTarget;
39448
39390
  var currentContinueTarget;
@@ -39490,7 +39432,6 @@ function createBinder() {
39490
39432
  file.symbolCount = symbolCount;
39491
39433
  file.classifiableNames = classifiableNames;
39492
39434
  delayedBindJSDocTypedefTag();
39493
- bindJSDocImports();
39494
39435
  }
39495
39436
  file = void 0;
39496
39437
  options = void 0;
@@ -39501,7 +39442,6 @@ function createBinder() {
39501
39442
  blockScopeContainer = void 0;
39502
39443
  lastContainer = void 0;
39503
39444
  delayedTypeAliases = void 0;
39504
- jsDocImports = void 0;
39505
39445
  seenThisKeyword = false;
39506
39446
  currentFlow = void 0;
39507
39447
  currentBreakTarget = void 0;
@@ -39936,9 +39876,6 @@ function createBinder() {
39936
39876
  case 340 /* JSDocEnumTag */:
39937
39877
  bindJSDocTypeAlias(node);
39938
39878
  break;
39939
- case 351 /* JSDocImportTag */:
39940
- bindJSDocImportTag(node);
39941
- break;
39942
39879
  case 307 /* SourceFile */: {
39943
39880
  bindEachFunctionsFirst(node.statements);
39944
39881
  bind(node.endOfFileToken);
@@ -40671,12 +40608,6 @@ function createBinder() {
40671
40608
  addDeclarationToSymbol(host.symbol, host, 32 /* Class */);
40672
40609
  }
40673
40610
  }
40674
- function bindJSDocImportTag(node) {
40675
- bind(node.tagName);
40676
- if (typeof node.comment !== "string") {
40677
- bindEach(node.comment);
40678
- }
40679
- }
40680
40611
  function bindOptionalExpression(node, trueTarget, falseTarget) {
40681
40612
  doWithConditionalBranches(bind, node, trueTarget, falseTarget);
40682
40613
  if (!isOptionalChain(node) || isOutermostOptionalChain(node)) {
@@ -40993,31 +40924,6 @@ function createBinder() {
40993
40924
  parent = saveParent;
40994
40925
  currentFlow = saveCurrentFlow;
40995
40926
  }
40996
- function bindJSDocImports() {
40997
- if (jsDocImports === void 0) {
40998
- return;
40999
- }
41000
- const saveContainer = container;
41001
- const saveLastContainer = lastContainer;
41002
- const saveBlockScopeContainer = blockScopeContainer;
41003
- const saveParent = parent;
41004
- const saveCurrentFlow = currentFlow;
41005
- for (const jsDocImportTag of jsDocImports) {
41006
- const host = getJSDocHost(jsDocImportTag);
41007
- const enclosingContainer = host ? getEnclosingContainer(host) : void 0;
41008
- const enclosingBlockScopeContainer = host ? getEnclosingBlockScopeContainer(host) : void 0;
41009
- container = enclosingContainer || file;
41010
- blockScopeContainer = enclosingBlockScopeContainer || file;
41011
- currentFlow = initFlowNode({ flags: 2 /* Start */ });
41012
- parent = jsDocImportTag;
41013
- bind(jsDocImportTag.importClause);
41014
- }
41015
- container = saveContainer;
41016
- lastContainer = saveLastContainer;
41017
- blockScopeContainer = saveBlockScopeContainer;
41018
- parent = saveParent;
41019
- currentFlow = saveCurrentFlow;
41020
- }
41021
40927
  function checkContextualIdentifier(node) {
41022
40928
  if (!file.parseDiagnostics.length && !(node.flags & 33554432 /* Ambient */) && !(node.flags & 16777216 /* JSDoc */) && !isIdentifierName(node)) {
41023
40929
  const originalKeywordKind = identifierToKeywordKind(node);
@@ -41442,8 +41348,6 @@ function createBinder() {
41442
41348
  return (delayedTypeAliases || (delayedTypeAliases = [])).push(node);
41443
41349
  case 339 /* JSDocOverloadTag */:
41444
41350
  return bind(node.typeExpression);
41445
- case 351 /* JSDocImportTag */:
41446
- return (jsDocImports || (jsDocImports = [])).push(node);
41447
41351
  }
41448
41352
  }
41449
41353
  function bindPropertyWorker(node) {
@@ -45123,7 +45027,6 @@ function createTypeChecker(host) {
45123
45027
  case 346 /* JSDocTypedefTag */:
45124
45028
  case 338 /* JSDocCallbackTag */:
45125
45029
  case 340 /* JSDocEnumTag */:
45126
- case 351 /* JSDocImportTag */:
45127
45030
  const root = getJSDocRoot(location);
45128
45031
  if (root) {
45129
45032
  location = root.parent;
@@ -46616,7 +46519,7 @@ function createTypeChecker(host) {
46616
46519
  return ambientModule;
46617
46520
  }
46618
46521
  const currentSourceFile = getSourceFileOfNode(location);
46619
- const contextSpecifier = isStringLiteralLike(location) ? location : ((_a = isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : void 0) == null ? void 0 : _a.name) || ((_b = isLiteralImportTypeNode(location) ? location : void 0) == null ? void 0 : _b.argument.literal) || (isInJSFile(location) && isJSDocImportTag(location) ? location.moduleSpecifier : void 0) || (isVariableDeclaration(location) && location.initializer && isRequireCall(
46522
+ const contextSpecifier = isStringLiteralLike(location) ? location : ((_a = isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : void 0) == null ? void 0 : _a.name) || ((_b = isLiteralImportTypeNode(location) ? location : void 0) == null ? void 0 : _b.argument.literal) || (isVariableDeclaration(location) && location.initializer && isRequireCall(
46620
46523
  location.initializer,
46621
46524
  /*requireStringLiteralLikeArgument*/
46622
46525
  true
@@ -50917,20 +50820,19 @@ function createTypeChecker(host) {
50917
50820
  case 273 /* ImportClause */: {
50918
50821
  const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context);
50919
50822
  const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.moduleSpecifier;
50920
- const attributes = isImportDeclaration(node.parent) ? node.parent.attributes : void 0;
50921
- const isTypeOnly = isJSDocImportTag(node.parent);
50922
50823
  addResult(
50923
50824
  factory.createImportDeclaration(
50924
50825
  /*modifiers*/
50925
50826
  void 0,
50926
50827
  factory.createImportClause(
50927
- isTypeOnly,
50828
+ /*isTypeOnly*/
50829
+ false,
50928
50830
  factory.createIdentifier(localName),
50929
50831
  /*namedBindings*/
50930
50832
  void 0
50931
50833
  ),
50932
50834
  specifier2,
50933
- attributes
50835
+ node.parent.attributes
50934
50836
  ),
50935
50837
  0 /* None */
50936
50838
  );
@@ -50939,13 +50841,13 @@ function createTypeChecker(host) {
50939
50841
  case 274 /* NamespaceImport */: {
50940
50842
  const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context);
50941
50843
  const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.moduleSpecifier;
50942
- const isTypeOnly = isJSDocImportTag(node.parent.parent);
50943
50844
  addResult(
50944
50845
  factory.createImportDeclaration(
50945
50846
  /*modifiers*/
50946
50847
  void 0,
50947
50848
  factory.createImportClause(
50948
- isTypeOnly,
50849
+ /*isTypeOnly*/
50850
+ false,
50949
50851
  /*name*/
50950
50852
  void 0,
50951
50853
  factory.createNamespaceImport(factory.createIdentifier(localName))
@@ -50973,13 +50875,13 @@ function createTypeChecker(host) {
50973
50875
  case 276 /* ImportSpecifier */: {
50974
50876
  const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context);
50975
50877
  const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.parent.moduleSpecifier;
50976
- const isTypeOnly = isJSDocImportTag(node.parent.parent.parent);
50977
50878
  addResult(
50978
50879
  factory.createImportDeclaration(
50979
50880
  /*modifiers*/
50980
50881
  void 0,
50981
50882
  factory.createImportClause(
50982
- isTypeOnly,
50883
+ /*isTypeOnly*/
50884
+ false,
50983
50885
  /*name*/
50984
50886
  void 0,
50985
50887
  factory.createNamedImports([
@@ -77714,9 +77616,6 @@ function createTypeChecker(host) {
77714
77616
  error(node.tagName, Diagnostics.An_arrow_function_cannot_have_a_this_parameter);
77715
77617
  }
77716
77618
  }
77717
- function checkJSDocImportTag(node) {
77718
- checkImportAttributes(node);
77719
- }
77720
77619
  function checkJSDocImplementsTag(node) {
77721
77620
  const classLike = getEffectiveJSDocHost(node);
77722
77621
  if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) {
@@ -80958,7 +80857,7 @@ function createTypeChecker(host) {
80958
80857
  const message = isImportAttributes2 ? moduleKind === 199 /* NodeNext */ ? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve : moduleKind === 199 /* NodeNext */ ? Diagnostics.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;
80959
80858
  return grammarErrorOnNode(node, message);
80960
80859
  }
80961
- if (isImportDeclaration(declaration) || isJSDocImportTag(declaration) ? (_a = declaration.importClause) == null ? void 0 : _a.isTypeOnly : declaration.isTypeOnly) {
80860
+ if (isImportDeclaration(declaration) ? (_a = declaration.importClause) == null ? void 0 : _a.isTypeOnly : declaration.isTypeOnly) {
80962
80861
  return grammarErrorOnNode(node, isImportAttributes2 ? Diagnostics.Import_attributes_cannot_be_used_with_type_only_imports_or_exports : Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);
80963
80862
  }
80964
80863
  if (override) {
@@ -81409,8 +81308,6 @@ function createTypeChecker(host) {
81409
81308
  return checkJSDocSatisfiesTag(node);
81410
81309
  case 343 /* JSDocThisTag */:
81411
81310
  return checkJSDocThisTag(node);
81412
- case 351 /* JSDocImportTag */:
81413
- return checkJSDocImportTag(node);
81414
81311
  case 199 /* IndexedAccessType */:
81415
81312
  return checkIndexedAccessType(node);
81416
81313
  case 200 /* MappedType */:
@@ -82214,7 +82111,7 @@ function createTypeChecker(host) {
82214
82111
  return void 0;
82215
82112
  case 11 /* StringLiteral */:
82216
82113
  case 15 /* NoSubstitutionTemplateLiteral */:
82217
- if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 272 /* ImportDeclaration */ || node.parent.kind === 278 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || isInJSFile(node) && isJSDocImportTag(node.parent) && node.parent.moduleSpecifier === node || (isInJSFile(node) && isRequireCall(
82114
+ if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 272 /* ImportDeclaration */ || node.parent.kind === 278 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || (isInJSFile(node) && isRequireCall(
82218
82115
  node.parent,
82219
82116
  /*requireStringLiteralLikeArgument*/
82220
82117
  false
@@ -86456,13 +86353,13 @@ var visitEachChildTable = {
86456
86353
  );
86457
86354
  },
86458
86355
  // Transformation nodes
86459
- [354 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
86356
+ [353 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
86460
86357
  return context.factory.updatePartiallyEmittedExpression(
86461
86358
  node,
86462
86359
  Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
86463
86360
  );
86464
86361
  },
86465
- [355 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
86362
+ [354 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
86466
86363
  return context.factory.updateCommaListExpression(
86467
86364
  node,
86468
86365
  nodesVisitor(node.elements, visitor, isExpression)
@@ -90118,7 +90015,7 @@ function transformClassFields(context) {
90118
90015
  /*discarded*/
90119
90016
  true
90120
90017
  );
90121
- case 355 /* CommaListExpression */:
90018
+ case 354 /* CommaListExpression */:
90122
90019
  return visitCommaListExpression(
90123
90020
  node,
90124
90021
  /*discarded*/
@@ -93211,7 +93108,7 @@ function transformESDecorators(context) {
93211
93108
  return visitForStatement(node);
93212
93109
  case 244 /* ExpressionStatement */:
93213
93110
  return visitExpressionStatement(node);
93214
- case 355 /* CommaListExpression */:
93111
+ case 354 /* CommaListExpression */:
93215
93112
  return visitCommaListExpression(
93216
93113
  node,
93217
93114
  /*discarded*/
@@ -93223,7 +93120,7 @@ function transformESDecorators(context) {
93223
93120
  /*discarded*/
93224
93121
  false
93225
93122
  );
93226
- case 354 /* PartiallyEmittedExpression */:
93123
+ case 353 /* PartiallyEmittedExpression */:
93227
93124
  return visitPartiallyEmittedExpression(
93228
93125
  node,
93229
93126
  /*discarded*/
@@ -93309,7 +93206,7 @@ function transformESDecorators(context) {
93309
93206
  /*discarded*/
93310
93207
  true
93311
93208
  );
93312
- case 355 /* CommaListExpression */:
93209
+ case 354 /* CommaListExpression */:
93313
93210
  return visitCommaListExpression(
93314
93211
  node,
93315
93212
  /*discarded*/
@@ -95900,7 +95797,7 @@ function transformES2018(context) {
95900
95797
  return visitObjectLiteralExpression(node);
95901
95798
  case 226 /* BinaryExpression */:
95902
95799
  return visitBinaryExpression(node, expressionResultIsUnused2);
95903
- case 355 /* CommaListExpression */:
95800
+ case 354 /* CommaListExpression */:
95904
95801
  return visitCommaListExpression(node, expressionResultIsUnused2);
95905
95802
  case 299 /* CatchClause */:
95906
95803
  return visitCatchClause(node);
@@ -99123,7 +99020,7 @@ function transformES2015(context) {
99123
99020
  return visitParenthesizedExpression(node, expressionResultIsUnused2);
99124
99021
  case 226 /* BinaryExpression */:
99125
99022
  return visitBinaryExpression(node, expressionResultIsUnused2);
99126
- case 355 /* CommaListExpression */:
99023
+ case 354 /* CommaListExpression */:
99127
99024
  return visitCommaListExpression(node, expressionResultIsUnused2);
99128
99025
  case 15 /* NoSubstitutionTemplateLiteral */:
99129
99026
  case 16 /* TemplateHead */:
@@ -102418,7 +102315,7 @@ function transformGenerators(context) {
102418
102315
  switch (node.kind) {
102419
102316
  case 226 /* BinaryExpression */:
102420
102317
  return visitBinaryExpression(node);
102421
- case 355 /* CommaListExpression */:
102318
+ case 354 /* CommaListExpression */:
102422
102319
  return visitCommaListExpression(node);
102423
102320
  case 227 /* ConditionalExpression */:
102424
102321
  return visitConditionalExpression(node);
@@ -104808,7 +104705,7 @@ function transformModule(context) {
104808
104705
  return visitExpressionStatement(node);
104809
104706
  case 217 /* ParenthesizedExpression */:
104810
104707
  return visitParenthesizedExpression(node, valueIsDiscarded);
104811
- case 354 /* PartiallyEmittedExpression */:
104708
+ case 353 /* PartiallyEmittedExpression */:
104812
104709
  return visitPartiallyEmittedExpression(node, valueIsDiscarded);
104813
104710
  case 213 /* CallExpression */:
104814
104711
  if (isImportCall(node) && currentSourceFile.impliedNodeFormat === void 0) {
@@ -107201,7 +107098,7 @@ function transformSystemModule(context) {
107201
107098
  return visitExpressionStatement(node);
107202
107099
  case 217 /* ParenthesizedExpression */:
107203
107100
  return visitParenthesizedExpression(node, valueIsDiscarded);
107204
- case 354 /* PartiallyEmittedExpression */:
107101
+ case 353 /* PartiallyEmittedExpression */:
107205
107102
  return visitPartiallyEmittedExpression(node, valueIsDiscarded);
107206
107103
  case 226 /* BinaryExpression */:
107207
107104
  if (isDestructuringAssignment(node)) {
@@ -109309,8 +109206,6 @@ function transformDeclarations(context) {
109309
109206
  }
109310
109207
  if (isDeclaration(input) && isDeclarationAndNotVisible(input))
109311
109208
  return;
109312
- if (isJSDocImportTag(input))
109313
- return;
109314
109209
  if (isFunctionLike(input) && resolver.isImplementationOfOverload(input))
109315
109210
  return;
109316
109211
  let previousEnclosingDeclaration;
@@ -109958,7 +109853,7 @@ function noEmitNotification(hint, node, callback) {
109958
109853
  }
109959
109854
  function transformNodes(resolver, host, factory2, options, nodes, transformers, allowDtsFiles) {
109960
109855
  var _a, _b;
109961
- const enabledSyntaxKindFeatures = new Array(357 /* Count */);
109856
+ const enabledSyntaxKindFeatures = new Array(356 /* Count */);
109962
109857
  let lexicalEnvironmentVariableDeclarations;
109963
109858
  let lexicalEnvironmentFunctionDeclarations;
109964
109859
  let lexicalEnvironmentStatements;
@@ -111531,9 +111426,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
111531
111426
  return emitJSDocTypedefTag(node);
111532
111427
  case 347 /* JSDocSeeTag */:
111533
111428
  return emitJSDocSeeTag(node);
111534
- case 351 /* JSDocImportTag */:
111535
- return emitJSDocImportTag(node);
111536
- case 353 /* NotEmittedStatement */:
111429
+ case 352 /* NotEmittedStatement */:
111537
111430
  return;
111538
111431
  }
111539
111432
  if (isExpression(node)) {
@@ -111634,15 +111527,15 @@ function createPrinter(printerOptions = {}, handlers = {}) {
111634
111527
  return emitJsxSelfClosingElement(node);
111635
111528
  case 288 /* JsxFragment */:
111636
111529
  return emitJsxFragment(node);
111637
- case 352 /* SyntaxList */:
111530
+ case 351 /* SyntaxList */:
111638
111531
  return Debug.fail("SyntaxList should not be printed");
111639
- case 353 /* NotEmittedStatement */:
111532
+ case 352 /* NotEmittedStatement */:
111640
111533
  return;
111641
- case 354 /* PartiallyEmittedExpression */:
111534
+ case 353 /* PartiallyEmittedExpression */:
111642
111535
  return emitPartiallyEmittedExpression(node);
111643
- case 355 /* CommaListExpression */:
111536
+ case 354 /* CommaListExpression */:
111644
111537
  return emitCommaList(node);
111645
- case 356 /* SyntheticReferenceExpression */:
111538
+ case 355 /* SyntheticReferenceExpression */:
111646
111539
  return Debug.fail("SyntheticReferenceExpression should not be printed");
111647
111540
  }
111648
111541
  }
@@ -113486,21 +113379,6 @@ function createPrinter(printerOptions = {}, handlers = {}) {
113486
113379
  emit(tag.name);
113487
113380
  emitJSDocComment(tag.comment);
113488
113381
  }
113489
- function emitJSDocImportTag(tag) {
113490
- emitJSDocTagName(tag.tagName);
113491
- writeSpace();
113492
- if (tag.importClause) {
113493
- emit(tag.importClause);
113494
- writeSpace();
113495
- emitTokenWithComment(161 /* FromKeyword */, tag.importClause.end, writeKeyword, tag);
113496
- writeSpace();
113497
- }
113498
- emitExpression(tag.moduleSpecifier);
113499
- if (tag.attributes) {
113500
- emitWithLeadingSpace(tag.attributes);
113501
- }
113502
- emitJSDocComment(tag.comment);
113503
- }
113504
113382
  function emitJSDocNameReference(node) {
113505
113383
  writeSpace();
113506
113384
  writePunctuation("{");
@@ -114915,7 +114793,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
114915
114793
  emitLeadingComments(
114916
114794
  pos,
114917
114795
  /*isEmittedNode*/
114918
- node.kind !== 353 /* NotEmittedStatement */
114796
+ node.kind !== 352 /* NotEmittedStatement */
114919
114797
  );
114920
114798
  }
114921
114799
  if (!skipLeadingComments || pos >= 0 && (emitFlags & 1024 /* NoLeadingComments */) !== 0) {
@@ -114939,7 +114817,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
114939
114817
  containerPos = savedContainerPos;
114940
114818
  containerEnd = savedContainerEnd;
114941
114819
  declarationListContainerEnd = savedDeclarationListContainerEnd;
114942
- if (!skipTrailingComments && node.kind !== 353 /* NotEmittedStatement */) {
114820
+ if (!skipTrailingComments && node.kind !== 352 /* NotEmittedStatement */) {
114943
114821
  emitTrailingComments(end);
114944
114822
  }
114945
114823
  }
@@ -115191,7 +115069,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
115191
115069
  const emitFlags = getEmitFlags(node);
115192
115070
  const sourceMapRange = getSourceMapRange(node);
115193
115071
  const source = sourceMapRange.source || sourceMapSource;
115194
- if (node.kind !== 353 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) {
115072
+ if (node.kind !== 352 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) {
115195
115073
  emitSourcePos(sourceMapRange.source || sourceMapSource, skipSourceTrivia(source, sourceMapRange.pos));
115196
115074
  }
115197
115075
  if (emitFlags & 128 /* NoNestedSourceMaps */) {
@@ -115204,7 +115082,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
115204
115082
  if (emitFlags & 128 /* NoNestedSourceMaps */) {
115205
115083
  sourceMapsDisabled = false;
115206
115084
  }
115207
- if (node.kind !== 353 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) {
115085
+ if (node.kind !== 352 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) {
115208
115086
  emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end);
115209
115087
  }
115210
115088
  }
@@ -118086,7 +117964,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
118086
117964
  );
118087
117965
  }
118088
117966
  if (file.flags & 4194304 /* PossiblyContainsDynamicImport */ || isJavaScriptFile) {
118089
- collectDynamicImportOrRequireOrJsDocImportCalls(file);
117967
+ collectDynamicImportOrRequireCalls(file);
118090
117968
  }
118091
117969
  file.imports = imports || emptyArray;
118092
117970
  file.moduleAugmentations = moduleAugmentations || emptyArray;
@@ -118130,7 +118008,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
118130
118008
  }
118131
118009
  }
118132
118010
  }
118133
- function collectDynamicImportOrRequireOrJsDocImportCalls(file2) {
118011
+ function collectDynamicImportOrRequireCalls(file2) {
118134
118012
  const r = /import|require/g;
118135
118013
  while (r.exec(file2.text) !== null) {
118136
118014
  const node = getNodeAtPosition(file2, r.lastIndex);
@@ -118159,16 +118037,6 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
118159
118037
  false
118160
118038
  );
118161
118039
  imports = append(imports, node.argument.literal);
118162
- } else if (isJavaScriptFile && isJSDocImportTag(node)) {
118163
- const moduleNameExpr = getExternalModuleName(node);
118164
- if (moduleNameExpr && isStringLiteral(moduleNameExpr) && moduleNameExpr.text) {
118165
- setParentRecursive(
118166
- node,
118167
- /*incremental*/
118168
- false
118169
- );
118170
- imports = append(imports, moduleNameExpr);
118171
- }
118172
118040
  }
118173
118041
  }
118174
118042
  }