@typescript-deploys/pr-build 5.4.0-pr-57207-3 → 5.4.0-pr-56594-3

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.4";
21
- var version = `${versionMajorMinor}.0-insiders.20240131`;
21
+ var version = `${versionMajorMinor}.0-insiders.20240205`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -3356,13 +3356,12 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
3356
3356
  SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 355] = "JSDocPropertyTag";
3357
3357
  SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 356] = "JSDocThrowsTag";
3358
3358
  SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 357] = "JSDocSatisfiesTag";
3359
- SyntaxKind4[SyntaxKind4["JSDocImportTypeTag"] = 358] = "JSDocImportTypeTag";
3360
- SyntaxKind4[SyntaxKind4["SyntaxList"] = 359] = "SyntaxList";
3361
- SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 360] = "NotEmittedStatement";
3362
- SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 361] = "PartiallyEmittedExpression";
3363
- SyntaxKind4[SyntaxKind4["CommaListExpression"] = 362] = "CommaListExpression";
3364
- SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 363] = "SyntheticReferenceExpression";
3365
- SyntaxKind4[SyntaxKind4["Count"] = 364] = "Count";
3359
+ SyntaxKind4[SyntaxKind4["SyntaxList"] = 358] = "SyntaxList";
3360
+ SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 359] = "NotEmittedStatement";
3361
+ SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 360] = "PartiallyEmittedExpression";
3362
+ SyntaxKind4[SyntaxKind4["CommaListExpression"] = 361] = "CommaListExpression";
3363
+ SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 362] = "SyntheticReferenceExpression";
3364
+ SyntaxKind4[SyntaxKind4["Count"] = 363] = "Count";
3366
3365
  SyntaxKind4[SyntaxKind4["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment";
3367
3366
  SyntaxKind4[SyntaxKind4["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment";
3368
3367
  SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment";
@@ -3391,9 +3390,9 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
3391
3390
  SyntaxKind4[SyntaxKind4["LastStatement"] = 259 /* DebuggerStatement */] = "LastStatement";
3392
3391
  SyntaxKind4[SyntaxKind4["FirstNode"] = 166 /* QualifiedName */] = "FirstNode";
3393
3392
  SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 316 /* JSDocTypeExpression */] = "FirstJSDocNode";
3394
- SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 358 /* JSDocImportTypeTag */] = "LastJSDocNode";
3393
+ SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocNode";
3395
3394
  SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 334 /* JSDocTag */] = "FirstJSDocTagNode";
3396
- SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 358 /* JSDocImportTypeTag */] = "LastJSDocTagNode";
3395
+ SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocTagNode";
3397
3396
  SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 128 /* AbstractKeyword */] = "FirstContextualKeyword";
3398
3397
  SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 165 /* OfKeyword */] = "LastContextualKeyword";
3399
3398
  return SyntaxKind4;
@@ -6924,7 +6923,6 @@ var Diagnostics = {
6924
6923
  Disallow_inconsistently_cased_references_to_the_same_file: diag(6078, 3 /* Message */, "Disallow_inconsistently_cased_references_to_the_same_file_6078", "Disallow inconsistently-cased references to the same file."),
6925
6924
  Specify_library_files_to_be_included_in_the_compilation: diag(6079, 3 /* Message */, "Specify_library_files_to_be_included_in_the_compilation_6079", "Specify library files to be included in the compilation."),
6926
6925
  Specify_JSX_code_generation: diag(6080, 3 /* Message */, "Specify_JSX_code_generation_6080", "Specify JSX code generation."),
6927
- File_0_has_an_unsupported_extension_so_skipping_it: diag(6081, 3 /* Message */, "File_0_has_an_unsupported_extension_so_skipping_it_6081", "File '{0}' has an unsupported extension, so skipping it."),
6928
6926
  Only_amd_and_system_modules_are_supported_alongside_0: diag(6082, 1 /* Error */, "Only_amd_and_system_modules_are_supported_alongside_0_6082", "Only 'amd' and 'system' modules are supported alongside --{0}."),
6929
6927
  Base_directory_to_resolve_non_absolute_module_names: diag(6083, 3 /* Message */, "Base_directory_to_resolve_non_absolute_module_names_6083", "Base directory to resolve non-absolute module names."),
6930
6928
  Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit: diag(6084, 3 /* Message */, "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084", "[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),
@@ -11076,8 +11074,8 @@ function isExpressionKind(kind) {
11076
11074
  case 230 /* SpreadElement */:
11077
11075
  case 234 /* AsExpression */:
11078
11076
  case 232 /* OmittedExpression */:
11079
- case 362 /* CommaListExpression */:
11080
- case 361 /* PartiallyEmittedExpression */:
11077
+ case 361 /* CommaListExpression */:
11078
+ case 360 /* PartiallyEmittedExpression */:
11081
11079
  case 238 /* SatisfiesExpression */:
11082
11080
  return true;
11083
11081
  default:
@@ -11248,7 +11246,7 @@ function isDeclarationStatementKind(kind) {
11248
11246
  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 */;
11249
11247
  }
11250
11248
  function isStatementKindButNotDeclarationKind(kind) {
11251
- 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 === 360 /* NotEmittedStatement */;
11249
+ 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 === 359 /* NotEmittedStatement */;
11252
11250
  }
11253
11251
  function isDeclaration(node) {
11254
11252
  if (node.kind === 168 /* TypeParameter */) {
@@ -11309,10 +11307,10 @@ function isCaseOrDefaultClause(node) {
11309
11307
  return kind === 296 /* CaseClause */ || kind === 297 /* DefaultClause */;
11310
11308
  }
11311
11309
  function isJSDocNode(node) {
11312
- return node.kind >= 316 /* FirstJSDocNode */ && node.kind <= 358 /* LastJSDocNode */;
11310
+ return node.kind >= 316 /* FirstJSDocNode */ && node.kind <= 357 /* LastJSDocNode */;
11313
11311
  }
11314
11312
  function isJSDocTag(node) {
11315
- return node.kind >= 334 /* FirstJSDocTagNode */ && node.kind <= 358 /* LastJSDocTagNode */;
11313
+ return node.kind >= 334 /* FirstJSDocTagNode */ && node.kind <= 357 /* LastJSDocTagNode */;
11316
11314
  }
11317
11315
  function isSetAccessor(node) {
11318
11316
  return node.kind === 178 /* SetAccessor */;
@@ -11753,7 +11751,7 @@ function getTokenPosOfNode(node, sourceFile, includeJsDoc) {
11753
11751
  if (includeJsDoc && hasJSDocNodes(node)) {
11754
11752
  return getTokenPosOfNode(node.jsDoc[0], sourceFile);
11755
11753
  }
11756
- if (node.kind === 359 /* SyntaxList */ && node._children.length > 0) {
11754
+ if (node.kind === 358 /* SyntaxList */ && node._children.length > 0) {
11757
11755
  return getTokenPosOfNode(node._children[0], sourceFile, includeJsDoc);
11758
11756
  }
11759
11757
  return skipTrivia(
@@ -13707,7 +13705,6 @@ function tryGetModuleSpecifierFromDeclaration(node) {
13707
13705
  ))) == null ? void 0 : _a.arguments[0];
13708
13706
  case 272 /* ImportDeclaration */:
13709
13707
  case 278 /* ExportDeclaration */:
13710
- case 358 /* JSDocImportTypeTag */:
13711
13708
  return tryCast(node.moduleSpecifier, isStringLiteralLike);
13712
13709
  case 271 /* ImportEqualsDeclaration */:
13713
13710
  return tryCast((_b = tryCast(node.moduleReference, isExternalModuleReference)) == null ? void 0 : _b.expression, isStringLiteralLike);
@@ -13729,7 +13726,6 @@ function getExternalModuleName(node) {
13729
13726
  switch (node.kind) {
13730
13727
  case 272 /* ImportDeclaration */:
13731
13728
  case 278 /* ExportDeclaration */:
13732
- case 358 /* JSDocImportTypeTag */:
13733
13729
  return node.moduleSpecifier;
13734
13730
  case 271 /* ImportEqualsDeclaration */:
13735
13731
  return node.moduleReference.kind === 283 /* ExternalModuleReference */ ? node.moduleReference.expression : void 0;
@@ -14541,7 +14537,7 @@ function getOperator(expression) {
14541
14537
  }
14542
14538
  function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {
14543
14539
  switch (nodeKind) {
14544
- case 362 /* CommaListExpression */:
14540
+ case 361 /* CommaListExpression */:
14545
14541
  return 0 /* Comma */;
14546
14542
  case 230 /* SpreadElement */:
14547
14543
  return 1 /* Spread */;
@@ -16106,7 +16102,7 @@ function getLeftmostExpression(node, stopAtCallExpressions) {
16106
16102
  case 212 /* ElementAccessExpression */:
16107
16103
  case 211 /* PropertyAccessExpression */:
16108
16104
  case 235 /* NonNullExpression */:
16109
- case 361 /* PartiallyEmittedExpression */:
16105
+ case 360 /* PartiallyEmittedExpression */:
16110
16106
  case 238 /* SatisfiesExpression */:
16111
16107
  node = node.expression;
16112
16108
  continue;
@@ -17496,7 +17492,7 @@ function getContainingNodeArray(node) {
17496
17492
  return parent.types;
17497
17493
  case 189 /* TupleType */:
17498
17494
  case 209 /* ArrayLiteralExpression */:
17499
- case 362 /* CommaListExpression */:
17495
+ case 361 /* CommaListExpression */:
17500
17496
  case 275 /* NamedImports */:
17501
17497
  case 279 /* NamedExports */:
17502
17498
  return parent.elements;
@@ -18681,8 +18677,6 @@ function createNodeFactory(flags, baseFactory2) {
18681
18677
  updateJSDocImplementsTag,
18682
18678
  createJSDocSeeTag,
18683
18679
  updateJSDocSeeTag,
18684
- createJSDocImportTypeTag,
18685
- updateJSDocImportTypeTag,
18686
18680
  createJSDocNameReference,
18687
18681
  updateJSDocNameReference,
18688
18682
  createJSDocMemberName,
@@ -21461,16 +21455,6 @@ function createNodeFactory(flags, baseFactory2) {
21461
21455
  function updateJSDocEnumTag(node, tagName = getDefaultTagName(node), typeExpression, comment) {
21462
21456
  return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node;
21463
21457
  }
21464
- function createJSDocImportTypeTag(tagName, importClause, moduleSpecifier, comment) {
21465
- const node = createBaseJSDocTag(358 /* JSDocImportTypeTag */, tagName ?? createIdentifier("importType"), comment);
21466
- node.importClause = importClause;
21467
- node.moduleSpecifier = moduleSpecifier;
21468
- node.comment = comment;
21469
- return node;
21470
- }
21471
- function updateJSDocImportTypeTag(node, tagName, importClause, moduleSpecifier, comment) {
21472
- return node.tagName !== tagName || node.comment !== comment || node.importClause !== importClause || node.moduleSpecifier !== moduleSpecifier ? update(createJSDocImportTypeTag(tagName, importClause, moduleSpecifier, comment), node) : node;
21473
- }
21474
21458
  function createJSDocText(text) {
21475
21459
  const node = createBaseNode(328 /* JSDocText */);
21476
21460
  node.text = text;
@@ -21909,18 +21893,18 @@ function createNodeFactory(flags, baseFactory2) {
21909
21893
  return node;
21910
21894
  }
21911
21895
  function createSyntaxList(children) {
21912
- const node = createBaseNode(359 /* SyntaxList */);
21896
+ const node = createBaseNode(358 /* SyntaxList */);
21913
21897
  node._children = children;
21914
21898
  return node;
21915
21899
  }
21916
21900
  function createNotEmittedStatement(original) {
21917
- const node = createBaseNode(360 /* NotEmittedStatement */);
21901
+ const node = createBaseNode(359 /* NotEmittedStatement */);
21918
21902
  node.original = original;
21919
21903
  setTextRange(node, original);
21920
21904
  return node;
21921
21905
  }
21922
21906
  function createPartiallyEmittedExpression(expression, original) {
21923
- const node = createBaseNode(361 /* PartiallyEmittedExpression */);
21907
+ const node = createBaseNode(360 /* PartiallyEmittedExpression */);
21924
21908
  node.expression = expression;
21925
21909
  node.original = original;
21926
21910
  node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */;
@@ -21942,7 +21926,7 @@ function createNodeFactory(flags, baseFactory2) {
21942
21926
  return node;
21943
21927
  }
21944
21928
  function createCommaListExpression(elements) {
21945
- const node = createBaseNode(362 /* CommaListExpression */);
21929
+ const node = createBaseNode(361 /* CommaListExpression */);
21946
21930
  node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements));
21947
21931
  node.transformFlags |= propagateChildrenFlags(node.elements);
21948
21932
  return node;
@@ -21951,7 +21935,7 @@ function createNodeFactory(flags, baseFactory2) {
21951
21935
  return node.elements !== elements ? update(createCommaListExpression(elements), node) : node;
21952
21936
  }
21953
21937
  function createSyntheticReferenceExpression(expression, thisArg) {
21954
- const node = createBaseNode(363 /* SyntheticReferenceExpression */);
21938
+ const node = createBaseNode(362 /* SyntheticReferenceExpression */);
21955
21939
  node.expression = expression;
21956
21940
  node.thisArg = thisArg;
21957
21941
  node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg);
@@ -22197,7 +22181,7 @@ function createNodeFactory(flags, baseFactory2) {
22197
22181
  return updateSatisfiesExpression(outerExpression, expression, outerExpression.type);
22198
22182
  case 235 /* NonNullExpression */:
22199
22183
  return updateNonNullExpression(outerExpression, expression);
22200
- case 361 /* PartiallyEmittedExpression */:
22184
+ case 360 /* PartiallyEmittedExpression */:
22201
22185
  return updatePartiallyEmittedExpression(outerExpression, expression);
22202
22186
  }
22203
22187
  }
@@ -22607,8 +22591,6 @@ function getDefaultTagNameForKind(kind) {
22607
22591
  return "augments";
22608
22592
  case 336 /* JSDocImplementsTag */:
22609
22593
  return "implements";
22610
- case 358 /* JSDocImportTypeTag */:
22611
- return "importType";
22612
22594
  default:
22613
22595
  return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`);
22614
22596
  }
@@ -22749,7 +22731,7 @@ function getTransformFlagsSubtreeExclusions(kind) {
22749
22731
  case 216 /* TypeAssertionExpression */:
22750
22732
  case 238 /* SatisfiesExpression */:
22751
22733
  case 234 /* AsExpression */:
22752
- case 361 /* PartiallyEmittedExpression */:
22734
+ case 360 /* PartiallyEmittedExpression */:
22753
22735
  case 217 /* ParenthesizedExpression */:
22754
22736
  case 108 /* SuperKeyword */:
22755
22737
  return -2147483648 /* OuterExpressionExcludes */;
@@ -24653,10 +24635,10 @@ function isMetaProperty(node) {
24653
24635
  return node.kind === 236 /* MetaProperty */;
24654
24636
  }
24655
24637
  function isPartiallyEmittedExpression(node) {
24656
- return node.kind === 361 /* PartiallyEmittedExpression */;
24638
+ return node.kind === 360 /* PartiallyEmittedExpression */;
24657
24639
  }
24658
24640
  function isCommaListExpression(node) {
24659
- return node.kind === 362 /* CommaListExpression */;
24641
+ return node.kind === 361 /* CommaListExpression */;
24660
24642
  }
24661
24643
  function isTemplateSpan(node) {
24662
24644
  return node.kind === 239 /* TemplateSpan */;
@@ -24779,10 +24761,10 @@ function isExportSpecifier(node) {
24779
24761
  return node.kind === 281 /* ExportSpecifier */;
24780
24762
  }
24781
24763
  function isNotEmittedStatement(node) {
24782
- return node.kind === 360 /* NotEmittedStatement */;
24764
+ return node.kind === 359 /* NotEmittedStatement */;
24783
24765
  }
24784
24766
  function isSyntheticReference(node) {
24785
- return node.kind === 363 /* SyntheticReferenceExpression */;
24767
+ return node.kind === 362 /* SyntheticReferenceExpression */;
24786
24768
  }
24787
24769
  function isExternalModuleReference(node) {
24788
24770
  return node.kind === 283 /* ExternalModuleReference */;
@@ -24955,9 +24937,6 @@ function isJSDocImplementsTag(node) {
24955
24937
  function isJSDocSatisfiesTag(node) {
24956
24938
  return node.kind === 357 /* JSDocSatisfiesTag */;
24957
24939
  }
24958
- function isJSDocImportTypeTag(node) {
24959
- return node.kind === 358 /* JSDocImportTypeTag */;
24960
- }
24961
24940
 
24962
24941
  // src/compiler/factory/utilities.ts
24963
24942
  function createEmptyExports(factory2) {
@@ -25340,7 +25319,7 @@ function isOuterExpression(node, kinds = 15 /* All */) {
25340
25319
  return (kinds & 2 /* TypeAssertions */) !== 0;
25341
25320
  case 235 /* NonNullExpression */:
25342
25321
  return (kinds & 4 /* NonNullAssertions */) !== 0;
25343
- case 361 /* PartiallyEmittedExpression */:
25322
+ case 360 /* PartiallyEmittedExpression */:
25344
25323
  return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0;
25345
25324
  }
25346
25325
  return false;
@@ -26416,7 +26395,7 @@ var forEachChildTable = {
26416
26395
  [282 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) {
26417
26396
  return visitNodes(cbNode, cbNodes, node.modifiers);
26418
26397
  },
26419
- [362 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
26398
+ [361 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
26420
26399
  return visitNodes(cbNode, cbNodes, node.elements);
26421
26400
  },
26422
26401
  [284 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) {
@@ -26511,8 +26490,7 @@ var forEachChildTable = {
26511
26490
  [343 /* JSDocReadonlyTag */]: forEachChildInJSDocTag,
26512
26491
  [338 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag,
26513
26492
  [344 /* JSDocOverrideTag */]: forEachChildInJSDocTag,
26514
- [358 /* JSDocImportTypeTag */]: forEachChildInJSDocImportTypeTag,
26515
- [361 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
26493
+ [360 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
26516
26494
  };
26517
26495
  function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
26518
26496
  return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);
@@ -26563,9 +26541,6 @@ function forEachChildInJSDocLinkCodeOrPlain(node, cbNode, _cbNodes) {
26563
26541
  function forEachChildInJSDocTag(node, cbNode, cbNodes) {
26564
26542
  return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
26565
26543
  }
26566
- function forEachChildInJSDocImportTypeTag(node, cbNode, cbNodes) {
26567
- return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.importClause) || visitNode2(cbNode, node.moduleSpecifier) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
26568
- }
26569
26544
  function forEachChildInPartiallyEmittedExpression(node, cbNode, _cbNodes) {
26570
26545
  return visitNode2(cbNode, node.expression);
26571
26546
  }
@@ -32801,9 +32776,6 @@ var Parser;
32801
32776
  case "throws":
32802
32777
  tag = parseThrowsTag(start2, tagName, margin, indentText);
32803
32778
  break;
32804
- case "importType":
32805
- tag = parseImportTypeTag(start2, tagName, margin, indentText);
32806
- break;
32807
32779
  default:
32808
32780
  tag = parseUnknownTag(start2, tagName, margin, indentText);
32809
32781
  break;
@@ -33123,27 +33095,6 @@ var Parser;
33123
33095
  const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0;
33124
33096
  return finishNode(factory2.createJSDocSatisfiesTag(tagName, typeExpression, comments2), start2);
33125
33097
  }
33126
- function parseImportTypeTag(start2, tagName, margin, indentText) {
33127
- const afterImportTypeTagPos = scanner.getTokenFullStart();
33128
- let identifier;
33129
- if (isIdentifier2()) {
33130
- identifier = parseIdentifier();
33131
- }
33132
- let importClause;
33133
- if (identifier || token() === 42 /* AsteriskToken */ || token() === 19 /* OpenBraceToken */) {
33134
- importClause = parseImportClause(
33135
- identifier,
33136
- afterImportTypeTagPos,
33137
- /*isTypeOnly*/
33138
- true
33139
- );
33140
- parseExpected(161 /* FromKeyword */);
33141
- }
33142
- Debug.assert(importClause);
33143
- const moduleSpecifier = parseModuleSpecifier();
33144
- const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0;
33145
- return finishNode(factory2.createJSDocImportTypeTag(tagName, importClause, moduleSpecifier, comments2), start2);
33146
- }
33147
33098
  function parseExpressionWithTypeArgumentsForAugments() {
33148
33099
  const usedBrace = parseOptional(19 /* OpenBraceToken */);
33149
33100
  const pos = getNodePos();
@@ -38769,15 +38720,9 @@ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFail
38769
38720
  }
38770
38721
  }
38771
38722
  const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
38772
- const fromFile = tryFile(candidate2, onlyRecordFailures2, state2);
38723
+ const fromFile = loadFileNameFromPackageJsonField(extensions2, candidate2, onlyRecordFailures2, state2);
38773
38724
  if (fromFile) {
38774
- const resolved = resolvedIfExtensionMatches(extensions2, fromFile);
38775
- if (resolved) {
38776
- return noPackageId(resolved);
38777
- }
38778
- if (state2.traceEnabled) {
38779
- trace(state2.host, Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromFile);
38780
- }
38725
+ return noPackageId(fromFile);
38781
38726
  }
38782
38727
  const expandedExtensions = extensions2 === 4 /* Declaration */ ? 1 /* TypeScript */ | 4 /* Declaration */ : extensions2;
38783
38728
  const features = state2.features;
@@ -38833,10 +38778,6 @@ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFail
38833
38778
  return loadModuleFromFile(extensions, indexPath, onlyRecordFailuresForIndex, state);
38834
38779
  }
38835
38780
  }
38836
- function resolvedIfExtensionMatches(extensions, path, resolvedUsingTsExtension) {
38837
- const ext = tryGetExtensionFromPath2(path);
38838
- return ext !== void 0 && extensionIsOk(extensions, ext) ? { path, ext, resolvedUsingTsExtension } : void 0;
38839
- }
38840
38781
  function extensionIsOk(extensions, extension) {
38841
38782
  return extensions & 2 /* JavaScript */ && (extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */) || extensions & 1 /* TypeScript */ && (extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */) || extensions & 4 /* Declaration */ && (extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */) || extensions & 8 /* Json */ && extension === ".json" /* Json */ || false;
38842
38783
  }
@@ -46969,7 +46910,7 @@ function createTypeChecker(host) {
46969
46910
  return ambientModule;
46970
46911
  }
46971
46912
  const currentSourceFile = getSourceFileOfNode(location);
46972
- 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) && isJSDocImportTypeTag(location) ? location.moduleSpecifier : void 0) || (isVariableDeclaration(location) && location.initializer && isRequireCall(
46913
+ 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(
46973
46914
  location.initializer,
46974
46915
  /*requireStringLiteralLikeArgument*/
46975
46916
  true
@@ -51270,7 +51211,6 @@ function createTypeChecker(host) {
51270
51211
  case 273 /* ImportClause */: {
51271
51212
  const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context);
51272
51213
  const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.moduleSpecifier;
51273
- const attributes = isImportDeclaration(node.parent) ? node.parent.attributes : void 0;
51274
51214
  addResult(
51275
51215
  factory.createImportDeclaration(
51276
51216
  /*modifiers*/
@@ -51283,7 +51223,7 @@ function createTypeChecker(host) {
51283
51223
  void 0
51284
51224
  ),
51285
51225
  specifier2,
51286
- attributes
51226
+ node.parent.attributes
51287
51227
  ),
51288
51228
  0 /* None */
51289
51229
  );
@@ -51292,7 +51232,6 @@ function createTypeChecker(host) {
51292
51232
  case 274 /* NamespaceImport */: {
51293
51233
  const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context);
51294
51234
  const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.moduleSpecifier;
51295
- const attributes = isImportDeclaration(node.parent) ? node.parent.attributes : void 0;
51296
51235
  addResult(
51297
51236
  factory.createImportDeclaration(
51298
51237
  /*modifiers*/
@@ -51305,7 +51244,7 @@ function createTypeChecker(host) {
51305
51244
  factory.createNamespaceImport(factory.createIdentifier(localName))
51306
51245
  ),
51307
51246
  specifier2,
51308
- attributes
51247
+ node.parent.attributes
51309
51248
  ),
51310
51249
  0 /* None */
51311
51250
  );
@@ -51327,7 +51266,6 @@ function createTypeChecker(host) {
51327
51266
  case 276 /* ImportSpecifier */: {
51328
51267
  const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context);
51329
51268
  const specifier2 = bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.parent.moduleSpecifier;
51330
- const attributes = isImportDeclaration(node.parent.parent.parent) ? node.parent.parent.parent.attributes : void 0;
51331
51269
  addResult(
51332
51270
  factory.createImportDeclaration(
51333
51271
  /*modifiers*/
@@ -51347,7 +51285,7 @@ function createTypeChecker(host) {
51347
51285
  ])
51348
51286
  ),
51349
51287
  specifier2,
51350
- attributes
51288
+ node.parent.parent.parent.attributes
51351
51289
  ),
51352
51290
  0 /* None */
51353
51291
  );
@@ -82608,7 +82546,7 @@ function createTypeChecker(host) {
82608
82546
  return void 0;
82609
82547
  case 11 /* StringLiteral */:
82610
82548
  case 15 /* NoSubstitutionTemplateLiteral */:
82611
- 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) && isJSDocImportTypeTag(node.parent) && node.parent.moduleSpecifier === node || (isInJSFile(node) && isRequireCall(
82549
+ 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(
82612
82550
  node.parent,
82613
82551
  /*requireStringLiteralLikeArgument*/
82614
82552
  false
@@ -83158,7 +83096,7 @@ function createTypeChecker(host) {
83158
83096
  true,
83159
83097
  location
83160
83098
  );
83161
- const resolvedSymbol = valueSymbol && valueSymbol.flags & 2097152 /* Alias */ ? resolveAlias(valueSymbol) : valueSymbol;
83099
+ const resolvedValueSymbol = valueSymbol && valueSymbol.flags & 2097152 /* Alias */ ? resolveAlias(valueSymbol) : valueSymbol;
83162
83100
  isTypeOnly || (isTypeOnly = !!(valueSymbol && getTypeOnlyAliasDeclaration(valueSymbol, 111551 /* Value */)));
83163
83101
  const typeSymbol = resolveEntityName(
83164
83102
  typeName,
@@ -83166,26 +83104,30 @@ function createTypeChecker(host) {
83166
83104
  /*ignoreErrors*/
83167
83105
  true,
83168
83106
  /*dontResolveAlias*/
83169
- false,
83107
+ true,
83170
83108
  location
83171
83109
  );
83172
- if (resolvedSymbol && resolvedSymbol === typeSymbol) {
83110
+ const resolvedTypeSymbol = typeSymbol && typeSymbol.flags & 2097152 /* Alias */ ? resolveAlias(typeSymbol) : typeSymbol;
83111
+ if (!valueSymbol) {
83112
+ isTypeOnly || (isTypeOnly = !!(typeSymbol && getTypeOnlyAliasDeclaration(typeSymbol, 788968 /* Type */)));
83113
+ }
83114
+ if (resolvedValueSymbol && resolvedValueSymbol === resolvedTypeSymbol) {
83173
83115
  const globalPromiseSymbol = getGlobalPromiseConstructorSymbol(
83174
83116
  /*reportErrors*/
83175
83117
  false
83176
83118
  );
83177
- if (globalPromiseSymbol && resolvedSymbol === globalPromiseSymbol) {
83119
+ if (globalPromiseSymbol && resolvedValueSymbol === globalPromiseSymbol) {
83178
83120
  return 9 /* Promise */;
83179
83121
  }
83180
- const constructorType = getTypeOfSymbol(resolvedSymbol);
83122
+ const constructorType = getTypeOfSymbol(resolvedValueSymbol);
83181
83123
  if (constructorType && isConstructorType(constructorType)) {
83182
83124
  return isTypeOnly ? 10 /* TypeWithCallSignature */ : 1 /* TypeWithConstructSignatureAndValue */;
83183
83125
  }
83184
83126
  }
83185
- if (!typeSymbol) {
83127
+ if (!resolvedTypeSymbol) {
83186
83128
  return isTypeOnly ? 11 /* ObjectType */ : 0 /* Unknown */;
83187
83129
  }
83188
- const type = getDeclaredTypeOfSymbol(typeSymbol);
83130
+ const type = getDeclaredTypeOfSymbol(resolvedTypeSymbol);
83189
83131
  if (isErrorType(type)) {
83190
83132
  return isTypeOnly ? 11 /* ObjectType */ : 0 /* Unknown */;
83191
83133
  } else if (type.flags & 3 /* AnyOrUnknown */) {
@@ -86843,13 +86785,13 @@ var visitEachChildTable = {
86843
86785
  );
86844
86786
  },
86845
86787
  // Transformation nodes
86846
- [361 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
86788
+ [360 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
86847
86789
  return context.factory.updatePartiallyEmittedExpression(
86848
86790
  node,
86849
86791
  Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
86850
86792
  );
86851
86793
  },
86852
- [362 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
86794
+ [361 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
86853
86795
  return context.factory.updateCommaListExpression(
86854
86796
  node,
86855
86797
  nodesVisitor(node.elements, visitor, isExpression)
@@ -88655,9 +88597,50 @@ function transformTypeScript(context) {
88655
88597
  return visitorWorker(node);
88656
88598
  }
88657
88599
  }
88658
- function visitElidableStatement(node) {
88600
+ function isElisionBlocked(node) {
88659
88601
  const parsed = getParseTreeNode(node);
88660
- if (parsed !== node) {
88602
+ if (parsed === node || isExportAssignment(node)) {
88603
+ return false;
88604
+ }
88605
+ if (!parsed || parsed.kind !== node.kind) {
88606
+ return true;
88607
+ }
88608
+ switch (node.kind) {
88609
+ case 272 /* ImportDeclaration */:
88610
+ Debug.assertNode(parsed, isImportDeclaration);
88611
+ if (node.importClause !== parsed.importClause) {
88612
+ return true;
88613
+ }
88614
+ if (node.attributes !== parsed.attributes) {
88615
+ return true;
88616
+ }
88617
+ break;
88618
+ case 271 /* ImportEqualsDeclaration */:
88619
+ Debug.assertNode(parsed, isImportEqualsDeclaration);
88620
+ if (node.name !== parsed.name) {
88621
+ return true;
88622
+ }
88623
+ if (node.isTypeOnly !== parsed.isTypeOnly) {
88624
+ return true;
88625
+ }
88626
+ if (node.moduleReference !== parsed.moduleReference && (isEntityName(node.moduleReference) || isEntityName(parsed.moduleReference))) {
88627
+ return true;
88628
+ }
88629
+ break;
88630
+ case 278 /* ExportDeclaration */:
88631
+ Debug.assertNode(parsed, isExportDeclaration);
88632
+ if (node.exportClause !== parsed.exportClause) {
88633
+ return true;
88634
+ }
88635
+ if (node.attributes !== parsed.attributes) {
88636
+ return true;
88637
+ }
88638
+ break;
88639
+ }
88640
+ return false;
88641
+ }
88642
+ function visitElidableStatement(node) {
88643
+ if (isElisionBlocked(node)) {
88661
88644
  if (node.transformFlags & 1 /* ContainsTypeScript */) {
88662
88645
  return visitEachChild(node, visitor, context);
88663
88646
  }
@@ -90502,7 +90485,7 @@ function transformClassFields(context) {
90502
90485
  /*discarded*/
90503
90486
  true
90504
90487
  );
90505
- case 362 /* CommaListExpression */:
90488
+ case 361 /* CommaListExpression */:
90506
90489
  return visitCommaListExpression(
90507
90490
  node,
90508
90491
  /*discarded*/
@@ -93595,7 +93578,7 @@ function transformESDecorators(context) {
93595
93578
  return visitForStatement(node);
93596
93579
  case 244 /* ExpressionStatement */:
93597
93580
  return visitExpressionStatement(node);
93598
- case 362 /* CommaListExpression */:
93581
+ case 361 /* CommaListExpression */:
93599
93582
  return visitCommaListExpression(
93600
93583
  node,
93601
93584
  /*discarded*/
@@ -93607,7 +93590,7 @@ function transformESDecorators(context) {
93607
93590
  /*discarded*/
93608
93591
  false
93609
93592
  );
93610
- case 361 /* PartiallyEmittedExpression */:
93593
+ case 360 /* PartiallyEmittedExpression */:
93611
93594
  return visitPartiallyEmittedExpression(
93612
93595
  node,
93613
93596
  /*discarded*/
@@ -93693,7 +93676,7 @@ function transformESDecorators(context) {
93693
93676
  /*discarded*/
93694
93677
  true
93695
93678
  );
93696
- case 362 /* CommaListExpression */:
93679
+ case 361 /* CommaListExpression */:
93697
93680
  return visitCommaListExpression(
93698
93681
  node,
93699
93682
  /*discarded*/
@@ -96284,7 +96267,7 @@ function transformES2018(context) {
96284
96267
  return visitObjectLiteralExpression(node);
96285
96268
  case 226 /* BinaryExpression */:
96286
96269
  return visitBinaryExpression(node, expressionResultIsUnused2);
96287
- case 362 /* CommaListExpression */:
96270
+ case 361 /* CommaListExpression */:
96288
96271
  return visitCommaListExpression(node, expressionResultIsUnused2);
96289
96272
  case 299 /* CatchClause */:
96290
96273
  return visitCatchClause(node);
@@ -99507,7 +99490,7 @@ function transformES2015(context) {
99507
99490
  return visitParenthesizedExpression(node, expressionResultIsUnused2);
99508
99491
  case 226 /* BinaryExpression */:
99509
99492
  return visitBinaryExpression(node, expressionResultIsUnused2);
99510
- case 362 /* CommaListExpression */:
99493
+ case 361 /* CommaListExpression */:
99511
99494
  return visitCommaListExpression(node, expressionResultIsUnused2);
99512
99495
  case 15 /* NoSubstitutionTemplateLiteral */:
99513
99496
  case 16 /* TemplateHead */:
@@ -102873,7 +102856,7 @@ function transformGenerators(context) {
102873
102856
  switch (node.kind) {
102874
102857
  case 226 /* BinaryExpression */:
102875
102858
  return visitBinaryExpression(node);
102876
- case 362 /* CommaListExpression */:
102859
+ case 361 /* CommaListExpression */:
102877
102860
  return visitCommaListExpression(node);
102878
102861
  case 227 /* ConditionalExpression */:
102879
102862
  return visitConditionalExpression(node);
@@ -105253,7 +105236,7 @@ function transformModule(context) {
105253
105236
  return visitExpressionStatement(node);
105254
105237
  case 217 /* ParenthesizedExpression */:
105255
105238
  return visitParenthesizedExpression(node, valueIsDiscarded);
105256
- case 361 /* PartiallyEmittedExpression */:
105239
+ case 360 /* PartiallyEmittedExpression */:
105257
105240
  return visitPartiallyEmittedExpression(node, valueIsDiscarded);
105258
105241
  case 213 /* CallExpression */:
105259
105242
  if (isImportCall(node) && currentSourceFile.impliedNodeFormat === void 0) {
@@ -107657,7 +107640,7 @@ function transformSystemModule(context) {
107657
107640
  return visitExpressionStatement(node);
107658
107641
  case 217 /* ParenthesizedExpression */:
107659
107642
  return visitParenthesizedExpression(node, valueIsDiscarded);
107660
- case 361 /* PartiallyEmittedExpression */:
107643
+ case 360 /* PartiallyEmittedExpression */:
107661
107644
  return visitPartiallyEmittedExpression(node, valueIsDiscarded);
107662
107645
  case 226 /* BinaryExpression */:
107663
107646
  if (isDestructuringAssignment(node)) {
@@ -109773,8 +109756,6 @@ function transformDeclarations(context) {
109773
109756
  }
109774
109757
  if (isDeclaration(input) && isDeclarationAndNotVisible(input))
109775
109758
  return;
109776
- if (isJSDocImportTypeTag(input))
109777
- return;
109778
109759
  if (isFunctionLike(input) && resolver.isImplementationOfOverload(input))
109779
109760
  return;
109780
109761
  let previousEnclosingDeclaration;
@@ -110425,7 +110406,7 @@ function noEmitNotification(hint, node, callback) {
110425
110406
  }
110426
110407
  function transformNodes(resolver, host, factory2, options, nodes, transformers, allowDtsFiles) {
110427
110408
  var _a, _b;
110428
- const enabledSyntaxKindFeatures = new Array(364 /* Count */);
110409
+ const enabledSyntaxKindFeatures = new Array(363 /* Count */);
110429
110410
  let lexicalEnvironmentVariableDeclarations;
110430
110411
  let lexicalEnvironmentFunctionDeclarations;
110431
110412
  let lexicalEnvironmentStatements;
@@ -112316,9 +112297,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
112316
112297
  return emitJSDocTypedefTag(node);
112317
112298
  case 354 /* JSDocSeeTag */:
112318
112299
  return emitJSDocSeeTag(node);
112319
- case 358 /* JSDocImportTypeTag */:
112320
- return emitJSDocImportTypeTag(node);
112321
- case 360 /* NotEmittedStatement */:
112300
+ case 359 /* NotEmittedStatement */:
112322
112301
  return;
112323
112302
  }
112324
112303
  if (isExpression(node)) {
@@ -112419,15 +112398,15 @@ function createPrinter(printerOptions = {}, handlers = {}) {
112419
112398
  return emitJsxSelfClosingElement(node);
112420
112399
  case 288 /* JsxFragment */:
112421
112400
  return emitJsxFragment(node);
112422
- case 359 /* SyntaxList */:
112401
+ case 358 /* SyntaxList */:
112423
112402
  return Debug.fail("SyntaxList should not be printed");
112424
- case 360 /* NotEmittedStatement */:
112403
+ case 359 /* NotEmittedStatement */:
112425
112404
  return;
112426
- case 361 /* PartiallyEmittedExpression */:
112405
+ case 360 /* PartiallyEmittedExpression */:
112427
112406
  return emitPartiallyEmittedExpression(node);
112428
- case 362 /* CommaListExpression */:
112407
+ case 361 /* CommaListExpression */:
112429
112408
  return emitCommaList(node);
112430
- case 363 /* SyntheticReferenceExpression */:
112409
+ case 362 /* SyntheticReferenceExpression */:
112431
112410
  return Debug.fail("SyntheticReferenceExpression should not be printed");
112432
112411
  }
112433
112412
  }
@@ -114325,16 +114304,6 @@ function createPrinter(printerOptions = {}, handlers = {}) {
114325
114304
  emit(tag.name);
114326
114305
  emitJSDocComment(tag.comment);
114327
114306
  }
114328
- function emitJSDocImportTypeTag(tag) {
114329
- emitJSDocTagName(tag.tagName);
114330
- writeSpace();
114331
- emit(tag.importClause);
114332
- writeSpace();
114333
- emitTokenWithComment(161 /* FromKeyword */, tag.importClause.end, writeKeyword, tag);
114334
- writeSpace();
114335
- emitExpression(tag.moduleSpecifier);
114336
- emitJSDocComment(tag.comment);
114337
- }
114338
114307
  function emitJSDocNameReference(node) {
114339
114308
  writeSpace();
114340
114309
  writePunctuation("{");
@@ -115834,7 +115803,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
115834
115803
  emitLeadingComments(
115835
115804
  pos,
115836
115805
  /*isEmittedNode*/
115837
- node.kind !== 360 /* NotEmittedStatement */
115806
+ node.kind !== 359 /* NotEmittedStatement */
115838
115807
  );
115839
115808
  }
115840
115809
  if (!skipLeadingComments || pos >= 0 && (emitFlags & 1024 /* NoLeadingComments */) !== 0) {
@@ -115858,7 +115827,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
115858
115827
  containerPos = savedContainerPos;
115859
115828
  containerEnd = savedContainerEnd;
115860
115829
  declarationListContainerEnd = savedDeclarationListContainerEnd;
115861
- if (!skipTrailingComments && node.kind !== 360 /* NotEmittedStatement */) {
115830
+ if (!skipTrailingComments && node.kind !== 359 /* NotEmittedStatement */) {
115862
115831
  emitTrailingComments(end);
115863
115832
  }
115864
115833
  }
@@ -116130,7 +116099,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
116130
116099
  }
116131
116100
  } else {
116132
116101
  const source = sourceMapRange.source || sourceMapSource;
116133
- if (node.kind !== 360 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) {
116102
+ if (node.kind !== 359 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) {
116134
116103
  emitSourcePos(sourceMapRange.source || sourceMapSource, skipSourceTrivia(source, sourceMapRange.pos));
116135
116104
  }
116136
116105
  if (emitFlags & 128 /* NoNestedSourceMaps */) {
@@ -116145,7 +116114,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
116145
116114
  if (emitFlags & 128 /* NoNestedSourceMaps */) {
116146
116115
  sourceMapsDisabled = false;
116147
116116
  }
116148
- if (node.kind !== 360 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) {
116117
+ if (node.kind !== 359 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) {
116149
116118
  emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end);
116150
116119
  }
116151
116120
  }
@@ -119046,9 +119015,6 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
119046
119015
  if (file.flags & 4194304 /* PossiblyContainsDynamicImport */ || isJavaScriptFile) {
119047
119016
  collectDynamicImportOrRequireCalls(file);
119048
119017
  }
119049
- if (isJavaScriptFile) {
119050
- collectJsDocImportTypeReferences(file);
119051
- }
119052
119018
  file.imports = imports || emptyArray;
119053
119019
  file.moduleAugmentations = moduleAugmentations || emptyArray;
119054
119020
  file.ambientModuleNames = ambientModules || emptyArray;
@@ -119123,23 +119089,6 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
119123
119089
  }
119124
119090
  }
119125
119091
  }
119126
- function collectJsDocImportTypeReferences(file2) {
119127
- const r = /@importType/g;
119128
- while (r.exec(file2.text) !== null) {
119129
- const node = getNodeAtPosition(file2, r.lastIndex);
119130
- if (isJSDocImportTypeTag(node)) {
119131
- const moduleNameExpr = getExternalModuleName(node);
119132
- if (moduleNameExpr && isStringLiteral(moduleNameExpr) && moduleNameExpr.text) {
119133
- setParentRecursive(
119134
- node,
119135
- /*incremental*/
119136
- false
119137
- );
119138
- imports = append(imports, moduleNameExpr);
119139
- }
119140
- }
119141
- }
119142
- }
119143
119092
  function getNodeAtPosition(sourceFile, position) {
119144
119093
  let current = sourceFile;
119145
119094
  const getContainingChild = (child) => {