@typescript-deploys/pr-build 5.0.0-pr-50996-2 → 5.0.0-pr-50996-9

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.
@@ -42,7 +42,7 @@ var ts = (() => {
42
42
  "src/compiler/corePublic.ts"() {
43
43
  "use strict";
44
44
  versionMajorMinor = "5.0";
45
- version = `${versionMajorMinor}.0-insiders.20221111`;
45
+ version = `${versionMajorMinor}.0-insiders.20221123`;
46
46
  Comparison = /* @__PURE__ */ ((Comparison3) => {
47
47
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
48
48
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -1789,15 +1789,9 @@ var ts = (() => {
1789
1789
  return LogLevel3;
1790
1790
  })(LogLevel || {});
1791
1791
  ((Debug2) => {
1792
- let typeScriptVersion2;
1793
1792
  let currentAssertionLevel = 0 /* None */;
1794
1793
  Debug2.currentLogLevel = 2 /* Warning */;
1795
1794
  Debug2.isDebugging = false;
1796
- Debug2.enableDeprecationWarnings = true;
1797
- function getTypeScriptVersion() {
1798
- return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
1799
- }
1800
- Debug2.getTypeScriptVersion = getTypeScriptVersion;
1801
1795
  function shouldLog(level) {
1802
1796
  return Debug2.currentLogLevel <= level;
1803
1797
  }
@@ -2313,52 +2307,6 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
2313
2307
  isDebugInfoEnabled = true;
2314
2308
  }
2315
2309
  Debug2.enableDebugInfo = enableDebugInfo;
2316
- function formatDeprecationMessage(name, error, errorAfter, since, message) {
2317
- let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
2318
- deprecationMessage += `'${name}' `;
2319
- deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
2320
- deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
2321
- deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
2322
- return deprecationMessage;
2323
- }
2324
- function createErrorDeprecation(name, errorAfter, since, message) {
2325
- const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
2326
- return () => {
2327
- throw new TypeError(deprecationMessage);
2328
- };
2329
- }
2330
- function createWarningDeprecation(name, errorAfter, since, message) {
2331
- let hasWrittenDeprecation = false;
2332
- return () => {
2333
- if (Debug2.enableDeprecationWarnings && !hasWrittenDeprecation) {
2334
- log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
2335
- hasWrittenDeprecation = true;
2336
- }
2337
- };
2338
- }
2339
- function createDeprecation(name, options = {}) {
2340
- var _a2, _b;
2341
- const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
2342
- const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
2343
- const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
2344
- const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
2345
- const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
2346
- const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
2347
- return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
2348
- }
2349
- Debug2.createDeprecation = createDeprecation;
2350
- function wrapFunction(deprecation, func) {
2351
- return function() {
2352
- deprecation();
2353
- return func.apply(this, arguments);
2354
- };
2355
- }
2356
- function deprecate(func, options) {
2357
- var _a2;
2358
- const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : getFunctionName(func), options);
2359
- return wrapFunction(deprecation, func);
2360
- }
2361
- Debug2.deprecate = deprecate;
2362
2310
  function formatVariance(varianceFlags) {
2363
2311
  const variance = varianceFlags & 7 /* VarianceMask */;
2364
2312
  let result = variance === 0 /* Invariant */ ? "in out" : variance === 3 /* Bivariant */ ? "[bivariant]" : variance === 2 /* Contravariant */ ? "in" : variance === 1 /* Covariant */ ? "out" : variance === 4 /* Independent */ ? "[independent]" : "";
@@ -4372,6 +4320,7 @@ ${lanes.join("\n")}
4372
4320
  return EnumKind2;
4373
4321
  })(EnumKind || {});
4374
4322
  CheckFlags = /* @__PURE__ */ ((CheckFlags2) => {
4323
+ CheckFlags2[CheckFlags2["None"] = 0] = "None";
4375
4324
  CheckFlags2[CheckFlags2["Instantiated"] = 1] = "Instantiated";
4376
4325
  CheckFlags2[CheckFlags2["SyntheticProperty"] = 2] = "SyntheticProperty";
4377
4326
  CheckFlags2[CheckFlags2["SyntheticMethod"] = 4] = "SyntheticMethod";
@@ -4419,31 +4368,32 @@ ${lanes.join("\n")}
4419
4368
  return InternalSymbolName2;
4420
4369
  })(InternalSymbolName || {});
4421
4370
  NodeCheckFlags = /* @__PURE__ */ ((NodeCheckFlags2) => {
4371
+ NodeCheckFlags2[NodeCheckFlags2["None"] = 0] = "None";
4422
4372
  NodeCheckFlags2[NodeCheckFlags2["TypeChecked"] = 1] = "TypeChecked";
4423
4373
  NodeCheckFlags2[NodeCheckFlags2["LexicalThis"] = 2] = "LexicalThis";
4424
4374
  NodeCheckFlags2[NodeCheckFlags2["CaptureThis"] = 4] = "CaptureThis";
4425
4375
  NodeCheckFlags2[NodeCheckFlags2["CaptureNewTarget"] = 8] = "CaptureNewTarget";
4426
- NodeCheckFlags2[NodeCheckFlags2["SuperInstance"] = 256] = "SuperInstance";
4427
- NodeCheckFlags2[NodeCheckFlags2["SuperStatic"] = 512] = "SuperStatic";
4428
- NodeCheckFlags2[NodeCheckFlags2["ContextChecked"] = 1024] = "ContextChecked";
4429
- NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAccessInAsync"] = 2048] = "MethodWithSuperPropertyAccessInAsync";
4430
- NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAssignmentInAsync"] = 4096] = "MethodWithSuperPropertyAssignmentInAsync";
4431
- NodeCheckFlags2[NodeCheckFlags2["CaptureArguments"] = 8192] = "CaptureArguments";
4432
- NodeCheckFlags2[NodeCheckFlags2["EnumValuesComputed"] = 16384] = "EnumValuesComputed";
4433
- NodeCheckFlags2[NodeCheckFlags2["LexicalModuleMergesWithClass"] = 32768] = "LexicalModuleMergesWithClass";
4434
- NodeCheckFlags2[NodeCheckFlags2["LoopWithCapturedBlockScopedBinding"] = 65536] = "LoopWithCapturedBlockScopedBinding";
4435
- NodeCheckFlags2[NodeCheckFlags2["ContainsCapturedBlockScopeBinding"] = 131072] = "ContainsCapturedBlockScopeBinding";
4436
- NodeCheckFlags2[NodeCheckFlags2["CapturedBlockScopedBinding"] = 262144] = "CapturedBlockScopedBinding";
4437
- NodeCheckFlags2[NodeCheckFlags2["BlockScopedBindingInLoop"] = 524288] = "BlockScopedBindingInLoop";
4438
- NodeCheckFlags2[NodeCheckFlags2["ClassWithBodyScopedClassBinding"] = 1048576] = "ClassWithBodyScopedClassBinding";
4439
- NodeCheckFlags2[NodeCheckFlags2["BodyScopedClassBinding"] = 2097152] = "BodyScopedClassBinding";
4440
- NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 4194304] = "NeedsLoopOutParameter";
4441
- NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 8388608] = "AssignmentsMarked";
4442
- NodeCheckFlags2[NodeCheckFlags2["ClassWithConstructorReference"] = 16777216] = "ClassWithConstructorReference";
4443
- NodeCheckFlags2[NodeCheckFlags2["ConstructorReferenceInClass"] = 33554432] = "ConstructorReferenceInClass";
4444
- NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 67108864] = "ContainsClassWithPrivateIdentifiers";
4445
- NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 134217728] = "ContainsSuperPropertyInStaticInitializer";
4446
- NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 268435456] = "InCheckIdentifier";
4376
+ NodeCheckFlags2[NodeCheckFlags2["SuperInstance"] = 16] = "SuperInstance";
4377
+ NodeCheckFlags2[NodeCheckFlags2["SuperStatic"] = 32] = "SuperStatic";
4378
+ NodeCheckFlags2[NodeCheckFlags2["ContextChecked"] = 64] = "ContextChecked";
4379
+ NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAccessInAsync"] = 128] = "MethodWithSuperPropertyAccessInAsync";
4380
+ NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAssignmentInAsync"] = 256] = "MethodWithSuperPropertyAssignmentInAsync";
4381
+ NodeCheckFlags2[NodeCheckFlags2["CaptureArguments"] = 512] = "CaptureArguments";
4382
+ NodeCheckFlags2[NodeCheckFlags2["EnumValuesComputed"] = 1024] = "EnumValuesComputed";
4383
+ NodeCheckFlags2[NodeCheckFlags2["LexicalModuleMergesWithClass"] = 2048] = "LexicalModuleMergesWithClass";
4384
+ NodeCheckFlags2[NodeCheckFlags2["LoopWithCapturedBlockScopedBinding"] = 4096] = "LoopWithCapturedBlockScopedBinding";
4385
+ NodeCheckFlags2[NodeCheckFlags2["ContainsCapturedBlockScopeBinding"] = 8192] = "ContainsCapturedBlockScopeBinding";
4386
+ NodeCheckFlags2[NodeCheckFlags2["CapturedBlockScopedBinding"] = 16384] = "CapturedBlockScopedBinding";
4387
+ NodeCheckFlags2[NodeCheckFlags2["BlockScopedBindingInLoop"] = 32768] = "BlockScopedBindingInLoop";
4388
+ NodeCheckFlags2[NodeCheckFlags2["ClassWithBodyScopedClassBinding"] = 65536] = "ClassWithBodyScopedClassBinding";
4389
+ NodeCheckFlags2[NodeCheckFlags2["BodyScopedClassBinding"] = 131072] = "BodyScopedClassBinding";
4390
+ NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 262144] = "NeedsLoopOutParameter";
4391
+ NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 524288] = "AssignmentsMarked";
4392
+ NodeCheckFlags2[NodeCheckFlags2["ClassWithConstructorReference"] = 1048576] = "ClassWithConstructorReference";
4393
+ NodeCheckFlags2[NodeCheckFlags2["ConstructorReferenceInClass"] = 2097152] = "ConstructorReferenceInClass";
4394
+ NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 4194304] = "ContainsClassWithPrivateIdentifiers";
4395
+ NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 8388608] = "ContainsSuperPropertyInStaticInitializer";
4396
+ NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 16777216] = "InCheckIdentifier";
4447
4397
  return NodeCheckFlags2;
4448
4398
  })(NodeCheckFlags || {});
4449
4399
  TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
@@ -4516,6 +4466,7 @@ ${lanes.join("\n")}
4516
4466
  return TypeFlags2;
4517
4467
  })(TypeFlags || {});
4518
4468
  ObjectFlags = /* @__PURE__ */ ((ObjectFlags3) => {
4469
+ ObjectFlags3[ObjectFlags3["None"] = 0] = "None";
4519
4470
  ObjectFlags3[ObjectFlags3["Class"] = 1] = "Class";
4520
4471
  ObjectFlags3[ObjectFlags3["Interface"] = 2] = "Interface";
4521
4472
  ObjectFlags3[ObjectFlags3["Reference"] = 4] = "Reference";
@@ -4633,6 +4584,7 @@ ${lanes.join("\n")}
4633
4584
  return TypeMapKind2;
4634
4585
  })(TypeMapKind || {});
4635
4586
  InferencePriority = /* @__PURE__ */ ((InferencePriority2) => {
4587
+ InferencePriority2[InferencePriority2["None"] = 0] = "None";
4636
4588
  InferencePriority2[InferencePriority2["NakedTypeVariable"] = 1] = "NakedTypeVariable";
4637
4589
  InferencePriority2[InferencePriority2["SpeculativeTuple"] = 2] = "SpeculativeTuple";
4638
4590
  InferencePriority2[InferencePriority2["SubstituteSource"] = 4] = "SubstituteSource";
@@ -4719,19 +4671,19 @@ ${lanes.join("\n")}
4719
4671
  PollingWatchKind3[PollingWatchKind3["FixedChunkSize"] = 3] = "FixedChunkSize";
4720
4672
  return PollingWatchKind3;
4721
4673
  })(PollingWatchKind || {});
4722
- ModuleKind = /* @__PURE__ */ ((ModuleKind7) => {
4723
- ModuleKind7[ModuleKind7["None"] = 0] = "None";
4724
- ModuleKind7[ModuleKind7["CommonJS"] = 1] = "CommonJS";
4725
- ModuleKind7[ModuleKind7["AMD"] = 2] = "AMD";
4726
- ModuleKind7[ModuleKind7["UMD"] = 3] = "UMD";
4727
- ModuleKind7[ModuleKind7["System"] = 4] = "System";
4728
- ModuleKind7[ModuleKind7["ES2015"] = 5] = "ES2015";
4729
- ModuleKind7[ModuleKind7["ES2020"] = 6] = "ES2020";
4730
- ModuleKind7[ModuleKind7["ES2022"] = 7] = "ES2022";
4731
- ModuleKind7[ModuleKind7["ESNext"] = 99] = "ESNext";
4732
- ModuleKind7[ModuleKind7["Node16"] = 100] = "Node16";
4733
- ModuleKind7[ModuleKind7["NodeNext"] = 199] = "NodeNext";
4734
- return ModuleKind7;
4674
+ ModuleKind = /* @__PURE__ */ ((ModuleKind3) => {
4675
+ ModuleKind3[ModuleKind3["None"] = 0] = "None";
4676
+ ModuleKind3[ModuleKind3["CommonJS"] = 1] = "CommonJS";
4677
+ ModuleKind3[ModuleKind3["AMD"] = 2] = "AMD";
4678
+ ModuleKind3[ModuleKind3["UMD"] = 3] = "UMD";
4679
+ ModuleKind3[ModuleKind3["System"] = 4] = "System";
4680
+ ModuleKind3[ModuleKind3["ES2015"] = 5] = "ES2015";
4681
+ ModuleKind3[ModuleKind3["ES2020"] = 6] = "ES2020";
4682
+ ModuleKind3[ModuleKind3["ES2022"] = 7] = "ES2022";
4683
+ ModuleKind3[ModuleKind3["ESNext"] = 99] = "ESNext";
4684
+ ModuleKind3[ModuleKind3["Node16"] = 100] = "Node16";
4685
+ ModuleKind3[ModuleKind3["NodeNext"] = 199] = "NodeNext";
4686
+ return ModuleKind3;
4735
4687
  })(ModuleKind || {});
4736
4688
  JsxEmit = /* @__PURE__ */ ((JsxEmit3) => {
4737
4689
  JsxEmit3[JsxEmit3["None"] = 0] = "None";
@@ -8112,10 +8064,10 @@ ${lanes.join("\n")}
8112
8064
  Module_name_0_matched_pattern_1: diag(6092, 3 /* Message */, "Module_name_0_matched_pattern_1_6092", "Module name '{0}', matched pattern '{1}'."),
8113
8065
  Trying_substitution_0_candidate_module_location_Colon_1: diag(6093, 3 /* Message */, "Trying_substitution_0_candidate_module_location_Colon_1_6093", "Trying substitution '{0}', candidate module location: '{1}'."),
8114
8066
  Resolving_module_name_0_relative_to_base_url_1_2: diag(6094, 3 /* Message */, "Resolving_module_name_0_relative_to_base_url_1_2_6094", "Resolving module name '{0}' relative to base url '{1}' - '{2}'."),
8115
- Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1: diag(6095, 3 /* Message */, "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095", "Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),
8067
+ Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1: diag(6095, 3 /* Message */, "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095", "Loading module as file / folder, candidate module location '{0}', target file types: {1}."),
8116
8068
  File_0_does_not_exist: diag(6096, 3 /* Message */, "File_0_does_not_exist_6096", "File '{0}' does not exist."),
8117
8069
  File_0_exist_use_it_as_a_name_resolution_result: diag(6097, 3 /* Message */, "File_0_exist_use_it_as_a_name_resolution_result_6097", "File '{0}' exist - use it as a name resolution result."),
8118
- Loading_module_0_from_node_modules_folder_target_file_type_1: diag(6098, 3 /* Message */, "Loading_module_0_from_node_modules_folder_target_file_type_1_6098", "Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),
8070
+ Loading_module_0_from_node_modules_folder_target_file_types_Colon_1: diag(6098, 3 /* Message */, "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098", "Loading module '{0}' from 'node_modules' folder, target file types: {1}."),
8119
8071
  Found_package_json_at_0: diag(6099, 3 /* Message */, "Found_package_json_at_0_6099", "Found 'package.json' at '{0}'."),
8120
8072
  package_json_does_not_have_a_0_field: diag(6100, 3 /* Message */, "package_json_does_not_have_a_0_field_6100", "'package.json' does not have a '{0}' field."),
8121
8073
  package_json_has_0_field_1_that_references_2: diag(6101, 3 /* Message */, "package_json_has_0_field_1_that_references_2_6101", "'package.json' has '{0}' field '{1}' that references '{2}'."),
@@ -17498,7 +17450,7 @@ ${lanes.join("\n")}
17498
17450
  const firstChar = name.charCodeAt(0);
17499
17451
  return firstChar === 35 /* hash */ ? name.length > 1 && isIdentifierStart(name.charCodeAt(1), languageVersion) : isIdentifierStart(firstChar, languageVersion);
17500
17452
  }
17501
- var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashAMDReferencePathRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, AccessKind, objectAllocator, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, extensionsToRemove, emptyFileSystemEntries;
17453
+ var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashAMDReferencePathRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, AccessKind, objectAllocator, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, supportedTSImplementationExtensions, extensionsToRemove, emptyFileSystemEntries;
17502
17454
  var init_utilities = __esm({
17503
17455
  "src/compiler/utilities.ts"() {
17504
17456
  "use strict";
@@ -17648,6 +17600,7 @@ ${lanes.join("\n")}
17648
17600
  allSupportedExtensions = [[".ts" /* Ts */, ".tsx" /* Tsx */, ".d.ts" /* Dts */, ".js" /* Js */, ".jsx" /* Jsx */], [".cts" /* Cts */, ".d.cts" /* Dcts */, ".cjs" /* Cjs */], [".mts" /* Mts */, ".d.mts" /* Dmts */, ".mjs" /* Mjs */]];
17649
17601
  allSupportedExtensionsWithJson = [...allSupportedExtensions, [".json" /* Json */]];
17650
17602
  supportedDeclarationExtensions = [".d.ts" /* Dts */, ".d.cts" /* Dcts */, ".d.mts" /* Dmts */];
17603
+ supportedTSImplementationExtensions = [".ts" /* Ts */, ".cts" /* Cts */, ".mts" /* Mts */, ".tsx" /* Tsx */];
17651
17604
  extensionsToRemove = [".d.ts" /* Dts */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".mjs" /* Mjs */, ".mts" /* Mts */, ".cjs" /* Cjs */, ".cts" /* Cts */, ".ts" /* Ts */, ".js" /* Js */, ".tsx" /* Tsx */, ".jsx" /* Jsx */, ".json" /* Json */];
17652
17605
  emptyFileSystemEntries = {
17653
17606
  files: emptyArray,
@@ -23223,7 +23176,7 @@ ${lanes.join("\n")}
23223
23176
  var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
23224
23177
  var i, p;
23225
23178
  return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
23226
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
23179
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
23227
23180
  };`
23228
23181
  };
23229
23182
  asyncValues = {
@@ -34999,6 +34952,18 @@ ${lanes.join("\n")}
34999
34952
  return { path: r.path, ext: r.extension };
35000
34953
  }
35001
34954
  }
34955
+ function formatExtensions(extensions) {
34956
+ const result = [];
34957
+ if (extensions & 1 /* TypeScript */)
34958
+ result.push("TypeScript");
34959
+ if (extensions & 2 /* JavaScript */)
34960
+ result.push("JavaScript");
34961
+ if (extensions & 4 /* Declaration */)
34962
+ result.push("Declaration");
34963
+ if (extensions & 8 /* Json */)
34964
+ result.push("JSON");
34965
+ return result.join(", ");
34966
+ }
35002
34967
  function resolvedTypeScriptOnly(resolved) {
35003
34968
  if (!resolved) {
35004
34969
  return void 0;
@@ -35200,7 +35165,8 @@ ${lanes.join("\n")}
35200
35165
  features,
35201
35166
  conditions,
35202
35167
  requestContainingDirectory: containingDirectory,
35203
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
35168
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
35169
+ isConfigLookup: false
35204
35170
  };
35205
35171
  let resolved = primaryLookup();
35206
35172
  let primary = true;
@@ -35250,7 +35216,7 @@ ${lanes.join("\n")}
35250
35216
  }
35251
35217
  return resolvedTypeScriptOnly(
35252
35218
  loadNodeModuleFromDirectory(
35253
- 4 /* DtsOnly */,
35219
+ 4 /* Declaration */,
35254
35220
  candidate,
35255
35221
  !directoryExists,
35256
35222
  moduleResolutionState
@@ -35271,11 +35237,11 @@ ${lanes.join("\n")}
35271
35237
  }
35272
35238
  let result2;
35273
35239
  if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) {
35274
- const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /* DtsOnly */, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);
35240
+ const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /* Declaration */, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);
35275
35241
  result2 = searchResult && searchResult.value;
35276
35242
  } else {
35277
35243
  const { path: candidate } = normalizePathForCJSResolution(initialLocationForSecondaryLookup, typeReferenceDirectiveName);
35278
- result2 = nodeLoadModuleByRelativeName(4 /* DtsOnly */, candidate, false, moduleResolutionState, true);
35244
+ result2 = nodeLoadModuleByRelativeName(4 /* Declaration */, candidate, false, moduleResolutionState, true);
35279
35245
  }
35280
35246
  return resolvedTypeScriptOnly(result2);
35281
35247
  } else {
@@ -35792,31 +35758,39 @@ ${lanes.join("\n")}
35792
35758
  function nodeNextModuleNameResolverWorker(features, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {
35793
35759
  const containingDirectory = getDirectoryPath(containingFile);
35794
35760
  const esmMode = resolutionMode === 99 /* ESNext */ ? 32 /* EsmMode */ : 0;
35795
- let extensions = compilerOptions.noDtsResolution ? [5 /* TsOnly */, 1 /* JavaScript */] : tsExtensions;
35761
+ let extensions = compilerOptions.noDtsResolution ? 3 /* ImplementationFiles */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
35796
35762
  if (compilerOptions.resolveJsonModule) {
35797
- extensions = [...extensions, 2 /* Json */];
35763
+ extensions |= 8 /* Json */;
35798
35764
  }
35799
- return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference);
35765
+ return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, false, redirectedReference);
35800
35766
  }
35801
35767
  function tryResolveJSModuleWorker(moduleName, initialDir, host) {
35802
- return nodeModuleNameResolverWorker(0 /* None */, moduleName, initialDir, { moduleResolution: 2 /* NodeJs */, allowJs: true }, host, void 0, jsOnlyExtensions, void 0);
35768
+ return nodeModuleNameResolverWorker(
35769
+ 0 /* None */,
35770
+ moduleName,
35771
+ initialDir,
35772
+ { moduleResolution: 2 /* NodeJs */, allowJs: true },
35773
+ host,
35774
+ void 0,
35775
+ 2 /* JavaScript */,
35776
+ false,
35777
+ void 0
35778
+ );
35803
35779
  }
35804
- function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, lookupConfig) {
35780
+ function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, isConfigLookup) {
35805
35781
  let extensions;
35806
- if (lookupConfig) {
35807
- extensions = tsconfigExtensions;
35782
+ if (isConfigLookup) {
35783
+ extensions = 8 /* Json */;
35808
35784
  } else if (compilerOptions.noDtsResolution) {
35809
- extensions = [5 /* TsOnly */];
35810
- if (compilerOptions.allowJs)
35811
- extensions.push(1 /* JavaScript */);
35785
+ extensions = 3 /* ImplementationFiles */;
35812
35786
  if (compilerOptions.resolveJsonModule)
35813
- extensions.push(2 /* Json */);
35787
+ extensions |= 8 /* Json */;
35814
35788
  } else {
35815
- extensions = compilerOptions.resolveJsonModule ? tsPlusJsonExtensions : tsExtensions;
35789
+ extensions = compilerOptions.resolveJsonModule ? 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */ | 8 /* Json */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
35816
35790
  }
35817
- return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, redirectedReference);
35791
+ return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, !!isConfigLookup, redirectedReference);
35818
35792
  }
35819
- function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference) {
35793
+ function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, isConfigLookup, redirectedReference) {
35820
35794
  var _a2, _b;
35821
35795
  const traceEnabled = isTraceEnabled(compilerOptions, host);
35822
35796
  const failedLookupLocations = [];
@@ -35836,12 +35810,20 @@ ${lanes.join("\n")}
35836
35810
  features,
35837
35811
  conditions,
35838
35812
  requestContainingDirectory: containingDirectory,
35839
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
35813
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
35814
+ isConfigLookup
35840
35815
  };
35841
35816
  if (traceEnabled && getEmitModuleResolutionKind(compilerOptions) >= 3 /* Node16 */ && getEmitModuleResolutionKind(compilerOptions) <= 99 /* NodeNext */) {
35842
35817
  trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & 32 /* EsmMode */ ? "ESM" : "CJS", conditions.map((c) => `'${c}'`).join(", "));
35843
35818
  }
35844
- const result = forEach(extensions, (ext) => tryResolve(ext));
35819
+ let result;
35820
+ if (getEmitModuleResolutionKind(compilerOptions) === 2 /* NodeJs */) {
35821
+ const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
35822
+ const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
35823
+ result = priorityExtensions && tryResolve(priorityExtensions) || secondaryExtensions && tryResolve(secondaryExtensions) || void 0;
35824
+ } else {
35825
+ result = tryResolve(extensions);
35826
+ }
35845
35827
  return createResolvedModuleWithFailedLookupLocations(
35846
35828
  (_a2 = result == null ? void 0 : result.value) == null ? void 0 : _a2.resolved,
35847
35829
  (_b = result == null ? void 0 : result.value) == null ? void 0 : _b.isExternalLibraryImport,
@@ -35866,7 +35848,7 @@ ${lanes.join("\n")}
35866
35848
  }
35867
35849
  if (!resolved2) {
35868
35850
  if (traceEnabled) {
35869
- trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1, moduleName, Extensions[extensions2]);
35851
+ trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions2));
35870
35852
  }
35871
35853
  resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state, cache, redirectedReference);
35872
35854
  }
@@ -35907,7 +35889,7 @@ ${lanes.join("\n")}
35907
35889
  }
35908
35890
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
35909
35891
  if (state.traceEnabled) {
35910
- trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1, candidate, Extensions[extensions]);
35892
+ trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1, candidate, formatExtensions(extensions));
35911
35893
  }
35912
35894
  if (!hasTrailingDirectorySeparator(candidate)) {
35913
35895
  if (!onlyRecordFailures) {
@@ -35964,10 +35946,9 @@ ${lanes.join("\n")}
35964
35946
  return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state));
35965
35947
  }
35966
35948
  function loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) {
35967
- if (extensions === 2 /* Json */ || extensions === 3 /* TSConfig */) {
35968
- const extensionLess = tryRemoveExtension(candidate, ".json" /* Json */);
35969
- const extension = extensionLess ? candidate.substring(extensionLess.length) : "";
35970
- return extensionLess === void 0 && extensions === 2 /* Json */ ? void 0 : tryAddingExtensions(extensionLess || candidate, extensions, extension, onlyRecordFailures, state);
35949
+ const resolvedByReplacingExtension = loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
35950
+ if (resolvedByReplacingExtension) {
35951
+ return resolvedByReplacingExtension;
35971
35952
  }
35972
35953
  if (!(state.features & 32 /* EsmMode */)) {
35973
35954
  const resolvedByAddingExtension = tryAddingExtensions(candidate, extensions, "", onlyRecordFailures, state);
@@ -35975,10 +35956,9 @@ ${lanes.join("\n")}
35975
35956
  return resolvedByAddingExtension;
35976
35957
  }
35977
35958
  }
35978
- return loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
35979
35959
  }
35980
35960
  function loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state) {
35981
- if (hasJSFileExtension(candidate) || fileExtensionIs(candidate, ".json" /* Json */) && state.compilerOptions.resolveJsonModule) {
35961
+ if (hasJSFileExtension(candidate) || extensions & 8 /* Json */ && fileExtensionIs(candidate, ".json" /* Json */)) {
35982
35962
  const extensionless = removeFileExtension(candidate);
35983
35963
  const extension = candidate.substring(extensionless.length);
35984
35964
  if (state.traceEnabled) {
@@ -35988,7 +35968,7 @@ ${lanes.join("\n")}
35988
35968
  }
35989
35969
  }
35990
35970
  function loadJSOrExactTSFileName(extensions, candidate, onlyRecordFailures, state) {
35991
- if ((extensions === 0 /* TypeScript */ || extensions === 4 /* DtsOnly */) && fileExtensionIsOneOf(candidate, supportedTSExtensionsFlat)) {
35971
+ if (extensions & 1 /* TypeScript */ && fileExtensionIsOneOf(candidate, supportedTSImplementationExtensions) || extensions & 4 /* Declaration */ && fileExtensionIsOneOf(candidate, supportedDeclarationExtensions)) {
35992
35972
  const result = tryFile(candidate, onlyRecordFailures, state);
35993
35973
  return result !== void 0 ? { path: candidate, ext: tryExtractTSExtension(candidate) } : void 0;
35994
35974
  }
@@ -36001,59 +35981,32 @@ ${lanes.join("\n")}
36001
35981
  onlyRecordFailures = !directoryProbablyExists(directory, state.host);
36002
35982
  }
36003
35983
  }
36004
- switch (extensions) {
36005
- case 4 /* DtsOnly */:
36006
- switch (originalExtension) {
36007
- case ".mjs" /* Mjs */:
36008
- case ".mts" /* Mts */:
36009
- case ".d.mts" /* Dmts */:
36010
- return tryExtension(".d.mts" /* Dmts */);
36011
- case ".cjs" /* Cjs */:
36012
- case ".cts" /* Cts */:
36013
- case ".d.cts" /* Dcts */:
36014
- return tryExtension(".d.cts" /* Dcts */);
36015
- case ".json" /* Json */:
36016
- candidate += ".json" /* Json */;
36017
- return tryExtension(".d.ts" /* Dts */);
36018
- default:
36019
- return tryExtension(".d.ts" /* Dts */);
36020
- }
36021
- case 0 /* TypeScript */:
36022
- case 5 /* TsOnly */:
36023
- const useDts = extensions === 0 /* TypeScript */;
36024
- switch (originalExtension) {
36025
- case ".mjs" /* Mjs */:
36026
- case ".mts" /* Mts */:
36027
- case ".d.mts" /* Dmts */:
36028
- return tryExtension(".mts" /* Mts */) || (useDts ? tryExtension(".d.mts" /* Dmts */) : void 0);
36029
- case ".cjs" /* Cjs */:
36030
- case ".cts" /* Cts */:
36031
- case ".d.cts" /* Dcts */:
36032
- return tryExtension(".cts" /* Cts */) || (useDts ? tryExtension(".d.cts" /* Dcts */) : void 0);
36033
- case ".json" /* Json */:
36034
- candidate += ".json" /* Json */;
36035
- return useDts ? tryExtension(".d.ts" /* Dts */) : void 0;
36036
- default:
36037
- return tryExtension(".ts" /* Ts */) || tryExtension(".tsx" /* Tsx */) || (useDts ? tryExtension(".d.ts" /* Dts */) : void 0);
36038
- }
36039
- case 1 /* JavaScript */:
36040
- switch (originalExtension) {
36041
- case ".mjs" /* Mjs */:
36042
- case ".mts" /* Mts */:
36043
- case ".d.mts" /* Dmts */:
36044
- return tryExtension(".mjs" /* Mjs */);
36045
- case ".cjs" /* Cjs */:
36046
- case ".cts" /* Cts */:
36047
- case ".d.cts" /* Dcts */:
36048
- return tryExtension(".cjs" /* Cjs */);
36049
- case ".json" /* Json */:
36050
- return tryExtension(".json" /* Json */);
36051
- default:
36052
- return tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */);
35984
+ switch (originalExtension) {
35985
+ case ".mjs" /* Mjs */:
35986
+ case ".mts" /* Mts */:
35987
+ case ".d.mts" /* Dmts */:
35988
+ return extensions & 1 /* TypeScript */ && tryExtension(".mts" /* Mts */) || extensions & 4 /* Declaration */ && tryExtension(".d.mts" /* Dmts */) || extensions & 2 /* JavaScript */ && tryExtension(".mjs" /* Mjs */) || void 0;
35989
+ case ".cjs" /* Cjs */:
35990
+ case ".cts" /* Cts */:
35991
+ case ".d.cts" /* Dcts */:
35992
+ return extensions & 1 /* TypeScript */ && tryExtension(".cts" /* Cts */) || extensions & 4 /* Declaration */ && tryExtension(".d.cts" /* Dcts */) || extensions & 2 /* JavaScript */ && tryExtension(".cjs" /* Cjs */) || void 0;
35993
+ case ".json" /* Json */:
35994
+ const originalCandidate = candidate;
35995
+ if (extensions & 4 /* Declaration */) {
35996
+ candidate += ".json" /* Json */;
35997
+ const result = tryExtension(".d.ts" /* Dts */);
35998
+ if (result)
35999
+ return result;
36000
+ }
36001
+ if (extensions & 8 /* Json */) {
36002
+ candidate = originalCandidate;
36003
+ const result = tryExtension(".json" /* Json */);
36004
+ if (result)
36005
+ return result;
36053
36006
  }
36054
- case 3 /* TSConfig */:
36055
- case 2 /* Json */:
36056
- return tryExtension(".json" /* Json */);
36007
+ return void 0;
36008
+ default:
36009
+ return extensions & 1 /* TypeScript */ && (tryExtension(".ts" /* Ts */) || tryExtension(".tsx" /* Tsx */)) || extensions & 4 /* Declaration */ && tryExtension(".d.ts" /* Dts */) || extensions & 2 /* JavaScript */ && (tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */)) || state.isConfigLookup && tryExtension(".json" /* Json */) || void 0;
36057
36010
  }
36058
36011
  function tryExtension(ext) {
36059
36012
  const path = tryFile(candidate + ext, onlyRecordFailures, state);
@@ -36096,7 +36049,7 @@ ${lanes.join("\n")}
36096
36049
  return packageJsonInfo.contents.resolvedEntrypoints;
36097
36050
  }
36098
36051
  let entrypoints;
36099
- const extensions = resolveJs ? 1 /* JavaScript */ : 0 /* TypeScript */;
36052
+ const extensions = 1 /* TypeScript */ | 4 /* Declaration */ | (resolveJs ? 2 /* JavaScript */ : 0);
36100
36053
  const features = getDefaultNodeResolutionFeatures(options);
36101
36054
  const requireState = getTemporaryModuleResolutionState(cache == null ? void 0 : cache.getPackageJsonInfoCache(), host, options);
36102
36055
  requireState.conditions = ["node", "require", "types"];
@@ -36184,7 +36137,8 @@ ${lanes.join("\n")}
36184
36137
  features: 0 /* None */,
36185
36138
  conditions: emptyArray,
36186
36139
  requestContainingDirectory: void 0,
36187
- reportDiagnostic: noop
36140
+ reportDiagnostic: noop,
36141
+ isConfigLookup: false
36188
36142
  };
36189
36143
  }
36190
36144
  function getPackageScopeForPath(fileName, state) {
@@ -36243,23 +36197,10 @@ ${lanes.join("\n")}
36243
36197
  function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) {
36244
36198
  let packageFile;
36245
36199
  if (jsonContent) {
36246
- switch (extensions) {
36247
- case 1 /* JavaScript */:
36248
- case 2 /* Json */:
36249
- case 5 /* TsOnly */:
36250
- packageFile = readPackageJsonMainField(jsonContent, candidate, state);
36251
- break;
36252
- case 0 /* TypeScript */:
36253
- packageFile = readPackageJsonTypesFields(jsonContent, candidate, state) || readPackageJsonMainField(jsonContent, candidate, state);
36254
- break;
36255
- case 4 /* DtsOnly */:
36256
- packageFile = readPackageJsonTypesFields(jsonContent, candidate, state);
36257
- break;
36258
- case 3 /* TSConfig */:
36259
- packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
36260
- break;
36261
- default:
36262
- return Debug.assertNever(extensions);
36200
+ if (state.isConfigLookup) {
36201
+ packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
36202
+ } else {
36203
+ packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(jsonContent, candidate, state) || void 0;
36263
36204
  }
36264
36205
  }
36265
36206
  const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
@@ -36273,18 +36214,18 @@ ${lanes.join("\n")}
36273
36214
  trace(state2.host, Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromFile);
36274
36215
  }
36275
36216
  }
36276
- const nextExtensions = extensions2 === 4 /* DtsOnly */ ? 0 /* TypeScript */ : extensions2;
36217
+ const expandedExtensions = extensions2 === 4 /* Declaration */ ? 1 /* TypeScript */ | 4 /* Declaration */ : extensions2;
36277
36218
  const features = state2.features;
36278
36219
  if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") {
36279
36220
  state2.features &= ~32 /* EsmMode */;
36280
36221
  }
36281
- const result = nodeLoadModuleByRelativeName(nextExtensions, candidate2, onlyRecordFailures2, state2, false);
36222
+ const result = nodeLoadModuleByRelativeName(expandedExtensions, candidate2, onlyRecordFailures2, state2, false);
36282
36223
  state2.features = features;
36283
36224
  return result;
36284
36225
  };
36285
36226
  const onlyRecordFailuresForPackageFile = packageFile ? !directoryProbablyExists(getDirectoryPath(packageFile), state.host) : void 0;
36286
36227
  const onlyRecordFailuresForIndex = onlyRecordFailures || !directoryProbablyExists(candidate, state.host);
36287
- const indexPath = combinePaths(candidate, extensions === 3 /* TSConfig */ ? "tsconfig" : "index");
36228
+ const indexPath = combinePaths(candidate, state.isConfigLookup ? "tsconfig" : "index");
36288
36229
  if (versionPaths && (!packageFile || containsPath(candidate, packageFile))) {
36289
36230
  const moduleName = getRelativePathFromDirectory(candidate, packageFile || indexPath, false);
36290
36231
  if (state.traceEnabled) {
@@ -36307,19 +36248,7 @@ ${lanes.join("\n")}
36307
36248
  return ext !== void 0 && extensionIsOk(extensions, ext) ? { path, ext } : void 0;
36308
36249
  }
36309
36250
  function extensionIsOk(extensions, extension) {
36310
- switch (extensions) {
36311
- case 1 /* JavaScript */:
36312
- return extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */;
36313
- case 3 /* TSConfig */:
36314
- case 2 /* Json */:
36315
- return extension === ".json" /* Json */;
36316
- case 0 /* TypeScript */:
36317
- return extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */ || extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */;
36318
- case 5 /* TsOnly */:
36319
- return extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */;
36320
- case 4 /* DtsOnly */:
36321
- return extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */;
36322
- }
36251
+ 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;
36323
36252
  }
36324
36253
  function parsePackageName(moduleName) {
36325
36254
  let idx = moduleName.indexOf(directorySeparator);
@@ -36481,7 +36410,7 @@ ${lanes.join("\n")}
36481
36410
  const combinedLookup = pattern ? target.replace(/\*/g, subpath) : target + subpath;
36482
36411
  traceIfEnabled(state, Diagnostics.Using_0_subpath_1_with_target_2, "imports", key, combinedLookup);
36483
36412
  traceIfEnabled(state, Diagnostics.Resolving_module_0_from_1, combinedLookup, scope.packageDirectory + "/");
36484
- const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache, [extensions], redirectedReference);
36413
+ const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache, extensions, false, redirectedReference);
36485
36414
  return toSearchResult(result.resolvedModule ? { path: result.resolvedModule.resolvedFileName, extension: result.resolvedModule.extension, packageId: result.resolvedModule.packageId, originalPath: result.resolvedModule.originalPath } : void 0);
36486
36415
  }
36487
36416
  if (state.traceEnabled) {
@@ -36572,7 +36501,7 @@ ${lanes.join("\n")}
36572
36501
  }
36573
36502
  function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
36574
36503
  var _a2, _b, _c, _d;
36575
- if ((extensions === 0 /* TypeScript */ || extensions === 1 /* JavaScript */ || extensions === 2 /* Json */) && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) {
36504
+ if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) {
36576
36505
  const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames });
36577
36506
  const commonSourceDirGuesses = [];
36578
36507
  if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
@@ -36609,10 +36538,9 @@ ${lanes.join("\n")}
36609
36538
  if (fileExtensionIs(possibleInputBase, ext)) {
36610
36539
  const inputExts = getPossibleOriginalInputExtensionForExtension(possibleInputBase);
36611
36540
  for (const possibleExt of inputExts) {
36612
- const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
36613
- if (extensions === 0 /* TypeScript */ && hasJSFileExtension(possibleInputWithInputExtension) || extensions === 1 /* JavaScript */ && hasTSFileExtension(possibleInputWithInputExtension)) {
36541
+ if (!extensionIsOk(extensions, possibleExt))
36614
36542
  continue;
36615
- }
36543
+ const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
36616
36544
  if (state.host.fileExists(possibleInputWithInputExtension)) {
36617
36545
  return toSearchResult(withPackageId(scope, loadJSOrExactTSFileName(extensions, possibleInputWithInputExtension, false, state)));
36618
36546
  }
@@ -36653,19 +36581,31 @@ ${lanes.join("\n")}
36653
36581
  return loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, false, cache, redirectedReference);
36654
36582
  }
36655
36583
  function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directory, state) {
36656
- return loadModuleFromNearestNodeModulesDirectoryWorker(4 /* DtsOnly */, moduleName, directory, state, true, void 0, void 0);
36584
+ return loadModuleFromNearestNodeModulesDirectoryWorker(4 /* Declaration */, moduleName, directory, state, true, void 0, void 0);
36657
36585
  }
36658
36586
  function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
36659
36587
  const perModuleNameCache = cache && cache.getOrCreateCacheForModuleName(moduleName, state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ ? 99 /* ESNext */ : 1 /* CommonJS */, redirectedReference);
36660
- return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => {
36661
- if (getBaseFileName(ancestorDirectory) !== "node_modules") {
36662
- const resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, ancestorDirectory, state);
36663
- if (resolutionFromCache) {
36664
- return resolutionFromCache;
36588
+ const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
36589
+ const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
36590
+ if (priorityExtensions) {
36591
+ const result = lookup(priorityExtensions);
36592
+ if (result)
36593
+ return result;
36594
+ }
36595
+ if (secondaryExtensions && !typesScopeOnly) {
36596
+ return lookup(secondaryExtensions);
36597
+ }
36598
+ function lookup(extensions2) {
36599
+ return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => {
36600
+ if (getBaseFileName(ancestorDirectory) !== "node_modules") {
36601
+ const resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, ancestorDirectory, state);
36602
+ if (resolutionFromCache) {
36603
+ return resolutionFromCache;
36604
+ }
36605
+ return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions2, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));
36665
36606
  }
36666
- return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));
36667
- }
36668
- });
36607
+ });
36608
+ }
36669
36609
  }
36670
36610
  function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
36671
36611
  const nodeModulesFolder = combinePaths(directory, "node_modules");
@@ -36673,11 +36613,13 @@ ${lanes.join("\n")}
36673
36613
  if (!nodeModulesFolderExists && state.traceEnabled) {
36674
36614
  trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesFolder);
36675
36615
  }
36676
- const packageResult = typesScopeOnly ? void 0 : loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);
36677
- if (packageResult) {
36678
- return packageResult;
36616
+ if (!typesScopeOnly) {
36617
+ const packageResult = loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);
36618
+ if (packageResult) {
36619
+ return packageResult;
36620
+ }
36679
36621
  }
36680
- if (extensions === 0 /* TypeScript */ || extensions === 4 /* DtsOnly */) {
36622
+ if (extensions & 4 /* Declaration */) {
36681
36623
  const nodeModulesAtTypes2 = combinePaths(nodeModulesFolder, "@types");
36682
36624
  let nodeModulesAtTypesExists = nodeModulesFolderExists;
36683
36625
  if (nodeModulesFolderExists && !directoryProbablyExists(nodeModulesAtTypes2, state.host)) {
@@ -36686,7 +36628,7 @@ ${lanes.join("\n")}
36686
36628
  }
36687
36629
  nodeModulesAtTypesExists = false;
36688
36630
  }
36689
- return loadModuleFromSpecificNodeModulesDirectory(4 /* DtsOnly */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);
36631
+ return loadModuleFromSpecificNodeModulesDirectory(4 /* Declaration */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);
36690
36632
  }
36691
36633
  }
36692
36634
  function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {
@@ -36826,9 +36768,10 @@ ${lanes.join("\n")}
36826
36768
  features: 0 /* None */,
36827
36769
  conditions: [],
36828
36770
  requestContainingDirectory: containingDirectory,
36829
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
36771
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
36772
+ isConfigLookup: false
36830
36773
  };
36831
- const resolved = tryResolve(0 /* TypeScript */) || tryResolve(1 /* JavaScript */);
36774
+ const resolved = tryResolve(1 /* TypeScript */ | 4 /* Declaration */) || tryResolve(2 /* JavaScript */ | (compilerOptions.resolveJsonModule ? 8 /* Json */ : 0));
36832
36775
  return createResolvedModuleWithFailedLookupLocations(
36833
36776
  resolved && resolved.value,
36834
36777
  false,
@@ -36855,7 +36798,7 @@ ${lanes.join("\n")}
36855
36798
  if (resolved2) {
36856
36799
  return resolved2;
36857
36800
  }
36858
- if (extensions === 0 /* TypeScript */) {
36801
+ if (extensions & (1 /* TypeScript */ | 4 /* Declaration */)) {
36859
36802
  return loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state);
36860
36803
  }
36861
36804
  } else {
@@ -36882,9 +36825,10 @@ ${lanes.join("\n")}
36882
36825
  features: 0 /* None */,
36883
36826
  conditions: [],
36884
36827
  requestContainingDirectory: void 0,
36885
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
36828
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
36829
+ isConfigLookup: false
36886
36830
  };
36887
- const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /* DtsOnly */, moduleName, globalCache, state, false, void 0, void 0);
36831
+ const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /* Declaration */, moduleName, globalCache, state, false, void 0, void 0);
36888
36832
  return createResolvedModuleWithFailedLookupLocations(
36889
36833
  resolved,
36890
36834
  true,
@@ -36902,20 +36846,11 @@ ${lanes.join("\n")}
36902
36846
  trace(state.host, diagnostic, ...args);
36903
36847
  }
36904
36848
  }
36905
- var Extensions, typeScriptVersion, nodeModulesAtTypes, NodeResolutionFeatures, jsOnlyExtensions, tsExtensions, tsPlusJsonExtensions, tsconfigExtensions, nodeModulesPathPart, mangledScopedPackageSeparator;
36849
+ var typeScriptVersion, nodeModulesAtTypes, NodeResolutionFeatures, nodeModulesPathPart, mangledScopedPackageSeparator;
36906
36850
  var init_moduleNameResolver = __esm({
36907
36851
  "src/compiler/moduleNameResolver.ts"() {
36908
36852
  "use strict";
36909
36853
  init_ts2();
36910
- Extensions = /* @__PURE__ */ ((Extensions2) => {
36911
- Extensions2[Extensions2["TypeScript"] = 0] = "TypeScript";
36912
- Extensions2[Extensions2["JavaScript"] = 1] = "JavaScript";
36913
- Extensions2[Extensions2["Json"] = 2] = "Json";
36914
- Extensions2[Extensions2["TSConfig"] = 3] = "TSConfig";
36915
- Extensions2[Extensions2["DtsOnly"] = 4] = "DtsOnly";
36916
- Extensions2[Extensions2["TsOnly"] = 5] = "TsOnly";
36917
- return Extensions2;
36918
- })(Extensions || {});
36919
36854
  nodeModulesAtTypes = combinePaths("node_modules", "@types");
36920
36855
  NodeResolutionFeatures = /* @__PURE__ */ ((NodeResolutionFeatures2) => {
36921
36856
  NodeResolutionFeatures2[NodeResolutionFeatures2["None"] = 0] = "None";
@@ -36929,10 +36864,6 @@ ${lanes.join("\n")}
36929
36864
  NodeResolutionFeatures2[NodeResolutionFeatures2["EsmMode"] = 32] = "EsmMode";
36930
36865
  return NodeResolutionFeatures2;
36931
36866
  })(NodeResolutionFeatures || {});
36932
- jsOnlyExtensions = [1 /* JavaScript */];
36933
- tsExtensions = [0 /* TypeScript */, 1 /* JavaScript */];
36934
- tsPlusJsonExtensions = [...tsExtensions, 2 /* Json */];
36935
- tsconfigExtensions = [3 /* TSConfig */];
36936
36867
  nodeModulesPathPart = "/node_modules/";
36937
36868
  mangledScopedPackageSeparator = "__";
36938
36869
  }
@@ -39918,6 +39849,7 @@ ${lanes.join("\n")}
39918
39849
  const importedFileIsInNodeModules = some(modulePaths, (p) => p.isInNodeModules);
39919
39850
  let nodeModulesSpecifiers;
39920
39851
  let pathsSpecifiers;
39852
+ let redirectPathsSpecifiers;
39921
39853
  let relativeSpecifiers;
39922
39854
  for (const modulePath of modulePaths) {
39923
39855
  const specifier = tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, void 0, options.overrideImportMode);
@@ -39925,60 +39857,77 @@ ${lanes.join("\n")}
39925
39857
  if (specifier && modulePath.isRedirect) {
39926
39858
  return nodeModulesSpecifiers;
39927
39859
  }
39928
- if (!specifier && !modulePath.isRedirect) {
39929
- const local = getLocalModuleSpecifier(modulePath.path, info, compilerOptions, host, options.overrideImportMode || importingSourceFile.impliedNodeFormat, preferences);
39930
- if (pathIsBareSpecifier(local)) {
39860
+ if (!specifier) {
39861
+ const local = getLocalModuleSpecifier(
39862
+ modulePath.path,
39863
+ info,
39864
+ compilerOptions,
39865
+ host,
39866
+ options.overrideImportMode || importingSourceFile.impliedNodeFormat,
39867
+ preferences,
39868
+ modulePath.isRedirect
39869
+ );
39870
+ if (!local) {
39871
+ continue;
39872
+ }
39873
+ if (modulePath.isRedirect) {
39874
+ redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
39875
+ } else if (pathIsBareSpecifier(local)) {
39931
39876
  pathsSpecifiers = append(pathsSpecifiers, local);
39932
39877
  } else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
39933
39878
  relativeSpecifiers = append(relativeSpecifiers, local);
39934
39879
  }
39935
39880
  }
39936
39881
  }
39937
- return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers : Debug.checkDefined(relativeSpecifiers);
39882
+ return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers : (redirectPathsSpecifiers == null ? void 0 : redirectPathsSpecifiers.length) ? redirectPathsSpecifiers : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers : Debug.checkDefined(relativeSpecifiers);
39938
39883
  }
39939
39884
  function getInfo(importingSourceFileName, host) {
39940
39885
  const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : true);
39941
39886
  const sourceDirectory = getDirectoryPath(importingSourceFileName);
39942
39887
  return { getCanonicalFileName, importingSourceFileName, sourceDirectory };
39943
39888
  }
39944
- function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }) {
39889
+ function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }, pathsOnly) {
39945
39890
  const { baseUrl, paths, rootDirs } = compilerOptions;
39891
+ if (pathsOnly && !paths) {
39892
+ return void 0;
39893
+ }
39946
39894
  const { sourceDirectory, getCanonicalFileName } = info;
39947
39895
  const relativePath = rootDirs && tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, ending, compilerOptions) || removeExtensionAndIndexPostFix(ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceDirectory, moduleFileName, getCanonicalFileName)), ending, compilerOptions);
39948
39896
  if (!baseUrl && !paths || relativePreference === 0 /* Relative */) {
39949
- return relativePath;
39897
+ return pathsOnly ? void 0 : relativePath;
39950
39898
  }
39951
39899
  const baseDirectory = getNormalizedAbsolutePath(getPathsBasePath(compilerOptions, host) || baseUrl, host.getCurrentDirectory());
39952
39900
  const relativeToBaseUrl = getRelativePathIfInDirectory(moduleFileName, baseDirectory, getCanonicalFileName);
39953
39901
  if (!relativeToBaseUrl) {
39954
- return relativePath;
39902
+ return pathsOnly ? void 0 : relativePath;
39955
39903
  }
39956
39904
  const fromPaths = paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, getAllowedEndings(ending, compilerOptions, importMode), host, compilerOptions);
39957
- const nonRelative = fromPaths === void 0 && baseUrl !== void 0 ? removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) : fromPaths;
39958
- if (!nonRelative) {
39905
+ if (pathsOnly) {
39906
+ return fromPaths;
39907
+ }
39908
+ const maybeNonRelative = fromPaths === void 0 && baseUrl !== void 0 ? removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) : fromPaths;
39909
+ if (!maybeNonRelative) {
39959
39910
  return relativePath;
39960
39911
  }
39961
- if (relativePreference === 1 /* NonRelative */) {
39962
- return nonRelative;
39912
+ if (relativePreference === 1 /* NonRelative */ && !pathIsRelative(maybeNonRelative)) {
39913
+ return maybeNonRelative;
39963
39914
  }
39964
- if (relativePreference === 3 /* ExternalNonRelative */) {
39915
+ if (relativePreference === 3 /* ExternalNonRelative */ && !pathIsRelative(maybeNonRelative)) {
39965
39916
  const projectDirectory = compilerOptions.configFilePath ? toPath(getDirectoryPath(compilerOptions.configFilePath), host.getCurrentDirectory(), info.getCanonicalFileName) : info.getCanonicalFileName(host.getCurrentDirectory());
39966
39917
  const modulePath = toPath(moduleFileName, projectDirectory, getCanonicalFileName);
39967
39918
  const sourceIsInternal = startsWith(sourceDirectory, projectDirectory);
39968
39919
  const targetIsInternal = startsWith(modulePath, projectDirectory);
39969
39920
  if (sourceIsInternal && !targetIsInternal || !sourceIsInternal && targetIsInternal) {
39970
- return nonRelative;
39921
+ return maybeNonRelative;
39971
39922
  }
39972
39923
  const nearestTargetPackageJson = getNearestAncestorDirectoryWithPackageJson(host, getDirectoryPath(modulePath));
39973
39924
  const nearestSourcePackageJson = getNearestAncestorDirectoryWithPackageJson(host, sourceDirectory);
39974
39925
  if (nearestSourcePackageJson !== nearestTargetPackageJson) {
39975
- return nonRelative;
39926
+ return maybeNonRelative;
39976
39927
  }
39977
39928
  return relativePath;
39978
39929
  }
39979
- if (relativePreference !== 2 /* Shortest */)
39980
- Debug.assertNever(relativePreference);
39981
- return isPathRelativeToParent(nonRelative) || countPathComponents(relativePath) < countPathComponents(nonRelative) ? relativePath : nonRelative;
39930
+ return isPathRelativeToParent(maybeNonRelative) || countPathComponents(relativePath) < countPathComponents(maybeNonRelative) ? relativePath : maybeNonRelative;
39982
39931
  }
39983
39932
  function countPathComponents(path) {
39984
39933
  let count = 0;
@@ -40461,7 +40410,7 @@ ${lanes.join("\n")}
40461
40410
  function SymbolLinks() {
40462
40411
  }
40463
40412
  function NodeLinks() {
40464
- this.flags = 0;
40413
+ this.flags = 0 /* None */;
40465
40414
  }
40466
40415
  function getNodeId(node) {
40467
40416
  if (!node.id) {
@@ -41306,7 +41255,7 @@ ${lanes.join("\n")}
41306
41255
  function createSymbol(flags, name, checkFlags) {
41307
41256
  symbolCount++;
41308
41257
  const symbol = new Symbol46(flags | 33554432 /* Transient */, name);
41309
- symbol.checkFlags = checkFlags || 0;
41258
+ symbol.checkFlags = checkFlags || 0 /* None */;
41310
41259
  return symbol;
41311
41260
  }
41312
41261
  function getExcludedSymbolFlags(flags) {
@@ -43617,7 +43566,7 @@ ${lanes.join("\n")}
43617
43566
  function createOriginType(flags) {
43618
43567
  return new Type27(checker, flags);
43619
43568
  }
43620
- function createIntrinsicType(kind, intrinsicName, objectFlags = 0) {
43569
+ function createIntrinsicType(kind, intrinsicName, objectFlags = 0 /* None */) {
43621
43570
  const type = createType(kind);
43622
43571
  type.intrinsicName = intrinsicName;
43623
43572
  type.objectFlags = objectFlags;
@@ -44112,25 +44061,22 @@ ${lanes.join("\n")}
44112
44061
  const context = {
44113
44062
  enclosingDeclaration,
44114
44063
  flags: flags || 0 /* None */,
44115
- tracker: tracker && tracker.trackSymbol ? tracker : {
44116
- trackSymbol: () => false,
44117
- moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
44118
- getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
44119
- getCurrentDirectory: () => host.getCurrentDirectory(),
44120
- getSymlinkCache: maybeBind(host, host.getSymlinkCache),
44121
- getPackageJsonInfoCache: () => {
44122
- var _a3;
44123
- return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
44124
- },
44125
- useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
44126
- redirectTargetsMap: host.redirectTargetsMap,
44127
- getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
44128
- isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
44129
- fileExists: (fileName) => host.fileExists(fileName),
44130
- getFileIncludeReasons: () => host.getFileIncludeReasons(),
44131
- readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
44132
- } : void 0
44133
- },
44064
+ tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: () => false, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
44065
+ getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
44066
+ getCurrentDirectory: () => host.getCurrentDirectory(),
44067
+ getSymlinkCache: maybeBind(host, host.getSymlinkCache),
44068
+ getPackageJsonInfoCache: () => {
44069
+ var _a3;
44070
+ return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
44071
+ },
44072
+ useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
44073
+ redirectTargetsMap: host.redirectTargetsMap,
44074
+ getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
44075
+ isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
44076
+ fileExists: (fileName) => host.fileExists(fileName),
44077
+ getFileIncludeReasons: () => host.getFileIncludeReasons(),
44078
+ readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
44079
+ } : void 0 },
44134
44080
  encounteredError: false,
44135
44081
  reportedDiagnostic: false,
44136
44082
  visitedTypes: void 0,
@@ -50460,7 +50406,7 @@ ${lanes.join("\n")}
50460
50406
  function containsArgumentsReference(declaration) {
50461
50407
  const links = getNodeLinks(declaration);
50462
50408
  if (links.containsArgumentsReference === void 0) {
50463
- if (links.flags & 8192 /* CaptureArguments */) {
50409
+ if (links.flags & 512 /* CaptureArguments */) {
50464
50410
  links.containsArgumentsReference = true;
50465
50411
  } else {
50466
50412
  links.containsArgumentsReference = traverse(declaration.body);
@@ -54360,7 +54306,7 @@ ${lanes.join("\n")}
54360
54306
  return compareSignaturesRelated(
54361
54307
  source,
54362
54308
  target,
54363
- ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0,
54309
+ ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0 /* None */,
54364
54310
  false,
54365
54311
  void 0,
54366
54312
  void 0,
@@ -54594,7 +54540,9 @@ ${lanes.join("\n")}
54594
54540
  if (relation === assignableRelation || relation === comparableRelation) {
54595
54541
  if (s & 1 /* Any */)
54596
54542
  return true;
54597
- if (s & (8 /* Number */ | 256 /* NumberLiteral */) && !(s & 1024 /* EnumLiteral */) && (t & 32 /* Enum */ || relation === assignableRelation && t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */))
54543
+ if (s & 8 /* Number */ && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */))
54544
+ return true;
54545
+ if (s & 256 /* NumberLiteral */ && !(s & 1024 /* EnumLiteral */) && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */ && source.value === target.value))
54598
54546
  return true;
54599
54547
  if (isUnknownLikeUnionType(target))
54600
54548
  return true;
@@ -57640,7 +57588,7 @@ ${lanes.join("\n")}
57640
57588
  pos = p;
57641
57589
  }
57642
57590
  }
57643
- function inferTypes(inferences, originalSource, originalTarget, priority = 0, contravariant = false) {
57591
+ function inferTypes(inferences, originalSource, originalTarget, priority = 0 /* None */, contravariant = false) {
57644
57592
  let bivariant = false;
57645
57593
  let propagationType;
57646
57594
  let inferencePriority = 2048 /* MaxValue */;
@@ -60082,8 +60030,8 @@ ${lanes.join("\n")}
60082
60030
  }
60083
60031
  const parent2 = getRootDeclaration(symbol.valueDeclaration).parent;
60084
60032
  const links = getNodeLinks(parent2);
60085
- if (!(links.flags & 8388608 /* AssignmentsMarked */)) {
60086
- links.flags |= 8388608 /* AssignmentsMarked */;
60033
+ if (!(links.flags & 524288 /* AssignmentsMarked */)) {
60034
+ links.flags |= 524288 /* AssignmentsMarked */;
60087
60035
  if (!hasParentWithAssignmentsMarked(parent2)) {
60088
60036
  markNodeAssignments(parent2);
60089
60037
  }
@@ -60091,7 +60039,7 @@ ${lanes.join("\n")}
60091
60039
  return symbol.isAssigned || false;
60092
60040
  }
60093
60041
  function hasParentWithAssignmentsMarked(node) {
60094
- return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 8388608 /* AssignmentsMarked */));
60042
+ return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 524288 /* AssignmentsMarked */));
60095
60043
  }
60096
60044
  function markNodeAssignments(node) {
60097
60045
  if (node.kind === 79 /* Identifier */) {
@@ -60170,11 +60118,11 @@ ${lanes.join("\n")}
60170
60118
  const parent2 = declaration.parent.parent;
60171
60119
  if (parent2.kind === 257 /* VariableDeclaration */ && getCombinedNodeFlags(declaration) & 2 /* Const */ || parent2.kind === 166 /* Parameter */) {
60172
60120
  const links = getNodeLinks(parent2);
60173
- if (!(links.flags & 268435456 /* InCheckIdentifier */)) {
60174
- links.flags |= 268435456 /* InCheckIdentifier */;
60121
+ if (!(links.flags & 16777216 /* InCheckIdentifier */)) {
60122
+ links.flags |= 16777216 /* InCheckIdentifier */;
60175
60123
  const parentType = getTypeForBindingElementParent(parent2, 0 /* Normal */);
60176
60124
  const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
60177
- links.flags &= ~268435456 /* InCheckIdentifier */;
60125
+ links.flags &= ~16777216 /* InCheckIdentifier */;
60178
60126
  if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent2.kind === 166 /* Parameter */ && isSymbolAssigned(symbol))) {
60179
60127
  const pattern = declaration.parent;
60180
60128
  const narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, void 0, location.flowNode);
@@ -60224,7 +60172,7 @@ ${lanes.join("\n")}
60224
60172
  error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method);
60225
60173
  }
60226
60174
  }
60227
- getNodeLinks(container).flags |= 8192 /* CaptureArguments */;
60175
+ getNodeLinks(container).flags |= 512 /* CaptureArguments */;
60228
60176
  return getTypeOfSymbol(symbol);
60229
60177
  }
60230
60178
  if (shouldMarkIdentifierAliasReferenced(node)) {
@@ -60241,8 +60189,8 @@ ${lanes.join("\n")}
60241
60189
  let container = getContainingClass(node);
60242
60190
  while (container !== void 0) {
60243
60191
  if (container === declaration && container.name !== node) {
60244
- getNodeLinks(declaration).flags |= 16777216 /* ClassWithConstructorReference */;
60245
- getNodeLinks(node).flags |= 33554432 /* ConstructorReferenceInClass */;
60192
+ getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */;
60193
+ getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */;
60246
60194
  break;
60247
60195
  }
60248
60196
  container = getContainingClass(container);
@@ -60252,8 +60200,8 @@ ${lanes.join("\n")}
60252
60200
  while (container.kind !== 308 /* SourceFile */) {
60253
60201
  if (container.parent === declaration) {
60254
60202
  if (isPropertyDeclaration(container) && isStatic(container) || isClassStaticBlockDeclaration(container)) {
60255
- getNodeLinks(declaration).flags |= 16777216 /* ClassWithConstructorReference */;
60256
- getNodeLinks(node).flags |= 33554432 /* ConstructorReferenceInClass */;
60203
+ getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */;
60204
+ getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */;
60257
60205
  }
60258
60206
  break;
60259
60207
  }
@@ -60367,7 +60315,7 @@ ${lanes.join("\n")}
60367
60315
  const part = getPartOfForStatementContainingNode(node.parent, container);
60368
60316
  if (part) {
60369
60317
  const links = getNodeLinks(part);
60370
- links.flags |= 131072 /* ContainsCapturedBlockScopeBinding */;
60318
+ links.flags |= 8192 /* ContainsCapturedBlockScopeBinding */;
60371
60319
  const capturedBindings = links.capturedBlockScopeBindings || (links.capturedBlockScopeBindings = []);
60372
60320
  pushIfUnique(capturedBindings, symbol);
60373
60321
  if (part === container.initializer) {
@@ -60377,19 +60325,19 @@ ${lanes.join("\n")}
60377
60325
  }
60378
60326
  }
60379
60327
  if (capturesBlockScopeBindingInLoopBody) {
60380
- getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;
60328
+ getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
60381
60329
  }
60382
60330
  }
60383
60331
  if (isForStatement(container)) {
60384
60332
  const varDeclList = getAncestor(symbol.valueDeclaration, 258 /* VariableDeclarationList */);
60385
60333
  if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) {
60386
- getNodeLinks(symbol.valueDeclaration).flags |= 4194304 /* NeedsLoopOutParameter */;
60334
+ getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* NeedsLoopOutParameter */;
60387
60335
  }
60388
60336
  }
60389
- getNodeLinks(symbol.valueDeclaration).flags |= 524288 /* BlockScopedBindingInLoop */;
60337
+ getNodeLinks(symbol.valueDeclaration).flags |= 32768 /* BlockScopedBindingInLoop */;
60390
60338
  }
60391
60339
  if (isCaptured) {
60392
- getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* CapturedBlockScopedBinding */;
60340
+ getNodeLinks(symbol.valueDeclaration).flags |= 16384 /* CapturedBlockScopedBinding */;
60393
60341
  }
60394
60342
  }
60395
60343
  function isBindingCapturedByNode(node, decl) {
@@ -60606,23 +60554,23 @@ ${lanes.join("\n")}
60606
60554
  checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class);
60607
60555
  }
60608
60556
  if (isStatic(container) || isCallExpression2) {
60609
- nodeCheckFlag = 512 /* SuperStatic */;
60557
+ nodeCheckFlag = 32 /* SuperStatic */;
60610
60558
  if (!isCallExpression2 && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && (isPropertyDeclaration(container) || isClassStaticBlockDeclaration(container))) {
60611
60559
  forEachEnclosingBlockScopeContainer(node.parent, (current) => {
60612
60560
  if (!isSourceFile(current) || isExternalOrCommonJsModule(current)) {
60613
- getNodeLinks(current).flags |= 134217728 /* ContainsSuperPropertyInStaticInitializer */;
60561
+ getNodeLinks(current).flags |= 8388608 /* ContainsSuperPropertyInStaticInitializer */;
60614
60562
  }
60615
60563
  });
60616
60564
  }
60617
60565
  } else {
60618
- nodeCheckFlag = 256 /* SuperInstance */;
60566
+ nodeCheckFlag = 16 /* SuperInstance */;
60619
60567
  }
60620
60568
  getNodeLinks(node).flags |= nodeCheckFlag;
60621
60569
  if (container.kind === 171 /* MethodDeclaration */ && inAsyncFunction) {
60622
60570
  if (isSuperProperty(node.parent) && isAssignmentTarget(node.parent)) {
60623
- getNodeLinks(container).flags |= 4096 /* MethodWithSuperPropertyAssignmentInAsync */;
60571
+ getNodeLinks(container).flags |= 256 /* MethodWithSuperPropertyAssignmentInAsync */;
60624
60572
  } else {
60625
- getNodeLinks(container).flags |= 2048 /* MethodWithSuperPropertyAccessInAsync */;
60573
+ getNodeLinks(container).flags |= 128 /* MethodWithSuperPropertyAccessInAsync */;
60626
60574
  }
60627
60575
  }
60628
60576
  if (needToCaptureLexicalThis) {
@@ -60650,7 +60598,7 @@ ${lanes.join("\n")}
60650
60598
  error(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments);
60651
60599
  return errorType;
60652
60600
  }
60653
- return nodeCheckFlag === 512 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType);
60601
+ return nodeCheckFlag === 32 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType);
60654
60602
  function isLegalUsageOfSuperExpression(container2) {
60655
60603
  if (!container2) {
60656
60604
  return false;
@@ -61665,9 +61613,9 @@ ${lanes.join("\n")}
61665
61613
  const container = getEnclosingBlockScopeContainer(node.parent.parent);
61666
61614
  const enclosingIterationStatement = getEnclosingIterationStatement(container);
61667
61615
  if (enclosingIterationStatement) {
61668
- getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;
61669
- getNodeLinks(node).flags |= 524288 /* BlockScopedBindingInLoop */;
61670
- getNodeLinks(node.parent.parent).flags |= 524288 /* BlockScopedBindingInLoop */;
61616
+ getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
61617
+ getNodeLinks(node).flags |= 32768 /* BlockScopedBindingInLoop */;
61618
+ getNodeLinks(node.parent.parent).flags |= 32768 /* BlockScopedBindingInLoop */;
61671
61619
  }
61672
61620
  }
61673
61621
  if (links.resolvedType.flags & 98304 /* Nullable */ || !isTypeAssignableToKind(links.resolvedType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */) && !isTypeAssignableTo(links.resolvedType, stringNumberSymbolType)) {
@@ -65654,10 +65602,10 @@ ${lanes.join("\n")}
65654
65602
  }
65655
65603
  function contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode) {
65656
65604
  const links = getNodeLinks(node);
65657
- if (!(links.flags & 1024 /* ContextChecked */)) {
65605
+ if (!(links.flags & 64 /* ContextChecked */)) {
65658
65606
  const contextualSignature = getContextualSignature(node);
65659
- if (!(links.flags & 1024 /* ContextChecked */)) {
65660
- links.flags |= 1024 /* ContextChecked */;
65607
+ if (!(links.flags & 64 /* ContextChecked */)) {
65608
+ links.flags |= 64 /* ContextChecked */;
65661
65609
  const signature = firstOrUndefined(getSignaturesOfType(getTypeOfSymbol(getSymbolOfNode(node)), 0 /* Call */));
65662
65610
  if (!signature) {
65663
65611
  return;
@@ -67647,13 +67595,13 @@ ${lanes.join("\n")}
67647
67595
  function setNodeLinksForPrivateIdentifierScope(node) {
67648
67596
  if (isPrivateIdentifier(node.name) && languageVersion < 99 /* ESNext */) {
67649
67597
  for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) {
67650
- getNodeLinks(lexicalScope).flags |= 67108864 /* ContainsClassWithPrivateIdentifiers */;
67598
+ getNodeLinks(lexicalScope).flags |= 4194304 /* ContainsClassWithPrivateIdentifiers */;
67651
67599
  }
67652
67600
  if (isClassExpression(node.parent)) {
67653
67601
  const enclosingIterationStatement = getEnclosingIterationStatement(node.parent);
67654
67602
  if (enclosingIterationStatement) {
67655
- getNodeLinks(node.name).flags |= 524288 /* BlockScopedBindingInLoop */;
67656
- getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;
67603
+ getNodeLinks(node.name).flags |= 32768 /* BlockScopedBindingInLoop */;
67604
+ getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
67657
67605
  }
67658
67606
  }
67659
67607
  }
@@ -69248,7 +69196,7 @@ ${lanes.join("\n")}
69248
69196
  }
69249
69197
  function checkWeakMapSetCollision(node) {
69250
69198
  const enclosingBlockScope = getEnclosingBlockScopeContainer(node);
69251
- if (getNodeCheckFlags(enclosingBlockScope) & 67108864 /* ContainsClassWithPrivateIdentifiers */) {
69199
+ if (getNodeCheckFlags(enclosingBlockScope) & 4194304 /* ContainsClassWithPrivateIdentifiers */) {
69252
69200
  Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name) && typeof node.name.escapedText === "string", "The target of a WeakMap/WeakSet collision check should be an identifier");
69253
69201
  errorSkippedOn("noEmit", node, Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText);
69254
69202
  }
@@ -69262,18 +69210,18 @@ ${lanes.join("\n")}
69262
69210
  let hasCollision = false;
69263
69211
  if (isClassExpression(node)) {
69264
69212
  for (const member of node.members) {
69265
- if (getNodeCheckFlags(member) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {
69213
+ if (getNodeCheckFlags(member) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
69266
69214
  hasCollision = true;
69267
69215
  break;
69268
69216
  }
69269
69217
  }
69270
69218
  } else if (isFunctionExpression(node)) {
69271
- if (getNodeCheckFlags(node) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {
69219
+ if (getNodeCheckFlags(node) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
69272
69220
  hasCollision = true;
69273
69221
  }
69274
69222
  } else {
69275
69223
  const container = getEnclosingBlockScopeContainer(node);
69276
- if (container && getNodeCheckFlags(container) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {
69224
+ if (container && getNodeCheckFlags(container) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
69277
69225
  hasCollision = true;
69278
69226
  }
69279
69227
  }
@@ -70488,8 +70436,9 @@ ${lanes.join("\n")}
70488
70436
  });
70489
70437
  const containsArguments = containsArgumentsReference(node);
70490
70438
  if (containsArguments) {
70491
- const lastJSDocParam = lastOrUndefined(jsdocParameters);
70492
- if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
70439
+ const lastJSDocParamIndex = jsdocParameters.length - 1;
70440
+ const lastJSDocParam = jsdocParameters[lastJSDocParamIndex];
70441
+ if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
70493
70442
  error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name));
70494
70443
  }
70495
70444
  } else {
@@ -71157,8 +71106,8 @@ ${lanes.join("\n")}
71157
71106
  }
71158
71107
  function computeEnumMemberValues(node) {
71159
71108
  const nodeLinks2 = getNodeLinks(node);
71160
- if (!(nodeLinks2.flags & 16384 /* EnumValuesComputed */)) {
71161
- nodeLinks2.flags |= 16384 /* EnumValuesComputed */;
71109
+ if (!(nodeLinks2.flags & 1024 /* EnumValuesComputed */)) {
71110
+ nodeLinks2.flags |= 1024 /* EnumValuesComputed */;
71162
71111
  let autoValue = 0;
71163
71112
  for (const member of node.members) {
71164
71113
  const value = computeMemberValue(member, autoValue);
@@ -71434,7 +71383,7 @@ ${lanes.join("\n")}
71434
71383
  }
71435
71384
  const mergedClass = getDeclarationOfKind(symbol, 260 /* ClassDeclaration */);
71436
71385
  if (mergedClass && inSameLexicalScope(node, mergedClass)) {
71437
- getNodeLinks(node).flags |= 32768 /* LexicalModuleMergesWithClass */;
71386
+ getNodeLinks(node).flags |= 2048 /* LexicalModuleMergesWithClass */;
71438
71387
  }
71439
71388
  }
71440
71389
  if (isAmbientExternalModule) {
@@ -73065,8 +73014,8 @@ ${lanes.join("\n")}
73065
73014
  const nodeLinks2 = getNodeLinks(symbol.valueDeclaration);
73066
73015
  if (resolveName(container.parent, symbol.escapedName, 111551 /* Value */, void 0, void 0, false)) {
73067
73016
  links.isDeclarationWithCollidingName = true;
73068
- } else if (nodeLinks2.flags & 262144 /* CapturedBlockScopedBinding */) {
73069
- const isDeclaredInLoop = nodeLinks2.flags & 524288 /* BlockScopedBindingInLoop */;
73017
+ } else if (nodeLinks2.flags & 16384 /* CapturedBlockScopedBinding */) {
73018
+ const isDeclaredInLoop = nodeLinks2.flags & 32768 /* BlockScopedBindingInLoop */;
73070
73019
  const inLoopInitializer = isIterationStatement(container, false);
73071
73020
  const inLoopBodyBlock = container.kind === 238 /* Block */ && isIterationStatement(container.parent, false);
73072
73021
  links.isDeclarationWithCollidingName = !isBlockScopedContainerTopLevel(container) && (!isDeclaredInLoop || !inLoopInitializer && !inLoopBodyBlock);
@@ -75368,6 +75317,7 @@ ${lanes.join("\n")}
75368
75317
  return CheckMode3;
75369
75318
  })(CheckMode || {});
75370
75319
  SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => {
75320
+ SignatureCheckMode3[SignatureCheckMode3["None"] = 0] = "None";
75371
75321
  SignatureCheckMode3[SignatureCheckMode3["BivariantCallback"] = 1] = "BivariantCallback";
75372
75322
  SignatureCheckMode3[SignatureCheckMode3["StrictCallback"] = 2] = "StrictCallback";
75373
75323
  SignatureCheckMode3[SignatureCheckMode3["IgnoreReturnTypes"] = 4] = "IgnoreReturnTypes";
@@ -76641,10 +76591,10 @@ ${lanes.join("\n")}
76641
76591
  nodeVisitor(node.initializer, visitor, isExpression)
76642
76592
  );
76643
76593
  },
76644
- [308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
76594
+ [308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
76645
76595
  return context.factory.updateSourceFile(
76646
76596
  node,
76647
- visitLexicalEnvironment(node.statements, visitor, context, void 0, void 0, nodesVisitor)
76597
+ visitLexicalEnvironment(node.statements, visitor, context)
76648
76598
  );
76649
76599
  },
76650
76600
  [353 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
@@ -80372,12 +80322,12 @@ ${lanes.join("\n")}
80372
80322
  function visitClassExpressionInNewClassLexicalEnvironment(node, facts) {
80373
80323
  const isDecoratedClassDeclaration = !!(facts & 1 /* ClassWasDecorated */);
80374
80324
  const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node);
80375
- const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 16777216 /* ClassWithConstructorReference */;
80325
+ const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */;
80376
80326
  let temp;
80377
80327
  function createClassTempVar() {
80378
80328
  const classCheckFlags = resolver.getNodeCheckFlags(node);
80379
- const isClassWithConstructorReference2 = classCheckFlags & 16777216 /* ClassWithConstructorReference */;
80380
- const requiresBlockScopedVar = classCheckFlags & 524288 /* BlockScopedBindingInLoop */;
80329
+ const isClassWithConstructorReference2 = classCheckFlags & 1048576 /* ClassWithConstructorReference */;
80330
+ const requiresBlockScopedVar = classCheckFlags & 32768 /* BlockScopedBindingInLoop */;
80381
80331
  return factory2.createTempVariable(requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, !!isClassWithConstructorReference2);
80382
80332
  }
80383
80333
  if (facts & 2 /* NeedsClassConstructorReference */) {
@@ -80890,7 +80840,7 @@ ${lanes.join("\n")}
80890
80840
  }
80891
80841
  function trySubstituteClassAlias(node) {
80892
80842
  if (enabledSubstitutions & 1 /* ClassAliases */) {
80893
- if (resolver.getNodeCheckFlags(node) & 33554432 /* ConstructorReferenceInClass */) {
80843
+ if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) {
80894
80844
  const declaration = resolver.getReferencedValueDeclaration(node);
80895
80845
  if (declaration) {
80896
80846
  const classAlias = classAliases[declaration.id];
@@ -80913,7 +80863,7 @@ ${lanes.join("\n")}
80913
80863
  const alreadyTransformed = isAssignmentExpression(innerExpression) && isGeneratedIdentifier(innerExpression.left);
80914
80864
  if (!alreadyTransformed && !inlinable && shouldHoist) {
80915
80865
  const generatedName = factory2.getGeneratedNameForNode(name);
80916
- if (resolver.getNodeCheckFlags(name) & 524288 /* BlockScopedBindingInLoop */) {
80866
+ if (resolver.getNodeCheckFlags(name) & 32768 /* BlockScopedBindingInLoop */) {
80917
80867
  addBlockScopedVariable(generatedName);
80918
80868
  } else {
80919
80869
  hoistVariableDeclaration(generatedName);
@@ -81062,7 +81012,7 @@ ${lanes.join("\n")}
81062
81012
  const { className } = getPrivateIdentifierEnvironment();
81063
81013
  const prefix = className ? { prefix: "_", node: className, suffix: "_" } : "_";
81064
81014
  const identifier = typeof name === "object" ? factory2.getGeneratedNameForNode(name, 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */, prefix, suffix) : typeof name === "string" ? factory2.createUniqueName(name, 16 /* Optimistic */, prefix, suffix) : factory2.createTempVariable(void 0, true, prefix, suffix);
81065
- if (resolver.getNodeCheckFlags(node) & 524288 /* BlockScopedBindingInLoop */) {
81015
+ if (resolver.getNodeCheckFlags(node) & 32768 /* BlockScopedBindingInLoop */) {
81066
81016
  addBlockScopedVariable(identifier);
81067
81017
  } else {
81068
81018
  hoistVariableDeclaration(identifier);
@@ -81946,7 +81896,7 @@ ${lanes.join("\n")}
81946
81896
  }
81947
81897
  }
81948
81898
  function getClassAliasIfNeeded(node) {
81949
- if (resolver.getNodeCheckFlags(node) & 16777216 /* ClassWithConstructorReference */) {
81899
+ if (resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */) {
81950
81900
  enableSubstitutionForClassAliases();
81951
81901
  const classAlias = factory2.createUniqueName(node.name && !isGeneratedIdentifier(node.name) ? idText(node.name) : "default");
81952
81902
  classAliases[getOriginalNodeId(node)] = classAlias;
@@ -81980,7 +81930,7 @@ ${lanes.join("\n")}
81980
81930
  }
81981
81931
  function trySubstituteClassAlias(node) {
81982
81932
  if (classAliases) {
81983
- if (resolver.getNodeCheckFlags(node) & 33554432 /* ConstructorReferenceInClass */) {
81933
+ if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) {
81984
81934
  const declaration = resolver.getReferencedValueDeclaration(node);
81985
81935
  if (declaration) {
81986
81936
  const classAlias = classAliases[declaration.id];
@@ -82021,7 +81971,7 @@ ${lanes.join("\n")}
82021
81971
  let capturedSuperProperties;
82022
81972
  let hasSuperElementAccess;
82023
81973
  const substitutedSuperAccessors = [];
82024
- let contextFlags = 0;
81974
+ let contextFlags = 0 /* None */;
82025
81975
  const previousOnEmitNode = context.onEmitNode;
82026
81976
  const previousOnSubstituteNode = context.onSubstituteNode;
82027
81977
  context.onEmitNode = onEmitNode;
@@ -82348,7 +82298,7 @@ ${lanes.join("\n")}
82348
82298
  hasSuperElementAccess = false;
82349
82299
  let updated = visitFunctionBody(node.body, visitor, context);
82350
82300
  const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration);
82351
- const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* MethodWithSuperPropertyAssignmentInAsync */ | 2048 /* MethodWithSuperPropertyAccessInAsync */) && (getFunctionFlags(originalMethod) & 3 /* AsyncGenerator */) !== 3 /* AsyncGenerator */;
82301
+ const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */) && (getFunctionFlags(originalMethod) & 3 /* AsyncGenerator */) !== 3 /* AsyncGenerator */;
82352
82302
  if (emitSuperHelpers) {
82353
82303
  enableSubstitutionForAsyncMethodsWithSuper();
82354
82304
  if (capturedSuperProperties.size) {
@@ -82359,9 +82309,9 @@ ${lanes.join("\n")}
82359
82309
  updated = factory2.updateBlock(updated, statements);
82360
82310
  }
82361
82311
  if (hasSuperElementAccess) {
82362
- if (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
82312
+ if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
82363
82313
  addEmitHelper(updated, advancedAsyncSuperHelper);
82364
- } else if (resolver.getNodeCheckFlags(node) & 2048 /* MethodWithSuperPropertyAccessInAsync */) {
82314
+ } else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
82365
82315
  addEmitHelper(updated, asyncSuperHelper);
82366
82316
  }
82367
82317
  }
@@ -82376,7 +82326,7 @@ ${lanes.join("\n")}
82376
82326
  const nodeType = original.type;
82377
82327
  const promiseConstructor = languageVersion < 2 /* ES2015 */ ? getPromiseConstructor(nodeType) : void 0;
82378
82328
  const isArrowFunction2 = node.kind === 216 /* ArrowFunction */;
82379
- const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 8192 /* CaptureArguments */) !== 0;
82329
+ const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 512 /* CaptureArguments */) !== 0;
82380
82330
  const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;
82381
82331
  enclosingFunctionParameterNames = /* @__PURE__ */ new Set();
82382
82332
  for (const parameter of node.parameters) {
@@ -82403,7 +82353,7 @@ ${lanes.join("\n")}
82403
82353
  )
82404
82354
  );
82405
82355
  insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
82406
- const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* MethodWithSuperPropertyAssignmentInAsync */ | 2048 /* MethodWithSuperPropertyAccessInAsync */);
82356
+ const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */);
82407
82357
  if (emitSuperHelpers) {
82408
82358
  enableSubstitutionForAsyncMethodsWithSuper();
82409
82359
  if (capturedSuperProperties.size) {
@@ -82415,9 +82365,9 @@ ${lanes.join("\n")}
82415
82365
  const block = factory2.createBlock(statements, true);
82416
82366
  setTextRange(block, node.body);
82417
82367
  if (emitSuperHelpers && hasSuperElementAccess) {
82418
- if (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
82368
+ if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
82419
82369
  addEmitHelper(block, advancedAsyncSuperHelper);
82420
- } else if (resolver.getNodeCheckFlags(node) & 2048 /* MethodWithSuperPropertyAccessInAsync */) {
82370
+ } else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
82421
82371
  addEmitHelper(block, asyncSuperHelper);
82422
82372
  }
82423
82373
  }
@@ -82477,7 +82427,7 @@ ${lanes.join("\n")}
82477
82427
  }
82478
82428
  function onEmitNode(hint, node, emitCallback) {
82479
82429
  if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {
82480
- const superContainerFlags = resolver.getNodeCheckFlags(node) & (2048 /* MethodWithSuperPropertyAccessInAsync */ | 4096 /* MethodWithSuperPropertyAssignmentInAsync */);
82430
+ const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */);
82481
82431
  if (superContainerFlags !== enclosingSuperContainerFlags) {
82482
82432
  const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;
82483
82433
  enclosingSuperContainerFlags = superContainerFlags;
@@ -82553,7 +82503,7 @@ ${lanes.join("\n")}
82553
82503
  return kind === 260 /* ClassDeclaration */ || kind === 173 /* Constructor */ || kind === 171 /* MethodDeclaration */ || kind === 174 /* GetAccessor */ || kind === 175 /* SetAccessor */;
82554
82504
  }
82555
82505
  function createSuperElementAccessInAsyncMethod(argumentExpression, location) {
82556
- if (enclosingSuperContainerFlags & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
82506
+ if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
82557
82507
  return setTextRange(
82558
82508
  factory2.createPropertyAccessExpression(
82559
82509
  factory2.createCallExpression(
@@ -82578,7 +82528,7 @@ ${lanes.join("\n")}
82578
82528
  }
82579
82529
  }
82580
82530
  function createSuperAccessVariableStatement(factory2, resolver, node, names) {
82581
- const hasBinding = (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) !== 0;
82531
+ const hasBinding = (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) !== 0;
82582
82532
  const accessors = [];
82583
82533
  names.forEach((_, key) => {
82584
82534
  const name = unescapeLeadingUnderscores(key);
@@ -83522,7 +83472,7 @@ ${lanes.join("\n")}
83522
83472
  !!(hierarchyFacts & 1 /* HasLexicalThis */)
83523
83473
  )
83524
83474
  );
83525
- const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* MethodWithSuperPropertyAssignmentInAsync */ | 2048 /* MethodWithSuperPropertyAccessInAsync */);
83475
+ const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */);
83526
83476
  if (emitSuperHelpers) {
83527
83477
  enableSubstitutionForAsyncMethodsWithSuper();
83528
83478
  const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties);
@@ -83533,9 +83483,9 @@ ${lanes.join("\n")}
83533
83483
  insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
83534
83484
  const block = factory2.updateBlock(node.body, statements);
83535
83485
  if (emitSuperHelpers && hasSuperElementAccess) {
83536
- if (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
83486
+ if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
83537
83487
  addEmitHelper(block, advancedAsyncSuperHelper);
83538
- } else if (resolver.getNodeCheckFlags(node) & 2048 /* MethodWithSuperPropertyAccessInAsync */) {
83488
+ } else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
83539
83489
  addEmitHelper(block, asyncSuperHelper);
83540
83490
  }
83541
83491
  }
@@ -83645,7 +83595,7 @@ ${lanes.join("\n")}
83645
83595
  }
83646
83596
  function onEmitNode(hint, node, emitCallback) {
83647
83597
  if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {
83648
- const superContainerFlags = resolver.getNodeCheckFlags(node) & (2048 /* MethodWithSuperPropertyAccessInAsync */ | 4096 /* MethodWithSuperPropertyAssignmentInAsync */);
83598
+ const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */);
83649
83599
  if (superContainerFlags !== enclosingSuperContainerFlags) {
83650
83600
  const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;
83651
83601
  enclosingSuperContainerFlags = superContainerFlags;
@@ -83721,7 +83671,7 @@ ${lanes.join("\n")}
83721
83671
  return kind === 260 /* ClassDeclaration */ || kind === 173 /* Constructor */ || kind === 171 /* MethodDeclaration */ || kind === 174 /* GetAccessor */ || kind === 175 /* SetAccessor */;
83722
83672
  }
83723
83673
  function createSuperElementAccessInAsyncMethod(argumentExpression, location) {
83724
- if (enclosingSuperContainerFlags & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
83674
+ if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
83725
83675
  return setTextRange(
83726
83676
  factory2.createPropertyAccessExpression(
83727
83677
  factory2.createCallExpression(
@@ -86120,8 +86070,8 @@ ${lanes.join("\n")}
86120
86070
  }
86121
86071
  function shouldEmitExplicitInitializerForLetDeclaration(node) {
86122
86072
  const flags = resolver.getNodeCheckFlags(node);
86123
- const isCapturedInFunction = flags & 262144 /* CapturedBlockScopedBinding */;
86124
- const isDeclaredInLoop = flags & 524288 /* BlockScopedBindingInLoop */;
86073
+ const isCapturedInFunction = flags & 16384 /* CapturedBlockScopedBinding */;
86074
+ const isDeclaredInLoop = flags & 32768 /* BlockScopedBindingInLoop */;
86125
86075
  const emittedAsTopLevel = (hierarchyFacts & 64 /* TopLevel */) !== 0 || isCapturedInFunction && isDeclaredInLoop && (hierarchyFacts & 512 /* IterationStatementBlock */) !== 0;
86126
86076
  const emitExplicitInitializer = !emittedAsTopLevel && (hierarchyFacts & 4096 /* ForInOrForOfStatement */) === 0 && (!resolver.isDeclarationWithCollidingName(node) || isDeclaredInLoop && !isCapturedInFunction && (hierarchyFacts & (2048 /* ForStatement */ | 4096 /* ForInOrForOfStatement */)) === 0);
86127
86077
  return emitExplicitInitializer;
@@ -86482,7 +86432,7 @@ ${lanes.join("\n")}
86482
86432
  return factory2.inlineExpressions(expressions);
86483
86433
  }
86484
86434
  function shouldConvertPartOfIterationStatement(node) {
86485
- return (resolver.getNodeCheckFlags(node) & 131072 /* ContainsCapturedBlockScopeBinding */) !== 0;
86435
+ return (resolver.getNodeCheckFlags(node) & 8192 /* ContainsCapturedBlockScopeBinding */) !== 0;
86486
86436
  }
86487
86437
  function shouldConvertInitializerOfForStatement(node) {
86488
86438
  return isForStatement(node) && !!node.initializer && shouldConvertPartOfIterationStatement(node.initializer);
@@ -86497,7 +86447,7 @@ ${lanes.join("\n")}
86497
86447
  return shouldConvertBodyOfIterationStatement(node) || shouldConvertInitializerOfForStatement(node);
86498
86448
  }
86499
86449
  function shouldConvertBodyOfIterationStatement(node) {
86500
- return (resolver.getNodeCheckFlags(node) & 65536 /* LoopWithCapturedBlockScopedBinding */) !== 0;
86450
+ return (resolver.getNodeCheckFlags(node) & 4096 /* LoopWithCapturedBlockScopedBinding */) !== 0;
86501
86451
  }
86502
86452
  function hoistVariableDeclarationDeclaredInConvertedLoop(state, node) {
86503
86453
  if (!state.hoistedLocalVariables) {
@@ -86958,10 +86908,10 @@ ${lanes.join("\n")}
86958
86908
  } else {
86959
86909
  loopParameters.push(factory2.createParameterDeclaration(void 0, void 0, name));
86960
86910
  const checkFlags = resolver.getNodeCheckFlags(decl);
86961
- if (checkFlags & 4194304 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) {
86911
+ if (checkFlags & 262144 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) {
86962
86912
  const outParamName = factory2.createUniqueName("out_" + idText(name));
86963
- let flags = 0;
86964
- if (checkFlags & 4194304 /* NeedsLoopOutParameter */) {
86913
+ let flags = 0 /* None */;
86914
+ if (checkFlags & 262144 /* NeedsLoopOutParameter */) {
86965
86915
  flags |= 1 /* Body */;
86966
86916
  }
86967
86917
  if (isForStatement(container)) {
@@ -94953,7 +94903,7 @@ ${lanes.join("\n")}
94953
94903
  const sourceMap = sourceMapGenerator.toString();
94954
94904
  writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap, false, sourceFiles);
94955
94905
  if (printer.bundleFileInfo)
94956
- printer.bundleFileInfo.mapHash = computeSignature(sourceMap, maybeBind(host, host.createHash));
94906
+ printer.bundleFileInfo.mapHash = computeSignature(sourceMap, host);
94957
94907
  }
94958
94908
  } else {
94959
94909
  writer.writeLine();
@@ -94961,7 +94911,7 @@ ${lanes.join("\n")}
94961
94911
  const text = writer.getText();
94962
94912
  writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform2.diagnostics });
94963
94913
  if (printer.bundleFileInfo)
94964
- printer.bundleFileInfo.hash = computeSignature(text, maybeBind(host, host.createHash));
94914
+ printer.bundleFileInfo.hash = computeSignature(text, host);
94965
94915
  writer.clear();
94966
94916
  }
94967
94917
  function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) {
@@ -95065,7 +95015,6 @@ ${lanes.join("\n")}
95065
95015
  return result;
95066
95016
  }
95067
95017
  function emitUsingBuildInfoWorker(config, host, getCommandLine, customTransformers) {
95068
- const createHash = maybeBind(host, host.createHash);
95069
95018
  const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle(config.options, false);
95070
95019
  const buildInfo = host.getBuildInfo(buildInfoPath, config.options.configFilePath);
95071
95020
  if (!buildInfo)
@@ -95075,22 +95024,22 @@ ${lanes.join("\n")}
95075
95024
  const jsFileText = host.readFile(Debug.checkDefined(jsFilePath));
95076
95025
  if (!jsFileText)
95077
95026
  return jsFilePath;
95078
- if (computeSignature(jsFileText, createHash) !== buildInfo.bundle.js.hash)
95027
+ if (computeSignature(jsFileText, host) !== buildInfo.bundle.js.hash)
95079
95028
  return jsFilePath;
95080
95029
  const sourceMapText = sourceMapFilePath && host.readFile(sourceMapFilePath);
95081
95030
  if (sourceMapFilePath && !sourceMapText || config.options.inlineSourceMap)
95082
95031
  return sourceMapFilePath || "inline sourcemap decoding";
95083
- if (sourceMapFilePath && computeSignature(sourceMapText, createHash) !== buildInfo.bundle.js.mapHash)
95032
+ if (sourceMapFilePath && computeSignature(sourceMapText, host) !== buildInfo.bundle.js.mapHash)
95084
95033
  return sourceMapFilePath;
95085
95034
  const declarationText = declarationFilePath && host.readFile(declarationFilePath);
95086
95035
  if (declarationFilePath && !declarationText)
95087
95036
  return declarationFilePath;
95088
- if (declarationFilePath && computeSignature(declarationText, createHash) !== buildInfo.bundle.dts.hash)
95037
+ if (declarationFilePath && computeSignature(declarationText, host) !== buildInfo.bundle.dts.hash)
95089
95038
  return declarationFilePath;
95090
95039
  const declarationMapText = declarationMapPath && host.readFile(declarationMapPath);
95091
95040
  if (declarationMapPath && !declarationMapText || config.options.inlineSourceMap)
95092
95041
  return declarationMapPath || "inline sourcemap decoding";
95093
- if (declarationMapPath && computeSignature(declarationMapText, createHash) !== buildInfo.bundle.dts.mapHash)
95042
+ if (declarationMapPath && computeSignature(declarationMapText, host) !== buildInfo.bundle.dts.mapHash)
95094
95043
  return declarationMapPath;
95095
95044
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
95096
95045
  const ownPrependInput = createInputFilesWithFileTexts(
@@ -95160,7 +95109,7 @@ ${lanes.join("\n")}
95160
95109
  getBuildInfo: (bundle) => {
95161
95110
  const program = buildInfo.program;
95162
95111
  if (program && changedDtsText !== void 0 && config.options.composite) {
95163
- program.outSignature = computeSignature(changedDtsText, createHash, changedDtsData);
95112
+ program.outSignature = computeSignature(changedDtsText, host, changedDtsData);
95164
95113
  }
95165
95114
  const { js, dts, sourceFiles } = buildInfo.bundle;
95166
95115
  bundle.js.sources = js.sources;
@@ -95173,7 +95122,7 @@ ${lanes.join("\n")}
95173
95122
  getSourceFileFromReference: returnUndefined,
95174
95123
  redirectTargetsMap: createMultiMap(),
95175
95124
  getFileIncludeReasons: notImplemented,
95176
- createHash
95125
+ createHash: maybeBind(host, host.createHash)
95177
95126
  };
95178
95127
  emitFiles(
95179
95128
  notImplementedResolver,
@@ -103368,7 +103317,7 @@ ${lanes.join("\n")}
103368
103317
  return oldState && !oldState.referencedMap === !newReferencedMap;
103369
103318
  }
103370
103319
  BuilderState2.canReuseOldState = canReuseOldState;
103371
- function create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
103320
+ function create(newProgram, oldState, disableUseFileVersionAsSignature) {
103372
103321
  var _a2, _b, _c;
103373
103322
  const fileInfos = /* @__PURE__ */ new Map();
103374
103323
  const options = newProgram.getCompilerOptions();
@@ -103376,6 +103325,7 @@ ${lanes.join("\n")}
103376
103325
  const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
103377
103326
  const exportedModulesMap = referencedMap ? createManyToManyPathMap() : void 0;
103378
103327
  const useOldState = canReuseOldState(referencedMap, oldState);
103328
+ const getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames());
103379
103329
  newProgram.getTypeChecker();
103380
103330
  for (const sourceFile of newProgram.getSourceFiles()) {
103381
103331
  const version2 = Debug.checkDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set");
@@ -103414,30 +103364,29 @@ ${lanes.join("\n")}
103414
103364
  state.allFileNames = void 0;
103415
103365
  }
103416
103366
  BuilderState2.releaseCache = releaseCache2;
103417
- function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, computeHash, getCanonicalFileName) {
103367
+ function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, host) {
103418
103368
  var _a2, _b;
103419
103369
  const result = getFilesAffectedByWithOldState(
103420
103370
  state,
103421
103371
  programOfThisState,
103422
103372
  path,
103423
103373
  cancellationToken,
103424
- computeHash,
103425
- getCanonicalFileName
103374
+ host
103426
103375
  );
103427
103376
  (_a2 = state.oldSignatures) == null ? void 0 : _a2.clear();
103428
103377
  (_b = state.oldExportedModulesMap) == null ? void 0 : _b.clear();
103429
103378
  return result;
103430
103379
  }
103431
103380
  BuilderState2.getFilesAffectedBy = getFilesAffectedBy;
103432
- function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, computeHash, getCanonicalFileName) {
103381
+ function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host) {
103433
103382
  const sourceFile = programOfThisState.getSourceFileByPath(path);
103434
103383
  if (!sourceFile) {
103435
103384
  return emptyArray;
103436
103385
  }
103437
- if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName)) {
103386
+ if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host)) {
103438
103387
  return [sourceFile];
103439
103388
  }
103440
- return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName);
103389
+ return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host);
103441
103390
  }
103442
103391
  BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
103443
103392
  function updateSignatureOfFile(state, signature, path) {
@@ -103445,7 +103394,7 @@ ${lanes.join("\n")}
103445
103394
  (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
103446
103395
  }
103447
103396
  BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
103448
- function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName, useFileVersionAsSignature = state.useFileVersionAsSignature) {
103397
+ function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) {
103449
103398
  var _a2;
103450
103399
  if ((_a2 = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a2.has(sourceFile.resolvedPath))
103451
103400
  return false;
@@ -103458,10 +103407,10 @@ ${lanes.join("\n")}
103458
103407
  (fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => {
103459
103408
  Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`);
103460
103409
  latestSignature = computeSignatureWithDiagnostics(
103410
+ programOfThisState,
103461
103411
  sourceFile,
103462
103412
  text,
103463
- computeHash,
103464
- getCanonicalFileName,
103413
+ host,
103465
103414
  data
103466
103415
  );
103467
103416
  if (latestSignature !== prevSignature) {
@@ -103600,7 +103549,7 @@ ${lanes.join("\n")}
103600
103549
  }
103601
103550
  return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
103602
103551
  }
103603
- function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, computeHash, getCanonicalFileName) {
103552
+ function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, host) {
103604
103553
  if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) {
103605
103554
  return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
103606
103555
  }
@@ -103616,7 +103565,7 @@ ${lanes.join("\n")}
103616
103565
  if (!seenFileNamesMap.has(currentPath)) {
103617
103566
  const currentSourceFile = programOfThisState.getSourceFileByPath(currentPath);
103618
103567
  seenFileNamesMap.set(currentPath, currentSourceFile);
103619
- if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, computeHash, getCanonicalFileName)) {
103568
+ if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, host)) {
103620
103569
  queue.push(...getReferencedByPaths(state, currentSourceFile.resolvedPath));
103621
103570
  }
103622
103571
  }
@@ -103660,9 +103609,9 @@ ${lanes.join("\n")}
103660
103609
  function hasSameKeys(map1, map2) {
103661
103610
  return map1 === map2 || map1 !== void 0 && map2 !== void 0 && map1.size === map2.size && !forEachKey(map1, (key) => !map2.has(key));
103662
103611
  }
103663
- function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
103612
+ function createBuilderProgramState(newProgram, oldState, disableUseFileVersionAsSignature) {
103664
103613
  var _a2, _b;
103665
- const state = BuilderState.create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature);
103614
+ const state = BuilderState.create(newProgram, oldState, disableUseFileVersionAsSignature);
103666
103615
  state.program = newProgram;
103667
103616
  const compilerOptions = newProgram.getCompilerOptions();
103668
103617
  state.compilerOptions = compilerOptions;
@@ -103706,7 +103655,7 @@ ${lanes.join("\n")}
103706
103655
  return;
103707
103656
  const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);
103708
103657
  if (diagnostics) {
103709
- state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) : diagnostics);
103658
+ state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram) : diagnostics);
103710
103659
  if (!state.semanticDiagnosticsFromOldState) {
103711
103660
  state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
103712
103661
  }
@@ -103766,10 +103715,11 @@ ${lanes.join("\n")}
103766
103715
  function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) {
103767
103716
  return !!options.declarationMap === !!oldOptions.declarationMap ? oldEmitSignature : isString(oldEmitSignature) ? [oldEmitSignature] : oldEmitSignature[0];
103768
103717
  }
103769
- function convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) {
103718
+ function convertToDiagnostics(diagnostics, newProgram) {
103770
103719
  if (!diagnostics.length)
103771
103720
  return emptyArray;
103772
- const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
103721
+ let buildInfoDirectory;
103722
+ let getCanonicalFileName;
103773
103723
  return diagnostics.map((diagnostic) => {
103774
103724
  const result = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3);
103775
103725
  result.reportsUnnecessary = diagnostic.reportsUnnecessary;
@@ -103781,7 +103731,8 @@ ${lanes.join("\n")}
103781
103731
  return result;
103782
103732
  });
103783
103733
  function toPath3(path) {
103784
- return toPath(path, buildInfoDirectory, getCanonicalFileName);
103734
+ buildInfoDirectory != null ? buildInfoDirectory : buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
103735
+ return toPath(path, buildInfoDirectory, getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames()));
103785
103736
  }
103786
103737
  }
103787
103738
  function convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3) {
@@ -103823,7 +103774,7 @@ ${lanes.join("\n")}
103823
103774
  function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) {
103824
103775
  Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath));
103825
103776
  }
103826
- function getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host) {
103777
+ function getNextAffectedFile(state, cancellationToken, host) {
103827
103778
  var _a2, _b;
103828
103779
  while (true) {
103829
103780
  const { affectedFiles } = state;
@@ -103839,8 +103790,6 @@ ${lanes.join("\n")}
103839
103790
  state,
103840
103791
  affectedFile,
103841
103792
  cancellationToken,
103842
- computeHash,
103843
- getCanonicalFileName,
103844
103793
  host
103845
103794
  );
103846
103795
  return affectedFile;
@@ -103868,8 +103817,7 @@ ${lanes.join("\n")}
103868
103817
  program,
103869
103818
  nextKey.value,
103870
103819
  cancellationToken,
103871
- computeHash,
103872
- getCanonicalFileName
103820
+ host
103873
103821
  );
103874
103822
  state.currentChangedFilePath = nextKey.value;
103875
103823
  state.affectedFilesIndex = 0;
@@ -103921,7 +103869,7 @@ ${lanes.join("\n")}
103921
103869
  );
103922
103870
  }
103923
103871
  }
103924
- function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, computeHash, getCanonicalFileName, host) {
103872
+ function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) {
103925
103873
  removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath);
103926
103874
  if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) {
103927
103875
  removeDiagnosticsOfLibraryFiles(state);
@@ -103930,8 +103878,7 @@ ${lanes.join("\n")}
103930
103878
  Debug.checkDefined(state.program),
103931
103879
  affectedFile,
103932
103880
  cancellationToken,
103933
- computeHash,
103934
- getCanonicalFileName
103881
+ host
103935
103882
  );
103936
103883
  return;
103937
103884
  }
@@ -103941,12 +103888,10 @@ ${lanes.join("\n")}
103941
103888
  state,
103942
103889
  affectedFile,
103943
103890
  cancellationToken,
103944
- computeHash,
103945
- getCanonicalFileName,
103946
103891
  host
103947
103892
  );
103948
103893
  }
103949
- function handleDtsMayChangeOf(state, path, cancellationToken, computeHash, getCanonicalFileName, host) {
103894
+ function handleDtsMayChangeOf(state, path, cancellationToken, host) {
103950
103895
  removeSemanticDiagnosticsOf(state, path);
103951
103896
  if (!state.changedFilesSet.has(path)) {
103952
103897
  const program = Debug.checkDefined(state.program);
@@ -103957,8 +103902,7 @@ ${lanes.join("\n")}
103957
103902
  program,
103958
103903
  sourceFile,
103959
103904
  cancellationToken,
103960
- computeHash,
103961
- getCanonicalFileName,
103905
+ host,
103962
103906
  !host.disableUseFileVersionAsSignature
103963
103907
  );
103964
103908
  if (getEmitDeclarations(state.compilerOptions)) {
@@ -103980,7 +103924,7 @@ ${lanes.join("\n")}
103980
103924
  const newSignature = Debug.checkDefined(state.fileInfos.get(path)).signature;
103981
103925
  return newSignature !== oldSignature;
103982
103926
  }
103983
- function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host) {
103927
+ function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host) {
103984
103928
  var _a2;
103985
103929
  if (!((_a2 = state.fileInfos.get(filePath)) == null ? void 0 : _a2.affectsGlobalScope))
103986
103930
  return false;
@@ -103988,14 +103932,12 @@ ${lanes.join("\n")}
103988
103932
  state,
103989
103933
  file.resolvedPath,
103990
103934
  cancellationToken,
103991
- computeHash,
103992
- getCanonicalFileName,
103993
103935
  host
103994
103936
  ));
103995
103937
  removeDiagnosticsOfLibraryFiles(state);
103996
103938
  return true;
103997
103939
  }
103998
- function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, computeHash, getCanonicalFileName, host) {
103940
+ function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host) {
103999
103941
  var _a2;
104000
103942
  if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.resolvedPath))
104001
103943
  return;
@@ -104009,9 +103951,9 @@ ${lanes.join("\n")}
104009
103951
  const currentPath = queue.pop();
104010
103952
  if (!seenFileNamesMap.has(currentPath)) {
104011
103953
  seenFileNamesMap.set(currentPath, true);
104012
- if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, computeHash, getCanonicalFileName, host))
103954
+ if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, host))
104013
103955
  return;
104014
- handleDtsMayChangeOf(state, currentPath, cancellationToken, computeHash, getCanonicalFileName, host);
103956
+ handleDtsMayChangeOf(state, currentPath, cancellationToken, host);
104015
103957
  if (isChangedSignature(state, currentPath)) {
104016
103958
  const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath);
104017
103959
  queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath));
@@ -104021,7 +103963,7 @@ ${lanes.join("\n")}
104021
103963
  }
104022
103964
  const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
104023
103965
  (_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
104024
- if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, computeHash, getCanonicalFileName, host))
103966
+ if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, host))
104025
103967
  return true;
104026
103968
  const references = state.referencedMap.getKeys(exportedFromPath);
104027
103969
  return references && forEachKey(
@@ -104031,28 +103973,24 @@ ${lanes.join("\n")}
104031
103973
  filePath,
104032
103974
  seenFileAndExportsOfFile,
104033
103975
  cancellationToken,
104034
- computeHash,
104035
- getCanonicalFileName,
104036
103976
  host
104037
103977
  )
104038
103978
  );
104039
103979
  });
104040
103980
  }
104041
- function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, computeHash, getCanonicalFileName, host) {
103981
+ function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, host) {
104042
103982
  var _a2, _b;
104043
103983
  if (!tryAddToSet(seenFileAndExportsOfFile, filePath))
104044
103984
  return void 0;
104045
- if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host))
103985
+ if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host))
104046
103986
  return true;
104047
- handleDtsMayChangeOf(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host);
103987
+ handleDtsMayChangeOf(state, filePath, cancellationToken, host);
104048
103988
  (_a2 = state.exportedModulesMap.getKeys(filePath)) == null ? void 0 : _a2.forEach(
104049
103989
  (exportedFromPath) => handleDtsMayChangeOfFileAndExportsOfFile(
104050
103990
  state,
104051
103991
  exportedFromPath,
104052
103992
  seenFileAndExportsOfFile,
104053
103993
  cancellationToken,
104054
- computeHash,
104055
- getCanonicalFileName,
104056
103994
  host
104057
103995
  )
104058
103996
  );
@@ -104061,8 +103999,6 @@ ${lanes.join("\n")}
104061
103999
  state,
104062
104000
  referencingFilePath,
104063
104001
  cancellationToken,
104064
- computeHash,
104065
- getCanonicalFileName,
104066
104002
  host
104067
104003
  )
104068
104004
  );
@@ -104091,9 +104027,10 @@ ${lanes.join("\n")}
104091
104027
  function isProgramBundleEmitBuildInfo(info) {
104092
104028
  return !!outFile(info.options || {});
104093
104029
  }
104094
- function getBuildInfo2(state, getCanonicalFileName, bundle) {
104030
+ function getBuildInfo2(state, bundle) {
104095
104031
  var _a2, _b, _c;
104096
104032
  const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory();
104033
+ const getCanonicalFileName = createGetCanonicalFileName(state.program.useCaseSensitiveFileNames());
104097
104034
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
104098
104035
  const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
104099
104036
  const fileNames = [];
@@ -104312,8 +104249,9 @@ ${lanes.join("\n")}
104312
104249
  function getTextHandlingSourceMapForSignature(text, data) {
104313
104250
  return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text;
104314
104251
  }
104315
- function computeSignatureWithDiagnostics(sourceFile, text, computeHash, getCanonicalFileName, data) {
104316
- var _a2;
104252
+ function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) {
104253
+ var _a2, _b;
104254
+ let getCanonicalFileName;
104317
104255
  text = getTextHandlingSourceMapForSignature(text, data);
104318
104256
  let sourceFileDirectory;
104319
104257
  if ((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length) {
@@ -104321,7 +104259,7 @@ ${lanes.join("\n")}
104321
104259
  (diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`
104322
104260
  ).join("\n");
104323
104261
  }
104324
- return (computeHash != null ? computeHash : generateDjb2Hash)(text);
104262
+ return ((_b = host.createHash) != null ? _b : generateDjb2Hash)(text);
104325
104263
  function flattenDiagnosticMessageText2(diagnostic) {
104326
104264
  return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? "" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText2).join("\n");
104327
104265
  }
@@ -104330,11 +104268,16 @@ ${lanes.join("\n")}
104330
104268
  return `(${diagnostic.start},${diagnostic.length})`;
104331
104269
  if (sourceFileDirectory === void 0)
104332
104270
  sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath);
104333
- return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceFileDirectory, diagnostic.file.resolvedPath, getCanonicalFileName))}(${diagnostic.start},${diagnostic.length})`;
104271
+ return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(
104272
+ sourceFileDirectory,
104273
+ diagnostic.file.resolvedPath,
104274
+ getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(program.useCaseSensitiveFileNames())
104275
+ ))}(${diagnostic.start},${diagnostic.length})`;
104334
104276
  }
104335
104277
  }
104336
- function computeSignature(text, computeHash, data) {
104337
- return (computeHash != null ? computeHash : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
104278
+ function computeSignature(text, host, data) {
104279
+ var _a2;
104280
+ return ((_a2 = host.createHash) != null ? _a2 : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
104338
104281
  }
104339
104282
  function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) {
104340
104283
  let oldState = oldProgram && oldProgram.getState();
@@ -104343,10 +104286,8 @@ ${lanes.join("\n")}
104343
104286
  oldState = void 0;
104344
104287
  return oldProgram;
104345
104288
  }
104346
- const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
104347
- const computeHash = maybeBind(host, host.createHash);
104348
- const state = createBuilderProgramState(newProgram, getCanonicalFileName, oldState, host.disableUseFileVersionAsSignature);
104349
- newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, getCanonicalFileName, bundle);
104289
+ const state = createBuilderProgramState(newProgram, oldState, host.disableUseFileVersionAsSignature);
104290
+ newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, bundle);
104350
104291
  newProgram = void 0;
104351
104292
  oldProgram = void 0;
104352
104293
  oldState = void 0;
@@ -104380,7 +104321,7 @@ ${lanes.join("\n")}
104380
104321
  }
104381
104322
  function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
104382
104323
  var _a2, _b, _c, _d, _e;
104383
- let affected = getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host);
104324
+ let affected = getNextAffectedFile(state, cancellationToken, host);
104384
104325
  const programEmitKind = getBuilderFileEmit(state.compilerOptions);
104385
104326
  let emitKind = emitOnlyDtsFiles ? programEmitKind & 24 /* AllDts */ : programEmitKind;
104386
104327
  if (!affected) {
@@ -104454,10 +104395,10 @@ ${lanes.join("\n")}
104454
104395
  const info = state.fileInfos.get(file.resolvedPath);
104455
104396
  if (info.signature === file.version) {
104456
104397
  const signature = computeSignatureWithDiagnostics(
104398
+ state.program,
104457
104399
  file,
104458
104400
  text,
104459
- computeHash,
104460
- getCanonicalFileName,
104401
+ host,
104461
104402
  data
104462
104403
  );
104463
104404
  if (!((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length))
@@ -104501,7 +104442,7 @@ ${lanes.join("\n")}
104501
104442
  state.program.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
104502
104443
  function handleNewSignature(oldSignatureFormat, newSignature) {
104503
104444
  const oldSignature = !oldSignatureFormat || isString(oldSignatureFormat) ? oldSignatureFormat : oldSignatureFormat[0];
104504
- newSignature != null ? newSignature : newSignature = computeSignature(text, computeHash, data);
104445
+ newSignature != null ? newSignature : newSignature = computeSignature(text, host, data);
104505
104446
  if (newSignature === oldSignature) {
104506
104447
  if (oldSignatureFormat === oldSignature)
104507
104448
  return void 0;
@@ -104557,7 +104498,7 @@ ${lanes.join("\n")}
104557
104498
  }
104558
104499
  function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) {
104559
104500
  while (true) {
104560
- const affected = getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host);
104501
+ const affected = getNextAffectedFile(state, cancellationToken, host);
104561
104502
  let result;
104562
104503
  if (!affected)
104563
104504
  return void 0;
@@ -105080,12 +105021,12 @@ ${lanes.join("\n")}
105080
105021
  const resolved = getResolutionWithResolvedFileName(resolution);
105081
105022
  trace(
105082
105023
  host,
105083
- loader === resolveModuleName2 ? (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packagetId ? Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4 : Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved : (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packagetId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,
105024
+ loader === resolveModuleName2 ? (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4 : Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved : (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,
105084
105025
  name,
105085
105026
  containingFile,
105086
105027
  getDirectoryPath(containingFile),
105087
105028
  resolved == null ? void 0 : resolved.resolvedFileName,
105088
- (resolved == null ? void 0 : resolved.packagetId) && packageIdToString(resolved.packagetId)
105029
+ (resolved == null ? void 0 : resolved.packageId) && packageIdToString(resolved.packageId)
105089
105030
  );
105090
105031
  }
105091
105032
  } else {
@@ -105110,11 +105051,11 @@ ${lanes.join("\n")}
105110
105051
  const resolved = getResolutionWithResolvedFileName(resolution);
105111
105052
  trace(
105112
105053
  host,
105113
- loader === resolveModuleName2 ? (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packagetId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved : (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packagetId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,
105054
+ loader === resolveModuleName2 ? (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved : (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,
105114
105055
  name,
105115
105056
  containingFile,
105116
105057
  resolved == null ? void 0 : resolved.resolvedFileName,
105117
- (resolved == null ? void 0 : resolved.packagetId) && packageIdToString(resolved.packagetId)
105058
+ (resolved == null ? void 0 : resolved.packageId) && packageIdToString(resolved.packageId)
105118
105059
  );
105119
105060
  }
105120
105061
  }
@@ -116412,6 +116353,7 @@ ${lanes.join("\n")}
116412
116353
  trace: maybeBind(host, host.trace),
116413
116354
  resolveModuleNames: maybeBind(host, host.resolveModuleNames),
116414
116355
  getModuleResolutionCache: maybeBind(host, host.getModuleResolutionCache),
116356
+ createHash: maybeBind(host, host.createHash),
116415
116357
  resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives),
116416
116358
  useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect),
116417
116359
  getParsedCommandLine
@@ -129604,12 +129546,7 @@ ${lanes.join("\n")}
129604
129546
  const checker = program.getTypeChecker();
129605
129547
  const switchType = checker.getTypeAtLocation(caseBlock.parent.expression);
129606
129548
  if (switchType && switchType.isUnion() && every(switchType.types, (type) => type.isLiteral())) {
129607
- const tracker = newCaseClauseTracker(checker);
129608
- for (const clause of clauses) {
129609
- if (!isDefaultClause(clause)) {
129610
- tracker.addClause(clause);
129611
- }
129612
- }
129549
+ const tracker = newCaseClauseTracker(checker, clauses);
129613
129550
  const target = getEmitScriptTarget(options);
129614
129551
  const quotePreference = getQuotePreference(sourceFile, preferences);
129615
129552
  const importAdder = ts_codefix_exports.createImportAdder(sourceFile, program, preferences, host);
@@ -129685,43 +129622,44 @@ ${lanes.join("\n")}
129685
129622
  }
129686
129623
  return void 0;
129687
129624
  }
129688
- function newCaseClauseTracker(checker) {
129625
+ function newCaseClauseTracker(checker, clauses) {
129689
129626
  const existingStrings = /* @__PURE__ */ new Set();
129690
129627
  const existingNumbers = /* @__PURE__ */ new Set();
129691
129628
  const existingBigInts = /* @__PURE__ */ new Set();
129692
- return {
129693
- addValue,
129694
- addClause,
129695
- hasValue
129696
- };
129697
- function addClause(clause) {
129698
- if (isLiteralExpression(clause.expression)) {
129699
- const expression = clause.expression;
129700
- switch (expression.kind) {
129701
- case 14 /* NoSubstitutionTemplateLiteral */:
129702
- case 10 /* StringLiteral */:
129703
- existingStrings.add(expression.text);
129704
- break;
129705
- case 8 /* NumericLiteral */:
129706
- existingNumbers.add(parseInt(expression.text));
129707
- break;
129708
- case 9 /* BigIntLiteral */:
129709
- const parsedBigInt = parseBigInt(endsWith(expression.text, "n") ? expression.text.slice(0, -1) : expression.text);
129710
- if (parsedBigInt) {
129711
- existingBigInts.add(pseudoBigIntToString(parsedBigInt));
129629
+ for (const clause of clauses) {
129630
+ if (!isDefaultClause(clause)) {
129631
+ if (isLiteralExpression(clause.expression)) {
129632
+ const expression = clause.expression;
129633
+ switch (expression.kind) {
129634
+ case 14 /* NoSubstitutionTemplateLiteral */:
129635
+ case 10 /* StringLiteral */:
129636
+ existingStrings.add(expression.text);
129637
+ break;
129638
+ case 8 /* NumericLiteral */:
129639
+ existingNumbers.add(parseInt(expression.text));
129640
+ break;
129641
+ case 9 /* BigIntLiteral */:
129642
+ const parsedBigInt = parseBigInt(endsWith(expression.text, "n") ? expression.text.slice(0, -1) : expression.text);
129643
+ if (parsedBigInt) {
129644
+ existingBigInts.add(pseudoBigIntToString(parsedBigInt));
129645
+ }
129646
+ break;
129647
+ }
129648
+ } else {
129649
+ const symbol = checker.getSymbolAtLocation(clause.expression);
129650
+ if (symbol && symbol.valueDeclaration && isEnumMember(symbol.valueDeclaration)) {
129651
+ const enumValue = checker.getConstantValue(symbol.valueDeclaration);
129652
+ if (enumValue !== void 0) {
129653
+ addValue(enumValue);
129712
129654
  }
129713
- break;
129714
- }
129715
- } else {
129716
- const symbol = checker.getSymbolAtLocation(clause.expression);
129717
- if (symbol && symbol.valueDeclaration && isEnumMember(symbol.valueDeclaration)) {
129718
- const enumValue = checker.getConstantValue(symbol.valueDeclaration);
129719
- if (enumValue !== void 0) {
129720
- addValue(enumValue);
129721
129655
  }
129722
129656
  }
129723
129657
  }
129724
129658
  }
129659
+ return {
129660
+ addValue,
129661
+ hasValue
129662
+ };
129725
129663
  function addValue(value) {
129726
129664
  switch (typeof value) {
129727
129665
  case "string":
@@ -144897,6 +144835,7 @@ ${options.prefix}` : "\n" : options.prefix
144897
144835
  init_ts4();
144898
144836
  anyContext = emptyArray;
144899
144837
  RuleAction = /* @__PURE__ */ ((RuleAction2) => {
144838
+ RuleAction2[RuleAction2["None"] = 0] = "None";
144900
144839
  RuleAction2[RuleAction2["StopProcessingSpaceActions"] = 1] = "StopProcessingSpaceActions";
144901
144840
  RuleAction2[RuleAction2["StopProcessingTokenActions"] = 2] = "StopProcessingTokenActions";
144902
144841
  RuleAction2[RuleAction2["InsertSpace"] = 4] = "InsertSpace";
@@ -145552,7 +145491,7 @@ ${options.prefix}` : "\n" : options.prefix
145552
145491
  return rulesMapCache;
145553
145492
  }
145554
145493
  function getRuleActionExclusion(ruleAction) {
145555
- let mask2 = 0;
145494
+ let mask2 = 0 /* None */;
145556
145495
  if (ruleAction & 1 /* StopProcessingSpaceActions */) {
145557
145496
  mask2 |= 28 /* ModifySpaceAction */;
145558
145497
  }
@@ -147141,6 +147080,63 @@ ${options.prefix}` : "\n" : options.prefix
147141
147080
  }
147142
147081
  });
147143
147082
 
147083
+ // src/deprecatedCompat/deprecate.ts
147084
+ function getTypeScriptVersion() {
147085
+ return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
147086
+ }
147087
+ function formatDeprecationMessage(name, error, errorAfter, since, message) {
147088
+ let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
147089
+ deprecationMessage += `'${name}' `;
147090
+ deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
147091
+ deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
147092
+ deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
147093
+ return deprecationMessage;
147094
+ }
147095
+ function createErrorDeprecation(name, errorAfter, since, message) {
147096
+ const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
147097
+ return () => {
147098
+ throw new TypeError(deprecationMessage);
147099
+ };
147100
+ }
147101
+ function createWarningDeprecation(name, errorAfter, since, message) {
147102
+ let hasWrittenDeprecation = false;
147103
+ return () => {
147104
+ if (enableDeprecationWarnings && !hasWrittenDeprecation) {
147105
+ Debug.log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
147106
+ hasWrittenDeprecation = true;
147107
+ }
147108
+ };
147109
+ }
147110
+ function createDeprecation(name, options = {}) {
147111
+ var _a2, _b;
147112
+ const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
147113
+ const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
147114
+ const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
147115
+ const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
147116
+ const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
147117
+ const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
147118
+ return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
147119
+ }
147120
+ function wrapFunction(deprecation, func) {
147121
+ return function() {
147122
+ deprecation();
147123
+ return func.apply(this, arguments);
147124
+ };
147125
+ }
147126
+ function deprecate(func, options) {
147127
+ var _a2;
147128
+ const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : Debug.getFunctionName(func), options);
147129
+ return wrapFunction(deprecation, func);
147130
+ }
147131
+ var enableDeprecationWarnings, typeScriptVersion2;
147132
+ var init_deprecate = __esm({
147133
+ "src/deprecatedCompat/deprecate.ts"() {
147134
+ "use strict";
147135
+ init_ts5();
147136
+ enableDeprecationWarnings = true;
147137
+ }
147138
+ });
147139
+
147144
147140
  // src/deprecatedCompat/deprecations.ts
147145
147141
  function createOverload(name, overloads, binder2, deprecations) {
147146
147142
  Object.defineProperty(call, "name", { ...Object.getOwnPropertyDescriptor(call, "name"), value: name });
@@ -147148,7 +147144,7 @@ ${options.prefix}` : "\n" : options.prefix
147148
147144
  for (const key of Object.keys(deprecations)) {
147149
147145
  const index = +key;
147150
147146
  if (!isNaN(index) && hasProperty(overloads, `${index}`)) {
147151
- overloads[index] = Debug.deprecate(overloads[index], { ...deprecations[index], name });
147147
+ overloads[index] = deprecate(overloads[index], { ...deprecations[index], name });
147152
147148
  }
147153
147149
  }
147154
147150
  }
@@ -147189,6 +147185,7 @@ ${options.prefix}` : "\n" : options.prefix
147189
147185
  "src/deprecatedCompat/deprecations.ts"() {
147190
147186
  "use strict";
147191
147187
  init_ts5();
147188
+ init_deprecate();
147192
147189
  }
147193
147190
  });
147194
147191
 
@@ -147198,337 +147195,338 @@ ${options.prefix}` : "\n" : options.prefix
147198
147195
  "src/deprecatedCompat/4.0/nodeFactoryTopLevelExports.ts"() {
147199
147196
  "use strict";
147200
147197
  init_ts5();
147198
+ init_deprecate();
147201
147199
  factoryDeprecation = { since: "4.0", warnAfter: "4.1", message: "Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead." };
147202
- createNodeArray = Debug.deprecate(factory.createNodeArray, factoryDeprecation);
147203
- createNumericLiteral = Debug.deprecate(factory.createNumericLiteral, factoryDeprecation);
147204
- createBigIntLiteral = Debug.deprecate(factory.createBigIntLiteral, factoryDeprecation);
147205
- createStringLiteral = Debug.deprecate(factory.createStringLiteral, factoryDeprecation);
147206
- createStringLiteralFromNode = Debug.deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
147207
- createRegularExpressionLiteral = Debug.deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
147208
- createLoopVariable = Debug.deprecate(factory.createLoopVariable, factoryDeprecation);
147209
- createUniqueName = Debug.deprecate(factory.createUniqueName, factoryDeprecation);
147210
- createPrivateIdentifier = Debug.deprecate(factory.createPrivateIdentifier, factoryDeprecation);
147211
- createSuper = Debug.deprecate(factory.createSuper, factoryDeprecation);
147212
- createThis = Debug.deprecate(factory.createThis, factoryDeprecation);
147213
- createNull = Debug.deprecate(factory.createNull, factoryDeprecation);
147214
- createTrue = Debug.deprecate(factory.createTrue, factoryDeprecation);
147215
- createFalse = Debug.deprecate(factory.createFalse, factoryDeprecation);
147216
- createModifier = Debug.deprecate(factory.createModifier, factoryDeprecation);
147217
- createModifiersFromModifierFlags = Debug.deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
147218
- createQualifiedName = Debug.deprecate(factory.createQualifiedName, factoryDeprecation);
147219
- updateQualifiedName = Debug.deprecate(factory.updateQualifiedName, factoryDeprecation);
147220
- createComputedPropertyName = Debug.deprecate(factory.createComputedPropertyName, factoryDeprecation);
147221
- updateComputedPropertyName = Debug.deprecate(factory.updateComputedPropertyName, factoryDeprecation);
147222
- createTypeParameterDeclaration = Debug.deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
147223
- updateTypeParameterDeclaration = Debug.deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
147224
- createParameter = Debug.deprecate(factory.createParameterDeclaration, factoryDeprecation);
147225
- updateParameter = Debug.deprecate(factory.updateParameterDeclaration, factoryDeprecation);
147226
- createDecorator = Debug.deprecate(factory.createDecorator, factoryDeprecation);
147227
- updateDecorator = Debug.deprecate(factory.updateDecorator, factoryDeprecation);
147228
- createProperty = Debug.deprecate(factory.createPropertyDeclaration, factoryDeprecation);
147229
- updateProperty = Debug.deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
147230
- createMethod = Debug.deprecate(factory.createMethodDeclaration, factoryDeprecation);
147231
- updateMethod = Debug.deprecate(factory.updateMethodDeclaration, factoryDeprecation);
147232
- createConstructor = Debug.deprecate(factory.createConstructorDeclaration, factoryDeprecation);
147233
- updateConstructor = Debug.deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
147234
- createGetAccessor = Debug.deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
147235
- updateGetAccessor = Debug.deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
147236
- createSetAccessor = Debug.deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
147237
- updateSetAccessor = Debug.deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
147238
- createCallSignature = Debug.deprecate(factory.createCallSignature, factoryDeprecation);
147239
- updateCallSignature = Debug.deprecate(factory.updateCallSignature, factoryDeprecation);
147240
- createConstructSignature = Debug.deprecate(factory.createConstructSignature, factoryDeprecation);
147241
- updateConstructSignature = Debug.deprecate(factory.updateConstructSignature, factoryDeprecation);
147242
- updateIndexSignature = Debug.deprecate(factory.updateIndexSignature, factoryDeprecation);
147243
- createKeywordTypeNode = Debug.deprecate(factory.createKeywordTypeNode, factoryDeprecation);
147244
- createTypePredicateNodeWithModifier = Debug.deprecate(factory.createTypePredicateNode, factoryDeprecation);
147245
- updateTypePredicateNodeWithModifier = Debug.deprecate(factory.updateTypePredicateNode, factoryDeprecation);
147246
- createTypeReferenceNode = Debug.deprecate(factory.createTypeReferenceNode, factoryDeprecation);
147247
- updateTypeReferenceNode = Debug.deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
147248
- createFunctionTypeNode = Debug.deprecate(factory.createFunctionTypeNode, factoryDeprecation);
147249
- updateFunctionTypeNode = Debug.deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
147250
- createConstructorTypeNode = Debug.deprecate((typeParameters, parameters, type) => {
147200
+ createNodeArray = deprecate(factory.createNodeArray, factoryDeprecation);
147201
+ createNumericLiteral = deprecate(factory.createNumericLiteral, factoryDeprecation);
147202
+ createBigIntLiteral = deprecate(factory.createBigIntLiteral, factoryDeprecation);
147203
+ createStringLiteral = deprecate(factory.createStringLiteral, factoryDeprecation);
147204
+ createStringLiteralFromNode = deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
147205
+ createRegularExpressionLiteral = deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
147206
+ createLoopVariable = deprecate(factory.createLoopVariable, factoryDeprecation);
147207
+ createUniqueName = deprecate(factory.createUniqueName, factoryDeprecation);
147208
+ createPrivateIdentifier = deprecate(factory.createPrivateIdentifier, factoryDeprecation);
147209
+ createSuper = deprecate(factory.createSuper, factoryDeprecation);
147210
+ createThis = deprecate(factory.createThis, factoryDeprecation);
147211
+ createNull = deprecate(factory.createNull, factoryDeprecation);
147212
+ createTrue = deprecate(factory.createTrue, factoryDeprecation);
147213
+ createFalse = deprecate(factory.createFalse, factoryDeprecation);
147214
+ createModifier = deprecate(factory.createModifier, factoryDeprecation);
147215
+ createModifiersFromModifierFlags = deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
147216
+ createQualifiedName = deprecate(factory.createQualifiedName, factoryDeprecation);
147217
+ updateQualifiedName = deprecate(factory.updateQualifiedName, factoryDeprecation);
147218
+ createComputedPropertyName = deprecate(factory.createComputedPropertyName, factoryDeprecation);
147219
+ updateComputedPropertyName = deprecate(factory.updateComputedPropertyName, factoryDeprecation);
147220
+ createTypeParameterDeclaration = deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
147221
+ updateTypeParameterDeclaration = deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
147222
+ createParameter = deprecate(factory.createParameterDeclaration, factoryDeprecation);
147223
+ updateParameter = deprecate(factory.updateParameterDeclaration, factoryDeprecation);
147224
+ createDecorator = deprecate(factory.createDecorator, factoryDeprecation);
147225
+ updateDecorator = deprecate(factory.updateDecorator, factoryDeprecation);
147226
+ createProperty = deprecate(factory.createPropertyDeclaration, factoryDeprecation);
147227
+ updateProperty = deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
147228
+ createMethod = deprecate(factory.createMethodDeclaration, factoryDeprecation);
147229
+ updateMethod = deprecate(factory.updateMethodDeclaration, factoryDeprecation);
147230
+ createConstructor = deprecate(factory.createConstructorDeclaration, factoryDeprecation);
147231
+ updateConstructor = deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
147232
+ createGetAccessor = deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
147233
+ updateGetAccessor = deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
147234
+ createSetAccessor = deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
147235
+ updateSetAccessor = deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
147236
+ createCallSignature = deprecate(factory.createCallSignature, factoryDeprecation);
147237
+ updateCallSignature = deprecate(factory.updateCallSignature, factoryDeprecation);
147238
+ createConstructSignature = deprecate(factory.createConstructSignature, factoryDeprecation);
147239
+ updateConstructSignature = deprecate(factory.updateConstructSignature, factoryDeprecation);
147240
+ updateIndexSignature = deprecate(factory.updateIndexSignature, factoryDeprecation);
147241
+ createKeywordTypeNode = deprecate(factory.createKeywordTypeNode, factoryDeprecation);
147242
+ createTypePredicateNodeWithModifier = deprecate(factory.createTypePredicateNode, factoryDeprecation);
147243
+ updateTypePredicateNodeWithModifier = deprecate(factory.updateTypePredicateNode, factoryDeprecation);
147244
+ createTypeReferenceNode = deprecate(factory.createTypeReferenceNode, factoryDeprecation);
147245
+ updateTypeReferenceNode = deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
147246
+ createFunctionTypeNode = deprecate(factory.createFunctionTypeNode, factoryDeprecation);
147247
+ updateFunctionTypeNode = deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
147248
+ createConstructorTypeNode = deprecate((typeParameters, parameters, type) => {
147251
147249
  return factory.createConstructorTypeNode(void 0, typeParameters, parameters, type);
147252
147250
  }, factoryDeprecation);
147253
- updateConstructorTypeNode = Debug.deprecate((node, typeParameters, parameters, type) => {
147251
+ updateConstructorTypeNode = deprecate((node, typeParameters, parameters, type) => {
147254
147252
  return factory.updateConstructorTypeNode(node, node.modifiers, typeParameters, parameters, type);
147255
147253
  }, factoryDeprecation);
147256
- createTypeQueryNode = Debug.deprecate(factory.createTypeQueryNode, factoryDeprecation);
147257
- updateTypeQueryNode = Debug.deprecate(factory.updateTypeQueryNode, factoryDeprecation);
147258
- createTypeLiteralNode = Debug.deprecate(factory.createTypeLiteralNode, factoryDeprecation);
147259
- updateTypeLiteralNode = Debug.deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
147260
- createArrayTypeNode = Debug.deprecate(factory.createArrayTypeNode, factoryDeprecation);
147261
- updateArrayTypeNode = Debug.deprecate(factory.updateArrayTypeNode, factoryDeprecation);
147262
- createTupleTypeNode = Debug.deprecate(factory.createTupleTypeNode, factoryDeprecation);
147263
- updateTupleTypeNode = Debug.deprecate(factory.updateTupleTypeNode, factoryDeprecation);
147264
- createOptionalTypeNode = Debug.deprecate(factory.createOptionalTypeNode, factoryDeprecation);
147265
- updateOptionalTypeNode = Debug.deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
147266
- createRestTypeNode = Debug.deprecate(factory.createRestTypeNode, factoryDeprecation);
147267
- updateRestTypeNode = Debug.deprecate(factory.updateRestTypeNode, factoryDeprecation);
147268
- createUnionTypeNode = Debug.deprecate(factory.createUnionTypeNode, factoryDeprecation);
147269
- updateUnionTypeNode = Debug.deprecate(factory.updateUnionTypeNode, factoryDeprecation);
147270
- createIntersectionTypeNode = Debug.deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
147271
- updateIntersectionTypeNode = Debug.deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
147272
- createConditionalTypeNode = Debug.deprecate(factory.createConditionalTypeNode, factoryDeprecation);
147273
- updateConditionalTypeNode = Debug.deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
147274
- createInferTypeNode = Debug.deprecate(factory.createInferTypeNode, factoryDeprecation);
147275
- updateInferTypeNode = Debug.deprecate(factory.updateInferTypeNode, factoryDeprecation);
147276
- createImportTypeNode = Debug.deprecate(factory.createImportTypeNode, factoryDeprecation);
147277
- updateImportTypeNode = Debug.deprecate(factory.updateImportTypeNode, factoryDeprecation);
147278
- createParenthesizedType = Debug.deprecate(factory.createParenthesizedType, factoryDeprecation);
147279
- updateParenthesizedType = Debug.deprecate(factory.updateParenthesizedType, factoryDeprecation);
147280
- createThisTypeNode = Debug.deprecate(factory.createThisTypeNode, factoryDeprecation);
147281
- updateTypeOperatorNode = Debug.deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
147282
- createIndexedAccessTypeNode = Debug.deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
147283
- updateIndexedAccessTypeNode = Debug.deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
147284
- createMappedTypeNode = Debug.deprecate(factory.createMappedTypeNode, factoryDeprecation);
147285
- updateMappedTypeNode = Debug.deprecate(factory.updateMappedTypeNode, factoryDeprecation);
147286
- createLiteralTypeNode = Debug.deprecate(factory.createLiteralTypeNode, factoryDeprecation);
147287
- updateLiteralTypeNode = Debug.deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
147288
- createObjectBindingPattern = Debug.deprecate(factory.createObjectBindingPattern, factoryDeprecation);
147289
- updateObjectBindingPattern = Debug.deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
147290
- createArrayBindingPattern = Debug.deprecate(factory.createArrayBindingPattern, factoryDeprecation);
147291
- updateArrayBindingPattern = Debug.deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
147292
- createBindingElement = Debug.deprecate(factory.createBindingElement, factoryDeprecation);
147293
- updateBindingElement = Debug.deprecate(factory.updateBindingElement, factoryDeprecation);
147294
- createArrayLiteral = Debug.deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
147295
- updateArrayLiteral = Debug.deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
147296
- createObjectLiteral = Debug.deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
147297
- updateObjectLiteral = Debug.deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
147298
- createPropertyAccess = Debug.deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
147299
- updatePropertyAccess = Debug.deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
147300
- createPropertyAccessChain = Debug.deprecate(factory.createPropertyAccessChain, factoryDeprecation);
147301
- updatePropertyAccessChain = Debug.deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
147302
- createElementAccess = Debug.deprecate(factory.createElementAccessExpression, factoryDeprecation);
147303
- updateElementAccess = Debug.deprecate(factory.updateElementAccessExpression, factoryDeprecation);
147304
- createElementAccessChain = Debug.deprecate(factory.createElementAccessChain, factoryDeprecation);
147305
- updateElementAccessChain = Debug.deprecate(factory.updateElementAccessChain, factoryDeprecation);
147306
- createCall = Debug.deprecate(factory.createCallExpression, factoryDeprecation);
147307
- updateCall = Debug.deprecate(factory.updateCallExpression, factoryDeprecation);
147308
- createCallChain = Debug.deprecate(factory.createCallChain, factoryDeprecation);
147309
- updateCallChain = Debug.deprecate(factory.updateCallChain, factoryDeprecation);
147310
- createNew = Debug.deprecate(factory.createNewExpression, factoryDeprecation);
147311
- updateNew = Debug.deprecate(factory.updateNewExpression, factoryDeprecation);
147312
- createTypeAssertion = Debug.deprecate(factory.createTypeAssertion, factoryDeprecation);
147313
- updateTypeAssertion = Debug.deprecate(factory.updateTypeAssertion, factoryDeprecation);
147314
- createParen = Debug.deprecate(factory.createParenthesizedExpression, factoryDeprecation);
147315
- updateParen = Debug.deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
147316
- createFunctionExpression = Debug.deprecate(factory.createFunctionExpression, factoryDeprecation);
147317
- updateFunctionExpression = Debug.deprecate(factory.updateFunctionExpression, factoryDeprecation);
147318
- createDelete = Debug.deprecate(factory.createDeleteExpression, factoryDeprecation);
147319
- updateDelete = Debug.deprecate(factory.updateDeleteExpression, factoryDeprecation);
147320
- createTypeOf = Debug.deprecate(factory.createTypeOfExpression, factoryDeprecation);
147321
- updateTypeOf = Debug.deprecate(factory.updateTypeOfExpression, factoryDeprecation);
147322
- createVoid = Debug.deprecate(factory.createVoidExpression, factoryDeprecation);
147323
- updateVoid = Debug.deprecate(factory.updateVoidExpression, factoryDeprecation);
147324
- createAwait = Debug.deprecate(factory.createAwaitExpression, factoryDeprecation);
147325
- updateAwait = Debug.deprecate(factory.updateAwaitExpression, factoryDeprecation);
147326
- createPrefix = Debug.deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
147327
- updatePrefix = Debug.deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
147328
- createPostfix = Debug.deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
147329
- updatePostfix = Debug.deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
147330
- createBinary = Debug.deprecate(factory.createBinaryExpression, factoryDeprecation);
147331
- updateConditional = Debug.deprecate(factory.updateConditionalExpression, factoryDeprecation);
147332
- createTemplateExpression = Debug.deprecate(factory.createTemplateExpression, factoryDeprecation);
147333
- updateTemplateExpression = Debug.deprecate(factory.updateTemplateExpression, factoryDeprecation);
147334
- createTemplateHead = Debug.deprecate(factory.createTemplateHead, factoryDeprecation);
147335
- createTemplateMiddle = Debug.deprecate(factory.createTemplateMiddle, factoryDeprecation);
147336
- createTemplateTail = Debug.deprecate(factory.createTemplateTail, factoryDeprecation);
147337
- createNoSubstitutionTemplateLiteral = Debug.deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
147338
- updateYield = Debug.deprecate(factory.updateYieldExpression, factoryDeprecation);
147339
- createSpread = Debug.deprecate(factory.createSpreadElement, factoryDeprecation);
147340
- updateSpread = Debug.deprecate(factory.updateSpreadElement, factoryDeprecation);
147341
- createOmittedExpression = Debug.deprecate(factory.createOmittedExpression, factoryDeprecation);
147342
- createAsExpression = Debug.deprecate(factory.createAsExpression, factoryDeprecation);
147343
- updateAsExpression = Debug.deprecate(factory.updateAsExpression, factoryDeprecation);
147344
- createNonNullExpression = Debug.deprecate(factory.createNonNullExpression, factoryDeprecation);
147345
- updateNonNullExpression = Debug.deprecate(factory.updateNonNullExpression, factoryDeprecation);
147346
- createNonNullChain = Debug.deprecate(factory.createNonNullChain, factoryDeprecation);
147347
- updateNonNullChain = Debug.deprecate(factory.updateNonNullChain, factoryDeprecation);
147348
- createMetaProperty = Debug.deprecate(factory.createMetaProperty, factoryDeprecation);
147349
- updateMetaProperty = Debug.deprecate(factory.updateMetaProperty, factoryDeprecation);
147350
- createTemplateSpan = Debug.deprecate(factory.createTemplateSpan, factoryDeprecation);
147351
- updateTemplateSpan = Debug.deprecate(factory.updateTemplateSpan, factoryDeprecation);
147352
- createSemicolonClassElement = Debug.deprecate(factory.createSemicolonClassElement, factoryDeprecation);
147353
- createBlock = Debug.deprecate(factory.createBlock, factoryDeprecation);
147354
- updateBlock = Debug.deprecate(factory.updateBlock, factoryDeprecation);
147355
- createVariableStatement = Debug.deprecate(factory.createVariableStatement, factoryDeprecation);
147356
- updateVariableStatement = Debug.deprecate(factory.updateVariableStatement, factoryDeprecation);
147357
- createEmptyStatement = Debug.deprecate(factory.createEmptyStatement, factoryDeprecation);
147358
- createExpressionStatement = Debug.deprecate(factory.createExpressionStatement, factoryDeprecation);
147359
- updateExpressionStatement = Debug.deprecate(factory.updateExpressionStatement, factoryDeprecation);
147360
- createStatement = Debug.deprecate(factory.createExpressionStatement, factoryDeprecation);
147361
- updateStatement = Debug.deprecate(factory.updateExpressionStatement, factoryDeprecation);
147362
- createIf = Debug.deprecate(factory.createIfStatement, factoryDeprecation);
147363
- updateIf = Debug.deprecate(factory.updateIfStatement, factoryDeprecation);
147364
- createDo = Debug.deprecate(factory.createDoStatement, factoryDeprecation);
147365
- updateDo = Debug.deprecate(factory.updateDoStatement, factoryDeprecation);
147366
- createWhile = Debug.deprecate(factory.createWhileStatement, factoryDeprecation);
147367
- updateWhile = Debug.deprecate(factory.updateWhileStatement, factoryDeprecation);
147368
- createFor = Debug.deprecate(factory.createForStatement, factoryDeprecation);
147369
- updateFor = Debug.deprecate(factory.updateForStatement, factoryDeprecation);
147370
- createForIn = Debug.deprecate(factory.createForInStatement, factoryDeprecation);
147371
- updateForIn = Debug.deprecate(factory.updateForInStatement, factoryDeprecation);
147372
- createForOf = Debug.deprecate(factory.createForOfStatement, factoryDeprecation);
147373
- updateForOf = Debug.deprecate(factory.updateForOfStatement, factoryDeprecation);
147374
- createContinue = Debug.deprecate(factory.createContinueStatement, factoryDeprecation);
147375
- updateContinue = Debug.deprecate(factory.updateContinueStatement, factoryDeprecation);
147376
- createBreak = Debug.deprecate(factory.createBreakStatement, factoryDeprecation);
147377
- updateBreak = Debug.deprecate(factory.updateBreakStatement, factoryDeprecation);
147378
- createReturn = Debug.deprecate(factory.createReturnStatement, factoryDeprecation);
147379
- updateReturn = Debug.deprecate(factory.updateReturnStatement, factoryDeprecation);
147380
- createWith = Debug.deprecate(factory.createWithStatement, factoryDeprecation);
147381
- updateWith = Debug.deprecate(factory.updateWithStatement, factoryDeprecation);
147382
- createSwitch = Debug.deprecate(factory.createSwitchStatement, factoryDeprecation);
147383
- updateSwitch = Debug.deprecate(factory.updateSwitchStatement, factoryDeprecation);
147384
- createLabel = Debug.deprecate(factory.createLabeledStatement, factoryDeprecation);
147385
- updateLabel = Debug.deprecate(factory.updateLabeledStatement, factoryDeprecation);
147386
- createThrow = Debug.deprecate(factory.createThrowStatement, factoryDeprecation);
147387
- updateThrow = Debug.deprecate(factory.updateThrowStatement, factoryDeprecation);
147388
- createTry = Debug.deprecate(factory.createTryStatement, factoryDeprecation);
147389
- updateTry = Debug.deprecate(factory.updateTryStatement, factoryDeprecation);
147390
- createDebuggerStatement = Debug.deprecate(factory.createDebuggerStatement, factoryDeprecation);
147391
- createVariableDeclarationList = Debug.deprecate(factory.createVariableDeclarationList, factoryDeprecation);
147392
- updateVariableDeclarationList = Debug.deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
147393
- createFunctionDeclaration = Debug.deprecate(factory.createFunctionDeclaration, factoryDeprecation);
147394
- updateFunctionDeclaration = Debug.deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
147395
- createClassDeclaration = Debug.deprecate(factory.createClassDeclaration, factoryDeprecation);
147396
- updateClassDeclaration = Debug.deprecate(factory.updateClassDeclaration, factoryDeprecation);
147397
- createInterfaceDeclaration = Debug.deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
147398
- updateInterfaceDeclaration = Debug.deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
147399
- createTypeAliasDeclaration = Debug.deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
147400
- updateTypeAliasDeclaration = Debug.deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
147401
- createEnumDeclaration = Debug.deprecate(factory.createEnumDeclaration, factoryDeprecation);
147402
- updateEnumDeclaration = Debug.deprecate(factory.updateEnumDeclaration, factoryDeprecation);
147403
- createModuleDeclaration = Debug.deprecate(factory.createModuleDeclaration, factoryDeprecation);
147404
- updateModuleDeclaration = Debug.deprecate(factory.updateModuleDeclaration, factoryDeprecation);
147405
- createModuleBlock = Debug.deprecate(factory.createModuleBlock, factoryDeprecation);
147406
- updateModuleBlock = Debug.deprecate(factory.updateModuleBlock, factoryDeprecation);
147407
- createCaseBlock = Debug.deprecate(factory.createCaseBlock, factoryDeprecation);
147408
- updateCaseBlock = Debug.deprecate(factory.updateCaseBlock, factoryDeprecation);
147409
- createNamespaceExportDeclaration = Debug.deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
147410
- updateNamespaceExportDeclaration = Debug.deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
147411
- createImportEqualsDeclaration = Debug.deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
147412
- updateImportEqualsDeclaration = Debug.deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
147413
- createImportDeclaration = Debug.deprecate(factory.createImportDeclaration, factoryDeprecation);
147414
- updateImportDeclaration = Debug.deprecate(factory.updateImportDeclaration, factoryDeprecation);
147415
- createNamespaceImport = Debug.deprecate(factory.createNamespaceImport, factoryDeprecation);
147416
- updateNamespaceImport = Debug.deprecate(factory.updateNamespaceImport, factoryDeprecation);
147417
- createNamedImports = Debug.deprecate(factory.createNamedImports, factoryDeprecation);
147418
- updateNamedImports = Debug.deprecate(factory.updateNamedImports, factoryDeprecation);
147419
- createImportSpecifier = Debug.deprecate(factory.createImportSpecifier, factoryDeprecation);
147420
- updateImportSpecifier = Debug.deprecate(factory.updateImportSpecifier, factoryDeprecation);
147421
- createExportAssignment2 = Debug.deprecate(factory.createExportAssignment, factoryDeprecation);
147422
- updateExportAssignment = Debug.deprecate(factory.updateExportAssignment, factoryDeprecation);
147423
- createNamedExports = Debug.deprecate(factory.createNamedExports, factoryDeprecation);
147424
- updateNamedExports = Debug.deprecate(factory.updateNamedExports, factoryDeprecation);
147425
- createExportSpecifier = Debug.deprecate(factory.createExportSpecifier, factoryDeprecation);
147426
- updateExportSpecifier = Debug.deprecate(factory.updateExportSpecifier, factoryDeprecation);
147427
- createExternalModuleReference = Debug.deprecate(factory.createExternalModuleReference, factoryDeprecation);
147428
- updateExternalModuleReference = Debug.deprecate(factory.updateExternalModuleReference, factoryDeprecation);
147429
- createJSDocTypeExpression = Debug.deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
147430
- createJSDocTypeTag = Debug.deprecate(factory.createJSDocTypeTag, factoryDeprecation);
147431
- createJSDocReturnTag = Debug.deprecate(factory.createJSDocReturnTag, factoryDeprecation);
147432
- createJSDocThisTag = Debug.deprecate(factory.createJSDocThisTag, factoryDeprecation);
147433
- createJSDocComment = Debug.deprecate(factory.createJSDocComment, factoryDeprecation);
147434
- createJSDocParameterTag = Debug.deprecate(factory.createJSDocParameterTag, factoryDeprecation);
147435
- createJSDocClassTag = Debug.deprecate(factory.createJSDocClassTag, factoryDeprecation);
147436
- createJSDocAugmentsTag = Debug.deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
147437
- createJSDocEnumTag = Debug.deprecate(factory.createJSDocEnumTag, factoryDeprecation);
147438
- createJSDocTemplateTag = Debug.deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
147439
- createJSDocTypedefTag = Debug.deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
147440
- createJSDocCallbackTag = Debug.deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
147441
- createJSDocSignature = Debug.deprecate(factory.createJSDocSignature, factoryDeprecation);
147442
- createJSDocPropertyTag = Debug.deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
147443
- createJSDocTypeLiteral = Debug.deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
147444
- createJSDocImplementsTag = Debug.deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
147445
- createJSDocAuthorTag = Debug.deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
147446
- createJSDocPublicTag = Debug.deprecate(factory.createJSDocPublicTag, factoryDeprecation);
147447
- createJSDocPrivateTag = Debug.deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
147448
- createJSDocProtectedTag = Debug.deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
147449
- createJSDocReadonlyTag = Debug.deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
147450
- createJSDocTag = Debug.deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
147451
- createJsxElement = Debug.deprecate(factory.createJsxElement, factoryDeprecation);
147452
- updateJsxElement = Debug.deprecate(factory.updateJsxElement, factoryDeprecation);
147453
- createJsxSelfClosingElement = Debug.deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
147454
- updateJsxSelfClosingElement = Debug.deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
147455
- createJsxOpeningElement = Debug.deprecate(factory.createJsxOpeningElement, factoryDeprecation);
147456
- updateJsxOpeningElement = Debug.deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
147457
- createJsxClosingElement = Debug.deprecate(factory.createJsxClosingElement, factoryDeprecation);
147458
- updateJsxClosingElement = Debug.deprecate(factory.updateJsxClosingElement, factoryDeprecation);
147459
- createJsxFragment = Debug.deprecate(factory.createJsxFragment, factoryDeprecation);
147460
- createJsxText = Debug.deprecate(factory.createJsxText, factoryDeprecation);
147461
- updateJsxText = Debug.deprecate(factory.updateJsxText, factoryDeprecation);
147462
- createJsxOpeningFragment = Debug.deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
147463
- createJsxJsxClosingFragment = Debug.deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
147464
- updateJsxFragment = Debug.deprecate(factory.updateJsxFragment, factoryDeprecation);
147465
- createJsxAttribute = Debug.deprecate(factory.createJsxAttribute, factoryDeprecation);
147466
- updateJsxAttribute = Debug.deprecate(factory.updateJsxAttribute, factoryDeprecation);
147467
- createJsxAttributes = Debug.deprecate(factory.createJsxAttributes, factoryDeprecation);
147468
- updateJsxAttributes = Debug.deprecate(factory.updateJsxAttributes, factoryDeprecation);
147469
- createJsxSpreadAttribute = Debug.deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
147470
- updateJsxSpreadAttribute = Debug.deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
147471
- createJsxExpression = Debug.deprecate(factory.createJsxExpression, factoryDeprecation);
147472
- updateJsxExpression = Debug.deprecate(factory.updateJsxExpression, factoryDeprecation);
147473
- createCaseClause = Debug.deprecate(factory.createCaseClause, factoryDeprecation);
147474
- updateCaseClause = Debug.deprecate(factory.updateCaseClause, factoryDeprecation);
147475
- createDefaultClause = Debug.deprecate(factory.createDefaultClause, factoryDeprecation);
147476
- updateDefaultClause = Debug.deprecate(factory.updateDefaultClause, factoryDeprecation);
147477
- createHeritageClause = Debug.deprecate(factory.createHeritageClause, factoryDeprecation);
147478
- updateHeritageClause = Debug.deprecate(factory.updateHeritageClause, factoryDeprecation);
147479
- createCatchClause = Debug.deprecate(factory.createCatchClause, factoryDeprecation);
147480
- updateCatchClause = Debug.deprecate(factory.updateCatchClause, factoryDeprecation);
147481
- createPropertyAssignment = Debug.deprecate(factory.createPropertyAssignment, factoryDeprecation);
147482
- updatePropertyAssignment = Debug.deprecate(factory.updatePropertyAssignment, factoryDeprecation);
147483
- createShorthandPropertyAssignment = Debug.deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
147484
- updateShorthandPropertyAssignment = Debug.deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
147485
- createSpreadAssignment = Debug.deprecate(factory.createSpreadAssignment, factoryDeprecation);
147486
- updateSpreadAssignment = Debug.deprecate(factory.updateSpreadAssignment, factoryDeprecation);
147487
- createEnumMember = Debug.deprecate(factory.createEnumMember, factoryDeprecation);
147488
- updateEnumMember = Debug.deprecate(factory.updateEnumMember, factoryDeprecation);
147489
- updateSourceFileNode = Debug.deprecate(factory.updateSourceFile, factoryDeprecation);
147490
- createNotEmittedStatement = Debug.deprecate(factory.createNotEmittedStatement, factoryDeprecation);
147491
- createPartiallyEmittedExpression = Debug.deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
147492
- updatePartiallyEmittedExpression = Debug.deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
147493
- createCommaList = Debug.deprecate(factory.createCommaListExpression, factoryDeprecation);
147494
- updateCommaList = Debug.deprecate(factory.updateCommaListExpression, factoryDeprecation);
147495
- createBundle = Debug.deprecate(factory.createBundle, factoryDeprecation);
147496
- updateBundle = Debug.deprecate(factory.updateBundle, factoryDeprecation);
147497
- createImmediatelyInvokedFunctionExpression = Debug.deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
147498
- createImmediatelyInvokedArrowFunction = Debug.deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
147499
- createVoidZero = Debug.deprecate(factory.createVoidZero, factoryDeprecation);
147500
- createExportDefault = Debug.deprecate(factory.createExportDefault, factoryDeprecation);
147501
- createExternalModuleExport = Debug.deprecate(factory.createExternalModuleExport, factoryDeprecation);
147502
- createNamespaceExport = Debug.deprecate(factory.createNamespaceExport, factoryDeprecation);
147503
- updateNamespaceExport = Debug.deprecate(factory.updateNamespaceExport, factoryDeprecation);
147504
- createToken = Debug.deprecate(function createToken2(kind) {
147254
+ createTypeQueryNode = deprecate(factory.createTypeQueryNode, factoryDeprecation);
147255
+ updateTypeQueryNode = deprecate(factory.updateTypeQueryNode, factoryDeprecation);
147256
+ createTypeLiteralNode = deprecate(factory.createTypeLiteralNode, factoryDeprecation);
147257
+ updateTypeLiteralNode = deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
147258
+ createArrayTypeNode = deprecate(factory.createArrayTypeNode, factoryDeprecation);
147259
+ updateArrayTypeNode = deprecate(factory.updateArrayTypeNode, factoryDeprecation);
147260
+ createTupleTypeNode = deprecate(factory.createTupleTypeNode, factoryDeprecation);
147261
+ updateTupleTypeNode = deprecate(factory.updateTupleTypeNode, factoryDeprecation);
147262
+ createOptionalTypeNode = deprecate(factory.createOptionalTypeNode, factoryDeprecation);
147263
+ updateOptionalTypeNode = deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
147264
+ createRestTypeNode = deprecate(factory.createRestTypeNode, factoryDeprecation);
147265
+ updateRestTypeNode = deprecate(factory.updateRestTypeNode, factoryDeprecation);
147266
+ createUnionTypeNode = deprecate(factory.createUnionTypeNode, factoryDeprecation);
147267
+ updateUnionTypeNode = deprecate(factory.updateUnionTypeNode, factoryDeprecation);
147268
+ createIntersectionTypeNode = deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
147269
+ updateIntersectionTypeNode = deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
147270
+ createConditionalTypeNode = deprecate(factory.createConditionalTypeNode, factoryDeprecation);
147271
+ updateConditionalTypeNode = deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
147272
+ createInferTypeNode = deprecate(factory.createInferTypeNode, factoryDeprecation);
147273
+ updateInferTypeNode = deprecate(factory.updateInferTypeNode, factoryDeprecation);
147274
+ createImportTypeNode = deprecate(factory.createImportTypeNode, factoryDeprecation);
147275
+ updateImportTypeNode = deprecate(factory.updateImportTypeNode, factoryDeprecation);
147276
+ createParenthesizedType = deprecate(factory.createParenthesizedType, factoryDeprecation);
147277
+ updateParenthesizedType = deprecate(factory.updateParenthesizedType, factoryDeprecation);
147278
+ createThisTypeNode = deprecate(factory.createThisTypeNode, factoryDeprecation);
147279
+ updateTypeOperatorNode = deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
147280
+ createIndexedAccessTypeNode = deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
147281
+ updateIndexedAccessTypeNode = deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
147282
+ createMappedTypeNode = deprecate(factory.createMappedTypeNode, factoryDeprecation);
147283
+ updateMappedTypeNode = deprecate(factory.updateMappedTypeNode, factoryDeprecation);
147284
+ createLiteralTypeNode = deprecate(factory.createLiteralTypeNode, factoryDeprecation);
147285
+ updateLiteralTypeNode = deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
147286
+ createObjectBindingPattern = deprecate(factory.createObjectBindingPattern, factoryDeprecation);
147287
+ updateObjectBindingPattern = deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
147288
+ createArrayBindingPattern = deprecate(factory.createArrayBindingPattern, factoryDeprecation);
147289
+ updateArrayBindingPattern = deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
147290
+ createBindingElement = deprecate(factory.createBindingElement, factoryDeprecation);
147291
+ updateBindingElement = deprecate(factory.updateBindingElement, factoryDeprecation);
147292
+ createArrayLiteral = deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
147293
+ updateArrayLiteral = deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
147294
+ createObjectLiteral = deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
147295
+ updateObjectLiteral = deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
147296
+ createPropertyAccess = deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
147297
+ updatePropertyAccess = deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
147298
+ createPropertyAccessChain = deprecate(factory.createPropertyAccessChain, factoryDeprecation);
147299
+ updatePropertyAccessChain = deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
147300
+ createElementAccess = deprecate(factory.createElementAccessExpression, factoryDeprecation);
147301
+ updateElementAccess = deprecate(factory.updateElementAccessExpression, factoryDeprecation);
147302
+ createElementAccessChain = deprecate(factory.createElementAccessChain, factoryDeprecation);
147303
+ updateElementAccessChain = deprecate(factory.updateElementAccessChain, factoryDeprecation);
147304
+ createCall = deprecate(factory.createCallExpression, factoryDeprecation);
147305
+ updateCall = deprecate(factory.updateCallExpression, factoryDeprecation);
147306
+ createCallChain = deprecate(factory.createCallChain, factoryDeprecation);
147307
+ updateCallChain = deprecate(factory.updateCallChain, factoryDeprecation);
147308
+ createNew = deprecate(factory.createNewExpression, factoryDeprecation);
147309
+ updateNew = deprecate(factory.updateNewExpression, factoryDeprecation);
147310
+ createTypeAssertion = deprecate(factory.createTypeAssertion, factoryDeprecation);
147311
+ updateTypeAssertion = deprecate(factory.updateTypeAssertion, factoryDeprecation);
147312
+ createParen = deprecate(factory.createParenthesizedExpression, factoryDeprecation);
147313
+ updateParen = deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
147314
+ createFunctionExpression = deprecate(factory.createFunctionExpression, factoryDeprecation);
147315
+ updateFunctionExpression = deprecate(factory.updateFunctionExpression, factoryDeprecation);
147316
+ createDelete = deprecate(factory.createDeleteExpression, factoryDeprecation);
147317
+ updateDelete = deprecate(factory.updateDeleteExpression, factoryDeprecation);
147318
+ createTypeOf = deprecate(factory.createTypeOfExpression, factoryDeprecation);
147319
+ updateTypeOf = deprecate(factory.updateTypeOfExpression, factoryDeprecation);
147320
+ createVoid = deprecate(factory.createVoidExpression, factoryDeprecation);
147321
+ updateVoid = deprecate(factory.updateVoidExpression, factoryDeprecation);
147322
+ createAwait = deprecate(factory.createAwaitExpression, factoryDeprecation);
147323
+ updateAwait = deprecate(factory.updateAwaitExpression, factoryDeprecation);
147324
+ createPrefix = deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
147325
+ updatePrefix = deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
147326
+ createPostfix = deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
147327
+ updatePostfix = deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
147328
+ createBinary = deprecate(factory.createBinaryExpression, factoryDeprecation);
147329
+ updateConditional = deprecate(factory.updateConditionalExpression, factoryDeprecation);
147330
+ createTemplateExpression = deprecate(factory.createTemplateExpression, factoryDeprecation);
147331
+ updateTemplateExpression = deprecate(factory.updateTemplateExpression, factoryDeprecation);
147332
+ createTemplateHead = deprecate(factory.createTemplateHead, factoryDeprecation);
147333
+ createTemplateMiddle = deprecate(factory.createTemplateMiddle, factoryDeprecation);
147334
+ createTemplateTail = deprecate(factory.createTemplateTail, factoryDeprecation);
147335
+ createNoSubstitutionTemplateLiteral = deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
147336
+ updateYield = deprecate(factory.updateYieldExpression, factoryDeprecation);
147337
+ createSpread = deprecate(factory.createSpreadElement, factoryDeprecation);
147338
+ updateSpread = deprecate(factory.updateSpreadElement, factoryDeprecation);
147339
+ createOmittedExpression = deprecate(factory.createOmittedExpression, factoryDeprecation);
147340
+ createAsExpression = deprecate(factory.createAsExpression, factoryDeprecation);
147341
+ updateAsExpression = deprecate(factory.updateAsExpression, factoryDeprecation);
147342
+ createNonNullExpression = deprecate(factory.createNonNullExpression, factoryDeprecation);
147343
+ updateNonNullExpression = deprecate(factory.updateNonNullExpression, factoryDeprecation);
147344
+ createNonNullChain = deprecate(factory.createNonNullChain, factoryDeprecation);
147345
+ updateNonNullChain = deprecate(factory.updateNonNullChain, factoryDeprecation);
147346
+ createMetaProperty = deprecate(factory.createMetaProperty, factoryDeprecation);
147347
+ updateMetaProperty = deprecate(factory.updateMetaProperty, factoryDeprecation);
147348
+ createTemplateSpan = deprecate(factory.createTemplateSpan, factoryDeprecation);
147349
+ updateTemplateSpan = deprecate(factory.updateTemplateSpan, factoryDeprecation);
147350
+ createSemicolonClassElement = deprecate(factory.createSemicolonClassElement, factoryDeprecation);
147351
+ createBlock = deprecate(factory.createBlock, factoryDeprecation);
147352
+ updateBlock = deprecate(factory.updateBlock, factoryDeprecation);
147353
+ createVariableStatement = deprecate(factory.createVariableStatement, factoryDeprecation);
147354
+ updateVariableStatement = deprecate(factory.updateVariableStatement, factoryDeprecation);
147355
+ createEmptyStatement = deprecate(factory.createEmptyStatement, factoryDeprecation);
147356
+ createExpressionStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
147357
+ updateExpressionStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
147358
+ createStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
147359
+ updateStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
147360
+ createIf = deprecate(factory.createIfStatement, factoryDeprecation);
147361
+ updateIf = deprecate(factory.updateIfStatement, factoryDeprecation);
147362
+ createDo = deprecate(factory.createDoStatement, factoryDeprecation);
147363
+ updateDo = deprecate(factory.updateDoStatement, factoryDeprecation);
147364
+ createWhile = deprecate(factory.createWhileStatement, factoryDeprecation);
147365
+ updateWhile = deprecate(factory.updateWhileStatement, factoryDeprecation);
147366
+ createFor = deprecate(factory.createForStatement, factoryDeprecation);
147367
+ updateFor = deprecate(factory.updateForStatement, factoryDeprecation);
147368
+ createForIn = deprecate(factory.createForInStatement, factoryDeprecation);
147369
+ updateForIn = deprecate(factory.updateForInStatement, factoryDeprecation);
147370
+ createForOf = deprecate(factory.createForOfStatement, factoryDeprecation);
147371
+ updateForOf = deprecate(factory.updateForOfStatement, factoryDeprecation);
147372
+ createContinue = deprecate(factory.createContinueStatement, factoryDeprecation);
147373
+ updateContinue = deprecate(factory.updateContinueStatement, factoryDeprecation);
147374
+ createBreak = deprecate(factory.createBreakStatement, factoryDeprecation);
147375
+ updateBreak = deprecate(factory.updateBreakStatement, factoryDeprecation);
147376
+ createReturn = deprecate(factory.createReturnStatement, factoryDeprecation);
147377
+ updateReturn = deprecate(factory.updateReturnStatement, factoryDeprecation);
147378
+ createWith = deprecate(factory.createWithStatement, factoryDeprecation);
147379
+ updateWith = deprecate(factory.updateWithStatement, factoryDeprecation);
147380
+ createSwitch = deprecate(factory.createSwitchStatement, factoryDeprecation);
147381
+ updateSwitch = deprecate(factory.updateSwitchStatement, factoryDeprecation);
147382
+ createLabel = deprecate(factory.createLabeledStatement, factoryDeprecation);
147383
+ updateLabel = deprecate(factory.updateLabeledStatement, factoryDeprecation);
147384
+ createThrow = deprecate(factory.createThrowStatement, factoryDeprecation);
147385
+ updateThrow = deprecate(factory.updateThrowStatement, factoryDeprecation);
147386
+ createTry = deprecate(factory.createTryStatement, factoryDeprecation);
147387
+ updateTry = deprecate(factory.updateTryStatement, factoryDeprecation);
147388
+ createDebuggerStatement = deprecate(factory.createDebuggerStatement, factoryDeprecation);
147389
+ createVariableDeclarationList = deprecate(factory.createVariableDeclarationList, factoryDeprecation);
147390
+ updateVariableDeclarationList = deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
147391
+ createFunctionDeclaration = deprecate(factory.createFunctionDeclaration, factoryDeprecation);
147392
+ updateFunctionDeclaration = deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
147393
+ createClassDeclaration = deprecate(factory.createClassDeclaration, factoryDeprecation);
147394
+ updateClassDeclaration = deprecate(factory.updateClassDeclaration, factoryDeprecation);
147395
+ createInterfaceDeclaration = deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
147396
+ updateInterfaceDeclaration = deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
147397
+ createTypeAliasDeclaration = deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
147398
+ updateTypeAliasDeclaration = deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
147399
+ createEnumDeclaration = deprecate(factory.createEnumDeclaration, factoryDeprecation);
147400
+ updateEnumDeclaration = deprecate(factory.updateEnumDeclaration, factoryDeprecation);
147401
+ createModuleDeclaration = deprecate(factory.createModuleDeclaration, factoryDeprecation);
147402
+ updateModuleDeclaration = deprecate(factory.updateModuleDeclaration, factoryDeprecation);
147403
+ createModuleBlock = deprecate(factory.createModuleBlock, factoryDeprecation);
147404
+ updateModuleBlock = deprecate(factory.updateModuleBlock, factoryDeprecation);
147405
+ createCaseBlock = deprecate(factory.createCaseBlock, factoryDeprecation);
147406
+ updateCaseBlock = deprecate(factory.updateCaseBlock, factoryDeprecation);
147407
+ createNamespaceExportDeclaration = deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
147408
+ updateNamespaceExportDeclaration = deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
147409
+ createImportEqualsDeclaration = deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
147410
+ updateImportEqualsDeclaration = deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
147411
+ createImportDeclaration = deprecate(factory.createImportDeclaration, factoryDeprecation);
147412
+ updateImportDeclaration = deprecate(factory.updateImportDeclaration, factoryDeprecation);
147413
+ createNamespaceImport = deprecate(factory.createNamespaceImport, factoryDeprecation);
147414
+ updateNamespaceImport = deprecate(factory.updateNamespaceImport, factoryDeprecation);
147415
+ createNamedImports = deprecate(factory.createNamedImports, factoryDeprecation);
147416
+ updateNamedImports = deprecate(factory.updateNamedImports, factoryDeprecation);
147417
+ createImportSpecifier = deprecate(factory.createImportSpecifier, factoryDeprecation);
147418
+ updateImportSpecifier = deprecate(factory.updateImportSpecifier, factoryDeprecation);
147419
+ createExportAssignment2 = deprecate(factory.createExportAssignment, factoryDeprecation);
147420
+ updateExportAssignment = deprecate(factory.updateExportAssignment, factoryDeprecation);
147421
+ createNamedExports = deprecate(factory.createNamedExports, factoryDeprecation);
147422
+ updateNamedExports = deprecate(factory.updateNamedExports, factoryDeprecation);
147423
+ createExportSpecifier = deprecate(factory.createExportSpecifier, factoryDeprecation);
147424
+ updateExportSpecifier = deprecate(factory.updateExportSpecifier, factoryDeprecation);
147425
+ createExternalModuleReference = deprecate(factory.createExternalModuleReference, factoryDeprecation);
147426
+ updateExternalModuleReference = deprecate(factory.updateExternalModuleReference, factoryDeprecation);
147427
+ createJSDocTypeExpression = deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
147428
+ createJSDocTypeTag = deprecate(factory.createJSDocTypeTag, factoryDeprecation);
147429
+ createJSDocReturnTag = deprecate(factory.createJSDocReturnTag, factoryDeprecation);
147430
+ createJSDocThisTag = deprecate(factory.createJSDocThisTag, factoryDeprecation);
147431
+ createJSDocComment = deprecate(factory.createJSDocComment, factoryDeprecation);
147432
+ createJSDocParameterTag = deprecate(factory.createJSDocParameterTag, factoryDeprecation);
147433
+ createJSDocClassTag = deprecate(factory.createJSDocClassTag, factoryDeprecation);
147434
+ createJSDocAugmentsTag = deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
147435
+ createJSDocEnumTag = deprecate(factory.createJSDocEnumTag, factoryDeprecation);
147436
+ createJSDocTemplateTag = deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
147437
+ createJSDocTypedefTag = deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
147438
+ createJSDocCallbackTag = deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
147439
+ createJSDocSignature = deprecate(factory.createJSDocSignature, factoryDeprecation);
147440
+ createJSDocPropertyTag = deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
147441
+ createJSDocTypeLiteral = deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
147442
+ createJSDocImplementsTag = deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
147443
+ createJSDocAuthorTag = deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
147444
+ createJSDocPublicTag = deprecate(factory.createJSDocPublicTag, factoryDeprecation);
147445
+ createJSDocPrivateTag = deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
147446
+ createJSDocProtectedTag = deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
147447
+ createJSDocReadonlyTag = deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
147448
+ createJSDocTag = deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
147449
+ createJsxElement = deprecate(factory.createJsxElement, factoryDeprecation);
147450
+ updateJsxElement = deprecate(factory.updateJsxElement, factoryDeprecation);
147451
+ createJsxSelfClosingElement = deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
147452
+ updateJsxSelfClosingElement = deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
147453
+ createJsxOpeningElement = deprecate(factory.createJsxOpeningElement, factoryDeprecation);
147454
+ updateJsxOpeningElement = deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
147455
+ createJsxClosingElement = deprecate(factory.createJsxClosingElement, factoryDeprecation);
147456
+ updateJsxClosingElement = deprecate(factory.updateJsxClosingElement, factoryDeprecation);
147457
+ createJsxFragment = deprecate(factory.createJsxFragment, factoryDeprecation);
147458
+ createJsxText = deprecate(factory.createJsxText, factoryDeprecation);
147459
+ updateJsxText = deprecate(factory.updateJsxText, factoryDeprecation);
147460
+ createJsxOpeningFragment = deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
147461
+ createJsxJsxClosingFragment = deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
147462
+ updateJsxFragment = deprecate(factory.updateJsxFragment, factoryDeprecation);
147463
+ createJsxAttribute = deprecate(factory.createJsxAttribute, factoryDeprecation);
147464
+ updateJsxAttribute = deprecate(factory.updateJsxAttribute, factoryDeprecation);
147465
+ createJsxAttributes = deprecate(factory.createJsxAttributes, factoryDeprecation);
147466
+ updateJsxAttributes = deprecate(factory.updateJsxAttributes, factoryDeprecation);
147467
+ createJsxSpreadAttribute = deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
147468
+ updateJsxSpreadAttribute = deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
147469
+ createJsxExpression = deprecate(factory.createJsxExpression, factoryDeprecation);
147470
+ updateJsxExpression = deprecate(factory.updateJsxExpression, factoryDeprecation);
147471
+ createCaseClause = deprecate(factory.createCaseClause, factoryDeprecation);
147472
+ updateCaseClause = deprecate(factory.updateCaseClause, factoryDeprecation);
147473
+ createDefaultClause = deprecate(factory.createDefaultClause, factoryDeprecation);
147474
+ updateDefaultClause = deprecate(factory.updateDefaultClause, factoryDeprecation);
147475
+ createHeritageClause = deprecate(factory.createHeritageClause, factoryDeprecation);
147476
+ updateHeritageClause = deprecate(factory.updateHeritageClause, factoryDeprecation);
147477
+ createCatchClause = deprecate(factory.createCatchClause, factoryDeprecation);
147478
+ updateCatchClause = deprecate(factory.updateCatchClause, factoryDeprecation);
147479
+ createPropertyAssignment = deprecate(factory.createPropertyAssignment, factoryDeprecation);
147480
+ updatePropertyAssignment = deprecate(factory.updatePropertyAssignment, factoryDeprecation);
147481
+ createShorthandPropertyAssignment = deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
147482
+ updateShorthandPropertyAssignment = deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
147483
+ createSpreadAssignment = deprecate(factory.createSpreadAssignment, factoryDeprecation);
147484
+ updateSpreadAssignment = deprecate(factory.updateSpreadAssignment, factoryDeprecation);
147485
+ createEnumMember = deprecate(factory.createEnumMember, factoryDeprecation);
147486
+ updateEnumMember = deprecate(factory.updateEnumMember, factoryDeprecation);
147487
+ updateSourceFileNode = deprecate(factory.updateSourceFile, factoryDeprecation);
147488
+ createNotEmittedStatement = deprecate(factory.createNotEmittedStatement, factoryDeprecation);
147489
+ createPartiallyEmittedExpression = deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
147490
+ updatePartiallyEmittedExpression = deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
147491
+ createCommaList = deprecate(factory.createCommaListExpression, factoryDeprecation);
147492
+ updateCommaList = deprecate(factory.updateCommaListExpression, factoryDeprecation);
147493
+ createBundle = deprecate(factory.createBundle, factoryDeprecation);
147494
+ updateBundle = deprecate(factory.updateBundle, factoryDeprecation);
147495
+ createImmediatelyInvokedFunctionExpression = deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
147496
+ createImmediatelyInvokedArrowFunction = deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
147497
+ createVoidZero = deprecate(factory.createVoidZero, factoryDeprecation);
147498
+ createExportDefault = deprecate(factory.createExportDefault, factoryDeprecation);
147499
+ createExternalModuleExport = deprecate(factory.createExternalModuleExport, factoryDeprecation);
147500
+ createNamespaceExport = deprecate(factory.createNamespaceExport, factoryDeprecation);
147501
+ updateNamespaceExport = deprecate(factory.updateNamespaceExport, factoryDeprecation);
147502
+ createToken = deprecate(function createToken2(kind) {
147505
147503
  return factory.createToken(kind);
147506
147504
  }, factoryDeprecation);
147507
- createIdentifier = Debug.deprecate(function createIdentifier2(text) {
147505
+ createIdentifier = deprecate(function createIdentifier2(text) {
147508
147506
  return factory.createIdentifier(text, void 0, void 0);
147509
147507
  }, factoryDeprecation);
147510
- createTempVariable = Debug.deprecate(function createTempVariable2(recordTempVariable) {
147508
+ createTempVariable = deprecate(function createTempVariable2(recordTempVariable) {
147511
147509
  return factory.createTempVariable(recordTempVariable, void 0);
147512
147510
  }, factoryDeprecation);
147513
- getGeneratedNameForNode = Debug.deprecate(function getGeneratedNameForNode2(node) {
147511
+ getGeneratedNameForNode = deprecate(function getGeneratedNameForNode2(node) {
147514
147512
  return factory.getGeneratedNameForNode(node, void 0);
147515
147513
  }, factoryDeprecation);
147516
- createOptimisticUniqueName = Debug.deprecate(function createOptimisticUniqueName2(text) {
147514
+ createOptimisticUniqueName = deprecate(function createOptimisticUniqueName2(text) {
147517
147515
  return factory.createUniqueName(text, 16 /* Optimistic */);
147518
147516
  }, factoryDeprecation);
147519
- createFileLevelUniqueName = Debug.deprecate(function createFileLevelUniqueName2(text) {
147517
+ createFileLevelUniqueName = deprecate(function createFileLevelUniqueName2(text) {
147520
147518
  return factory.createUniqueName(text, 16 /* Optimistic */ | 32 /* FileLevel */);
147521
147519
  }, factoryDeprecation);
147522
- createIndexSignature = Debug.deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
147520
+ createIndexSignature = deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
147523
147521
  return factory.createIndexSignature(decorators, modifiers, parameters, type);
147524
147522
  }, factoryDeprecation);
147525
- createTypePredicateNode = Debug.deprecate(function createTypePredicateNode2(parameterName, type) {
147523
+ createTypePredicateNode = deprecate(function createTypePredicateNode2(parameterName, type) {
147526
147524
  return factory.createTypePredicateNode(void 0, parameterName, type);
147527
147525
  }, factoryDeprecation);
147528
- updateTypePredicateNode = Debug.deprecate(function updateTypePredicateNode2(node, parameterName, type) {
147526
+ updateTypePredicateNode = deprecate(function updateTypePredicateNode2(node, parameterName, type) {
147529
147527
  return factory.updateTypePredicateNode(node, void 0, parameterName, type);
147530
147528
  }, factoryDeprecation);
147531
- createLiteral = Debug.deprecate(function createLiteral2(value) {
147529
+ createLiteral = deprecate(function createLiteral2(value) {
147532
147530
  if (typeof value === "number") {
147533
147531
  return factory.createNumericLiteral(value);
147534
147532
  }
@@ -147543,13 +147541,13 @@ ${options.prefix}` : "\n" : options.prefix
147543
147541
  }
147544
147542
  return factory.createStringLiteralFromNode(value);
147545
147543
  }, { since: "4.0", warnAfter: "4.1", message: "Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead." });
147546
- createMethodSignature = Debug.deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
147544
+ createMethodSignature = deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
147547
147545
  return factory.createMethodSignature(void 0, name, questionToken, typeParameters, parameters, type);
147548
147546
  }, factoryDeprecation);
147549
- updateMethodSignature = Debug.deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
147547
+ updateMethodSignature = deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
147550
147548
  return factory.updateMethodSignature(node, node.modifiers, name, questionToken, typeParameters, parameters, type);
147551
147549
  }, factoryDeprecation);
147552
- createTypeOperatorNode = Debug.deprecate(function createTypeOperatorNode2(operatorOrType, type) {
147550
+ createTypeOperatorNode = deprecate(function createTypeOperatorNode2(operatorOrType, type) {
147553
147551
  let operator;
147554
147552
  if (type) {
147555
147553
  operator = operatorOrType;
@@ -147559,7 +147557,7 @@ ${options.prefix}` : "\n" : options.prefix
147559
147557
  }
147560
147558
  return factory.createTypeOperatorNode(operator, type);
147561
147559
  }, factoryDeprecation);
147562
- createTaggedTemplate = Debug.deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
147560
+ createTaggedTemplate = deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
147563
147561
  let typeArguments;
147564
147562
  if (template) {
147565
147563
  typeArguments = typeArgumentsOrTemplate;
@@ -147568,7 +147566,7 @@ ${options.prefix}` : "\n" : options.prefix
147568
147566
  }
147569
147567
  return factory.createTaggedTemplateExpression(tag, typeArguments, template);
147570
147568
  }, factoryDeprecation);
147571
- updateTaggedTemplate = Debug.deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
147569
+ updateTaggedTemplate = deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
147572
147570
  let typeArguments;
147573
147571
  if (template) {
147574
147572
  typeArguments = typeArgumentsOrTemplate;
@@ -147577,16 +147575,16 @@ ${options.prefix}` : "\n" : options.prefix
147577
147575
  }
147578
147576
  return factory.updateTaggedTemplateExpression(node, tag, typeArguments, template);
147579
147577
  }, factoryDeprecation);
147580
- updateBinary = Debug.deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
147578
+ updateBinary = deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
147581
147579
  if (typeof operator === "number") {
147582
147580
  operator = operator === node.operatorToken.kind ? node.operatorToken : factory.createToken(operator);
147583
147581
  }
147584
147582
  return factory.updateBinaryExpression(node, left, operator, right);
147585
147583
  }, factoryDeprecation);
147586
- createConditional = Debug.deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
147584
+ createConditional = deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
147587
147585
  return arguments.length === 5 ? factory.createConditionalExpression(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) : arguments.length === 3 ? factory.createConditionalExpression(condition, factory.createToken(57 /* QuestionToken */), questionTokenOrWhenTrue, factory.createToken(58 /* ColonToken */), whenTrueOrWhenFalse) : Debug.fail("Argument count mismatch");
147588
147586
  }, factoryDeprecation);
147589
- createYield = Debug.deprecate(function createYield2(asteriskTokenOrExpression, expression) {
147587
+ createYield = deprecate(function createYield2(asteriskTokenOrExpression, expression) {
147590
147588
  let asteriskToken;
147591
147589
  if (expression) {
147592
147590
  asteriskToken = asteriskTokenOrExpression;
@@ -147595,18 +147593,18 @@ ${options.prefix}` : "\n" : options.prefix
147595
147593
  }
147596
147594
  return factory.createYieldExpression(asteriskToken, expression);
147597
147595
  }, factoryDeprecation);
147598
- createClassExpression = Debug.deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
147596
+ createClassExpression = deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
147599
147597
  return factory.createClassExpression(void 0, modifiers, name, typeParameters, heritageClauses, members);
147600
147598
  }, factoryDeprecation);
147601
- updateClassExpression = Debug.deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
147599
+ updateClassExpression = deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
147602
147600
  return factory.updateClassExpression(node, void 0, modifiers, name, typeParameters, heritageClauses, members);
147603
147601
  }, factoryDeprecation);
147604
- createPropertySignature = Debug.deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
147602
+ createPropertySignature = deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
147605
147603
  const node = factory.createPropertySignature(modifiers, name, questionToken, type);
147606
147604
  node.initializer = initializer;
147607
147605
  return node;
147608
147606
  }, factoryDeprecation);
147609
- updatePropertySignature = Debug.deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
147607
+ updatePropertySignature = deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
147610
147608
  let updated = factory.updatePropertySignature(node, modifiers, name, questionToken, type);
147611
147609
  if (node.initializer !== initializer) {
147612
147610
  if (updated === node) {
@@ -147616,80 +147614,80 @@ ${options.prefix}` : "\n" : options.prefix
147616
147614
  }
147617
147615
  return updated;
147618
147616
  }, factoryDeprecation);
147619
- createExpressionWithTypeArguments = Debug.deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
147617
+ createExpressionWithTypeArguments = deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
147620
147618
  return factory.createExpressionWithTypeArguments(expression, typeArguments);
147621
147619
  }, factoryDeprecation);
147622
- updateExpressionWithTypeArguments = Debug.deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
147620
+ updateExpressionWithTypeArguments = deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
147623
147621
  return factory.updateExpressionWithTypeArguments(node, expression, typeArguments);
147624
147622
  }, factoryDeprecation);
147625
- createArrowFunction = Debug.deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
147623
+ createArrowFunction = deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
147626
147624
  return arguments.length === 6 ? factory.createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) : arguments.length === 5 ? factory.createArrowFunction(modifiers, typeParameters, parameters, type, void 0, equalsGreaterThanTokenOrBody) : Debug.fail("Argument count mismatch");
147627
147625
  }, factoryDeprecation);
147628
- updateArrowFunction = Debug.deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
147626
+ updateArrowFunction = deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
147629
147627
  return arguments.length === 7 ? factory.updateArrowFunction(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) : arguments.length === 6 ? factory.updateArrowFunction(node, modifiers, typeParameters, parameters, type, node.equalsGreaterThanToken, equalsGreaterThanTokenOrBody) : Debug.fail("Argument count mismatch");
147630
147628
  }, factoryDeprecation);
147631
- createVariableDeclaration = Debug.deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
147629
+ createVariableDeclaration = deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
147632
147630
  return arguments.length === 4 ? factory.createVariableDeclaration(name, exclamationTokenOrType, typeOrInitializer, initializer) : arguments.length >= 1 && arguments.length <= 3 ? factory.createVariableDeclaration(name, void 0, exclamationTokenOrType, typeOrInitializer) : Debug.fail("Argument count mismatch");
147633
147631
  }, factoryDeprecation);
147634
- updateVariableDeclaration = Debug.deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
147632
+ updateVariableDeclaration = deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
147635
147633
  return arguments.length === 5 ? factory.updateVariableDeclaration(node, name, exclamationTokenOrType, typeOrInitializer, initializer) : arguments.length === 4 ? factory.updateVariableDeclaration(node, name, node.exclamationToken, exclamationTokenOrType, typeOrInitializer) : Debug.fail("Argument count mismatch");
147636
147634
  }, factoryDeprecation);
147637
- createImportClause = Debug.deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
147635
+ createImportClause = deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
147638
147636
  return factory.createImportClause(isTypeOnly, name, namedBindings);
147639
147637
  }, factoryDeprecation);
147640
- updateImportClause = Debug.deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
147638
+ updateImportClause = deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
147641
147639
  return factory.updateImportClause(node, isTypeOnly, name, namedBindings);
147642
147640
  }, factoryDeprecation);
147643
- createExportDeclaration = Debug.deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
147641
+ createExportDeclaration = deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
147644
147642
  return factory.createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);
147645
147643
  }, factoryDeprecation);
147646
- updateExportDeclaration = Debug.deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
147644
+ updateExportDeclaration = deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
147647
147645
  return factory.updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, node.assertClause);
147648
147646
  }, factoryDeprecation);
147649
- createJSDocParamTag = Debug.deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
147647
+ createJSDocParamTag = deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
147650
147648
  return factory.createJSDocParameterTag(void 0, name, isBracketed, typeExpression, false, comment ? factory.createNodeArray([factory.createJSDocText(comment)]) : void 0);
147651
147649
  }, factoryDeprecation);
147652
- createComma = Debug.deprecate(function createComma2(left, right) {
147650
+ createComma = deprecate(function createComma2(left, right) {
147653
147651
  return factory.createComma(left, right);
147654
147652
  }, factoryDeprecation);
147655
- createLessThan = Debug.deprecate(function createLessThan2(left, right) {
147653
+ createLessThan = deprecate(function createLessThan2(left, right) {
147656
147654
  return factory.createLessThan(left, right);
147657
147655
  }, factoryDeprecation);
147658
- createAssignment = Debug.deprecate(function createAssignment2(left, right) {
147656
+ createAssignment = deprecate(function createAssignment2(left, right) {
147659
147657
  return factory.createAssignment(left, right);
147660
147658
  }, factoryDeprecation);
147661
- createStrictEquality = Debug.deprecate(function createStrictEquality2(left, right) {
147659
+ createStrictEquality = deprecate(function createStrictEquality2(left, right) {
147662
147660
  return factory.createStrictEquality(left, right);
147663
147661
  }, factoryDeprecation);
147664
- createStrictInequality = Debug.deprecate(function createStrictInequality2(left, right) {
147662
+ createStrictInequality = deprecate(function createStrictInequality2(left, right) {
147665
147663
  return factory.createStrictInequality(left, right);
147666
147664
  }, factoryDeprecation);
147667
- createAdd = Debug.deprecate(function createAdd2(left, right) {
147665
+ createAdd = deprecate(function createAdd2(left, right) {
147668
147666
  return factory.createAdd(left, right);
147669
147667
  }, factoryDeprecation);
147670
- createSubtract = Debug.deprecate(function createSubtract2(left, right) {
147668
+ createSubtract = deprecate(function createSubtract2(left, right) {
147671
147669
  return factory.createSubtract(left, right);
147672
147670
  }, factoryDeprecation);
147673
- createLogicalAnd = Debug.deprecate(function createLogicalAnd2(left, right) {
147671
+ createLogicalAnd = deprecate(function createLogicalAnd2(left, right) {
147674
147672
  return factory.createLogicalAnd(left, right);
147675
147673
  }, factoryDeprecation);
147676
- createLogicalOr = Debug.deprecate(function createLogicalOr2(left, right) {
147674
+ createLogicalOr = deprecate(function createLogicalOr2(left, right) {
147677
147675
  return factory.createLogicalOr(left, right);
147678
147676
  }, factoryDeprecation);
147679
- createPostfixIncrement = Debug.deprecate(function createPostfixIncrement2(operand) {
147677
+ createPostfixIncrement = deprecate(function createPostfixIncrement2(operand) {
147680
147678
  return factory.createPostfixIncrement(operand);
147681
147679
  }, factoryDeprecation);
147682
- createLogicalNot = Debug.deprecate(function createLogicalNot2(operand) {
147680
+ createLogicalNot = deprecate(function createLogicalNot2(operand) {
147683
147681
  return factory.createLogicalNot(operand);
147684
147682
  }, factoryDeprecation);
147685
- createNode2 = Debug.deprecate(function createNode3(kind, pos = 0, end = 0) {
147683
+ createNode2 = deprecate(function createNode3(kind, pos = 0, end = 0) {
147686
147684
  return setTextRangePosEnd(
147687
147685
  kind === 308 /* SourceFile */ ? parseBaseNodeFactory.createBaseSourceFileNode(kind) : kind === 79 /* Identifier */ ? parseBaseNodeFactory.createBaseIdentifierNode(kind) : kind === 80 /* PrivateIdentifier */ ? parseBaseNodeFactory.createBasePrivateIdentifierNode(kind) : !isNodeKind(kind) ? parseBaseNodeFactory.createBaseTokenNode(kind) : parseBaseNodeFactory.createBaseNode(kind),
147688
147686
  pos,
147689
147687
  end
147690
147688
  );
147691
147689
  }, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory` method instead." });
147692
- getMutableClone = Debug.deprecate(function getMutableClone2(node) {
147690
+ getMutableClone = deprecate(function getMutableClone2(node) {
147693
147691
  const clone2 = factory.cloneNode(node);
147694
147692
  setTextRange(clone2, node);
147695
147693
  setParent(clone2, node.parent);
@@ -147704,7 +147702,8 @@ ${options.prefix}` : "\n" : options.prefix
147704
147702
  "src/deprecatedCompat/4.0/renamedNodeTests.ts"() {
147705
147703
  "use strict";
147706
147704
  init_ts5();
147707
- isTypeAssertion = Debug.deprecate(function isTypeAssertion2(node) {
147705
+ init_deprecate();
147706
+ isTypeAssertion = deprecate(function isTypeAssertion2(node) {
147708
147707
  return node.kind === 213 /* TypeAssertionExpression */;
147709
147708
  }, {
147710
147709
  since: "4.0",
@@ -147720,7 +147719,8 @@ ${options.prefix}` : "\n" : options.prefix
147720
147719
  "src/deprecatedCompat/4.2/renamedNodeTests.ts"() {
147721
147720
  "use strict";
147722
147721
  init_ts5();
147723
- isIdentifierOrPrivateIdentifier = Debug.deprecate(function isIdentifierOrPrivateIdentifier2(node) {
147722
+ init_deprecate();
147723
+ isIdentifierOrPrivateIdentifier = deprecate(function isIdentifierOrPrivateIdentifier2(node) {
147724
147724
  return isMemberName(node);
147725
147725
  }, {
147726
147726
  since: "4.2",
@@ -148614,7 +148614,7 @@ ${options.prefix}` : "\n" : options.prefix
148614
148614
  });
148615
148615
 
148616
148616
  // src/server/protocol.ts
148617
- var CommandTypes, OrganizeImportsMode2, WatchFileKind2, WatchDirectoryKind2, PollingWatchKind2, CompletionTriggerKind2, IndentStyle2, SemicolonPreference2, JsxEmit2, ModuleKind5, ModuleResolutionKind2, NewLineKind2, ScriptTarget10, ClassificationType2;
148617
+ var CommandTypes, OrganizeImportsMode2, WatchFileKind2, WatchDirectoryKind2, PollingWatchKind2, CompletionTriggerKind2, IndentStyle2, SemicolonPreference2, JsxEmit2, ModuleKind2, ModuleResolutionKind2, NewLineKind2, ScriptTarget10, ClassificationType2;
148618
148618
  var init_protocol = __esm({
148619
148619
  "src/server/protocol.ts"() {
148620
148620
  "use strict";
@@ -148783,17 +148783,17 @@ ${options.prefix}` : "\n" : options.prefix
148783
148783
  JsxEmit3["React"] = "React";
148784
148784
  return JsxEmit3;
148785
148785
  })(JsxEmit2 || {});
148786
- ModuleKind5 = /* @__PURE__ */ ((ModuleKind7) => {
148787
- ModuleKind7["None"] = "None";
148788
- ModuleKind7["CommonJS"] = "CommonJS";
148789
- ModuleKind7["AMD"] = "AMD";
148790
- ModuleKind7["UMD"] = "UMD";
148791
- ModuleKind7["System"] = "System";
148792
- ModuleKind7["ES6"] = "ES6";
148793
- ModuleKind7["ES2015"] = "ES2015";
148794
- ModuleKind7["ESNext"] = "ESNext";
148795
- return ModuleKind7;
148796
- })(ModuleKind5 || {});
148786
+ ModuleKind2 = /* @__PURE__ */ ((ModuleKind3) => {
148787
+ ModuleKind3["None"] = "None";
148788
+ ModuleKind3["CommonJS"] = "CommonJS";
148789
+ ModuleKind3["AMD"] = "AMD";
148790
+ ModuleKind3["UMD"] = "UMD";
148791
+ ModuleKind3["System"] = "System";
148792
+ ModuleKind3["ES6"] = "ES6";
148793
+ ModuleKind3["ES2015"] = "ES2015";
148794
+ ModuleKind3["ESNext"] = "ESNext";
148795
+ return ModuleKind3;
148796
+ })(ModuleKind2 || {});
148797
148797
  ModuleResolutionKind2 = /* @__PURE__ */ ((ModuleResolutionKind3) => {
148798
148798
  ModuleResolutionKind3["Classic"] = "Classic";
148799
148799
  ModuleResolutionKind3["Node"] = "Node";
@@ -148858,7 +148858,7 @@ ${options.prefix}` : "\n" : options.prefix
148858
148858
  CompletionTriggerKind: () => CompletionTriggerKind2,
148859
148859
  IndentStyle: () => IndentStyle2,
148860
148860
  JsxEmit: () => JsxEmit2,
148861
- ModuleKind: () => ModuleKind5,
148861
+ ModuleKind: () => ModuleKind2,
148862
148862
  ModuleResolutionKind: () => ModuleResolutionKind2,
148863
148863
  NewLineKind: () => NewLineKind2,
148864
148864
  OrganizeImportsMode: () => OrganizeImportsMode2,
@@ -149556,6 +149556,7 @@ ${options.prefix}` : "\n" : options.prefix
149556
149556
  this.dirty = false;
149557
149557
  this.typingFiles = emptyArray2;
149558
149558
  this.moduleSpecifierCache = createModuleSpecifierCache(this);
149559
+ this.createHash = maybeBind(this.projectService.host, this.projectService.host.createHash);
149559
149560
  this.globalCacheResolutionModuleName = ts_JsTyping_exports.nonRelativeModuleNameForTypingCache;
149560
149561
  this.projectName = projectName;
149561
149562
  this.directoryStructureHost = directoryStructureHost;
@@ -149884,15 +149885,14 @@ ${options.prefix}` : "\n" : options.prefix
149884
149885
  return [];
149885
149886
  }
149886
149887
  updateProjectIfDirty(this);
149887
- this.builderState = BuilderState.create(this.program, this.projectService.toCanonicalFileName, this.builderState, true);
149888
+ this.builderState = BuilderState.create(this.program, this.builderState, true);
149888
149889
  return mapDefined(
149889
149890
  BuilderState.getFilesAffectedBy(
149890
149891
  this.builderState,
149891
149892
  this.program,
149892
149893
  scriptInfo.path,
149893
149894
  this.cancellationToken,
149894
- maybeBind(this.projectService.host, this.projectService.host.createHash),
149895
- this.getCanonicalFileName
149895
+ this.projectService.host
149896
149896
  ),
149897
149897
  (sourceFile) => this.shouldEmitFile(this.projectService.getScriptInfoForPath(sourceFile.path)) ? sourceFile.fileName : void 0
149898
149898
  );
@@ -160269,6 +160269,7 @@ ${e.message}`;
160269
160269
  supportedLocaleDirectories: () => supportedLocaleDirectories,
160270
160270
  supportedTSExtensions: () => supportedTSExtensions,
160271
160271
  supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
160272
+ supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
160272
160273
  suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
160273
160274
  suppressLeadingTrivia: () => suppressLeadingTrivia,
160274
160275
  suppressTrailingTrivia: () => suppressTrailingTrivia,
@@ -162887,6 +162888,7 @@ ${e.message}`;
162887
162888
  supportedLocaleDirectories: () => supportedLocaleDirectories,
162888
162889
  supportedTSExtensions: () => supportedTSExtensions,
162889
162890
  supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
162891
+ supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
162890
162892
  suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
162891
162893
  suppressLeadingTrivia: () => suppressLeadingTrivia,
162892
162894
  suppressTrailingTrivia: () => suppressTrailingTrivia,