@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.
package/lib/tsserver.js CHANGED
@@ -2261,6 +2261,7 @@ var ts = (() => {
2261
2261
  supportedLocaleDirectories: () => supportedLocaleDirectories,
2262
2262
  supportedTSExtensions: () => supportedTSExtensions,
2263
2263
  supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
2264
+ supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
2264
2265
  suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
2265
2266
  suppressLeadingTrivia: () => suppressLeadingTrivia,
2266
2267
  suppressTrailingTrivia: () => suppressTrailingTrivia,
@@ -2651,7 +2652,7 @@ var ts = (() => {
2651
2652
 
2652
2653
  // src/compiler/corePublic.ts
2653
2654
  var versionMajorMinor = "5.0";
2654
- var version = `${versionMajorMinor}.0-insiders.20221111`;
2655
+ var version = `${versionMajorMinor}.0-insiders.20221123`;
2655
2656
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2656
2657
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2657
2658
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -4386,15 +4387,9 @@ var ts = (() => {
4386
4387
  })(LogLevel || {});
4387
4388
  var Debug;
4388
4389
  ((Debug2) => {
4389
- let typeScriptVersion2;
4390
4390
  let currentAssertionLevel = 0 /* None */;
4391
4391
  Debug2.currentLogLevel = 2 /* Warning */;
4392
4392
  Debug2.isDebugging = false;
4393
- Debug2.enableDeprecationWarnings = true;
4394
- function getTypeScriptVersion() {
4395
- return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
4396
- }
4397
- Debug2.getTypeScriptVersion = getTypeScriptVersion;
4398
4393
  function shouldLog(level) {
4399
4394
  return Debug2.currentLogLevel <= level;
4400
4395
  }
@@ -4910,52 +4905,6 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
4910
4905
  isDebugInfoEnabled = true;
4911
4906
  }
4912
4907
  Debug2.enableDebugInfo = enableDebugInfo;
4913
- function formatDeprecationMessage(name, error, errorAfter, since, message) {
4914
- let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
4915
- deprecationMessage += `'${name}' `;
4916
- deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
4917
- deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
4918
- deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
4919
- return deprecationMessage;
4920
- }
4921
- function createErrorDeprecation(name, errorAfter, since, message) {
4922
- const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
4923
- return () => {
4924
- throw new TypeError(deprecationMessage);
4925
- };
4926
- }
4927
- function createWarningDeprecation(name, errorAfter, since, message) {
4928
- let hasWrittenDeprecation = false;
4929
- return () => {
4930
- if (Debug2.enableDeprecationWarnings && !hasWrittenDeprecation) {
4931
- log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
4932
- hasWrittenDeprecation = true;
4933
- }
4934
- };
4935
- }
4936
- function createDeprecation(name, options = {}) {
4937
- var _a2, _b;
4938
- const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
4939
- const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
4940
- const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
4941
- const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
4942
- const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
4943
- const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
4944
- return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
4945
- }
4946
- Debug2.createDeprecation = createDeprecation;
4947
- function wrapFunction(deprecation, func) {
4948
- return function() {
4949
- deprecation();
4950
- return func.apply(this, arguments);
4951
- };
4952
- }
4953
- function deprecate(func, options) {
4954
- var _a2;
4955
- const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : getFunctionName(func), options);
4956
- return wrapFunction(deprecation, func);
4957
- }
4958
- Debug2.deprecate = deprecate;
4959
4908
  function formatVariance(varianceFlags) {
4960
4909
  const variance = varianceFlags & 7 /* VarianceMask */;
4961
4910
  let result = variance === 0 /* Invariant */ ? "in out" : variance === 3 /* Bivariant */ ? "[bivariant]" : variance === 2 /* Contravariant */ ? "in" : variance === 1 /* Covariant */ ? "out" : variance === 4 /* Independent */ ? "[independent]" : "";
@@ -6923,6 +6872,7 @@ ${lanes.join("\n")}
6923
6872
  return EnumKind2;
6924
6873
  })(EnumKind || {});
6925
6874
  var CheckFlags = /* @__PURE__ */ ((CheckFlags2) => {
6875
+ CheckFlags2[CheckFlags2["None"] = 0] = "None";
6926
6876
  CheckFlags2[CheckFlags2["Instantiated"] = 1] = "Instantiated";
6927
6877
  CheckFlags2[CheckFlags2["SyntheticProperty"] = 2] = "SyntheticProperty";
6928
6878
  CheckFlags2[CheckFlags2["SyntheticMethod"] = 4] = "SyntheticMethod";
@@ -6970,31 +6920,32 @@ ${lanes.join("\n")}
6970
6920
  return InternalSymbolName2;
6971
6921
  })(InternalSymbolName || {});
6972
6922
  var NodeCheckFlags = /* @__PURE__ */ ((NodeCheckFlags2) => {
6923
+ NodeCheckFlags2[NodeCheckFlags2["None"] = 0] = "None";
6973
6924
  NodeCheckFlags2[NodeCheckFlags2["TypeChecked"] = 1] = "TypeChecked";
6974
6925
  NodeCheckFlags2[NodeCheckFlags2["LexicalThis"] = 2] = "LexicalThis";
6975
6926
  NodeCheckFlags2[NodeCheckFlags2["CaptureThis"] = 4] = "CaptureThis";
6976
6927
  NodeCheckFlags2[NodeCheckFlags2["CaptureNewTarget"] = 8] = "CaptureNewTarget";
6977
- NodeCheckFlags2[NodeCheckFlags2["SuperInstance"] = 256] = "SuperInstance";
6978
- NodeCheckFlags2[NodeCheckFlags2["SuperStatic"] = 512] = "SuperStatic";
6979
- NodeCheckFlags2[NodeCheckFlags2["ContextChecked"] = 1024] = "ContextChecked";
6980
- NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAccessInAsync"] = 2048] = "MethodWithSuperPropertyAccessInAsync";
6981
- NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAssignmentInAsync"] = 4096] = "MethodWithSuperPropertyAssignmentInAsync";
6982
- NodeCheckFlags2[NodeCheckFlags2["CaptureArguments"] = 8192] = "CaptureArguments";
6983
- NodeCheckFlags2[NodeCheckFlags2["EnumValuesComputed"] = 16384] = "EnumValuesComputed";
6984
- NodeCheckFlags2[NodeCheckFlags2["LexicalModuleMergesWithClass"] = 32768] = "LexicalModuleMergesWithClass";
6985
- NodeCheckFlags2[NodeCheckFlags2["LoopWithCapturedBlockScopedBinding"] = 65536] = "LoopWithCapturedBlockScopedBinding";
6986
- NodeCheckFlags2[NodeCheckFlags2["ContainsCapturedBlockScopeBinding"] = 131072] = "ContainsCapturedBlockScopeBinding";
6987
- NodeCheckFlags2[NodeCheckFlags2["CapturedBlockScopedBinding"] = 262144] = "CapturedBlockScopedBinding";
6988
- NodeCheckFlags2[NodeCheckFlags2["BlockScopedBindingInLoop"] = 524288] = "BlockScopedBindingInLoop";
6989
- NodeCheckFlags2[NodeCheckFlags2["ClassWithBodyScopedClassBinding"] = 1048576] = "ClassWithBodyScopedClassBinding";
6990
- NodeCheckFlags2[NodeCheckFlags2["BodyScopedClassBinding"] = 2097152] = "BodyScopedClassBinding";
6991
- NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 4194304] = "NeedsLoopOutParameter";
6992
- NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 8388608] = "AssignmentsMarked";
6993
- NodeCheckFlags2[NodeCheckFlags2["ClassWithConstructorReference"] = 16777216] = "ClassWithConstructorReference";
6994
- NodeCheckFlags2[NodeCheckFlags2["ConstructorReferenceInClass"] = 33554432] = "ConstructorReferenceInClass";
6995
- NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 67108864] = "ContainsClassWithPrivateIdentifiers";
6996
- NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 134217728] = "ContainsSuperPropertyInStaticInitializer";
6997
- NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 268435456] = "InCheckIdentifier";
6928
+ NodeCheckFlags2[NodeCheckFlags2["SuperInstance"] = 16] = "SuperInstance";
6929
+ NodeCheckFlags2[NodeCheckFlags2["SuperStatic"] = 32] = "SuperStatic";
6930
+ NodeCheckFlags2[NodeCheckFlags2["ContextChecked"] = 64] = "ContextChecked";
6931
+ NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAccessInAsync"] = 128] = "MethodWithSuperPropertyAccessInAsync";
6932
+ NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAssignmentInAsync"] = 256] = "MethodWithSuperPropertyAssignmentInAsync";
6933
+ NodeCheckFlags2[NodeCheckFlags2["CaptureArguments"] = 512] = "CaptureArguments";
6934
+ NodeCheckFlags2[NodeCheckFlags2["EnumValuesComputed"] = 1024] = "EnumValuesComputed";
6935
+ NodeCheckFlags2[NodeCheckFlags2["LexicalModuleMergesWithClass"] = 2048] = "LexicalModuleMergesWithClass";
6936
+ NodeCheckFlags2[NodeCheckFlags2["LoopWithCapturedBlockScopedBinding"] = 4096] = "LoopWithCapturedBlockScopedBinding";
6937
+ NodeCheckFlags2[NodeCheckFlags2["ContainsCapturedBlockScopeBinding"] = 8192] = "ContainsCapturedBlockScopeBinding";
6938
+ NodeCheckFlags2[NodeCheckFlags2["CapturedBlockScopedBinding"] = 16384] = "CapturedBlockScopedBinding";
6939
+ NodeCheckFlags2[NodeCheckFlags2["BlockScopedBindingInLoop"] = 32768] = "BlockScopedBindingInLoop";
6940
+ NodeCheckFlags2[NodeCheckFlags2["ClassWithBodyScopedClassBinding"] = 65536] = "ClassWithBodyScopedClassBinding";
6941
+ NodeCheckFlags2[NodeCheckFlags2["BodyScopedClassBinding"] = 131072] = "BodyScopedClassBinding";
6942
+ NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 262144] = "NeedsLoopOutParameter";
6943
+ NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 524288] = "AssignmentsMarked";
6944
+ NodeCheckFlags2[NodeCheckFlags2["ClassWithConstructorReference"] = 1048576] = "ClassWithConstructorReference";
6945
+ NodeCheckFlags2[NodeCheckFlags2["ConstructorReferenceInClass"] = 2097152] = "ConstructorReferenceInClass";
6946
+ NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 4194304] = "ContainsClassWithPrivateIdentifiers";
6947
+ NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 8388608] = "ContainsSuperPropertyInStaticInitializer";
6948
+ NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 16777216] = "InCheckIdentifier";
6998
6949
  return NodeCheckFlags2;
6999
6950
  })(NodeCheckFlags || {});
7000
6951
  var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
@@ -7067,6 +7018,7 @@ ${lanes.join("\n")}
7067
7018
  return TypeFlags2;
7068
7019
  })(TypeFlags || {});
7069
7020
  var ObjectFlags = /* @__PURE__ */ ((ObjectFlags3) => {
7021
+ ObjectFlags3[ObjectFlags3["None"] = 0] = "None";
7070
7022
  ObjectFlags3[ObjectFlags3["Class"] = 1] = "Class";
7071
7023
  ObjectFlags3[ObjectFlags3["Interface"] = 2] = "Interface";
7072
7024
  ObjectFlags3[ObjectFlags3["Reference"] = 4] = "Reference";
@@ -7184,6 +7136,7 @@ ${lanes.join("\n")}
7184
7136
  return TypeMapKind2;
7185
7137
  })(TypeMapKind || {});
7186
7138
  var InferencePriority = /* @__PURE__ */ ((InferencePriority2) => {
7139
+ InferencePriority2[InferencePriority2["None"] = 0] = "None";
7187
7140
  InferencePriority2[InferencePriority2["NakedTypeVariable"] = 1] = "NakedTypeVariable";
7188
7141
  InferencePriority2[InferencePriority2["SpeculativeTuple"] = 2] = "SpeculativeTuple";
7189
7142
  InferencePriority2[InferencePriority2["SubstituteSource"] = 4] = "SubstituteSource";
@@ -7274,19 +7227,19 @@ ${lanes.join("\n")}
7274
7227
  PollingWatchKind3[PollingWatchKind3["FixedChunkSize"] = 3] = "FixedChunkSize";
7275
7228
  return PollingWatchKind3;
7276
7229
  })(PollingWatchKind || {});
7277
- var ModuleKind = /* @__PURE__ */ ((ModuleKind7) => {
7278
- ModuleKind7[ModuleKind7["None"] = 0] = "None";
7279
- ModuleKind7[ModuleKind7["CommonJS"] = 1] = "CommonJS";
7280
- ModuleKind7[ModuleKind7["AMD"] = 2] = "AMD";
7281
- ModuleKind7[ModuleKind7["UMD"] = 3] = "UMD";
7282
- ModuleKind7[ModuleKind7["System"] = 4] = "System";
7283
- ModuleKind7[ModuleKind7["ES2015"] = 5] = "ES2015";
7284
- ModuleKind7[ModuleKind7["ES2020"] = 6] = "ES2020";
7285
- ModuleKind7[ModuleKind7["ES2022"] = 7] = "ES2022";
7286
- ModuleKind7[ModuleKind7["ESNext"] = 99] = "ESNext";
7287
- ModuleKind7[ModuleKind7["Node16"] = 100] = "Node16";
7288
- ModuleKind7[ModuleKind7["NodeNext"] = 199] = "NodeNext";
7289
- return ModuleKind7;
7230
+ var ModuleKind = /* @__PURE__ */ ((ModuleKind3) => {
7231
+ ModuleKind3[ModuleKind3["None"] = 0] = "None";
7232
+ ModuleKind3[ModuleKind3["CommonJS"] = 1] = "CommonJS";
7233
+ ModuleKind3[ModuleKind3["AMD"] = 2] = "AMD";
7234
+ ModuleKind3[ModuleKind3["UMD"] = 3] = "UMD";
7235
+ ModuleKind3[ModuleKind3["System"] = 4] = "System";
7236
+ ModuleKind3[ModuleKind3["ES2015"] = 5] = "ES2015";
7237
+ ModuleKind3[ModuleKind3["ES2020"] = 6] = "ES2020";
7238
+ ModuleKind3[ModuleKind3["ES2022"] = 7] = "ES2022";
7239
+ ModuleKind3[ModuleKind3["ESNext"] = 99] = "ESNext";
7240
+ ModuleKind3[ModuleKind3["Node16"] = 100] = "Node16";
7241
+ ModuleKind3[ModuleKind3["NodeNext"] = 199] = "NodeNext";
7242
+ return ModuleKind3;
7290
7243
  })(ModuleKind || {});
7291
7244
  var JsxEmit = /* @__PURE__ */ ((JsxEmit3) => {
7292
7245
  JsxEmit3[JsxEmit3["None"] = 0] = "None";
@@ -10646,10 +10599,10 @@ ${lanes.join("\n")}
10646
10599
  Module_name_0_matched_pattern_1: diag(6092, 3 /* Message */, "Module_name_0_matched_pattern_1_6092", "Module name '{0}', matched pattern '{1}'."),
10647
10600
  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}'."),
10648
10601
  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}'."),
10649
- 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}'."),
10602
+ 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}."),
10650
10603
  File_0_does_not_exist: diag(6096, 3 /* Message */, "File_0_does_not_exist_6096", "File '{0}' does not exist."),
10651
10604
  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."),
10652
- 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}'."),
10605
+ 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}."),
10653
10606
  Found_package_json_at_0: diag(6099, 3 /* Message */, "Found_package_json_at_0_6099", "Found 'package.json' at '{0}'."),
10654
10607
  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."),
10655
10608
  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}'."),
@@ -19586,6 +19539,7 @@ ${lanes.join("\n")}
19586
19539
  var 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 */]];
19587
19540
  var allSupportedExtensionsWithJson = [...allSupportedExtensions, [".json" /* Json */]];
19588
19541
  var supportedDeclarationExtensions = [".d.ts" /* Dts */, ".d.cts" /* Dcts */, ".d.mts" /* Dmts */];
19542
+ var supportedTSImplementationExtensions = [".ts" /* Ts */, ".cts" /* Cts */, ".mts" /* Mts */, ".tsx" /* Tsx */];
19589
19543
  function getSupportedExtensions(options, extraFileExtensions) {
19590
19544
  const needJsExtensions = options && getAllowJSCompilerOption(options);
19591
19545
  if (!extraFileExtensions || extraFileExtensions.length === 0) {
@@ -25668,7 +25622,7 @@ ${lanes.join("\n")}
25668
25622
  var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
25669
25623
  var i, p;
25670
25624
  return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
25671
- 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; }
25625
+ 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; }
25672
25626
  };`
25673
25627
  };
25674
25628
  var asyncValues = {
@@ -37454,15 +37408,18 @@ ${lanes.join("\n")}
37454
37408
  return { path: r.path, ext: r.extension };
37455
37409
  }
37456
37410
  }
37457
- var Extensions = /* @__PURE__ */ ((Extensions2) => {
37458
- Extensions2[Extensions2["TypeScript"] = 0] = "TypeScript";
37459
- Extensions2[Extensions2["JavaScript"] = 1] = "JavaScript";
37460
- Extensions2[Extensions2["Json"] = 2] = "Json";
37461
- Extensions2[Extensions2["TSConfig"] = 3] = "TSConfig";
37462
- Extensions2[Extensions2["DtsOnly"] = 4] = "DtsOnly";
37463
- Extensions2[Extensions2["TsOnly"] = 5] = "TsOnly";
37464
- return Extensions2;
37465
- })(Extensions || {});
37411
+ function formatExtensions(extensions) {
37412
+ const result = [];
37413
+ if (extensions & 1 /* TypeScript */)
37414
+ result.push("TypeScript");
37415
+ if (extensions & 2 /* JavaScript */)
37416
+ result.push("JavaScript");
37417
+ if (extensions & 4 /* Declaration */)
37418
+ result.push("Declaration");
37419
+ if (extensions & 8 /* Json */)
37420
+ result.push("JSON");
37421
+ return result.join(", ");
37422
+ }
37466
37423
  function resolvedTypeScriptOnly(resolved) {
37467
37424
  if (!resolved) {
37468
37425
  return void 0;
@@ -37666,7 +37623,8 @@ ${lanes.join("\n")}
37666
37623
  features,
37667
37624
  conditions,
37668
37625
  requestContainingDirectory: containingDirectory,
37669
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
37626
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
37627
+ isConfigLookup: false
37670
37628
  };
37671
37629
  let resolved = primaryLookup();
37672
37630
  let primary = true;
@@ -37716,7 +37674,7 @@ ${lanes.join("\n")}
37716
37674
  }
37717
37675
  return resolvedTypeScriptOnly(
37718
37676
  loadNodeModuleFromDirectory(
37719
- 4 /* DtsOnly */,
37677
+ 4 /* Declaration */,
37720
37678
  candidate,
37721
37679
  !directoryExists,
37722
37680
  moduleResolutionState
@@ -37737,11 +37695,11 @@ ${lanes.join("\n")}
37737
37695
  }
37738
37696
  let result2;
37739
37697
  if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) {
37740
- const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /* DtsOnly */, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);
37698
+ const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /* Declaration */, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);
37741
37699
  result2 = searchResult && searchResult.value;
37742
37700
  } else {
37743
37701
  const { path: candidate } = normalizePathForCJSResolution(initialLocationForSecondaryLookup, typeReferenceDirectiveName);
37744
- result2 = nodeLoadModuleByRelativeName(4 /* DtsOnly */, candidate, false, moduleResolutionState, true);
37702
+ result2 = nodeLoadModuleByRelativeName(4 /* Declaration */, candidate, false, moduleResolutionState, true);
37745
37703
  }
37746
37704
  return resolvedTypeScriptOnly(result2);
37747
37705
  } else {
@@ -38267,38 +38225,42 @@ ${lanes.join("\n")}
38267
38225
  resolutionMode
38268
38226
  );
38269
38227
  }
38270
- var jsOnlyExtensions = [1 /* JavaScript */];
38271
- var tsExtensions = [0 /* TypeScript */, 1 /* JavaScript */];
38272
- var tsPlusJsonExtensions = [...tsExtensions, 2 /* Json */];
38273
- var tsconfigExtensions = [3 /* TSConfig */];
38274
38228
  function nodeNextModuleNameResolverWorker(features, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {
38275
38229
  const containingDirectory = getDirectoryPath(containingFile);
38276
38230
  const esmMode = resolutionMode === 99 /* ESNext */ ? 32 /* EsmMode */ : 0;
38277
- let extensions = compilerOptions.noDtsResolution ? [5 /* TsOnly */, 1 /* JavaScript */] : tsExtensions;
38231
+ let extensions = compilerOptions.noDtsResolution ? 3 /* ImplementationFiles */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
38278
38232
  if (compilerOptions.resolveJsonModule) {
38279
- extensions = [...extensions, 2 /* Json */];
38233
+ extensions |= 8 /* Json */;
38280
38234
  }
38281
- return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference);
38235
+ return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, false, redirectedReference);
38282
38236
  }
38283
38237
  function tryResolveJSModuleWorker(moduleName, initialDir, host) {
38284
- return nodeModuleNameResolverWorker(0 /* None */, moduleName, initialDir, { moduleResolution: 2 /* NodeJs */, allowJs: true }, host, void 0, jsOnlyExtensions, void 0);
38238
+ return nodeModuleNameResolverWorker(
38239
+ 0 /* None */,
38240
+ moduleName,
38241
+ initialDir,
38242
+ { moduleResolution: 2 /* NodeJs */, allowJs: true },
38243
+ host,
38244
+ void 0,
38245
+ 2 /* JavaScript */,
38246
+ false,
38247
+ void 0
38248
+ );
38285
38249
  }
38286
- function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, lookupConfig) {
38250
+ function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, isConfigLookup) {
38287
38251
  let extensions;
38288
- if (lookupConfig) {
38289
- extensions = tsconfigExtensions;
38252
+ if (isConfigLookup) {
38253
+ extensions = 8 /* Json */;
38290
38254
  } else if (compilerOptions.noDtsResolution) {
38291
- extensions = [5 /* TsOnly */];
38292
- if (compilerOptions.allowJs)
38293
- extensions.push(1 /* JavaScript */);
38255
+ extensions = 3 /* ImplementationFiles */;
38294
38256
  if (compilerOptions.resolveJsonModule)
38295
- extensions.push(2 /* Json */);
38257
+ extensions |= 8 /* Json */;
38296
38258
  } else {
38297
- extensions = compilerOptions.resolveJsonModule ? tsPlusJsonExtensions : tsExtensions;
38259
+ extensions = compilerOptions.resolveJsonModule ? 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */ | 8 /* Json */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
38298
38260
  }
38299
- return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, redirectedReference);
38261
+ return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, !!isConfigLookup, redirectedReference);
38300
38262
  }
38301
- function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference) {
38263
+ function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, isConfigLookup, redirectedReference) {
38302
38264
  var _a2, _b;
38303
38265
  const traceEnabled = isTraceEnabled(compilerOptions, host);
38304
38266
  const failedLookupLocations = [];
@@ -38318,12 +38280,20 @@ ${lanes.join("\n")}
38318
38280
  features,
38319
38281
  conditions,
38320
38282
  requestContainingDirectory: containingDirectory,
38321
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
38283
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
38284
+ isConfigLookup
38322
38285
  };
38323
38286
  if (traceEnabled && getEmitModuleResolutionKind(compilerOptions) >= 3 /* Node16 */ && getEmitModuleResolutionKind(compilerOptions) <= 99 /* NodeNext */) {
38324
38287
  trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & 32 /* EsmMode */ ? "ESM" : "CJS", conditions.map((c) => `'${c}'`).join(", "));
38325
38288
  }
38326
- const result = forEach(extensions, (ext) => tryResolve(ext));
38289
+ let result;
38290
+ if (getEmitModuleResolutionKind(compilerOptions) === 2 /* NodeJs */) {
38291
+ const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
38292
+ const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
38293
+ result = priorityExtensions && tryResolve(priorityExtensions) || secondaryExtensions && tryResolve(secondaryExtensions) || void 0;
38294
+ } else {
38295
+ result = tryResolve(extensions);
38296
+ }
38327
38297
  return createResolvedModuleWithFailedLookupLocations(
38328
38298
  (_a2 = result == null ? void 0 : result.value) == null ? void 0 : _a2.resolved,
38329
38299
  (_b = result == null ? void 0 : result.value) == null ? void 0 : _b.isExternalLibraryImport,
@@ -38348,7 +38318,7 @@ ${lanes.join("\n")}
38348
38318
  }
38349
38319
  if (!resolved2) {
38350
38320
  if (traceEnabled) {
38351
- trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1, moduleName, Extensions[extensions2]);
38321
+ trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions2));
38352
38322
  }
38353
38323
  resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state, cache, redirectedReference);
38354
38324
  }
@@ -38389,7 +38359,7 @@ ${lanes.join("\n")}
38389
38359
  }
38390
38360
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
38391
38361
  if (state.traceEnabled) {
38392
- trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1, candidate, Extensions[extensions]);
38362
+ trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1, candidate, formatExtensions(extensions));
38393
38363
  }
38394
38364
  if (!hasTrailingDirectorySeparator(candidate)) {
38395
38365
  if (!onlyRecordFailures) {
@@ -38447,10 +38417,9 @@ ${lanes.join("\n")}
38447
38417
  return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state));
38448
38418
  }
38449
38419
  function loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) {
38450
- if (extensions === 2 /* Json */ || extensions === 3 /* TSConfig */) {
38451
- const extensionLess = tryRemoveExtension(candidate, ".json" /* Json */);
38452
- const extension = extensionLess ? candidate.substring(extensionLess.length) : "";
38453
- return extensionLess === void 0 && extensions === 2 /* Json */ ? void 0 : tryAddingExtensions(extensionLess || candidate, extensions, extension, onlyRecordFailures, state);
38420
+ const resolvedByReplacingExtension = loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
38421
+ if (resolvedByReplacingExtension) {
38422
+ return resolvedByReplacingExtension;
38454
38423
  }
38455
38424
  if (!(state.features & 32 /* EsmMode */)) {
38456
38425
  const resolvedByAddingExtension = tryAddingExtensions(candidate, extensions, "", onlyRecordFailures, state);
@@ -38458,10 +38427,9 @@ ${lanes.join("\n")}
38458
38427
  return resolvedByAddingExtension;
38459
38428
  }
38460
38429
  }
38461
- return loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
38462
38430
  }
38463
38431
  function loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state) {
38464
- if (hasJSFileExtension(candidate) || fileExtensionIs(candidate, ".json" /* Json */) && state.compilerOptions.resolveJsonModule) {
38432
+ if (hasJSFileExtension(candidate) || extensions & 8 /* Json */ && fileExtensionIs(candidate, ".json" /* Json */)) {
38465
38433
  const extensionless = removeFileExtension(candidate);
38466
38434
  const extension = candidate.substring(extensionless.length);
38467
38435
  if (state.traceEnabled) {
@@ -38471,7 +38439,7 @@ ${lanes.join("\n")}
38471
38439
  }
38472
38440
  }
38473
38441
  function loadJSOrExactTSFileName(extensions, candidate, onlyRecordFailures, state) {
38474
- if ((extensions === 0 /* TypeScript */ || extensions === 4 /* DtsOnly */) && fileExtensionIsOneOf(candidate, supportedTSExtensionsFlat)) {
38442
+ if (extensions & 1 /* TypeScript */ && fileExtensionIsOneOf(candidate, supportedTSImplementationExtensions) || extensions & 4 /* Declaration */ && fileExtensionIsOneOf(candidate, supportedDeclarationExtensions)) {
38475
38443
  const result = tryFile(candidate, onlyRecordFailures, state);
38476
38444
  return result !== void 0 ? { path: candidate, ext: tryExtractTSExtension(candidate) } : void 0;
38477
38445
  }
@@ -38484,59 +38452,32 @@ ${lanes.join("\n")}
38484
38452
  onlyRecordFailures = !directoryProbablyExists(directory, state.host);
38485
38453
  }
38486
38454
  }
38487
- switch (extensions) {
38488
- case 4 /* DtsOnly */:
38489
- switch (originalExtension) {
38490
- case ".mjs" /* Mjs */:
38491
- case ".mts" /* Mts */:
38492
- case ".d.mts" /* Dmts */:
38493
- return tryExtension(".d.mts" /* Dmts */);
38494
- case ".cjs" /* Cjs */:
38495
- case ".cts" /* Cts */:
38496
- case ".d.cts" /* Dcts */:
38497
- return tryExtension(".d.cts" /* Dcts */);
38498
- case ".json" /* Json */:
38499
- candidate += ".json" /* Json */;
38500
- return tryExtension(".d.ts" /* Dts */);
38501
- default:
38502
- return tryExtension(".d.ts" /* Dts */);
38503
- }
38504
- case 0 /* TypeScript */:
38505
- case 5 /* TsOnly */:
38506
- const useDts = extensions === 0 /* TypeScript */;
38507
- switch (originalExtension) {
38508
- case ".mjs" /* Mjs */:
38509
- case ".mts" /* Mts */:
38510
- case ".d.mts" /* Dmts */:
38511
- return tryExtension(".mts" /* Mts */) || (useDts ? tryExtension(".d.mts" /* Dmts */) : void 0);
38512
- case ".cjs" /* Cjs */:
38513
- case ".cts" /* Cts */:
38514
- case ".d.cts" /* Dcts */:
38515
- return tryExtension(".cts" /* Cts */) || (useDts ? tryExtension(".d.cts" /* Dcts */) : void 0);
38516
- case ".json" /* Json */:
38517
- candidate += ".json" /* Json */;
38518
- return useDts ? tryExtension(".d.ts" /* Dts */) : void 0;
38519
- default:
38520
- return tryExtension(".ts" /* Ts */) || tryExtension(".tsx" /* Tsx */) || (useDts ? tryExtension(".d.ts" /* Dts */) : void 0);
38521
- }
38522
- case 1 /* JavaScript */:
38523
- switch (originalExtension) {
38524
- case ".mjs" /* Mjs */:
38525
- case ".mts" /* Mts */:
38526
- case ".d.mts" /* Dmts */:
38527
- return tryExtension(".mjs" /* Mjs */);
38528
- case ".cjs" /* Cjs */:
38529
- case ".cts" /* Cts */:
38530
- case ".d.cts" /* Dcts */:
38531
- return tryExtension(".cjs" /* Cjs */);
38532
- case ".json" /* Json */:
38533
- return tryExtension(".json" /* Json */);
38534
- default:
38535
- return tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */);
38455
+ switch (originalExtension) {
38456
+ case ".mjs" /* Mjs */:
38457
+ case ".mts" /* Mts */:
38458
+ case ".d.mts" /* Dmts */:
38459
+ return extensions & 1 /* TypeScript */ && tryExtension(".mts" /* Mts */) || extensions & 4 /* Declaration */ && tryExtension(".d.mts" /* Dmts */) || extensions & 2 /* JavaScript */ && tryExtension(".mjs" /* Mjs */) || void 0;
38460
+ case ".cjs" /* Cjs */:
38461
+ case ".cts" /* Cts */:
38462
+ case ".d.cts" /* Dcts */:
38463
+ return extensions & 1 /* TypeScript */ && tryExtension(".cts" /* Cts */) || extensions & 4 /* Declaration */ && tryExtension(".d.cts" /* Dcts */) || extensions & 2 /* JavaScript */ && tryExtension(".cjs" /* Cjs */) || void 0;
38464
+ case ".json" /* Json */:
38465
+ const originalCandidate = candidate;
38466
+ if (extensions & 4 /* Declaration */) {
38467
+ candidate += ".json" /* Json */;
38468
+ const result = tryExtension(".d.ts" /* Dts */);
38469
+ if (result)
38470
+ return result;
38471
+ }
38472
+ if (extensions & 8 /* Json */) {
38473
+ candidate = originalCandidate;
38474
+ const result = tryExtension(".json" /* Json */);
38475
+ if (result)
38476
+ return result;
38536
38477
  }
38537
- case 3 /* TSConfig */:
38538
- case 2 /* Json */:
38539
- return tryExtension(".json" /* Json */);
38478
+ return void 0;
38479
+ default:
38480
+ 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;
38540
38481
  }
38541
38482
  function tryExtension(ext) {
38542
38483
  const path = tryFile(candidate + ext, onlyRecordFailures, state);
@@ -38579,7 +38520,7 @@ ${lanes.join("\n")}
38579
38520
  return packageJsonInfo.contents.resolvedEntrypoints;
38580
38521
  }
38581
38522
  let entrypoints;
38582
- const extensions = resolveJs ? 1 /* JavaScript */ : 0 /* TypeScript */;
38523
+ const extensions = 1 /* TypeScript */ | 4 /* Declaration */ | (resolveJs ? 2 /* JavaScript */ : 0);
38583
38524
  const features = getDefaultNodeResolutionFeatures(options);
38584
38525
  const requireState = getTemporaryModuleResolutionState(cache == null ? void 0 : cache.getPackageJsonInfoCache(), host, options);
38585
38526
  requireState.conditions = ["node", "require", "types"];
@@ -38667,7 +38608,8 @@ ${lanes.join("\n")}
38667
38608
  features: 0 /* None */,
38668
38609
  conditions: emptyArray,
38669
38610
  requestContainingDirectory: void 0,
38670
- reportDiagnostic: noop
38611
+ reportDiagnostic: noop,
38612
+ isConfigLookup: false
38671
38613
  };
38672
38614
  }
38673
38615
  function getPackageScopeForPath(fileName, state) {
@@ -38726,23 +38668,10 @@ ${lanes.join("\n")}
38726
38668
  function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) {
38727
38669
  let packageFile;
38728
38670
  if (jsonContent) {
38729
- switch (extensions) {
38730
- case 1 /* JavaScript */:
38731
- case 2 /* Json */:
38732
- case 5 /* TsOnly */:
38733
- packageFile = readPackageJsonMainField(jsonContent, candidate, state);
38734
- break;
38735
- case 0 /* TypeScript */:
38736
- packageFile = readPackageJsonTypesFields(jsonContent, candidate, state) || readPackageJsonMainField(jsonContent, candidate, state);
38737
- break;
38738
- case 4 /* DtsOnly */:
38739
- packageFile = readPackageJsonTypesFields(jsonContent, candidate, state);
38740
- break;
38741
- case 3 /* TSConfig */:
38742
- packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
38743
- break;
38744
- default:
38745
- return Debug.assertNever(extensions);
38671
+ if (state.isConfigLookup) {
38672
+ packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
38673
+ } else {
38674
+ packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(jsonContent, candidate, state) || void 0;
38746
38675
  }
38747
38676
  }
38748
38677
  const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
@@ -38756,18 +38685,18 @@ ${lanes.join("\n")}
38756
38685
  trace(state2.host, Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromFile);
38757
38686
  }
38758
38687
  }
38759
- const nextExtensions = extensions2 === 4 /* DtsOnly */ ? 0 /* TypeScript */ : extensions2;
38688
+ const expandedExtensions = extensions2 === 4 /* Declaration */ ? 1 /* TypeScript */ | 4 /* Declaration */ : extensions2;
38760
38689
  const features = state2.features;
38761
38690
  if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") {
38762
38691
  state2.features &= ~32 /* EsmMode */;
38763
38692
  }
38764
- const result = nodeLoadModuleByRelativeName(nextExtensions, candidate2, onlyRecordFailures2, state2, false);
38693
+ const result = nodeLoadModuleByRelativeName(expandedExtensions, candidate2, onlyRecordFailures2, state2, false);
38765
38694
  state2.features = features;
38766
38695
  return result;
38767
38696
  };
38768
38697
  const onlyRecordFailuresForPackageFile = packageFile ? !directoryProbablyExists(getDirectoryPath(packageFile), state.host) : void 0;
38769
38698
  const onlyRecordFailuresForIndex = onlyRecordFailures || !directoryProbablyExists(candidate, state.host);
38770
- const indexPath = combinePaths(candidate, extensions === 3 /* TSConfig */ ? "tsconfig" : "index");
38699
+ const indexPath = combinePaths(candidate, state.isConfigLookup ? "tsconfig" : "index");
38771
38700
  if (versionPaths && (!packageFile || containsPath(candidate, packageFile))) {
38772
38701
  const moduleName = getRelativePathFromDirectory(candidate, packageFile || indexPath, false);
38773
38702
  if (state.traceEnabled) {
@@ -38790,19 +38719,7 @@ ${lanes.join("\n")}
38790
38719
  return ext !== void 0 && extensionIsOk(extensions, ext) ? { path, ext } : void 0;
38791
38720
  }
38792
38721
  function extensionIsOk(extensions, extension) {
38793
- switch (extensions) {
38794
- case 1 /* JavaScript */:
38795
- return extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */;
38796
- case 3 /* TSConfig */:
38797
- case 2 /* Json */:
38798
- return extension === ".json" /* Json */;
38799
- case 0 /* TypeScript */:
38800
- 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 */;
38801
- case 5 /* TsOnly */:
38802
- return extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */;
38803
- case 4 /* DtsOnly */:
38804
- return extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */;
38805
- }
38722
+ 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;
38806
38723
  }
38807
38724
  function parsePackageName(moduleName) {
38808
38725
  let idx = moduleName.indexOf(directorySeparator);
@@ -38964,7 +38881,7 @@ ${lanes.join("\n")}
38964
38881
  const combinedLookup = pattern ? target.replace(/\*/g, subpath) : target + subpath;
38965
38882
  traceIfEnabled(state, Diagnostics.Using_0_subpath_1_with_target_2, "imports", key, combinedLookup);
38966
38883
  traceIfEnabled(state, Diagnostics.Resolving_module_0_from_1, combinedLookup, scope.packageDirectory + "/");
38967
- const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache, [extensions], redirectedReference);
38884
+ const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache, extensions, false, redirectedReference);
38968
38885
  return toSearchResult(result.resolvedModule ? { path: result.resolvedModule.resolvedFileName, extension: result.resolvedModule.extension, packageId: result.resolvedModule.packageId, originalPath: result.resolvedModule.originalPath } : void 0);
38969
38886
  }
38970
38887
  if (state.traceEnabled) {
@@ -39055,7 +38972,7 @@ ${lanes.join("\n")}
39055
38972
  }
39056
38973
  function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
39057
38974
  var _a2, _b, _c, _d;
39058
- 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)) {
38975
+ 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)) {
39059
38976
  const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames });
39060
38977
  const commonSourceDirGuesses = [];
39061
38978
  if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
@@ -39092,10 +39009,9 @@ ${lanes.join("\n")}
39092
39009
  if (fileExtensionIs(possibleInputBase, ext)) {
39093
39010
  const inputExts = getPossibleOriginalInputExtensionForExtension(possibleInputBase);
39094
39011
  for (const possibleExt of inputExts) {
39095
- const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
39096
- if (extensions === 0 /* TypeScript */ && hasJSFileExtension(possibleInputWithInputExtension) || extensions === 1 /* JavaScript */ && hasTSFileExtension(possibleInputWithInputExtension)) {
39012
+ if (!extensionIsOk(extensions, possibleExt))
39097
39013
  continue;
39098
- }
39014
+ const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
39099
39015
  if (state.host.fileExists(possibleInputWithInputExtension)) {
39100
39016
  return toSearchResult(withPackageId(scope, loadJSOrExactTSFileName(extensions, possibleInputWithInputExtension, false, state)));
39101
39017
  }
@@ -39136,19 +39052,31 @@ ${lanes.join("\n")}
39136
39052
  return loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, false, cache, redirectedReference);
39137
39053
  }
39138
39054
  function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directory, state) {
39139
- return loadModuleFromNearestNodeModulesDirectoryWorker(4 /* DtsOnly */, moduleName, directory, state, true, void 0, void 0);
39055
+ return loadModuleFromNearestNodeModulesDirectoryWorker(4 /* Declaration */, moduleName, directory, state, true, void 0, void 0);
39140
39056
  }
39141
39057
  function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
39142
39058
  const perModuleNameCache = cache && cache.getOrCreateCacheForModuleName(moduleName, state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ ? 99 /* ESNext */ : 1 /* CommonJS */, redirectedReference);
39143
- return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => {
39144
- if (getBaseFileName(ancestorDirectory) !== "node_modules") {
39145
- const resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, ancestorDirectory, state);
39146
- if (resolutionFromCache) {
39147
- return resolutionFromCache;
39059
+ const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
39060
+ const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
39061
+ if (priorityExtensions) {
39062
+ const result = lookup(priorityExtensions);
39063
+ if (result)
39064
+ return result;
39065
+ }
39066
+ if (secondaryExtensions && !typesScopeOnly) {
39067
+ return lookup(secondaryExtensions);
39068
+ }
39069
+ function lookup(extensions2) {
39070
+ return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => {
39071
+ if (getBaseFileName(ancestorDirectory) !== "node_modules") {
39072
+ const resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, ancestorDirectory, state);
39073
+ if (resolutionFromCache) {
39074
+ return resolutionFromCache;
39075
+ }
39076
+ return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions2, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));
39148
39077
  }
39149
- return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));
39150
- }
39151
- });
39078
+ });
39079
+ }
39152
39080
  }
39153
39081
  function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
39154
39082
  const nodeModulesFolder = combinePaths(directory, "node_modules");
@@ -39156,11 +39084,13 @@ ${lanes.join("\n")}
39156
39084
  if (!nodeModulesFolderExists && state.traceEnabled) {
39157
39085
  trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesFolder);
39158
39086
  }
39159
- const packageResult = typesScopeOnly ? void 0 : loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);
39160
- if (packageResult) {
39161
- return packageResult;
39087
+ if (!typesScopeOnly) {
39088
+ const packageResult = loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);
39089
+ if (packageResult) {
39090
+ return packageResult;
39091
+ }
39162
39092
  }
39163
- if (extensions === 0 /* TypeScript */ || extensions === 4 /* DtsOnly */) {
39093
+ if (extensions & 4 /* Declaration */) {
39164
39094
  const nodeModulesAtTypes2 = combinePaths(nodeModulesFolder, "@types");
39165
39095
  let nodeModulesAtTypesExists = nodeModulesFolderExists;
39166
39096
  if (nodeModulesFolderExists && !directoryProbablyExists(nodeModulesAtTypes2, state.host)) {
@@ -39169,7 +39099,7 @@ ${lanes.join("\n")}
39169
39099
  }
39170
39100
  nodeModulesAtTypesExists = false;
39171
39101
  }
39172
- return loadModuleFromSpecificNodeModulesDirectory(4 /* DtsOnly */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);
39102
+ return loadModuleFromSpecificNodeModulesDirectory(4 /* Declaration */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);
39173
39103
  }
39174
39104
  }
39175
39105
  function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {
@@ -39310,9 +39240,10 @@ ${lanes.join("\n")}
39310
39240
  features: 0 /* None */,
39311
39241
  conditions: [],
39312
39242
  requestContainingDirectory: containingDirectory,
39313
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
39243
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
39244
+ isConfigLookup: false
39314
39245
  };
39315
- const resolved = tryResolve(0 /* TypeScript */) || tryResolve(1 /* JavaScript */);
39246
+ const resolved = tryResolve(1 /* TypeScript */ | 4 /* Declaration */) || tryResolve(2 /* JavaScript */ | (compilerOptions.resolveJsonModule ? 8 /* Json */ : 0));
39316
39247
  return createResolvedModuleWithFailedLookupLocations(
39317
39248
  resolved && resolved.value,
39318
39249
  false,
@@ -39339,7 +39270,7 @@ ${lanes.join("\n")}
39339
39270
  if (resolved2) {
39340
39271
  return resolved2;
39341
39272
  }
39342
- if (extensions === 0 /* TypeScript */) {
39273
+ if (extensions & (1 /* TypeScript */ | 4 /* Declaration */)) {
39343
39274
  return loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state);
39344
39275
  }
39345
39276
  } else {
@@ -39366,9 +39297,10 @@ ${lanes.join("\n")}
39366
39297
  features: 0 /* None */,
39367
39298
  conditions: [],
39368
39299
  requestContainingDirectory: void 0,
39369
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
39300
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
39301
+ isConfigLookup: false
39370
39302
  };
39371
- const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /* DtsOnly */, moduleName, globalCache, state, false, void 0, void 0);
39303
+ const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /* Declaration */, moduleName, globalCache, state, false, void 0, void 0);
39372
39304
  return createResolvedModuleWithFailedLookupLocations(
39373
39305
  resolved,
39374
39306
  true,
@@ -42367,6 +42299,7 @@ ${lanes.join("\n")}
42367
42299
  const importedFileIsInNodeModules = some(modulePaths, (p) => p.isInNodeModules);
42368
42300
  let nodeModulesSpecifiers;
42369
42301
  let pathsSpecifiers;
42302
+ let redirectPathsSpecifiers;
42370
42303
  let relativeSpecifiers;
42371
42304
  for (const modulePath of modulePaths) {
42372
42305
  const specifier = tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, void 0, options.overrideImportMode);
@@ -42374,60 +42307,77 @@ ${lanes.join("\n")}
42374
42307
  if (specifier && modulePath.isRedirect) {
42375
42308
  return nodeModulesSpecifiers;
42376
42309
  }
42377
- if (!specifier && !modulePath.isRedirect) {
42378
- const local = getLocalModuleSpecifier(modulePath.path, info, compilerOptions, host, options.overrideImportMode || importingSourceFile.impliedNodeFormat, preferences);
42379
- if (pathIsBareSpecifier(local)) {
42310
+ if (!specifier) {
42311
+ const local = getLocalModuleSpecifier(
42312
+ modulePath.path,
42313
+ info,
42314
+ compilerOptions,
42315
+ host,
42316
+ options.overrideImportMode || importingSourceFile.impliedNodeFormat,
42317
+ preferences,
42318
+ modulePath.isRedirect
42319
+ );
42320
+ if (!local) {
42321
+ continue;
42322
+ }
42323
+ if (modulePath.isRedirect) {
42324
+ redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
42325
+ } else if (pathIsBareSpecifier(local)) {
42380
42326
  pathsSpecifiers = append(pathsSpecifiers, local);
42381
42327
  } else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
42382
42328
  relativeSpecifiers = append(relativeSpecifiers, local);
42383
42329
  }
42384
42330
  }
42385
42331
  }
42386
- return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers : Debug.checkDefined(relativeSpecifiers);
42332
+ 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);
42387
42333
  }
42388
42334
  function getInfo(importingSourceFileName, host) {
42389
42335
  const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : true);
42390
42336
  const sourceDirectory = getDirectoryPath(importingSourceFileName);
42391
42337
  return { getCanonicalFileName, importingSourceFileName, sourceDirectory };
42392
42338
  }
42393
- function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }) {
42339
+ function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }, pathsOnly) {
42394
42340
  const { baseUrl, paths, rootDirs } = compilerOptions;
42341
+ if (pathsOnly && !paths) {
42342
+ return void 0;
42343
+ }
42395
42344
  const { sourceDirectory, getCanonicalFileName } = info;
42396
42345
  const relativePath = rootDirs && tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, ending, compilerOptions) || removeExtensionAndIndexPostFix(ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceDirectory, moduleFileName, getCanonicalFileName)), ending, compilerOptions);
42397
42346
  if (!baseUrl && !paths || relativePreference === 0 /* Relative */) {
42398
- return relativePath;
42347
+ return pathsOnly ? void 0 : relativePath;
42399
42348
  }
42400
42349
  const baseDirectory = getNormalizedAbsolutePath(getPathsBasePath(compilerOptions, host) || baseUrl, host.getCurrentDirectory());
42401
42350
  const relativeToBaseUrl = getRelativePathIfInDirectory(moduleFileName, baseDirectory, getCanonicalFileName);
42402
42351
  if (!relativeToBaseUrl) {
42403
- return relativePath;
42352
+ return pathsOnly ? void 0 : relativePath;
42404
42353
  }
42405
42354
  const fromPaths = paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, getAllowedEndings(ending, compilerOptions, importMode), host, compilerOptions);
42406
- const nonRelative = fromPaths === void 0 && baseUrl !== void 0 ? removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) : fromPaths;
42407
- if (!nonRelative) {
42355
+ if (pathsOnly) {
42356
+ return fromPaths;
42357
+ }
42358
+ const maybeNonRelative = fromPaths === void 0 && baseUrl !== void 0 ? removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) : fromPaths;
42359
+ if (!maybeNonRelative) {
42408
42360
  return relativePath;
42409
42361
  }
42410
- if (relativePreference === 1 /* NonRelative */) {
42411
- return nonRelative;
42362
+ if (relativePreference === 1 /* NonRelative */ && !pathIsRelative(maybeNonRelative)) {
42363
+ return maybeNonRelative;
42412
42364
  }
42413
- if (relativePreference === 3 /* ExternalNonRelative */) {
42365
+ if (relativePreference === 3 /* ExternalNonRelative */ && !pathIsRelative(maybeNonRelative)) {
42414
42366
  const projectDirectory = compilerOptions.configFilePath ? toPath(getDirectoryPath(compilerOptions.configFilePath), host.getCurrentDirectory(), info.getCanonicalFileName) : info.getCanonicalFileName(host.getCurrentDirectory());
42415
42367
  const modulePath = toPath(moduleFileName, projectDirectory, getCanonicalFileName);
42416
42368
  const sourceIsInternal = startsWith(sourceDirectory, projectDirectory);
42417
42369
  const targetIsInternal = startsWith(modulePath, projectDirectory);
42418
42370
  if (sourceIsInternal && !targetIsInternal || !sourceIsInternal && targetIsInternal) {
42419
- return nonRelative;
42371
+ return maybeNonRelative;
42420
42372
  }
42421
42373
  const nearestTargetPackageJson = getNearestAncestorDirectoryWithPackageJson(host, getDirectoryPath(modulePath));
42422
42374
  const nearestSourcePackageJson = getNearestAncestorDirectoryWithPackageJson(host, sourceDirectory);
42423
42375
  if (nearestSourcePackageJson !== nearestTargetPackageJson) {
42424
- return nonRelative;
42376
+ return maybeNonRelative;
42425
42377
  }
42426
42378
  return relativePath;
42427
42379
  }
42428
- if (relativePreference !== 2 /* Shortest */)
42429
- Debug.assertNever(relativePreference);
42430
- return isPathRelativeToParent(nonRelative) || countPathComponents(relativePath) < countPathComponents(nonRelative) ? relativePath : nonRelative;
42380
+ return isPathRelativeToParent(maybeNonRelative) || countPathComponents(relativePath) < countPathComponents(maybeNonRelative) ? relativePath : maybeNonRelative;
42431
42381
  }
42432
42382
  function countPathComponents(path) {
42433
42383
  let count = 0;
@@ -42988,6 +42938,7 @@ ${lanes.join("\n")}
42988
42938
  return CheckMode3;
42989
42939
  })(CheckMode || {});
42990
42940
  var SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => {
42941
+ SignatureCheckMode3[SignatureCheckMode3["None"] = 0] = "None";
42991
42942
  SignatureCheckMode3[SignatureCheckMode3["BivariantCallback"] = 1] = "BivariantCallback";
42992
42943
  SignatureCheckMode3[SignatureCheckMode3["StrictCallback"] = 2] = "StrictCallback";
42993
42944
  SignatureCheckMode3[SignatureCheckMode3["IgnoreReturnTypes"] = 4] = "IgnoreReturnTypes";
@@ -43005,7 +42956,7 @@ ${lanes.join("\n")}
43005
42956
  function SymbolLinks() {
43006
42957
  }
43007
42958
  function NodeLinks() {
43008
- this.flags = 0;
42959
+ this.flags = 0 /* None */;
43009
42960
  }
43010
42961
  function getNodeId(node) {
43011
42962
  if (!node.id) {
@@ -43850,7 +43801,7 @@ ${lanes.join("\n")}
43850
43801
  function createSymbol(flags, name, checkFlags) {
43851
43802
  symbolCount++;
43852
43803
  const symbol = new Symbol46(flags | 33554432 /* Transient */, name);
43853
- symbol.checkFlags = checkFlags || 0;
43804
+ symbol.checkFlags = checkFlags || 0 /* None */;
43854
43805
  return symbol;
43855
43806
  }
43856
43807
  function getExcludedSymbolFlags(flags) {
@@ -46161,7 +46112,7 @@ ${lanes.join("\n")}
46161
46112
  function createOriginType(flags) {
46162
46113
  return new Type27(checker, flags);
46163
46114
  }
46164
- function createIntrinsicType(kind, intrinsicName, objectFlags = 0) {
46115
+ function createIntrinsicType(kind, intrinsicName, objectFlags = 0 /* None */) {
46165
46116
  const type = createType(kind);
46166
46117
  type.intrinsicName = intrinsicName;
46167
46118
  type.objectFlags = objectFlags;
@@ -46656,25 +46607,22 @@ ${lanes.join("\n")}
46656
46607
  const context = {
46657
46608
  enclosingDeclaration,
46658
46609
  flags: flags || 0 /* None */,
46659
- tracker: tracker && tracker.trackSymbol ? tracker : {
46660
- trackSymbol: () => false,
46661
- moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
46662
- getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
46663
- getCurrentDirectory: () => host.getCurrentDirectory(),
46664
- getSymlinkCache: maybeBind(host, host.getSymlinkCache),
46665
- getPackageJsonInfoCache: () => {
46666
- var _a3;
46667
- return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
46668
- },
46669
- useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
46670
- redirectTargetsMap: host.redirectTargetsMap,
46671
- getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
46672
- isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
46673
- fileExists: (fileName) => host.fileExists(fileName),
46674
- getFileIncludeReasons: () => host.getFileIncludeReasons(),
46675
- readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
46676
- } : void 0
46677
- },
46610
+ tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: () => false, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
46611
+ getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
46612
+ getCurrentDirectory: () => host.getCurrentDirectory(),
46613
+ getSymlinkCache: maybeBind(host, host.getSymlinkCache),
46614
+ getPackageJsonInfoCache: () => {
46615
+ var _a3;
46616
+ return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
46617
+ },
46618
+ useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
46619
+ redirectTargetsMap: host.redirectTargetsMap,
46620
+ getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
46621
+ isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
46622
+ fileExists: (fileName) => host.fileExists(fileName),
46623
+ getFileIncludeReasons: () => host.getFileIncludeReasons(),
46624
+ readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
46625
+ } : void 0 },
46678
46626
  encounteredError: false,
46679
46627
  reportedDiagnostic: false,
46680
46628
  visitedTypes: void 0,
@@ -53004,7 +52952,7 @@ ${lanes.join("\n")}
53004
52952
  function containsArgumentsReference(declaration) {
53005
52953
  const links = getNodeLinks(declaration);
53006
52954
  if (links.containsArgumentsReference === void 0) {
53007
- if (links.flags & 8192 /* CaptureArguments */) {
52955
+ if (links.flags & 512 /* CaptureArguments */) {
53008
52956
  links.containsArgumentsReference = true;
53009
52957
  } else {
53010
52958
  links.containsArgumentsReference = traverse(declaration.body);
@@ -56904,7 +56852,7 @@ ${lanes.join("\n")}
56904
56852
  return compareSignaturesRelated(
56905
56853
  source,
56906
56854
  target,
56907
- ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0,
56855
+ ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0 /* None */,
56908
56856
  false,
56909
56857
  void 0,
56910
56858
  void 0,
@@ -57138,7 +57086,9 @@ ${lanes.join("\n")}
57138
57086
  if (relation === assignableRelation || relation === comparableRelation) {
57139
57087
  if (s & 1 /* Any */)
57140
57088
  return true;
57141
- if (s & (8 /* Number */ | 256 /* NumberLiteral */) && !(s & 1024 /* EnumLiteral */) && (t & 32 /* Enum */ || relation === assignableRelation && t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */))
57089
+ if (s & 8 /* Number */ && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */))
57090
+ return true;
57091
+ if (s & 256 /* NumberLiteral */ && !(s & 1024 /* EnumLiteral */) && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */ && source.value === target.value))
57142
57092
  return true;
57143
57093
  if (isUnknownLikeUnionType(target))
57144
57094
  return true;
@@ -60184,7 +60134,7 @@ ${lanes.join("\n")}
60184
60134
  pos = p;
60185
60135
  }
60186
60136
  }
60187
- function inferTypes(inferences, originalSource, originalTarget, priority = 0, contravariant = false) {
60137
+ function inferTypes(inferences, originalSource, originalTarget, priority = 0 /* None */, contravariant = false) {
60188
60138
  let bivariant = false;
60189
60139
  let propagationType;
60190
60140
  let inferencePriority = 2048 /* MaxValue */;
@@ -62626,8 +62576,8 @@ ${lanes.join("\n")}
62626
62576
  }
62627
62577
  const parent2 = getRootDeclaration(symbol.valueDeclaration).parent;
62628
62578
  const links = getNodeLinks(parent2);
62629
- if (!(links.flags & 8388608 /* AssignmentsMarked */)) {
62630
- links.flags |= 8388608 /* AssignmentsMarked */;
62579
+ if (!(links.flags & 524288 /* AssignmentsMarked */)) {
62580
+ links.flags |= 524288 /* AssignmentsMarked */;
62631
62581
  if (!hasParentWithAssignmentsMarked(parent2)) {
62632
62582
  markNodeAssignments(parent2);
62633
62583
  }
@@ -62635,7 +62585,7 @@ ${lanes.join("\n")}
62635
62585
  return symbol.isAssigned || false;
62636
62586
  }
62637
62587
  function hasParentWithAssignmentsMarked(node) {
62638
- return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 8388608 /* AssignmentsMarked */));
62588
+ return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 524288 /* AssignmentsMarked */));
62639
62589
  }
62640
62590
  function markNodeAssignments(node) {
62641
62591
  if (node.kind === 79 /* Identifier */) {
@@ -62714,11 +62664,11 @@ ${lanes.join("\n")}
62714
62664
  const parent2 = declaration.parent.parent;
62715
62665
  if (parent2.kind === 257 /* VariableDeclaration */ && getCombinedNodeFlags(declaration) & 2 /* Const */ || parent2.kind === 166 /* Parameter */) {
62716
62666
  const links = getNodeLinks(parent2);
62717
- if (!(links.flags & 268435456 /* InCheckIdentifier */)) {
62718
- links.flags |= 268435456 /* InCheckIdentifier */;
62667
+ if (!(links.flags & 16777216 /* InCheckIdentifier */)) {
62668
+ links.flags |= 16777216 /* InCheckIdentifier */;
62719
62669
  const parentType = getTypeForBindingElementParent(parent2, 0 /* Normal */);
62720
62670
  const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
62721
- links.flags &= ~268435456 /* InCheckIdentifier */;
62671
+ links.flags &= ~16777216 /* InCheckIdentifier */;
62722
62672
  if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent2.kind === 166 /* Parameter */ && isSymbolAssigned(symbol))) {
62723
62673
  const pattern = declaration.parent;
62724
62674
  const narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, void 0, location2.flowNode);
@@ -62768,7 +62718,7 @@ ${lanes.join("\n")}
62768
62718
  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);
62769
62719
  }
62770
62720
  }
62771
- getNodeLinks(container).flags |= 8192 /* CaptureArguments */;
62721
+ getNodeLinks(container).flags |= 512 /* CaptureArguments */;
62772
62722
  return getTypeOfSymbol(symbol);
62773
62723
  }
62774
62724
  if (shouldMarkIdentifierAliasReferenced(node)) {
@@ -62785,8 +62735,8 @@ ${lanes.join("\n")}
62785
62735
  let container = getContainingClass(node);
62786
62736
  while (container !== void 0) {
62787
62737
  if (container === declaration && container.name !== node) {
62788
- getNodeLinks(declaration).flags |= 16777216 /* ClassWithConstructorReference */;
62789
- getNodeLinks(node).flags |= 33554432 /* ConstructorReferenceInClass */;
62738
+ getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */;
62739
+ getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */;
62790
62740
  break;
62791
62741
  }
62792
62742
  container = getContainingClass(container);
@@ -62796,8 +62746,8 @@ ${lanes.join("\n")}
62796
62746
  while (container.kind !== 308 /* SourceFile */) {
62797
62747
  if (container.parent === declaration) {
62798
62748
  if (isPropertyDeclaration(container) && isStatic(container) || isClassStaticBlockDeclaration(container)) {
62799
- getNodeLinks(declaration).flags |= 16777216 /* ClassWithConstructorReference */;
62800
- getNodeLinks(node).flags |= 33554432 /* ConstructorReferenceInClass */;
62749
+ getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */;
62750
+ getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */;
62801
62751
  }
62802
62752
  break;
62803
62753
  }
@@ -62911,7 +62861,7 @@ ${lanes.join("\n")}
62911
62861
  const part = getPartOfForStatementContainingNode(node.parent, container);
62912
62862
  if (part) {
62913
62863
  const links = getNodeLinks(part);
62914
- links.flags |= 131072 /* ContainsCapturedBlockScopeBinding */;
62864
+ links.flags |= 8192 /* ContainsCapturedBlockScopeBinding */;
62915
62865
  const capturedBindings = links.capturedBlockScopeBindings || (links.capturedBlockScopeBindings = []);
62916
62866
  pushIfUnique(capturedBindings, symbol);
62917
62867
  if (part === container.initializer) {
@@ -62921,19 +62871,19 @@ ${lanes.join("\n")}
62921
62871
  }
62922
62872
  }
62923
62873
  if (capturesBlockScopeBindingInLoopBody) {
62924
- getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;
62874
+ getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
62925
62875
  }
62926
62876
  }
62927
62877
  if (isForStatement(container)) {
62928
62878
  const varDeclList = getAncestor(symbol.valueDeclaration, 258 /* VariableDeclarationList */);
62929
62879
  if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) {
62930
- getNodeLinks(symbol.valueDeclaration).flags |= 4194304 /* NeedsLoopOutParameter */;
62880
+ getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* NeedsLoopOutParameter */;
62931
62881
  }
62932
62882
  }
62933
- getNodeLinks(symbol.valueDeclaration).flags |= 524288 /* BlockScopedBindingInLoop */;
62883
+ getNodeLinks(symbol.valueDeclaration).flags |= 32768 /* BlockScopedBindingInLoop */;
62934
62884
  }
62935
62885
  if (isCaptured) {
62936
- getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* CapturedBlockScopedBinding */;
62886
+ getNodeLinks(symbol.valueDeclaration).flags |= 16384 /* CapturedBlockScopedBinding */;
62937
62887
  }
62938
62888
  }
62939
62889
  function isBindingCapturedByNode(node, decl) {
@@ -63150,23 +63100,23 @@ ${lanes.join("\n")}
63150
63100
  checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class);
63151
63101
  }
63152
63102
  if (isStatic(container) || isCallExpression2) {
63153
- nodeCheckFlag = 512 /* SuperStatic */;
63103
+ nodeCheckFlag = 32 /* SuperStatic */;
63154
63104
  if (!isCallExpression2 && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && (isPropertyDeclaration(container) || isClassStaticBlockDeclaration(container))) {
63155
63105
  forEachEnclosingBlockScopeContainer(node.parent, (current) => {
63156
63106
  if (!isSourceFile(current) || isExternalOrCommonJsModule(current)) {
63157
- getNodeLinks(current).flags |= 134217728 /* ContainsSuperPropertyInStaticInitializer */;
63107
+ getNodeLinks(current).flags |= 8388608 /* ContainsSuperPropertyInStaticInitializer */;
63158
63108
  }
63159
63109
  });
63160
63110
  }
63161
63111
  } else {
63162
- nodeCheckFlag = 256 /* SuperInstance */;
63112
+ nodeCheckFlag = 16 /* SuperInstance */;
63163
63113
  }
63164
63114
  getNodeLinks(node).flags |= nodeCheckFlag;
63165
63115
  if (container.kind === 171 /* MethodDeclaration */ && inAsyncFunction) {
63166
63116
  if (isSuperProperty(node.parent) && isAssignmentTarget(node.parent)) {
63167
- getNodeLinks(container).flags |= 4096 /* MethodWithSuperPropertyAssignmentInAsync */;
63117
+ getNodeLinks(container).flags |= 256 /* MethodWithSuperPropertyAssignmentInAsync */;
63168
63118
  } else {
63169
- getNodeLinks(container).flags |= 2048 /* MethodWithSuperPropertyAccessInAsync */;
63119
+ getNodeLinks(container).flags |= 128 /* MethodWithSuperPropertyAccessInAsync */;
63170
63120
  }
63171
63121
  }
63172
63122
  if (needToCaptureLexicalThis) {
@@ -63194,7 +63144,7 @@ ${lanes.join("\n")}
63194
63144
  error(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments);
63195
63145
  return errorType;
63196
63146
  }
63197
- return nodeCheckFlag === 512 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType);
63147
+ return nodeCheckFlag === 32 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType);
63198
63148
  function isLegalUsageOfSuperExpression(container2) {
63199
63149
  if (!container2) {
63200
63150
  return false;
@@ -64209,9 +64159,9 @@ ${lanes.join("\n")}
64209
64159
  const container = getEnclosingBlockScopeContainer(node.parent.parent);
64210
64160
  const enclosingIterationStatement = getEnclosingIterationStatement(container);
64211
64161
  if (enclosingIterationStatement) {
64212
- getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;
64213
- getNodeLinks(node).flags |= 524288 /* BlockScopedBindingInLoop */;
64214
- getNodeLinks(node.parent.parent).flags |= 524288 /* BlockScopedBindingInLoop */;
64162
+ getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
64163
+ getNodeLinks(node).flags |= 32768 /* BlockScopedBindingInLoop */;
64164
+ getNodeLinks(node.parent.parent).flags |= 32768 /* BlockScopedBindingInLoop */;
64215
64165
  }
64216
64166
  }
64217
64167
  if (links.resolvedType.flags & 98304 /* Nullable */ || !isTypeAssignableToKind(links.resolvedType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */) && !isTypeAssignableTo(links.resolvedType, stringNumberSymbolType)) {
@@ -68198,10 +68148,10 @@ ${lanes.join("\n")}
68198
68148
  }
68199
68149
  function contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode) {
68200
68150
  const links = getNodeLinks(node);
68201
- if (!(links.flags & 1024 /* ContextChecked */)) {
68151
+ if (!(links.flags & 64 /* ContextChecked */)) {
68202
68152
  const contextualSignature = getContextualSignature(node);
68203
- if (!(links.flags & 1024 /* ContextChecked */)) {
68204
- links.flags |= 1024 /* ContextChecked */;
68153
+ if (!(links.flags & 64 /* ContextChecked */)) {
68154
+ links.flags |= 64 /* ContextChecked */;
68205
68155
  const signature = firstOrUndefined(getSignaturesOfType(getTypeOfSymbol(getSymbolOfNode(node)), 0 /* Call */));
68206
68156
  if (!signature) {
68207
68157
  return;
@@ -70191,13 +70141,13 @@ ${lanes.join("\n")}
70191
70141
  function setNodeLinksForPrivateIdentifierScope(node) {
70192
70142
  if (isPrivateIdentifier(node.name) && languageVersion < 99 /* ESNext */) {
70193
70143
  for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) {
70194
- getNodeLinks(lexicalScope).flags |= 67108864 /* ContainsClassWithPrivateIdentifiers */;
70144
+ getNodeLinks(lexicalScope).flags |= 4194304 /* ContainsClassWithPrivateIdentifiers */;
70195
70145
  }
70196
70146
  if (isClassExpression(node.parent)) {
70197
70147
  const enclosingIterationStatement = getEnclosingIterationStatement(node.parent);
70198
70148
  if (enclosingIterationStatement) {
70199
- getNodeLinks(node.name).flags |= 524288 /* BlockScopedBindingInLoop */;
70200
- getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;
70149
+ getNodeLinks(node.name).flags |= 32768 /* BlockScopedBindingInLoop */;
70150
+ getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
70201
70151
  }
70202
70152
  }
70203
70153
  }
@@ -71792,7 +71742,7 @@ ${lanes.join("\n")}
71792
71742
  }
71793
71743
  function checkWeakMapSetCollision(node) {
71794
71744
  const enclosingBlockScope = getEnclosingBlockScopeContainer(node);
71795
- if (getNodeCheckFlags(enclosingBlockScope) & 67108864 /* ContainsClassWithPrivateIdentifiers */) {
71745
+ if (getNodeCheckFlags(enclosingBlockScope) & 4194304 /* ContainsClassWithPrivateIdentifiers */) {
71796
71746
  Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name) && typeof node.name.escapedText === "string", "The target of a WeakMap/WeakSet collision check should be an identifier");
71797
71747
  errorSkippedOn("noEmit", node, Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText);
71798
71748
  }
@@ -71806,18 +71756,18 @@ ${lanes.join("\n")}
71806
71756
  let hasCollision = false;
71807
71757
  if (isClassExpression(node)) {
71808
71758
  for (const member of node.members) {
71809
- if (getNodeCheckFlags(member) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {
71759
+ if (getNodeCheckFlags(member) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
71810
71760
  hasCollision = true;
71811
71761
  break;
71812
71762
  }
71813
71763
  }
71814
71764
  } else if (isFunctionExpression(node)) {
71815
- if (getNodeCheckFlags(node) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {
71765
+ if (getNodeCheckFlags(node) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
71816
71766
  hasCollision = true;
71817
71767
  }
71818
71768
  } else {
71819
71769
  const container = getEnclosingBlockScopeContainer(node);
71820
- if (container && getNodeCheckFlags(container) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {
71770
+ if (container && getNodeCheckFlags(container) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
71821
71771
  hasCollision = true;
71822
71772
  }
71823
71773
  }
@@ -73032,8 +72982,9 @@ ${lanes.join("\n")}
73032
72982
  });
73033
72983
  const containsArguments = containsArgumentsReference(node);
73034
72984
  if (containsArguments) {
73035
- const lastJSDocParam = lastOrUndefined(jsdocParameters);
73036
- if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
72985
+ const lastJSDocParamIndex = jsdocParameters.length - 1;
72986
+ const lastJSDocParam = jsdocParameters[lastJSDocParamIndex];
72987
+ if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
73037
72988
  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));
73038
72989
  }
73039
72990
  } else {
@@ -73701,8 +73652,8 @@ ${lanes.join("\n")}
73701
73652
  }
73702
73653
  function computeEnumMemberValues(node) {
73703
73654
  const nodeLinks2 = getNodeLinks(node);
73704
- if (!(nodeLinks2.flags & 16384 /* EnumValuesComputed */)) {
73705
- nodeLinks2.flags |= 16384 /* EnumValuesComputed */;
73655
+ if (!(nodeLinks2.flags & 1024 /* EnumValuesComputed */)) {
73656
+ nodeLinks2.flags |= 1024 /* EnumValuesComputed */;
73706
73657
  let autoValue = 0;
73707
73658
  for (const member of node.members) {
73708
73659
  const value = computeMemberValue(member, autoValue);
@@ -73978,7 +73929,7 @@ ${lanes.join("\n")}
73978
73929
  }
73979
73930
  const mergedClass = getDeclarationOfKind(symbol, 260 /* ClassDeclaration */);
73980
73931
  if (mergedClass && inSameLexicalScope(node, mergedClass)) {
73981
- getNodeLinks(node).flags |= 32768 /* LexicalModuleMergesWithClass */;
73932
+ getNodeLinks(node).flags |= 2048 /* LexicalModuleMergesWithClass */;
73982
73933
  }
73983
73934
  }
73984
73935
  if (isAmbientExternalModule) {
@@ -75609,8 +75560,8 @@ ${lanes.join("\n")}
75609
75560
  const nodeLinks2 = getNodeLinks(symbol.valueDeclaration);
75610
75561
  if (resolveName(container.parent, symbol.escapedName, 111551 /* Value */, void 0, void 0, false)) {
75611
75562
  links.isDeclarationWithCollidingName = true;
75612
- } else if (nodeLinks2.flags & 262144 /* CapturedBlockScopedBinding */) {
75613
- const isDeclaredInLoop = nodeLinks2.flags & 524288 /* BlockScopedBindingInLoop */;
75563
+ } else if (nodeLinks2.flags & 16384 /* CapturedBlockScopedBinding */) {
75564
+ const isDeclaredInLoop = nodeLinks2.flags & 32768 /* BlockScopedBindingInLoop */;
75614
75565
  const inLoopInitializer = isIterationStatement(container, false);
75615
75566
  const inLoopBodyBlock = container.kind === 238 /* Block */ && isIterationStatement(container.parent, false);
75616
75567
  links.isDeclarationWithCollidingName = !isBlockScopedContainerTopLevel(container) && (!isDeclaredInLoop || !inLoopInitializer && !inLoopBodyBlock);
@@ -79046,10 +78997,10 @@ ${lanes.join("\n")}
79046
78997
  nodeVisitor(node.initializer, visitor, isExpression)
79047
78998
  );
79048
78999
  },
79049
- [308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
79000
+ [308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
79050
79001
  return context.factory.updateSourceFile(
79051
79002
  node,
79052
- visitLexicalEnvironment(node.statements, visitor, context, void 0, void 0, nodesVisitor)
79003
+ visitLexicalEnvironment(node.statements, visitor, context)
79053
79004
  );
79054
79005
  },
79055
79006
  [353 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
@@ -82750,12 +82701,12 @@ ${lanes.join("\n")}
82750
82701
  function visitClassExpressionInNewClassLexicalEnvironment(node, facts) {
82751
82702
  const isDecoratedClassDeclaration = !!(facts & 1 /* ClassWasDecorated */);
82752
82703
  const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node);
82753
- const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 16777216 /* ClassWithConstructorReference */;
82704
+ const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */;
82754
82705
  let temp;
82755
82706
  function createClassTempVar() {
82756
82707
  const classCheckFlags = resolver.getNodeCheckFlags(node);
82757
- const isClassWithConstructorReference2 = classCheckFlags & 16777216 /* ClassWithConstructorReference */;
82758
- const requiresBlockScopedVar = classCheckFlags & 524288 /* BlockScopedBindingInLoop */;
82708
+ const isClassWithConstructorReference2 = classCheckFlags & 1048576 /* ClassWithConstructorReference */;
82709
+ const requiresBlockScopedVar = classCheckFlags & 32768 /* BlockScopedBindingInLoop */;
82759
82710
  return factory2.createTempVariable(requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, !!isClassWithConstructorReference2);
82760
82711
  }
82761
82712
  if (facts & 2 /* NeedsClassConstructorReference */) {
@@ -83268,7 +83219,7 @@ ${lanes.join("\n")}
83268
83219
  }
83269
83220
  function trySubstituteClassAlias(node) {
83270
83221
  if (enabledSubstitutions & 1 /* ClassAliases */) {
83271
- if (resolver.getNodeCheckFlags(node) & 33554432 /* ConstructorReferenceInClass */) {
83222
+ if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) {
83272
83223
  const declaration = resolver.getReferencedValueDeclaration(node);
83273
83224
  if (declaration) {
83274
83225
  const classAlias = classAliases[declaration.id];
@@ -83291,7 +83242,7 @@ ${lanes.join("\n")}
83291
83242
  const alreadyTransformed = isAssignmentExpression(innerExpression) && isGeneratedIdentifier(innerExpression.left);
83292
83243
  if (!alreadyTransformed && !inlinable && shouldHoist) {
83293
83244
  const generatedName = factory2.getGeneratedNameForNode(name);
83294
- if (resolver.getNodeCheckFlags(name) & 524288 /* BlockScopedBindingInLoop */) {
83245
+ if (resolver.getNodeCheckFlags(name) & 32768 /* BlockScopedBindingInLoop */) {
83295
83246
  addBlockScopedVariable(generatedName);
83296
83247
  } else {
83297
83248
  hoistVariableDeclaration(generatedName);
@@ -83440,7 +83391,7 @@ ${lanes.join("\n")}
83440
83391
  const { className } = getPrivateIdentifierEnvironment();
83441
83392
  const prefix = className ? { prefix: "_", node: className, suffix: "_" } : "_";
83442
83393
  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);
83443
- if (resolver.getNodeCheckFlags(node) & 524288 /* BlockScopedBindingInLoop */) {
83394
+ if (resolver.getNodeCheckFlags(node) & 32768 /* BlockScopedBindingInLoop */) {
83444
83395
  addBlockScopedVariable(identifier);
83445
83396
  } else {
83446
83397
  hoistVariableDeclaration(identifier);
@@ -84305,7 +84256,7 @@ ${lanes.join("\n")}
84305
84256
  }
84306
84257
  }
84307
84258
  function getClassAliasIfNeeded(node) {
84308
- if (resolver.getNodeCheckFlags(node) & 16777216 /* ClassWithConstructorReference */) {
84259
+ if (resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */) {
84309
84260
  enableSubstitutionForClassAliases();
84310
84261
  const classAlias = factory2.createUniqueName(node.name && !isGeneratedIdentifier(node.name) ? idText(node.name) : "default");
84311
84262
  classAliases[getOriginalNodeId(node)] = classAlias;
@@ -84339,7 +84290,7 @@ ${lanes.join("\n")}
84339
84290
  }
84340
84291
  function trySubstituteClassAlias(node) {
84341
84292
  if (classAliases) {
84342
- if (resolver.getNodeCheckFlags(node) & 33554432 /* ConstructorReferenceInClass */) {
84293
+ if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) {
84343
84294
  const declaration = resolver.getReferencedValueDeclaration(node);
84344
84295
  if (declaration) {
84345
84296
  const classAlias = classAliases[declaration.id];
@@ -84374,7 +84325,7 @@ ${lanes.join("\n")}
84374
84325
  let capturedSuperProperties;
84375
84326
  let hasSuperElementAccess;
84376
84327
  const substitutedSuperAccessors = [];
84377
- let contextFlags = 0;
84328
+ let contextFlags = 0 /* None */;
84378
84329
  const previousOnEmitNode = context.onEmitNode;
84379
84330
  const previousOnSubstituteNode = context.onSubstituteNode;
84380
84331
  context.onEmitNode = onEmitNode;
@@ -84701,7 +84652,7 @@ ${lanes.join("\n")}
84701
84652
  hasSuperElementAccess = false;
84702
84653
  let updated = visitFunctionBody(node.body, visitor, context);
84703
84654
  const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration);
84704
- const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* MethodWithSuperPropertyAssignmentInAsync */ | 2048 /* MethodWithSuperPropertyAccessInAsync */) && (getFunctionFlags(originalMethod) & 3 /* AsyncGenerator */) !== 3 /* AsyncGenerator */;
84655
+ const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */) && (getFunctionFlags(originalMethod) & 3 /* AsyncGenerator */) !== 3 /* AsyncGenerator */;
84705
84656
  if (emitSuperHelpers) {
84706
84657
  enableSubstitutionForAsyncMethodsWithSuper();
84707
84658
  if (capturedSuperProperties.size) {
@@ -84712,9 +84663,9 @@ ${lanes.join("\n")}
84712
84663
  updated = factory2.updateBlock(updated, statements);
84713
84664
  }
84714
84665
  if (hasSuperElementAccess) {
84715
- if (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
84666
+ if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
84716
84667
  addEmitHelper(updated, advancedAsyncSuperHelper);
84717
- } else if (resolver.getNodeCheckFlags(node) & 2048 /* MethodWithSuperPropertyAccessInAsync */) {
84668
+ } else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
84718
84669
  addEmitHelper(updated, asyncSuperHelper);
84719
84670
  }
84720
84671
  }
@@ -84729,7 +84680,7 @@ ${lanes.join("\n")}
84729
84680
  const nodeType = original.type;
84730
84681
  const promiseConstructor = languageVersion < 2 /* ES2015 */ ? getPromiseConstructor(nodeType) : void 0;
84731
84682
  const isArrowFunction2 = node.kind === 216 /* ArrowFunction */;
84732
- const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 8192 /* CaptureArguments */) !== 0;
84683
+ const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 512 /* CaptureArguments */) !== 0;
84733
84684
  const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;
84734
84685
  enclosingFunctionParameterNames = /* @__PURE__ */ new Set();
84735
84686
  for (const parameter of node.parameters) {
@@ -84756,7 +84707,7 @@ ${lanes.join("\n")}
84756
84707
  )
84757
84708
  );
84758
84709
  insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
84759
- const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* MethodWithSuperPropertyAssignmentInAsync */ | 2048 /* MethodWithSuperPropertyAccessInAsync */);
84710
+ const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */);
84760
84711
  if (emitSuperHelpers) {
84761
84712
  enableSubstitutionForAsyncMethodsWithSuper();
84762
84713
  if (capturedSuperProperties.size) {
@@ -84768,9 +84719,9 @@ ${lanes.join("\n")}
84768
84719
  const block = factory2.createBlock(statements, true);
84769
84720
  setTextRange(block, node.body);
84770
84721
  if (emitSuperHelpers && hasSuperElementAccess) {
84771
- if (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
84722
+ if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
84772
84723
  addEmitHelper(block, advancedAsyncSuperHelper);
84773
- } else if (resolver.getNodeCheckFlags(node) & 2048 /* MethodWithSuperPropertyAccessInAsync */) {
84724
+ } else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
84774
84725
  addEmitHelper(block, asyncSuperHelper);
84775
84726
  }
84776
84727
  }
@@ -84830,7 +84781,7 @@ ${lanes.join("\n")}
84830
84781
  }
84831
84782
  function onEmitNode(hint, node, emitCallback) {
84832
84783
  if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {
84833
- const superContainerFlags = resolver.getNodeCheckFlags(node) & (2048 /* MethodWithSuperPropertyAccessInAsync */ | 4096 /* MethodWithSuperPropertyAssignmentInAsync */);
84784
+ const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */);
84834
84785
  if (superContainerFlags !== enclosingSuperContainerFlags) {
84835
84786
  const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;
84836
84787
  enclosingSuperContainerFlags = superContainerFlags;
@@ -84906,7 +84857,7 @@ ${lanes.join("\n")}
84906
84857
  return kind === 260 /* ClassDeclaration */ || kind === 173 /* Constructor */ || kind === 171 /* MethodDeclaration */ || kind === 174 /* GetAccessor */ || kind === 175 /* SetAccessor */;
84907
84858
  }
84908
84859
  function createSuperElementAccessInAsyncMethod(argumentExpression, location2) {
84909
- if (enclosingSuperContainerFlags & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
84860
+ if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
84910
84861
  return setTextRange(
84911
84862
  factory2.createPropertyAccessExpression(
84912
84863
  factory2.createCallExpression(
@@ -84931,7 +84882,7 @@ ${lanes.join("\n")}
84931
84882
  }
84932
84883
  }
84933
84884
  function createSuperAccessVariableStatement(factory2, resolver, node, names) {
84934
- const hasBinding = (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) !== 0;
84885
+ const hasBinding = (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) !== 0;
84935
84886
  const accessors = [];
84936
84887
  names.forEach((_, key) => {
84937
84888
  const name = unescapeLeadingUnderscores(key);
@@ -85869,7 +85820,7 @@ ${lanes.join("\n")}
85869
85820
  !!(hierarchyFacts & 1 /* HasLexicalThis */)
85870
85821
  )
85871
85822
  );
85872
- const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* MethodWithSuperPropertyAssignmentInAsync */ | 2048 /* MethodWithSuperPropertyAccessInAsync */);
85823
+ const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */);
85873
85824
  if (emitSuperHelpers) {
85874
85825
  enableSubstitutionForAsyncMethodsWithSuper();
85875
85826
  const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties);
@@ -85880,9 +85831,9 @@ ${lanes.join("\n")}
85880
85831
  insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
85881
85832
  const block = factory2.updateBlock(node.body, statements);
85882
85833
  if (emitSuperHelpers && hasSuperElementAccess) {
85883
- if (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
85834
+ if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
85884
85835
  addEmitHelper(block, advancedAsyncSuperHelper);
85885
- } else if (resolver.getNodeCheckFlags(node) & 2048 /* MethodWithSuperPropertyAccessInAsync */) {
85836
+ } else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
85886
85837
  addEmitHelper(block, asyncSuperHelper);
85887
85838
  }
85888
85839
  }
@@ -85992,7 +85943,7 @@ ${lanes.join("\n")}
85992
85943
  }
85993
85944
  function onEmitNode(hint, node, emitCallback) {
85994
85945
  if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {
85995
- const superContainerFlags = resolver.getNodeCheckFlags(node) & (2048 /* MethodWithSuperPropertyAccessInAsync */ | 4096 /* MethodWithSuperPropertyAssignmentInAsync */);
85946
+ const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */);
85996
85947
  if (superContainerFlags !== enclosingSuperContainerFlags) {
85997
85948
  const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;
85998
85949
  enclosingSuperContainerFlags = superContainerFlags;
@@ -86068,7 +86019,7 @@ ${lanes.join("\n")}
86068
86019
  return kind === 260 /* ClassDeclaration */ || kind === 173 /* Constructor */ || kind === 171 /* MethodDeclaration */ || kind === 174 /* GetAccessor */ || kind === 175 /* SetAccessor */;
86069
86020
  }
86070
86021
  function createSuperElementAccessInAsyncMethod(argumentExpression, location2) {
86071
- if (enclosingSuperContainerFlags & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
86022
+ if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
86072
86023
  return setTextRange(
86073
86024
  factory2.createPropertyAccessExpression(
86074
86025
  factory2.createCallExpression(
@@ -88424,8 +88375,8 @@ ${lanes.join("\n")}
88424
88375
  }
88425
88376
  function shouldEmitExplicitInitializerForLetDeclaration(node) {
88426
88377
  const flags = resolver.getNodeCheckFlags(node);
88427
- const isCapturedInFunction = flags & 262144 /* CapturedBlockScopedBinding */;
88428
- const isDeclaredInLoop = flags & 524288 /* BlockScopedBindingInLoop */;
88378
+ const isCapturedInFunction = flags & 16384 /* CapturedBlockScopedBinding */;
88379
+ const isDeclaredInLoop = flags & 32768 /* BlockScopedBindingInLoop */;
88429
88380
  const emittedAsTopLevel = (hierarchyFacts & 64 /* TopLevel */) !== 0 || isCapturedInFunction && isDeclaredInLoop && (hierarchyFacts & 512 /* IterationStatementBlock */) !== 0;
88430
88381
  const emitExplicitInitializer = !emittedAsTopLevel && (hierarchyFacts & 4096 /* ForInOrForOfStatement */) === 0 && (!resolver.isDeclarationWithCollidingName(node) || isDeclaredInLoop && !isCapturedInFunction && (hierarchyFacts & (2048 /* ForStatement */ | 4096 /* ForInOrForOfStatement */)) === 0);
88431
88382
  return emitExplicitInitializer;
@@ -88786,7 +88737,7 @@ ${lanes.join("\n")}
88786
88737
  return factory2.inlineExpressions(expressions);
88787
88738
  }
88788
88739
  function shouldConvertPartOfIterationStatement(node) {
88789
- return (resolver.getNodeCheckFlags(node) & 131072 /* ContainsCapturedBlockScopeBinding */) !== 0;
88740
+ return (resolver.getNodeCheckFlags(node) & 8192 /* ContainsCapturedBlockScopeBinding */) !== 0;
88790
88741
  }
88791
88742
  function shouldConvertInitializerOfForStatement(node) {
88792
88743
  return isForStatement(node) && !!node.initializer && shouldConvertPartOfIterationStatement(node.initializer);
@@ -88801,7 +88752,7 @@ ${lanes.join("\n")}
88801
88752
  return shouldConvertBodyOfIterationStatement(node) || shouldConvertInitializerOfForStatement(node);
88802
88753
  }
88803
88754
  function shouldConvertBodyOfIterationStatement(node) {
88804
- return (resolver.getNodeCheckFlags(node) & 65536 /* LoopWithCapturedBlockScopedBinding */) !== 0;
88755
+ return (resolver.getNodeCheckFlags(node) & 4096 /* LoopWithCapturedBlockScopedBinding */) !== 0;
88805
88756
  }
88806
88757
  function hoistVariableDeclarationDeclaredInConvertedLoop(state, node) {
88807
88758
  if (!state.hoistedLocalVariables) {
@@ -89262,10 +89213,10 @@ ${lanes.join("\n")}
89262
89213
  } else {
89263
89214
  loopParameters.push(factory2.createParameterDeclaration(void 0, void 0, name));
89264
89215
  const checkFlags = resolver.getNodeCheckFlags(decl);
89265
- if (checkFlags & 4194304 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) {
89216
+ if (checkFlags & 262144 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) {
89266
89217
  const outParamName = factory2.createUniqueName("out_" + idText(name));
89267
- let flags = 0;
89268
- if (checkFlags & 4194304 /* NeedsLoopOutParameter */) {
89218
+ let flags = 0 /* None */;
89219
+ if (checkFlags & 262144 /* NeedsLoopOutParameter */) {
89269
89220
  flags |= 1 /* Body */;
89270
89221
  }
89271
89222
  if (isForStatement(container)) {
@@ -97193,7 +97144,7 @@ ${lanes.join("\n")}
97193
97144
  const sourceMap = sourceMapGenerator.toString();
97194
97145
  writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap, false, sourceFiles);
97195
97146
  if (printer.bundleFileInfo)
97196
- printer.bundleFileInfo.mapHash = computeSignature(sourceMap, maybeBind(host, host.createHash));
97147
+ printer.bundleFileInfo.mapHash = computeSignature(sourceMap, host);
97197
97148
  }
97198
97149
  } else {
97199
97150
  writer.writeLine();
@@ -97201,7 +97152,7 @@ ${lanes.join("\n")}
97201
97152
  const text = writer.getText();
97202
97153
  writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform2.diagnostics });
97203
97154
  if (printer.bundleFileInfo)
97204
- printer.bundleFileInfo.hash = computeSignature(text, maybeBind(host, host.createHash));
97155
+ printer.bundleFileInfo.hash = computeSignature(text, host);
97205
97156
  writer.clear();
97206
97157
  }
97207
97158
  function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) {
@@ -97347,7 +97298,6 @@ ${lanes.join("\n")}
97347
97298
  return result;
97348
97299
  }
97349
97300
  function emitUsingBuildInfoWorker(config, host, getCommandLine, customTransformers) {
97350
- const createHash = maybeBind(host, host.createHash);
97351
97301
  const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle(config.options, false);
97352
97302
  const buildInfo = host.getBuildInfo(buildInfoPath, config.options.configFilePath);
97353
97303
  if (!buildInfo)
@@ -97357,22 +97307,22 @@ ${lanes.join("\n")}
97357
97307
  const jsFileText = host.readFile(Debug.checkDefined(jsFilePath));
97358
97308
  if (!jsFileText)
97359
97309
  return jsFilePath;
97360
- if (computeSignature(jsFileText, createHash) !== buildInfo.bundle.js.hash)
97310
+ if (computeSignature(jsFileText, host) !== buildInfo.bundle.js.hash)
97361
97311
  return jsFilePath;
97362
97312
  const sourceMapText = sourceMapFilePath && host.readFile(sourceMapFilePath);
97363
97313
  if (sourceMapFilePath && !sourceMapText || config.options.inlineSourceMap)
97364
97314
  return sourceMapFilePath || "inline sourcemap decoding";
97365
- if (sourceMapFilePath && computeSignature(sourceMapText, createHash) !== buildInfo.bundle.js.mapHash)
97315
+ if (sourceMapFilePath && computeSignature(sourceMapText, host) !== buildInfo.bundle.js.mapHash)
97366
97316
  return sourceMapFilePath;
97367
97317
  const declarationText = declarationFilePath && host.readFile(declarationFilePath);
97368
97318
  if (declarationFilePath && !declarationText)
97369
97319
  return declarationFilePath;
97370
- if (declarationFilePath && computeSignature(declarationText, createHash) !== buildInfo.bundle.dts.hash)
97320
+ if (declarationFilePath && computeSignature(declarationText, host) !== buildInfo.bundle.dts.hash)
97371
97321
  return declarationFilePath;
97372
97322
  const declarationMapText = declarationMapPath && host.readFile(declarationMapPath);
97373
97323
  if (declarationMapPath && !declarationMapText || config.options.inlineSourceMap)
97374
97324
  return declarationMapPath || "inline sourcemap decoding";
97375
- if (declarationMapPath && computeSignature(declarationMapText, createHash) !== buildInfo.bundle.dts.mapHash)
97325
+ if (declarationMapPath && computeSignature(declarationMapText, host) !== buildInfo.bundle.dts.mapHash)
97376
97326
  return declarationMapPath;
97377
97327
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
97378
97328
  const ownPrependInput = createInputFilesWithFileTexts(
@@ -97442,7 +97392,7 @@ ${lanes.join("\n")}
97442
97392
  getBuildInfo: (bundle) => {
97443
97393
  const program = buildInfo.program;
97444
97394
  if (program && changedDtsText !== void 0 && config.options.composite) {
97445
- program.outSignature = computeSignature(changedDtsText, createHash, changedDtsData);
97395
+ program.outSignature = computeSignature(changedDtsText, host, changedDtsData);
97446
97396
  }
97447
97397
  const { js, dts, sourceFiles } = buildInfo.bundle;
97448
97398
  bundle.js.sources = js.sources;
@@ -97455,7 +97405,7 @@ ${lanes.join("\n")}
97455
97405
  getSourceFileFromReference: returnUndefined,
97456
97406
  redirectTargetsMap: createMultiMap(),
97457
97407
  getFileIncludeReasons: notImplemented,
97458
- createHash
97408
+ createHash: maybeBind(host, host.createHash)
97459
97409
  };
97460
97410
  emitFiles(
97461
97411
  notImplementedResolver,
@@ -105570,7 +105520,7 @@ ${lanes.join("\n")}
105570
105520
  return oldState && !oldState.referencedMap === !newReferencedMap;
105571
105521
  }
105572
105522
  BuilderState2.canReuseOldState = canReuseOldState;
105573
- function create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
105523
+ function create(newProgram, oldState, disableUseFileVersionAsSignature) {
105574
105524
  var _a2, _b, _c;
105575
105525
  const fileInfos = /* @__PURE__ */ new Map();
105576
105526
  const options = newProgram.getCompilerOptions();
@@ -105578,6 +105528,7 @@ ${lanes.join("\n")}
105578
105528
  const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
105579
105529
  const exportedModulesMap = referencedMap ? createManyToManyPathMap() : void 0;
105580
105530
  const useOldState = canReuseOldState(referencedMap, oldState);
105531
+ const getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames());
105581
105532
  newProgram.getTypeChecker();
105582
105533
  for (const sourceFile of newProgram.getSourceFiles()) {
105583
105534
  const version2 = Debug.checkDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set");
@@ -105616,30 +105567,29 @@ ${lanes.join("\n")}
105616
105567
  state.allFileNames = void 0;
105617
105568
  }
105618
105569
  BuilderState2.releaseCache = releaseCache2;
105619
- function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, computeHash, getCanonicalFileName) {
105570
+ function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, host) {
105620
105571
  var _a2, _b;
105621
105572
  const result = getFilesAffectedByWithOldState(
105622
105573
  state,
105623
105574
  programOfThisState,
105624
105575
  path,
105625
105576
  cancellationToken,
105626
- computeHash,
105627
- getCanonicalFileName
105577
+ host
105628
105578
  );
105629
105579
  (_a2 = state.oldSignatures) == null ? void 0 : _a2.clear();
105630
105580
  (_b = state.oldExportedModulesMap) == null ? void 0 : _b.clear();
105631
105581
  return result;
105632
105582
  }
105633
105583
  BuilderState2.getFilesAffectedBy = getFilesAffectedBy;
105634
- function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, computeHash, getCanonicalFileName) {
105584
+ function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host) {
105635
105585
  const sourceFile = programOfThisState.getSourceFileByPath(path);
105636
105586
  if (!sourceFile) {
105637
105587
  return emptyArray;
105638
105588
  }
105639
- if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName)) {
105589
+ if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host)) {
105640
105590
  return [sourceFile];
105641
105591
  }
105642
- return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName);
105592
+ return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host);
105643
105593
  }
105644
105594
  BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
105645
105595
  function updateSignatureOfFile(state, signature, path) {
@@ -105647,7 +105597,7 @@ ${lanes.join("\n")}
105647
105597
  (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
105648
105598
  }
105649
105599
  BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
105650
- function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName, useFileVersionAsSignature = state.useFileVersionAsSignature) {
105600
+ function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) {
105651
105601
  var _a2;
105652
105602
  if ((_a2 = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a2.has(sourceFile.resolvedPath))
105653
105603
  return false;
@@ -105660,10 +105610,10 @@ ${lanes.join("\n")}
105660
105610
  (fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => {
105661
105611
  Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`);
105662
105612
  latestSignature = computeSignatureWithDiagnostics(
105613
+ programOfThisState,
105663
105614
  sourceFile,
105664
105615
  text,
105665
- computeHash,
105666
- getCanonicalFileName,
105616
+ host,
105667
105617
  data
105668
105618
  );
105669
105619
  if (latestSignature !== prevSignature) {
@@ -105802,7 +105752,7 @@ ${lanes.join("\n")}
105802
105752
  }
105803
105753
  return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
105804
105754
  }
105805
- function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, computeHash, getCanonicalFileName) {
105755
+ function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, host) {
105806
105756
  if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) {
105807
105757
  return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
105808
105758
  }
@@ -105818,7 +105768,7 @@ ${lanes.join("\n")}
105818
105768
  if (!seenFileNamesMap.has(currentPath)) {
105819
105769
  const currentSourceFile = programOfThisState.getSourceFileByPath(currentPath);
105820
105770
  seenFileNamesMap.set(currentPath, currentSourceFile);
105821
- if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, computeHash, getCanonicalFileName)) {
105771
+ if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, host)) {
105822
105772
  queue.push(...getReferencedByPaths(state, currentSourceFile.resolvedPath));
105823
105773
  }
105824
105774
  }
@@ -105872,9 +105822,9 @@ ${lanes.join("\n")}
105872
105822
  function hasSameKeys(map1, map2) {
105873
105823
  return map1 === map2 || map1 !== void 0 && map2 !== void 0 && map1.size === map2.size && !forEachKey(map1, (key) => !map2.has(key));
105874
105824
  }
105875
- function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
105825
+ function createBuilderProgramState(newProgram, oldState, disableUseFileVersionAsSignature) {
105876
105826
  var _a2, _b;
105877
- const state = BuilderState.create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature);
105827
+ const state = BuilderState.create(newProgram, oldState, disableUseFileVersionAsSignature);
105878
105828
  state.program = newProgram;
105879
105829
  const compilerOptions = newProgram.getCompilerOptions();
105880
105830
  state.compilerOptions = compilerOptions;
@@ -105918,7 +105868,7 @@ ${lanes.join("\n")}
105918
105868
  return;
105919
105869
  const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);
105920
105870
  if (diagnostics) {
105921
- state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) : diagnostics);
105871
+ state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram) : diagnostics);
105922
105872
  if (!state.semanticDiagnosticsFromOldState) {
105923
105873
  state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
105924
105874
  }
@@ -105978,10 +105928,11 @@ ${lanes.join("\n")}
105978
105928
  function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) {
105979
105929
  return !!options.declarationMap === !!oldOptions.declarationMap ? oldEmitSignature : isString(oldEmitSignature) ? [oldEmitSignature] : oldEmitSignature[0];
105980
105930
  }
105981
- function convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) {
105931
+ function convertToDiagnostics(diagnostics, newProgram) {
105982
105932
  if (!diagnostics.length)
105983
105933
  return emptyArray;
105984
- const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
105934
+ let buildInfoDirectory;
105935
+ let getCanonicalFileName;
105985
105936
  return diagnostics.map((diagnostic) => {
105986
105937
  const result = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3);
105987
105938
  result.reportsUnnecessary = diagnostic.reportsUnnecessary;
@@ -105993,7 +105944,8 @@ ${lanes.join("\n")}
105993
105944
  return result;
105994
105945
  });
105995
105946
  function toPath3(path) {
105996
- return toPath(path, buildInfoDirectory, getCanonicalFileName);
105947
+ buildInfoDirectory != null ? buildInfoDirectory : buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
105948
+ return toPath(path, buildInfoDirectory, getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames()));
105997
105949
  }
105998
105950
  }
105999
105951
  function convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3) {
@@ -106035,7 +105987,7 @@ ${lanes.join("\n")}
106035
105987
  function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) {
106036
105988
  Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath));
106037
105989
  }
106038
- function getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host) {
105990
+ function getNextAffectedFile(state, cancellationToken, host) {
106039
105991
  var _a2, _b;
106040
105992
  while (true) {
106041
105993
  const { affectedFiles } = state;
@@ -106051,8 +106003,6 @@ ${lanes.join("\n")}
106051
106003
  state,
106052
106004
  affectedFile,
106053
106005
  cancellationToken,
106054
- computeHash,
106055
- getCanonicalFileName,
106056
106006
  host
106057
106007
  );
106058
106008
  return affectedFile;
@@ -106080,8 +106030,7 @@ ${lanes.join("\n")}
106080
106030
  program,
106081
106031
  nextKey.value,
106082
106032
  cancellationToken,
106083
- computeHash,
106084
- getCanonicalFileName
106033
+ host
106085
106034
  );
106086
106035
  state.currentChangedFilePath = nextKey.value;
106087
106036
  state.affectedFilesIndex = 0;
@@ -106133,7 +106082,7 @@ ${lanes.join("\n")}
106133
106082
  );
106134
106083
  }
106135
106084
  }
106136
- function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, computeHash, getCanonicalFileName, host) {
106085
+ function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) {
106137
106086
  removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath);
106138
106087
  if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) {
106139
106088
  removeDiagnosticsOfLibraryFiles(state);
@@ -106142,8 +106091,7 @@ ${lanes.join("\n")}
106142
106091
  Debug.checkDefined(state.program),
106143
106092
  affectedFile,
106144
106093
  cancellationToken,
106145
- computeHash,
106146
- getCanonicalFileName
106094
+ host
106147
106095
  );
106148
106096
  return;
106149
106097
  }
@@ -106153,12 +106101,10 @@ ${lanes.join("\n")}
106153
106101
  state,
106154
106102
  affectedFile,
106155
106103
  cancellationToken,
106156
- computeHash,
106157
- getCanonicalFileName,
106158
106104
  host
106159
106105
  );
106160
106106
  }
106161
- function handleDtsMayChangeOf(state, path, cancellationToken, computeHash, getCanonicalFileName, host) {
106107
+ function handleDtsMayChangeOf(state, path, cancellationToken, host) {
106162
106108
  removeSemanticDiagnosticsOf(state, path);
106163
106109
  if (!state.changedFilesSet.has(path)) {
106164
106110
  const program = Debug.checkDefined(state.program);
@@ -106169,8 +106115,7 @@ ${lanes.join("\n")}
106169
106115
  program,
106170
106116
  sourceFile,
106171
106117
  cancellationToken,
106172
- computeHash,
106173
- getCanonicalFileName,
106118
+ host,
106174
106119
  !host.disableUseFileVersionAsSignature
106175
106120
  );
106176
106121
  if (getEmitDeclarations(state.compilerOptions)) {
@@ -106192,7 +106137,7 @@ ${lanes.join("\n")}
106192
106137
  const newSignature = Debug.checkDefined(state.fileInfos.get(path)).signature;
106193
106138
  return newSignature !== oldSignature;
106194
106139
  }
106195
- function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host) {
106140
+ function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host) {
106196
106141
  var _a2;
106197
106142
  if (!((_a2 = state.fileInfos.get(filePath)) == null ? void 0 : _a2.affectsGlobalScope))
106198
106143
  return false;
@@ -106200,14 +106145,12 @@ ${lanes.join("\n")}
106200
106145
  state,
106201
106146
  file.resolvedPath,
106202
106147
  cancellationToken,
106203
- computeHash,
106204
- getCanonicalFileName,
106205
106148
  host
106206
106149
  ));
106207
106150
  removeDiagnosticsOfLibraryFiles(state);
106208
106151
  return true;
106209
106152
  }
106210
- function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, computeHash, getCanonicalFileName, host) {
106153
+ function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host) {
106211
106154
  var _a2;
106212
106155
  if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.resolvedPath))
106213
106156
  return;
@@ -106221,9 +106164,9 @@ ${lanes.join("\n")}
106221
106164
  const currentPath = queue.pop();
106222
106165
  if (!seenFileNamesMap.has(currentPath)) {
106223
106166
  seenFileNamesMap.set(currentPath, true);
106224
- if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, computeHash, getCanonicalFileName, host))
106167
+ if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, host))
106225
106168
  return;
106226
- handleDtsMayChangeOf(state, currentPath, cancellationToken, computeHash, getCanonicalFileName, host);
106169
+ handleDtsMayChangeOf(state, currentPath, cancellationToken, host);
106227
106170
  if (isChangedSignature(state, currentPath)) {
106228
106171
  const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath);
106229
106172
  queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath));
@@ -106233,7 +106176,7 @@ ${lanes.join("\n")}
106233
106176
  }
106234
106177
  const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
106235
106178
  (_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
106236
- if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, computeHash, getCanonicalFileName, host))
106179
+ if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, host))
106237
106180
  return true;
106238
106181
  const references = state.referencedMap.getKeys(exportedFromPath);
106239
106182
  return references && forEachKey(
@@ -106243,28 +106186,24 @@ ${lanes.join("\n")}
106243
106186
  filePath,
106244
106187
  seenFileAndExportsOfFile,
106245
106188
  cancellationToken,
106246
- computeHash,
106247
- getCanonicalFileName,
106248
106189
  host
106249
106190
  )
106250
106191
  );
106251
106192
  });
106252
106193
  }
106253
- function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, computeHash, getCanonicalFileName, host) {
106194
+ function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, host) {
106254
106195
  var _a2, _b;
106255
106196
  if (!tryAddToSet(seenFileAndExportsOfFile, filePath))
106256
106197
  return void 0;
106257
- if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host))
106198
+ if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host))
106258
106199
  return true;
106259
- handleDtsMayChangeOf(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host);
106200
+ handleDtsMayChangeOf(state, filePath, cancellationToken, host);
106260
106201
  (_a2 = state.exportedModulesMap.getKeys(filePath)) == null ? void 0 : _a2.forEach(
106261
106202
  (exportedFromPath) => handleDtsMayChangeOfFileAndExportsOfFile(
106262
106203
  state,
106263
106204
  exportedFromPath,
106264
106205
  seenFileAndExportsOfFile,
106265
106206
  cancellationToken,
106266
- computeHash,
106267
- getCanonicalFileName,
106268
106207
  host
106269
106208
  )
106270
106209
  );
@@ -106273,8 +106212,6 @@ ${lanes.join("\n")}
106273
106212
  state,
106274
106213
  referencingFilePath,
106275
106214
  cancellationToken,
106276
- computeHash,
106277
- getCanonicalFileName,
106278
106215
  host
106279
106216
  )
106280
106217
  );
@@ -106303,9 +106240,10 @@ ${lanes.join("\n")}
106303
106240
  function isProgramBundleEmitBuildInfo(info) {
106304
106241
  return !!outFile(info.options || {});
106305
106242
  }
106306
- function getBuildInfo2(state, getCanonicalFileName, bundle) {
106243
+ function getBuildInfo2(state, bundle) {
106307
106244
  var _a2, _b, _c;
106308
106245
  const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory();
106246
+ const getCanonicalFileName = createGetCanonicalFileName(state.program.useCaseSensitiveFileNames());
106309
106247
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
106310
106248
  const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
106311
106249
  const fileNames = [];
@@ -106529,8 +106467,9 @@ ${lanes.join("\n")}
106529
106467
  function getTextHandlingSourceMapForSignature(text, data) {
106530
106468
  return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text;
106531
106469
  }
106532
- function computeSignatureWithDiagnostics(sourceFile, text, computeHash, getCanonicalFileName, data) {
106533
- var _a2;
106470
+ function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) {
106471
+ var _a2, _b;
106472
+ let getCanonicalFileName;
106534
106473
  text = getTextHandlingSourceMapForSignature(text, data);
106535
106474
  let sourceFileDirectory;
106536
106475
  if ((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length) {
@@ -106538,7 +106477,7 @@ ${lanes.join("\n")}
106538
106477
  (diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`
106539
106478
  ).join("\n");
106540
106479
  }
106541
- return (computeHash != null ? computeHash : generateDjb2Hash)(text);
106480
+ return ((_b = host.createHash) != null ? _b : generateDjb2Hash)(text);
106542
106481
  function flattenDiagnosticMessageText2(diagnostic) {
106543
106482
  return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? "" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText2).join("\n");
106544
106483
  }
@@ -106547,11 +106486,16 @@ ${lanes.join("\n")}
106547
106486
  return `(${diagnostic.start},${diagnostic.length})`;
106548
106487
  if (sourceFileDirectory === void 0)
106549
106488
  sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath);
106550
- return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceFileDirectory, diagnostic.file.resolvedPath, getCanonicalFileName))}(${diagnostic.start},${diagnostic.length})`;
106489
+ return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(
106490
+ sourceFileDirectory,
106491
+ diagnostic.file.resolvedPath,
106492
+ getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(program.useCaseSensitiveFileNames())
106493
+ ))}(${diagnostic.start},${diagnostic.length})`;
106551
106494
  }
106552
106495
  }
106553
- function computeSignature(text, computeHash, data) {
106554
- return (computeHash != null ? computeHash : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
106496
+ function computeSignature(text, host, data) {
106497
+ var _a2;
106498
+ return ((_a2 = host.createHash) != null ? _a2 : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
106555
106499
  }
106556
106500
  function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) {
106557
106501
  let oldState = oldProgram && oldProgram.getState();
@@ -106560,10 +106504,8 @@ ${lanes.join("\n")}
106560
106504
  oldState = void 0;
106561
106505
  return oldProgram;
106562
106506
  }
106563
- const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
106564
- const computeHash = maybeBind(host, host.createHash);
106565
- const state = createBuilderProgramState(newProgram, getCanonicalFileName, oldState, host.disableUseFileVersionAsSignature);
106566
- newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, getCanonicalFileName, bundle);
106507
+ const state = createBuilderProgramState(newProgram, oldState, host.disableUseFileVersionAsSignature);
106508
+ newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, bundle);
106567
106509
  newProgram = void 0;
106568
106510
  oldProgram = void 0;
106569
106511
  oldState = void 0;
@@ -106597,7 +106539,7 @@ ${lanes.join("\n")}
106597
106539
  }
106598
106540
  function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
106599
106541
  var _a2, _b, _c, _d, _e;
106600
- let affected = getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host);
106542
+ let affected = getNextAffectedFile(state, cancellationToken, host);
106601
106543
  const programEmitKind = getBuilderFileEmit(state.compilerOptions);
106602
106544
  let emitKind = emitOnlyDtsFiles ? programEmitKind & 24 /* AllDts */ : programEmitKind;
106603
106545
  if (!affected) {
@@ -106671,10 +106613,10 @@ ${lanes.join("\n")}
106671
106613
  const info = state.fileInfos.get(file.resolvedPath);
106672
106614
  if (info.signature === file.version) {
106673
106615
  const signature = computeSignatureWithDiagnostics(
106616
+ state.program,
106674
106617
  file,
106675
106618
  text,
106676
- computeHash,
106677
- getCanonicalFileName,
106619
+ host,
106678
106620
  data
106679
106621
  );
106680
106622
  if (!((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length))
@@ -106718,7 +106660,7 @@ ${lanes.join("\n")}
106718
106660
  state.program.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
106719
106661
  function handleNewSignature(oldSignatureFormat, newSignature) {
106720
106662
  const oldSignature = !oldSignatureFormat || isString(oldSignatureFormat) ? oldSignatureFormat : oldSignatureFormat[0];
106721
- newSignature != null ? newSignature : newSignature = computeSignature(text, computeHash, data);
106663
+ newSignature != null ? newSignature : newSignature = computeSignature(text, host, data);
106722
106664
  if (newSignature === oldSignature) {
106723
106665
  if (oldSignatureFormat === oldSignature)
106724
106666
  return void 0;
@@ -106774,7 +106716,7 @@ ${lanes.join("\n")}
106774
106716
  }
106775
106717
  function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) {
106776
106718
  while (true) {
106777
- const affected = getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host);
106719
+ const affected = getNextAffectedFile(state, cancellationToken, host);
106778
106720
  let result;
106779
106721
  if (!affected)
106780
106722
  return void 0;
@@ -107266,12 +107208,12 @@ ${lanes.join("\n")}
107266
107208
  const resolved = getResolutionWithResolvedFileName(resolution);
107267
107209
  trace(
107268
107210
  host,
107269
- 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,
107211
+ 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,
107270
107212
  name,
107271
107213
  containingFile,
107272
107214
  getDirectoryPath(containingFile),
107273
107215
  resolved == null ? void 0 : resolved.resolvedFileName,
107274
- (resolved == null ? void 0 : resolved.packagetId) && packageIdToString(resolved.packagetId)
107216
+ (resolved == null ? void 0 : resolved.packageId) && packageIdToString(resolved.packageId)
107275
107217
  );
107276
107218
  }
107277
107219
  } else {
@@ -107296,11 +107238,11 @@ ${lanes.join("\n")}
107296
107238
  const resolved = getResolutionWithResolvedFileName(resolution);
107297
107239
  trace(
107298
107240
  host,
107299
- 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,
107241
+ 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,
107300
107242
  name,
107301
107243
  containingFile,
107302
107244
  resolved == null ? void 0 : resolved.resolvedFileName,
107303
- (resolved == null ? void 0 : resolved.packagetId) && packageIdToString(resolved.packagetId)
107245
+ (resolved == null ? void 0 : resolved.packageId) && packageIdToString(resolved.packageId)
107304
107246
  );
107305
107247
  }
107306
107248
  }
@@ -113613,6 +113555,7 @@ ${lanes.join("\n")}
113613
113555
  supportedLocaleDirectories: () => supportedLocaleDirectories,
113614
113556
  supportedTSExtensions: () => supportedTSExtensions,
113615
113557
  supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
113558
+ supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
113616
113559
  suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
113617
113560
  suppressLeadingTrivia: () => suppressLeadingTrivia,
113618
113561
  suppressTrailingTrivia: () => suppressTrailingTrivia,
@@ -121590,6 +121533,7 @@ ${lanes.join("\n")}
121590
121533
  trace: maybeBind(host, host.trace),
121591
121534
  resolveModuleNames: maybeBind(host, host.resolveModuleNames),
121592
121535
  getModuleResolutionCache: maybeBind(host, host.getModuleResolutionCache),
121536
+ createHash: maybeBind(host, host.createHash),
121593
121537
  resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives),
121594
121538
  useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect),
121595
121539
  getParsedCommandLine
@@ -133501,12 +133445,7 @@ ${lanes.join("\n")}
133501
133445
  const checker = program.getTypeChecker();
133502
133446
  const switchType = checker.getTypeAtLocation(caseBlock.parent.expression);
133503
133447
  if (switchType && switchType.isUnion() && every(switchType.types, (type) => type.isLiteral())) {
133504
- const tracker = newCaseClauseTracker(checker);
133505
- for (const clause of clauses) {
133506
- if (!isDefaultClause(clause)) {
133507
- tracker.addClause(clause);
133508
- }
133509
- }
133448
+ const tracker = newCaseClauseTracker(checker, clauses);
133510
133449
  const target = getEmitScriptTarget(options);
133511
133450
  const quotePreference = getQuotePreference(sourceFile, preferences);
133512
133451
  const importAdder = ts_codefix_exports.createImportAdder(sourceFile, program, preferences, host);
@@ -133582,43 +133521,44 @@ ${lanes.join("\n")}
133582
133521
  }
133583
133522
  return void 0;
133584
133523
  }
133585
- function newCaseClauseTracker(checker) {
133524
+ function newCaseClauseTracker(checker, clauses) {
133586
133525
  const existingStrings = /* @__PURE__ */ new Set();
133587
133526
  const existingNumbers = /* @__PURE__ */ new Set();
133588
133527
  const existingBigInts = /* @__PURE__ */ new Set();
133589
- return {
133590
- addValue,
133591
- addClause,
133592
- hasValue
133593
- };
133594
- function addClause(clause) {
133595
- if (isLiteralExpression(clause.expression)) {
133596
- const expression = clause.expression;
133597
- switch (expression.kind) {
133598
- case 14 /* NoSubstitutionTemplateLiteral */:
133599
- case 10 /* StringLiteral */:
133600
- existingStrings.add(expression.text);
133601
- break;
133602
- case 8 /* NumericLiteral */:
133603
- existingNumbers.add(parseInt(expression.text));
133604
- break;
133605
- case 9 /* BigIntLiteral */:
133606
- const parsedBigInt = parseBigInt(endsWith(expression.text, "n") ? expression.text.slice(0, -1) : expression.text);
133607
- if (parsedBigInt) {
133608
- existingBigInts.add(pseudoBigIntToString(parsedBigInt));
133528
+ for (const clause of clauses) {
133529
+ if (!isDefaultClause(clause)) {
133530
+ if (isLiteralExpression(clause.expression)) {
133531
+ const expression = clause.expression;
133532
+ switch (expression.kind) {
133533
+ case 14 /* NoSubstitutionTemplateLiteral */:
133534
+ case 10 /* StringLiteral */:
133535
+ existingStrings.add(expression.text);
133536
+ break;
133537
+ case 8 /* NumericLiteral */:
133538
+ existingNumbers.add(parseInt(expression.text));
133539
+ break;
133540
+ case 9 /* BigIntLiteral */:
133541
+ const parsedBigInt = parseBigInt(endsWith(expression.text, "n") ? expression.text.slice(0, -1) : expression.text);
133542
+ if (parsedBigInt) {
133543
+ existingBigInts.add(pseudoBigIntToString(parsedBigInt));
133544
+ }
133545
+ break;
133546
+ }
133547
+ } else {
133548
+ const symbol = checker.getSymbolAtLocation(clause.expression);
133549
+ if (symbol && symbol.valueDeclaration && isEnumMember(symbol.valueDeclaration)) {
133550
+ const enumValue = checker.getConstantValue(symbol.valueDeclaration);
133551
+ if (enumValue !== void 0) {
133552
+ addValue(enumValue);
133609
133553
  }
133610
- break;
133611
- }
133612
- } else {
133613
- const symbol = checker.getSymbolAtLocation(clause.expression);
133614
- if (symbol && symbol.valueDeclaration && isEnumMember(symbol.valueDeclaration)) {
133615
- const enumValue = checker.getConstantValue(symbol.valueDeclaration);
133616
- if (enumValue !== void 0) {
133617
- addValue(enumValue);
133618
133554
  }
133619
133555
  }
133620
133556
  }
133621
133557
  }
133558
+ return {
133559
+ addValue,
133560
+ hasValue
133561
+ };
133622
133562
  function addValue(value) {
133623
133563
  switch (typeof value) {
133624
133564
  case "string":
@@ -148379,6 +148319,7 @@ ${options.prefix}` : "\n" : options.prefix
148379
148319
  // src/services/formatting/rule.ts
148380
148320
  var anyContext = emptyArray;
148381
148321
  var RuleAction = /* @__PURE__ */ ((RuleAction2) => {
148322
+ RuleAction2[RuleAction2["None"] = 0] = "None";
148382
148323
  RuleAction2[RuleAction2["StopProcessingSpaceActions"] = 1] = "StopProcessingSpaceActions";
148383
148324
  RuleAction2[RuleAction2["StopProcessingTokenActions"] = 2] = "StopProcessingTokenActions";
148384
148325
  RuleAction2[RuleAction2["InsertSpace"] = 4] = "InsertSpace";
@@ -149026,7 +148967,7 @@ ${options.prefix}` : "\n" : options.prefix
149026
148967
  return rulesMapCache;
149027
148968
  }
149028
148969
  function getRuleActionExclusion(ruleAction) {
149029
- let mask2 = 0;
148970
+ let mask2 = 0 /* None */;
149030
148971
  if (ruleAction & 1 /* StopProcessingSpaceActions */) {
149031
148972
  mask2 |= 28 /* ModifySpaceAction */;
149032
148973
  }
@@ -150515,6 +150456,57 @@ ${options.prefix}` : "\n" : options.prefix
150515
150456
  }
150516
150457
  })(SmartIndenter || (SmartIndenter = {}));
150517
150458
 
150459
+ // src/deprecatedCompat/deprecate.ts
150460
+ var enableDeprecationWarnings = true;
150461
+ var typeScriptVersion2;
150462
+ function getTypeScriptVersion() {
150463
+ return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
150464
+ }
150465
+ function formatDeprecationMessage(name, error, errorAfter, since, message) {
150466
+ let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
150467
+ deprecationMessage += `'${name}' `;
150468
+ deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
150469
+ deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
150470
+ deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
150471
+ return deprecationMessage;
150472
+ }
150473
+ function createErrorDeprecation(name, errorAfter, since, message) {
150474
+ const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
150475
+ return () => {
150476
+ throw new TypeError(deprecationMessage);
150477
+ };
150478
+ }
150479
+ function createWarningDeprecation(name, errorAfter, since, message) {
150480
+ let hasWrittenDeprecation = false;
150481
+ return () => {
150482
+ if (enableDeprecationWarnings && !hasWrittenDeprecation) {
150483
+ Debug.log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
150484
+ hasWrittenDeprecation = true;
150485
+ }
150486
+ };
150487
+ }
150488
+ function createDeprecation(name, options = {}) {
150489
+ var _a2, _b;
150490
+ const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
150491
+ const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
150492
+ const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
150493
+ const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
150494
+ const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
150495
+ const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
150496
+ return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
150497
+ }
150498
+ function wrapFunction(deprecation, func) {
150499
+ return function() {
150500
+ deprecation();
150501
+ return func.apply(this, arguments);
150502
+ };
150503
+ }
150504
+ function deprecate(func, options) {
150505
+ var _a2;
150506
+ const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : Debug.getFunctionName(func), options);
150507
+ return wrapFunction(deprecation, func);
150508
+ }
150509
+
150518
150510
  // src/deprecatedCompat/deprecations.ts
150519
150511
  function createOverload(name, overloads, binder2, deprecations) {
150520
150512
  Object.defineProperty(call, "name", { ...Object.getOwnPropertyDescriptor(call, "name"), value: name });
@@ -150522,7 +150514,7 @@ ${options.prefix}` : "\n" : options.prefix
150522
150514
  for (const key of Object.keys(deprecations)) {
150523
150515
  const index = +key;
150524
150516
  if (!isNaN(index) && hasProperty(overloads, `${index}`)) {
150525
- overloads[index] = Debug.deprecate(overloads[index], { ...deprecations[index], name });
150517
+ overloads[index] = deprecate(overloads[index], { ...deprecations[index], name });
150526
150518
  }
150527
150519
  }
150528
150520
  }
@@ -150562,336 +150554,336 @@ ${options.prefix}` : "\n" : options.prefix
150562
150554
 
150563
150555
  // src/deprecatedCompat/4.0/nodeFactoryTopLevelExports.ts
150564
150556
  var factoryDeprecation = { since: "4.0", warnAfter: "4.1", message: "Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead." };
150565
- var createNodeArray = Debug.deprecate(factory.createNodeArray, factoryDeprecation);
150566
- var createNumericLiteral = Debug.deprecate(factory.createNumericLiteral, factoryDeprecation);
150567
- var createBigIntLiteral = Debug.deprecate(factory.createBigIntLiteral, factoryDeprecation);
150568
- var createStringLiteral = Debug.deprecate(factory.createStringLiteral, factoryDeprecation);
150569
- var createStringLiteralFromNode = Debug.deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
150570
- var createRegularExpressionLiteral = Debug.deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
150571
- var createLoopVariable = Debug.deprecate(factory.createLoopVariable, factoryDeprecation);
150572
- var createUniqueName = Debug.deprecate(factory.createUniqueName, factoryDeprecation);
150573
- var createPrivateIdentifier = Debug.deprecate(factory.createPrivateIdentifier, factoryDeprecation);
150574
- var createSuper = Debug.deprecate(factory.createSuper, factoryDeprecation);
150575
- var createThis = Debug.deprecate(factory.createThis, factoryDeprecation);
150576
- var createNull = Debug.deprecate(factory.createNull, factoryDeprecation);
150577
- var createTrue = Debug.deprecate(factory.createTrue, factoryDeprecation);
150578
- var createFalse = Debug.deprecate(factory.createFalse, factoryDeprecation);
150579
- var createModifier = Debug.deprecate(factory.createModifier, factoryDeprecation);
150580
- var createModifiersFromModifierFlags = Debug.deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
150581
- var createQualifiedName = Debug.deprecate(factory.createQualifiedName, factoryDeprecation);
150582
- var updateQualifiedName = Debug.deprecate(factory.updateQualifiedName, factoryDeprecation);
150583
- var createComputedPropertyName = Debug.deprecate(factory.createComputedPropertyName, factoryDeprecation);
150584
- var updateComputedPropertyName = Debug.deprecate(factory.updateComputedPropertyName, factoryDeprecation);
150585
- var createTypeParameterDeclaration = Debug.deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
150586
- var updateTypeParameterDeclaration = Debug.deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
150587
- var createParameter = Debug.deprecate(factory.createParameterDeclaration, factoryDeprecation);
150588
- var updateParameter = Debug.deprecate(factory.updateParameterDeclaration, factoryDeprecation);
150589
- var createDecorator = Debug.deprecate(factory.createDecorator, factoryDeprecation);
150590
- var updateDecorator = Debug.deprecate(factory.updateDecorator, factoryDeprecation);
150591
- var createProperty = Debug.deprecate(factory.createPropertyDeclaration, factoryDeprecation);
150592
- var updateProperty = Debug.deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
150593
- var createMethod = Debug.deprecate(factory.createMethodDeclaration, factoryDeprecation);
150594
- var updateMethod = Debug.deprecate(factory.updateMethodDeclaration, factoryDeprecation);
150595
- var createConstructor = Debug.deprecate(factory.createConstructorDeclaration, factoryDeprecation);
150596
- var updateConstructor = Debug.deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
150597
- var createGetAccessor = Debug.deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
150598
- var updateGetAccessor = Debug.deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
150599
- var createSetAccessor = Debug.deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
150600
- var updateSetAccessor = Debug.deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
150601
- var createCallSignature = Debug.deprecate(factory.createCallSignature, factoryDeprecation);
150602
- var updateCallSignature = Debug.deprecate(factory.updateCallSignature, factoryDeprecation);
150603
- var createConstructSignature = Debug.deprecate(factory.createConstructSignature, factoryDeprecation);
150604
- var updateConstructSignature = Debug.deprecate(factory.updateConstructSignature, factoryDeprecation);
150605
- var updateIndexSignature = Debug.deprecate(factory.updateIndexSignature, factoryDeprecation);
150606
- var createKeywordTypeNode = Debug.deprecate(factory.createKeywordTypeNode, factoryDeprecation);
150607
- var createTypePredicateNodeWithModifier = Debug.deprecate(factory.createTypePredicateNode, factoryDeprecation);
150608
- var updateTypePredicateNodeWithModifier = Debug.deprecate(factory.updateTypePredicateNode, factoryDeprecation);
150609
- var createTypeReferenceNode = Debug.deprecate(factory.createTypeReferenceNode, factoryDeprecation);
150610
- var updateTypeReferenceNode = Debug.deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
150611
- var createFunctionTypeNode = Debug.deprecate(factory.createFunctionTypeNode, factoryDeprecation);
150612
- var updateFunctionTypeNode = Debug.deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
150613
- var createConstructorTypeNode = Debug.deprecate((typeParameters, parameters, type) => {
150557
+ var createNodeArray = deprecate(factory.createNodeArray, factoryDeprecation);
150558
+ var createNumericLiteral = deprecate(factory.createNumericLiteral, factoryDeprecation);
150559
+ var createBigIntLiteral = deprecate(factory.createBigIntLiteral, factoryDeprecation);
150560
+ var createStringLiteral = deprecate(factory.createStringLiteral, factoryDeprecation);
150561
+ var createStringLiteralFromNode = deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
150562
+ var createRegularExpressionLiteral = deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
150563
+ var createLoopVariable = deprecate(factory.createLoopVariable, factoryDeprecation);
150564
+ var createUniqueName = deprecate(factory.createUniqueName, factoryDeprecation);
150565
+ var createPrivateIdentifier = deprecate(factory.createPrivateIdentifier, factoryDeprecation);
150566
+ var createSuper = deprecate(factory.createSuper, factoryDeprecation);
150567
+ var createThis = deprecate(factory.createThis, factoryDeprecation);
150568
+ var createNull = deprecate(factory.createNull, factoryDeprecation);
150569
+ var createTrue = deprecate(factory.createTrue, factoryDeprecation);
150570
+ var createFalse = deprecate(factory.createFalse, factoryDeprecation);
150571
+ var createModifier = deprecate(factory.createModifier, factoryDeprecation);
150572
+ var createModifiersFromModifierFlags = deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
150573
+ var createQualifiedName = deprecate(factory.createQualifiedName, factoryDeprecation);
150574
+ var updateQualifiedName = deprecate(factory.updateQualifiedName, factoryDeprecation);
150575
+ var createComputedPropertyName = deprecate(factory.createComputedPropertyName, factoryDeprecation);
150576
+ var updateComputedPropertyName = deprecate(factory.updateComputedPropertyName, factoryDeprecation);
150577
+ var createTypeParameterDeclaration = deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
150578
+ var updateTypeParameterDeclaration = deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
150579
+ var createParameter = deprecate(factory.createParameterDeclaration, factoryDeprecation);
150580
+ var updateParameter = deprecate(factory.updateParameterDeclaration, factoryDeprecation);
150581
+ var createDecorator = deprecate(factory.createDecorator, factoryDeprecation);
150582
+ var updateDecorator = deprecate(factory.updateDecorator, factoryDeprecation);
150583
+ var createProperty = deprecate(factory.createPropertyDeclaration, factoryDeprecation);
150584
+ var updateProperty = deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
150585
+ var createMethod = deprecate(factory.createMethodDeclaration, factoryDeprecation);
150586
+ var updateMethod = deprecate(factory.updateMethodDeclaration, factoryDeprecation);
150587
+ var createConstructor = deprecate(factory.createConstructorDeclaration, factoryDeprecation);
150588
+ var updateConstructor = deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
150589
+ var createGetAccessor = deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
150590
+ var updateGetAccessor = deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
150591
+ var createSetAccessor = deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
150592
+ var updateSetAccessor = deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
150593
+ var createCallSignature = deprecate(factory.createCallSignature, factoryDeprecation);
150594
+ var updateCallSignature = deprecate(factory.updateCallSignature, factoryDeprecation);
150595
+ var createConstructSignature = deprecate(factory.createConstructSignature, factoryDeprecation);
150596
+ var updateConstructSignature = deprecate(factory.updateConstructSignature, factoryDeprecation);
150597
+ var updateIndexSignature = deprecate(factory.updateIndexSignature, factoryDeprecation);
150598
+ var createKeywordTypeNode = deprecate(factory.createKeywordTypeNode, factoryDeprecation);
150599
+ var createTypePredicateNodeWithModifier = deprecate(factory.createTypePredicateNode, factoryDeprecation);
150600
+ var updateTypePredicateNodeWithModifier = deprecate(factory.updateTypePredicateNode, factoryDeprecation);
150601
+ var createTypeReferenceNode = deprecate(factory.createTypeReferenceNode, factoryDeprecation);
150602
+ var updateTypeReferenceNode = deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
150603
+ var createFunctionTypeNode = deprecate(factory.createFunctionTypeNode, factoryDeprecation);
150604
+ var updateFunctionTypeNode = deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
150605
+ var createConstructorTypeNode = deprecate((typeParameters, parameters, type) => {
150614
150606
  return factory.createConstructorTypeNode(void 0, typeParameters, parameters, type);
150615
150607
  }, factoryDeprecation);
150616
- var updateConstructorTypeNode = Debug.deprecate((node, typeParameters, parameters, type) => {
150608
+ var updateConstructorTypeNode = deprecate((node, typeParameters, parameters, type) => {
150617
150609
  return factory.updateConstructorTypeNode(node, node.modifiers, typeParameters, parameters, type);
150618
150610
  }, factoryDeprecation);
150619
- var createTypeQueryNode = Debug.deprecate(factory.createTypeQueryNode, factoryDeprecation);
150620
- var updateTypeQueryNode = Debug.deprecate(factory.updateTypeQueryNode, factoryDeprecation);
150621
- var createTypeLiteralNode = Debug.deprecate(factory.createTypeLiteralNode, factoryDeprecation);
150622
- var updateTypeLiteralNode = Debug.deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
150623
- var createArrayTypeNode = Debug.deprecate(factory.createArrayTypeNode, factoryDeprecation);
150624
- var updateArrayTypeNode = Debug.deprecate(factory.updateArrayTypeNode, factoryDeprecation);
150625
- var createTupleTypeNode = Debug.deprecate(factory.createTupleTypeNode, factoryDeprecation);
150626
- var updateTupleTypeNode = Debug.deprecate(factory.updateTupleTypeNode, factoryDeprecation);
150627
- var createOptionalTypeNode = Debug.deprecate(factory.createOptionalTypeNode, factoryDeprecation);
150628
- var updateOptionalTypeNode = Debug.deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
150629
- var createRestTypeNode = Debug.deprecate(factory.createRestTypeNode, factoryDeprecation);
150630
- var updateRestTypeNode = Debug.deprecate(factory.updateRestTypeNode, factoryDeprecation);
150631
- var createUnionTypeNode = Debug.deprecate(factory.createUnionTypeNode, factoryDeprecation);
150632
- var updateUnionTypeNode = Debug.deprecate(factory.updateUnionTypeNode, factoryDeprecation);
150633
- var createIntersectionTypeNode = Debug.deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
150634
- var updateIntersectionTypeNode = Debug.deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
150635
- var createConditionalTypeNode = Debug.deprecate(factory.createConditionalTypeNode, factoryDeprecation);
150636
- var updateConditionalTypeNode = Debug.deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
150637
- var createInferTypeNode = Debug.deprecate(factory.createInferTypeNode, factoryDeprecation);
150638
- var updateInferTypeNode = Debug.deprecate(factory.updateInferTypeNode, factoryDeprecation);
150639
- var createImportTypeNode = Debug.deprecate(factory.createImportTypeNode, factoryDeprecation);
150640
- var updateImportTypeNode = Debug.deprecate(factory.updateImportTypeNode, factoryDeprecation);
150641
- var createParenthesizedType = Debug.deprecate(factory.createParenthesizedType, factoryDeprecation);
150642
- var updateParenthesizedType = Debug.deprecate(factory.updateParenthesizedType, factoryDeprecation);
150643
- var createThisTypeNode = Debug.deprecate(factory.createThisTypeNode, factoryDeprecation);
150644
- var updateTypeOperatorNode = Debug.deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
150645
- var createIndexedAccessTypeNode = Debug.deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
150646
- var updateIndexedAccessTypeNode = Debug.deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
150647
- var createMappedTypeNode = Debug.deprecate(factory.createMappedTypeNode, factoryDeprecation);
150648
- var updateMappedTypeNode = Debug.deprecate(factory.updateMappedTypeNode, factoryDeprecation);
150649
- var createLiteralTypeNode = Debug.deprecate(factory.createLiteralTypeNode, factoryDeprecation);
150650
- var updateLiteralTypeNode = Debug.deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
150651
- var createObjectBindingPattern = Debug.deprecate(factory.createObjectBindingPattern, factoryDeprecation);
150652
- var updateObjectBindingPattern = Debug.deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
150653
- var createArrayBindingPattern = Debug.deprecate(factory.createArrayBindingPattern, factoryDeprecation);
150654
- var updateArrayBindingPattern = Debug.deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
150655
- var createBindingElement = Debug.deprecate(factory.createBindingElement, factoryDeprecation);
150656
- var updateBindingElement = Debug.deprecate(factory.updateBindingElement, factoryDeprecation);
150657
- var createArrayLiteral = Debug.deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
150658
- var updateArrayLiteral = Debug.deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
150659
- var createObjectLiteral = Debug.deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
150660
- var updateObjectLiteral = Debug.deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
150661
- var createPropertyAccess = Debug.deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
150662
- var updatePropertyAccess = Debug.deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
150663
- var createPropertyAccessChain = Debug.deprecate(factory.createPropertyAccessChain, factoryDeprecation);
150664
- var updatePropertyAccessChain = Debug.deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
150665
- var createElementAccess = Debug.deprecate(factory.createElementAccessExpression, factoryDeprecation);
150666
- var updateElementAccess = Debug.deprecate(factory.updateElementAccessExpression, factoryDeprecation);
150667
- var createElementAccessChain = Debug.deprecate(factory.createElementAccessChain, factoryDeprecation);
150668
- var updateElementAccessChain = Debug.deprecate(factory.updateElementAccessChain, factoryDeprecation);
150669
- var createCall = Debug.deprecate(factory.createCallExpression, factoryDeprecation);
150670
- var updateCall = Debug.deprecate(factory.updateCallExpression, factoryDeprecation);
150671
- var createCallChain = Debug.deprecate(factory.createCallChain, factoryDeprecation);
150672
- var updateCallChain = Debug.deprecate(factory.updateCallChain, factoryDeprecation);
150673
- var createNew = Debug.deprecate(factory.createNewExpression, factoryDeprecation);
150674
- var updateNew = Debug.deprecate(factory.updateNewExpression, factoryDeprecation);
150675
- var createTypeAssertion = Debug.deprecate(factory.createTypeAssertion, factoryDeprecation);
150676
- var updateTypeAssertion = Debug.deprecate(factory.updateTypeAssertion, factoryDeprecation);
150677
- var createParen = Debug.deprecate(factory.createParenthesizedExpression, factoryDeprecation);
150678
- var updateParen = Debug.deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
150679
- var createFunctionExpression = Debug.deprecate(factory.createFunctionExpression, factoryDeprecation);
150680
- var updateFunctionExpression = Debug.deprecate(factory.updateFunctionExpression, factoryDeprecation);
150681
- var createDelete = Debug.deprecate(factory.createDeleteExpression, factoryDeprecation);
150682
- var updateDelete = Debug.deprecate(factory.updateDeleteExpression, factoryDeprecation);
150683
- var createTypeOf = Debug.deprecate(factory.createTypeOfExpression, factoryDeprecation);
150684
- var updateTypeOf = Debug.deprecate(factory.updateTypeOfExpression, factoryDeprecation);
150685
- var createVoid = Debug.deprecate(factory.createVoidExpression, factoryDeprecation);
150686
- var updateVoid = Debug.deprecate(factory.updateVoidExpression, factoryDeprecation);
150687
- var createAwait = Debug.deprecate(factory.createAwaitExpression, factoryDeprecation);
150688
- var updateAwait = Debug.deprecate(factory.updateAwaitExpression, factoryDeprecation);
150689
- var createPrefix = Debug.deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
150690
- var updatePrefix = Debug.deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
150691
- var createPostfix = Debug.deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
150692
- var updatePostfix = Debug.deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
150693
- var createBinary = Debug.deprecate(factory.createBinaryExpression, factoryDeprecation);
150694
- var updateConditional = Debug.deprecate(factory.updateConditionalExpression, factoryDeprecation);
150695
- var createTemplateExpression = Debug.deprecate(factory.createTemplateExpression, factoryDeprecation);
150696
- var updateTemplateExpression = Debug.deprecate(factory.updateTemplateExpression, factoryDeprecation);
150697
- var createTemplateHead = Debug.deprecate(factory.createTemplateHead, factoryDeprecation);
150698
- var createTemplateMiddle = Debug.deprecate(factory.createTemplateMiddle, factoryDeprecation);
150699
- var createTemplateTail = Debug.deprecate(factory.createTemplateTail, factoryDeprecation);
150700
- var createNoSubstitutionTemplateLiteral = Debug.deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
150701
- var updateYield = Debug.deprecate(factory.updateYieldExpression, factoryDeprecation);
150702
- var createSpread = Debug.deprecate(factory.createSpreadElement, factoryDeprecation);
150703
- var updateSpread = Debug.deprecate(factory.updateSpreadElement, factoryDeprecation);
150704
- var createOmittedExpression = Debug.deprecate(factory.createOmittedExpression, factoryDeprecation);
150705
- var createAsExpression = Debug.deprecate(factory.createAsExpression, factoryDeprecation);
150706
- var updateAsExpression = Debug.deprecate(factory.updateAsExpression, factoryDeprecation);
150707
- var createNonNullExpression = Debug.deprecate(factory.createNonNullExpression, factoryDeprecation);
150708
- var updateNonNullExpression = Debug.deprecate(factory.updateNonNullExpression, factoryDeprecation);
150709
- var createNonNullChain = Debug.deprecate(factory.createNonNullChain, factoryDeprecation);
150710
- var updateNonNullChain = Debug.deprecate(factory.updateNonNullChain, factoryDeprecation);
150711
- var createMetaProperty = Debug.deprecate(factory.createMetaProperty, factoryDeprecation);
150712
- var updateMetaProperty = Debug.deprecate(factory.updateMetaProperty, factoryDeprecation);
150713
- var createTemplateSpan = Debug.deprecate(factory.createTemplateSpan, factoryDeprecation);
150714
- var updateTemplateSpan = Debug.deprecate(factory.updateTemplateSpan, factoryDeprecation);
150715
- var createSemicolonClassElement = Debug.deprecate(factory.createSemicolonClassElement, factoryDeprecation);
150716
- var createBlock = Debug.deprecate(factory.createBlock, factoryDeprecation);
150717
- var updateBlock = Debug.deprecate(factory.updateBlock, factoryDeprecation);
150718
- var createVariableStatement = Debug.deprecate(factory.createVariableStatement, factoryDeprecation);
150719
- var updateVariableStatement = Debug.deprecate(factory.updateVariableStatement, factoryDeprecation);
150720
- var createEmptyStatement = Debug.deprecate(factory.createEmptyStatement, factoryDeprecation);
150721
- var createExpressionStatement = Debug.deprecate(factory.createExpressionStatement, factoryDeprecation);
150722
- var updateExpressionStatement = Debug.deprecate(factory.updateExpressionStatement, factoryDeprecation);
150723
- var createStatement = Debug.deprecate(factory.createExpressionStatement, factoryDeprecation);
150724
- var updateStatement = Debug.deprecate(factory.updateExpressionStatement, factoryDeprecation);
150725
- var createIf = Debug.deprecate(factory.createIfStatement, factoryDeprecation);
150726
- var updateIf = Debug.deprecate(factory.updateIfStatement, factoryDeprecation);
150727
- var createDo = Debug.deprecate(factory.createDoStatement, factoryDeprecation);
150728
- var updateDo = Debug.deprecate(factory.updateDoStatement, factoryDeprecation);
150729
- var createWhile = Debug.deprecate(factory.createWhileStatement, factoryDeprecation);
150730
- var updateWhile = Debug.deprecate(factory.updateWhileStatement, factoryDeprecation);
150731
- var createFor = Debug.deprecate(factory.createForStatement, factoryDeprecation);
150732
- var updateFor = Debug.deprecate(factory.updateForStatement, factoryDeprecation);
150733
- var createForIn = Debug.deprecate(factory.createForInStatement, factoryDeprecation);
150734
- var updateForIn = Debug.deprecate(factory.updateForInStatement, factoryDeprecation);
150735
- var createForOf = Debug.deprecate(factory.createForOfStatement, factoryDeprecation);
150736
- var updateForOf = Debug.deprecate(factory.updateForOfStatement, factoryDeprecation);
150737
- var createContinue = Debug.deprecate(factory.createContinueStatement, factoryDeprecation);
150738
- var updateContinue = Debug.deprecate(factory.updateContinueStatement, factoryDeprecation);
150739
- var createBreak = Debug.deprecate(factory.createBreakStatement, factoryDeprecation);
150740
- var updateBreak = Debug.deprecate(factory.updateBreakStatement, factoryDeprecation);
150741
- var createReturn = Debug.deprecate(factory.createReturnStatement, factoryDeprecation);
150742
- var updateReturn = Debug.deprecate(factory.updateReturnStatement, factoryDeprecation);
150743
- var createWith = Debug.deprecate(factory.createWithStatement, factoryDeprecation);
150744
- var updateWith = Debug.deprecate(factory.updateWithStatement, factoryDeprecation);
150745
- var createSwitch = Debug.deprecate(factory.createSwitchStatement, factoryDeprecation);
150746
- var updateSwitch = Debug.deprecate(factory.updateSwitchStatement, factoryDeprecation);
150747
- var createLabel = Debug.deprecate(factory.createLabeledStatement, factoryDeprecation);
150748
- var updateLabel = Debug.deprecate(factory.updateLabeledStatement, factoryDeprecation);
150749
- var createThrow = Debug.deprecate(factory.createThrowStatement, factoryDeprecation);
150750
- var updateThrow = Debug.deprecate(factory.updateThrowStatement, factoryDeprecation);
150751
- var createTry = Debug.deprecate(factory.createTryStatement, factoryDeprecation);
150752
- var updateTry = Debug.deprecate(factory.updateTryStatement, factoryDeprecation);
150753
- var createDebuggerStatement = Debug.deprecate(factory.createDebuggerStatement, factoryDeprecation);
150754
- var createVariableDeclarationList = Debug.deprecate(factory.createVariableDeclarationList, factoryDeprecation);
150755
- var updateVariableDeclarationList = Debug.deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
150756
- var createFunctionDeclaration = Debug.deprecate(factory.createFunctionDeclaration, factoryDeprecation);
150757
- var updateFunctionDeclaration = Debug.deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
150758
- var createClassDeclaration = Debug.deprecate(factory.createClassDeclaration, factoryDeprecation);
150759
- var updateClassDeclaration = Debug.deprecate(factory.updateClassDeclaration, factoryDeprecation);
150760
- var createInterfaceDeclaration = Debug.deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
150761
- var updateInterfaceDeclaration = Debug.deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
150762
- var createTypeAliasDeclaration = Debug.deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
150763
- var updateTypeAliasDeclaration = Debug.deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
150764
- var createEnumDeclaration = Debug.deprecate(factory.createEnumDeclaration, factoryDeprecation);
150765
- var updateEnumDeclaration = Debug.deprecate(factory.updateEnumDeclaration, factoryDeprecation);
150766
- var createModuleDeclaration = Debug.deprecate(factory.createModuleDeclaration, factoryDeprecation);
150767
- var updateModuleDeclaration = Debug.deprecate(factory.updateModuleDeclaration, factoryDeprecation);
150768
- var createModuleBlock = Debug.deprecate(factory.createModuleBlock, factoryDeprecation);
150769
- var updateModuleBlock = Debug.deprecate(factory.updateModuleBlock, factoryDeprecation);
150770
- var createCaseBlock = Debug.deprecate(factory.createCaseBlock, factoryDeprecation);
150771
- var updateCaseBlock = Debug.deprecate(factory.updateCaseBlock, factoryDeprecation);
150772
- var createNamespaceExportDeclaration = Debug.deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
150773
- var updateNamespaceExportDeclaration = Debug.deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
150774
- var createImportEqualsDeclaration = Debug.deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
150775
- var updateImportEqualsDeclaration = Debug.deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
150776
- var createImportDeclaration = Debug.deprecate(factory.createImportDeclaration, factoryDeprecation);
150777
- var updateImportDeclaration = Debug.deprecate(factory.updateImportDeclaration, factoryDeprecation);
150778
- var createNamespaceImport = Debug.deprecate(factory.createNamespaceImport, factoryDeprecation);
150779
- var updateNamespaceImport = Debug.deprecate(factory.updateNamespaceImport, factoryDeprecation);
150780
- var createNamedImports = Debug.deprecate(factory.createNamedImports, factoryDeprecation);
150781
- var updateNamedImports = Debug.deprecate(factory.updateNamedImports, factoryDeprecation);
150782
- var createImportSpecifier = Debug.deprecate(factory.createImportSpecifier, factoryDeprecation);
150783
- var updateImportSpecifier = Debug.deprecate(factory.updateImportSpecifier, factoryDeprecation);
150784
- var createExportAssignment2 = Debug.deprecate(factory.createExportAssignment, factoryDeprecation);
150785
- var updateExportAssignment = Debug.deprecate(factory.updateExportAssignment, factoryDeprecation);
150786
- var createNamedExports = Debug.deprecate(factory.createNamedExports, factoryDeprecation);
150787
- var updateNamedExports = Debug.deprecate(factory.updateNamedExports, factoryDeprecation);
150788
- var createExportSpecifier = Debug.deprecate(factory.createExportSpecifier, factoryDeprecation);
150789
- var updateExportSpecifier = Debug.deprecate(factory.updateExportSpecifier, factoryDeprecation);
150790
- var createExternalModuleReference = Debug.deprecate(factory.createExternalModuleReference, factoryDeprecation);
150791
- var updateExternalModuleReference = Debug.deprecate(factory.updateExternalModuleReference, factoryDeprecation);
150792
- var createJSDocTypeExpression = Debug.deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
150793
- var createJSDocTypeTag = Debug.deprecate(factory.createJSDocTypeTag, factoryDeprecation);
150794
- var createJSDocReturnTag = Debug.deprecate(factory.createJSDocReturnTag, factoryDeprecation);
150795
- var createJSDocThisTag = Debug.deprecate(factory.createJSDocThisTag, factoryDeprecation);
150796
- var createJSDocComment = Debug.deprecate(factory.createJSDocComment, factoryDeprecation);
150797
- var createJSDocParameterTag = Debug.deprecate(factory.createJSDocParameterTag, factoryDeprecation);
150798
- var createJSDocClassTag = Debug.deprecate(factory.createJSDocClassTag, factoryDeprecation);
150799
- var createJSDocAugmentsTag = Debug.deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
150800
- var createJSDocEnumTag = Debug.deprecate(factory.createJSDocEnumTag, factoryDeprecation);
150801
- var createJSDocTemplateTag = Debug.deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
150802
- var createJSDocTypedefTag = Debug.deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
150803
- var createJSDocCallbackTag = Debug.deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
150804
- var createJSDocSignature = Debug.deprecate(factory.createJSDocSignature, factoryDeprecation);
150805
- var createJSDocPropertyTag = Debug.deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
150806
- var createJSDocTypeLiteral = Debug.deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
150807
- var createJSDocImplementsTag = Debug.deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
150808
- var createJSDocAuthorTag = Debug.deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
150809
- var createJSDocPublicTag = Debug.deprecate(factory.createJSDocPublicTag, factoryDeprecation);
150810
- var createJSDocPrivateTag = Debug.deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
150811
- var createJSDocProtectedTag = Debug.deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
150812
- var createJSDocReadonlyTag = Debug.deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
150813
- var createJSDocTag = Debug.deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
150814
- var createJsxElement = Debug.deprecate(factory.createJsxElement, factoryDeprecation);
150815
- var updateJsxElement = Debug.deprecate(factory.updateJsxElement, factoryDeprecation);
150816
- var createJsxSelfClosingElement = Debug.deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
150817
- var updateJsxSelfClosingElement = Debug.deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
150818
- var createJsxOpeningElement = Debug.deprecate(factory.createJsxOpeningElement, factoryDeprecation);
150819
- var updateJsxOpeningElement = Debug.deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
150820
- var createJsxClosingElement = Debug.deprecate(factory.createJsxClosingElement, factoryDeprecation);
150821
- var updateJsxClosingElement = Debug.deprecate(factory.updateJsxClosingElement, factoryDeprecation);
150822
- var createJsxFragment = Debug.deprecate(factory.createJsxFragment, factoryDeprecation);
150823
- var createJsxText = Debug.deprecate(factory.createJsxText, factoryDeprecation);
150824
- var updateJsxText = Debug.deprecate(factory.updateJsxText, factoryDeprecation);
150825
- var createJsxOpeningFragment = Debug.deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
150826
- var createJsxJsxClosingFragment = Debug.deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
150827
- var updateJsxFragment = Debug.deprecate(factory.updateJsxFragment, factoryDeprecation);
150828
- var createJsxAttribute = Debug.deprecate(factory.createJsxAttribute, factoryDeprecation);
150829
- var updateJsxAttribute = Debug.deprecate(factory.updateJsxAttribute, factoryDeprecation);
150830
- var createJsxAttributes = Debug.deprecate(factory.createJsxAttributes, factoryDeprecation);
150831
- var updateJsxAttributes = Debug.deprecate(factory.updateJsxAttributes, factoryDeprecation);
150832
- var createJsxSpreadAttribute = Debug.deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
150833
- var updateJsxSpreadAttribute = Debug.deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
150834
- var createJsxExpression = Debug.deprecate(factory.createJsxExpression, factoryDeprecation);
150835
- var updateJsxExpression = Debug.deprecate(factory.updateJsxExpression, factoryDeprecation);
150836
- var createCaseClause = Debug.deprecate(factory.createCaseClause, factoryDeprecation);
150837
- var updateCaseClause = Debug.deprecate(factory.updateCaseClause, factoryDeprecation);
150838
- var createDefaultClause = Debug.deprecate(factory.createDefaultClause, factoryDeprecation);
150839
- var updateDefaultClause = Debug.deprecate(factory.updateDefaultClause, factoryDeprecation);
150840
- var createHeritageClause = Debug.deprecate(factory.createHeritageClause, factoryDeprecation);
150841
- var updateHeritageClause = Debug.deprecate(factory.updateHeritageClause, factoryDeprecation);
150842
- var createCatchClause = Debug.deprecate(factory.createCatchClause, factoryDeprecation);
150843
- var updateCatchClause = Debug.deprecate(factory.updateCatchClause, factoryDeprecation);
150844
- var createPropertyAssignment = Debug.deprecate(factory.createPropertyAssignment, factoryDeprecation);
150845
- var updatePropertyAssignment = Debug.deprecate(factory.updatePropertyAssignment, factoryDeprecation);
150846
- var createShorthandPropertyAssignment = Debug.deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
150847
- var updateShorthandPropertyAssignment = Debug.deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
150848
- var createSpreadAssignment = Debug.deprecate(factory.createSpreadAssignment, factoryDeprecation);
150849
- var updateSpreadAssignment = Debug.deprecate(factory.updateSpreadAssignment, factoryDeprecation);
150850
- var createEnumMember = Debug.deprecate(factory.createEnumMember, factoryDeprecation);
150851
- var updateEnumMember = Debug.deprecate(factory.updateEnumMember, factoryDeprecation);
150852
- var updateSourceFileNode = Debug.deprecate(factory.updateSourceFile, factoryDeprecation);
150853
- var createNotEmittedStatement = Debug.deprecate(factory.createNotEmittedStatement, factoryDeprecation);
150854
- var createPartiallyEmittedExpression = Debug.deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
150855
- var updatePartiallyEmittedExpression = Debug.deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
150856
- var createCommaList = Debug.deprecate(factory.createCommaListExpression, factoryDeprecation);
150857
- var updateCommaList = Debug.deprecate(factory.updateCommaListExpression, factoryDeprecation);
150858
- var createBundle = Debug.deprecate(factory.createBundle, factoryDeprecation);
150859
- var updateBundle = Debug.deprecate(factory.updateBundle, factoryDeprecation);
150860
- var createImmediatelyInvokedFunctionExpression = Debug.deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
150861
- var createImmediatelyInvokedArrowFunction = Debug.deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
150862
- var createVoidZero = Debug.deprecate(factory.createVoidZero, factoryDeprecation);
150863
- var createExportDefault = Debug.deprecate(factory.createExportDefault, factoryDeprecation);
150864
- var createExternalModuleExport = Debug.deprecate(factory.createExternalModuleExport, factoryDeprecation);
150865
- var createNamespaceExport = Debug.deprecate(factory.createNamespaceExport, factoryDeprecation);
150866
- var updateNamespaceExport = Debug.deprecate(factory.updateNamespaceExport, factoryDeprecation);
150867
- var createToken = Debug.deprecate(function createToken2(kind) {
150611
+ var createTypeQueryNode = deprecate(factory.createTypeQueryNode, factoryDeprecation);
150612
+ var updateTypeQueryNode = deprecate(factory.updateTypeQueryNode, factoryDeprecation);
150613
+ var createTypeLiteralNode = deprecate(factory.createTypeLiteralNode, factoryDeprecation);
150614
+ var updateTypeLiteralNode = deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
150615
+ var createArrayTypeNode = deprecate(factory.createArrayTypeNode, factoryDeprecation);
150616
+ var updateArrayTypeNode = deprecate(factory.updateArrayTypeNode, factoryDeprecation);
150617
+ var createTupleTypeNode = deprecate(factory.createTupleTypeNode, factoryDeprecation);
150618
+ var updateTupleTypeNode = deprecate(factory.updateTupleTypeNode, factoryDeprecation);
150619
+ var createOptionalTypeNode = deprecate(factory.createOptionalTypeNode, factoryDeprecation);
150620
+ var updateOptionalTypeNode = deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
150621
+ var createRestTypeNode = deprecate(factory.createRestTypeNode, factoryDeprecation);
150622
+ var updateRestTypeNode = deprecate(factory.updateRestTypeNode, factoryDeprecation);
150623
+ var createUnionTypeNode = deprecate(factory.createUnionTypeNode, factoryDeprecation);
150624
+ var updateUnionTypeNode = deprecate(factory.updateUnionTypeNode, factoryDeprecation);
150625
+ var createIntersectionTypeNode = deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
150626
+ var updateIntersectionTypeNode = deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
150627
+ var createConditionalTypeNode = deprecate(factory.createConditionalTypeNode, factoryDeprecation);
150628
+ var updateConditionalTypeNode = deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
150629
+ var createInferTypeNode = deprecate(factory.createInferTypeNode, factoryDeprecation);
150630
+ var updateInferTypeNode = deprecate(factory.updateInferTypeNode, factoryDeprecation);
150631
+ var createImportTypeNode = deprecate(factory.createImportTypeNode, factoryDeprecation);
150632
+ var updateImportTypeNode = deprecate(factory.updateImportTypeNode, factoryDeprecation);
150633
+ var createParenthesizedType = deprecate(factory.createParenthesizedType, factoryDeprecation);
150634
+ var updateParenthesizedType = deprecate(factory.updateParenthesizedType, factoryDeprecation);
150635
+ var createThisTypeNode = deprecate(factory.createThisTypeNode, factoryDeprecation);
150636
+ var updateTypeOperatorNode = deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
150637
+ var createIndexedAccessTypeNode = deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
150638
+ var updateIndexedAccessTypeNode = deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
150639
+ var createMappedTypeNode = deprecate(factory.createMappedTypeNode, factoryDeprecation);
150640
+ var updateMappedTypeNode = deprecate(factory.updateMappedTypeNode, factoryDeprecation);
150641
+ var createLiteralTypeNode = deprecate(factory.createLiteralTypeNode, factoryDeprecation);
150642
+ var updateLiteralTypeNode = deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
150643
+ var createObjectBindingPattern = deprecate(factory.createObjectBindingPattern, factoryDeprecation);
150644
+ var updateObjectBindingPattern = deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
150645
+ var createArrayBindingPattern = deprecate(factory.createArrayBindingPattern, factoryDeprecation);
150646
+ var updateArrayBindingPattern = deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
150647
+ var createBindingElement = deprecate(factory.createBindingElement, factoryDeprecation);
150648
+ var updateBindingElement = deprecate(factory.updateBindingElement, factoryDeprecation);
150649
+ var createArrayLiteral = deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
150650
+ var updateArrayLiteral = deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
150651
+ var createObjectLiteral = deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
150652
+ var updateObjectLiteral = deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
150653
+ var createPropertyAccess = deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
150654
+ var updatePropertyAccess = deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
150655
+ var createPropertyAccessChain = deprecate(factory.createPropertyAccessChain, factoryDeprecation);
150656
+ var updatePropertyAccessChain = deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
150657
+ var createElementAccess = deprecate(factory.createElementAccessExpression, factoryDeprecation);
150658
+ var updateElementAccess = deprecate(factory.updateElementAccessExpression, factoryDeprecation);
150659
+ var createElementAccessChain = deprecate(factory.createElementAccessChain, factoryDeprecation);
150660
+ var updateElementAccessChain = deprecate(factory.updateElementAccessChain, factoryDeprecation);
150661
+ var createCall = deprecate(factory.createCallExpression, factoryDeprecation);
150662
+ var updateCall = deprecate(factory.updateCallExpression, factoryDeprecation);
150663
+ var createCallChain = deprecate(factory.createCallChain, factoryDeprecation);
150664
+ var updateCallChain = deprecate(factory.updateCallChain, factoryDeprecation);
150665
+ var createNew = deprecate(factory.createNewExpression, factoryDeprecation);
150666
+ var updateNew = deprecate(factory.updateNewExpression, factoryDeprecation);
150667
+ var createTypeAssertion = deprecate(factory.createTypeAssertion, factoryDeprecation);
150668
+ var updateTypeAssertion = deprecate(factory.updateTypeAssertion, factoryDeprecation);
150669
+ var createParen = deprecate(factory.createParenthesizedExpression, factoryDeprecation);
150670
+ var updateParen = deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
150671
+ var createFunctionExpression = deprecate(factory.createFunctionExpression, factoryDeprecation);
150672
+ var updateFunctionExpression = deprecate(factory.updateFunctionExpression, factoryDeprecation);
150673
+ var createDelete = deprecate(factory.createDeleteExpression, factoryDeprecation);
150674
+ var updateDelete = deprecate(factory.updateDeleteExpression, factoryDeprecation);
150675
+ var createTypeOf = deprecate(factory.createTypeOfExpression, factoryDeprecation);
150676
+ var updateTypeOf = deprecate(factory.updateTypeOfExpression, factoryDeprecation);
150677
+ var createVoid = deprecate(factory.createVoidExpression, factoryDeprecation);
150678
+ var updateVoid = deprecate(factory.updateVoidExpression, factoryDeprecation);
150679
+ var createAwait = deprecate(factory.createAwaitExpression, factoryDeprecation);
150680
+ var updateAwait = deprecate(factory.updateAwaitExpression, factoryDeprecation);
150681
+ var createPrefix = deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
150682
+ var updatePrefix = deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
150683
+ var createPostfix = deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
150684
+ var updatePostfix = deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
150685
+ var createBinary = deprecate(factory.createBinaryExpression, factoryDeprecation);
150686
+ var updateConditional = deprecate(factory.updateConditionalExpression, factoryDeprecation);
150687
+ var createTemplateExpression = deprecate(factory.createTemplateExpression, factoryDeprecation);
150688
+ var updateTemplateExpression = deprecate(factory.updateTemplateExpression, factoryDeprecation);
150689
+ var createTemplateHead = deprecate(factory.createTemplateHead, factoryDeprecation);
150690
+ var createTemplateMiddle = deprecate(factory.createTemplateMiddle, factoryDeprecation);
150691
+ var createTemplateTail = deprecate(factory.createTemplateTail, factoryDeprecation);
150692
+ var createNoSubstitutionTemplateLiteral = deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
150693
+ var updateYield = deprecate(factory.updateYieldExpression, factoryDeprecation);
150694
+ var createSpread = deprecate(factory.createSpreadElement, factoryDeprecation);
150695
+ var updateSpread = deprecate(factory.updateSpreadElement, factoryDeprecation);
150696
+ var createOmittedExpression = deprecate(factory.createOmittedExpression, factoryDeprecation);
150697
+ var createAsExpression = deprecate(factory.createAsExpression, factoryDeprecation);
150698
+ var updateAsExpression = deprecate(factory.updateAsExpression, factoryDeprecation);
150699
+ var createNonNullExpression = deprecate(factory.createNonNullExpression, factoryDeprecation);
150700
+ var updateNonNullExpression = deprecate(factory.updateNonNullExpression, factoryDeprecation);
150701
+ var createNonNullChain = deprecate(factory.createNonNullChain, factoryDeprecation);
150702
+ var updateNonNullChain = deprecate(factory.updateNonNullChain, factoryDeprecation);
150703
+ var createMetaProperty = deprecate(factory.createMetaProperty, factoryDeprecation);
150704
+ var updateMetaProperty = deprecate(factory.updateMetaProperty, factoryDeprecation);
150705
+ var createTemplateSpan = deprecate(factory.createTemplateSpan, factoryDeprecation);
150706
+ var updateTemplateSpan = deprecate(factory.updateTemplateSpan, factoryDeprecation);
150707
+ var createSemicolonClassElement = deprecate(factory.createSemicolonClassElement, factoryDeprecation);
150708
+ var createBlock = deprecate(factory.createBlock, factoryDeprecation);
150709
+ var updateBlock = deprecate(factory.updateBlock, factoryDeprecation);
150710
+ var createVariableStatement = deprecate(factory.createVariableStatement, factoryDeprecation);
150711
+ var updateVariableStatement = deprecate(factory.updateVariableStatement, factoryDeprecation);
150712
+ var createEmptyStatement = deprecate(factory.createEmptyStatement, factoryDeprecation);
150713
+ var createExpressionStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
150714
+ var updateExpressionStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
150715
+ var createStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
150716
+ var updateStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
150717
+ var createIf = deprecate(factory.createIfStatement, factoryDeprecation);
150718
+ var updateIf = deprecate(factory.updateIfStatement, factoryDeprecation);
150719
+ var createDo = deprecate(factory.createDoStatement, factoryDeprecation);
150720
+ var updateDo = deprecate(factory.updateDoStatement, factoryDeprecation);
150721
+ var createWhile = deprecate(factory.createWhileStatement, factoryDeprecation);
150722
+ var updateWhile = deprecate(factory.updateWhileStatement, factoryDeprecation);
150723
+ var createFor = deprecate(factory.createForStatement, factoryDeprecation);
150724
+ var updateFor = deprecate(factory.updateForStatement, factoryDeprecation);
150725
+ var createForIn = deprecate(factory.createForInStatement, factoryDeprecation);
150726
+ var updateForIn = deprecate(factory.updateForInStatement, factoryDeprecation);
150727
+ var createForOf = deprecate(factory.createForOfStatement, factoryDeprecation);
150728
+ var updateForOf = deprecate(factory.updateForOfStatement, factoryDeprecation);
150729
+ var createContinue = deprecate(factory.createContinueStatement, factoryDeprecation);
150730
+ var updateContinue = deprecate(factory.updateContinueStatement, factoryDeprecation);
150731
+ var createBreak = deprecate(factory.createBreakStatement, factoryDeprecation);
150732
+ var updateBreak = deprecate(factory.updateBreakStatement, factoryDeprecation);
150733
+ var createReturn = deprecate(factory.createReturnStatement, factoryDeprecation);
150734
+ var updateReturn = deprecate(factory.updateReturnStatement, factoryDeprecation);
150735
+ var createWith = deprecate(factory.createWithStatement, factoryDeprecation);
150736
+ var updateWith = deprecate(factory.updateWithStatement, factoryDeprecation);
150737
+ var createSwitch = deprecate(factory.createSwitchStatement, factoryDeprecation);
150738
+ var updateSwitch = deprecate(factory.updateSwitchStatement, factoryDeprecation);
150739
+ var createLabel = deprecate(factory.createLabeledStatement, factoryDeprecation);
150740
+ var updateLabel = deprecate(factory.updateLabeledStatement, factoryDeprecation);
150741
+ var createThrow = deprecate(factory.createThrowStatement, factoryDeprecation);
150742
+ var updateThrow = deprecate(factory.updateThrowStatement, factoryDeprecation);
150743
+ var createTry = deprecate(factory.createTryStatement, factoryDeprecation);
150744
+ var updateTry = deprecate(factory.updateTryStatement, factoryDeprecation);
150745
+ var createDebuggerStatement = deprecate(factory.createDebuggerStatement, factoryDeprecation);
150746
+ var createVariableDeclarationList = deprecate(factory.createVariableDeclarationList, factoryDeprecation);
150747
+ var updateVariableDeclarationList = deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
150748
+ var createFunctionDeclaration = deprecate(factory.createFunctionDeclaration, factoryDeprecation);
150749
+ var updateFunctionDeclaration = deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
150750
+ var createClassDeclaration = deprecate(factory.createClassDeclaration, factoryDeprecation);
150751
+ var updateClassDeclaration = deprecate(factory.updateClassDeclaration, factoryDeprecation);
150752
+ var createInterfaceDeclaration = deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
150753
+ var updateInterfaceDeclaration = deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
150754
+ var createTypeAliasDeclaration = deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
150755
+ var updateTypeAliasDeclaration = deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
150756
+ var createEnumDeclaration = deprecate(factory.createEnumDeclaration, factoryDeprecation);
150757
+ var updateEnumDeclaration = deprecate(factory.updateEnumDeclaration, factoryDeprecation);
150758
+ var createModuleDeclaration = deprecate(factory.createModuleDeclaration, factoryDeprecation);
150759
+ var updateModuleDeclaration = deprecate(factory.updateModuleDeclaration, factoryDeprecation);
150760
+ var createModuleBlock = deprecate(factory.createModuleBlock, factoryDeprecation);
150761
+ var updateModuleBlock = deprecate(factory.updateModuleBlock, factoryDeprecation);
150762
+ var createCaseBlock = deprecate(factory.createCaseBlock, factoryDeprecation);
150763
+ var updateCaseBlock = deprecate(factory.updateCaseBlock, factoryDeprecation);
150764
+ var createNamespaceExportDeclaration = deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
150765
+ var updateNamespaceExportDeclaration = deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
150766
+ var createImportEqualsDeclaration = deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
150767
+ var updateImportEqualsDeclaration = deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
150768
+ var createImportDeclaration = deprecate(factory.createImportDeclaration, factoryDeprecation);
150769
+ var updateImportDeclaration = deprecate(factory.updateImportDeclaration, factoryDeprecation);
150770
+ var createNamespaceImport = deprecate(factory.createNamespaceImport, factoryDeprecation);
150771
+ var updateNamespaceImport = deprecate(factory.updateNamespaceImport, factoryDeprecation);
150772
+ var createNamedImports = deprecate(factory.createNamedImports, factoryDeprecation);
150773
+ var updateNamedImports = deprecate(factory.updateNamedImports, factoryDeprecation);
150774
+ var createImportSpecifier = deprecate(factory.createImportSpecifier, factoryDeprecation);
150775
+ var updateImportSpecifier = deprecate(factory.updateImportSpecifier, factoryDeprecation);
150776
+ var createExportAssignment2 = deprecate(factory.createExportAssignment, factoryDeprecation);
150777
+ var updateExportAssignment = deprecate(factory.updateExportAssignment, factoryDeprecation);
150778
+ var createNamedExports = deprecate(factory.createNamedExports, factoryDeprecation);
150779
+ var updateNamedExports = deprecate(factory.updateNamedExports, factoryDeprecation);
150780
+ var createExportSpecifier = deprecate(factory.createExportSpecifier, factoryDeprecation);
150781
+ var updateExportSpecifier = deprecate(factory.updateExportSpecifier, factoryDeprecation);
150782
+ var createExternalModuleReference = deprecate(factory.createExternalModuleReference, factoryDeprecation);
150783
+ var updateExternalModuleReference = deprecate(factory.updateExternalModuleReference, factoryDeprecation);
150784
+ var createJSDocTypeExpression = deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
150785
+ var createJSDocTypeTag = deprecate(factory.createJSDocTypeTag, factoryDeprecation);
150786
+ var createJSDocReturnTag = deprecate(factory.createJSDocReturnTag, factoryDeprecation);
150787
+ var createJSDocThisTag = deprecate(factory.createJSDocThisTag, factoryDeprecation);
150788
+ var createJSDocComment = deprecate(factory.createJSDocComment, factoryDeprecation);
150789
+ var createJSDocParameterTag = deprecate(factory.createJSDocParameterTag, factoryDeprecation);
150790
+ var createJSDocClassTag = deprecate(factory.createJSDocClassTag, factoryDeprecation);
150791
+ var createJSDocAugmentsTag = deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
150792
+ var createJSDocEnumTag = deprecate(factory.createJSDocEnumTag, factoryDeprecation);
150793
+ var createJSDocTemplateTag = deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
150794
+ var createJSDocTypedefTag = deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
150795
+ var createJSDocCallbackTag = deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
150796
+ var createJSDocSignature = deprecate(factory.createJSDocSignature, factoryDeprecation);
150797
+ var createJSDocPropertyTag = deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
150798
+ var createJSDocTypeLiteral = deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
150799
+ var createJSDocImplementsTag = deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
150800
+ var createJSDocAuthorTag = deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
150801
+ var createJSDocPublicTag = deprecate(factory.createJSDocPublicTag, factoryDeprecation);
150802
+ var createJSDocPrivateTag = deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
150803
+ var createJSDocProtectedTag = deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
150804
+ var createJSDocReadonlyTag = deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
150805
+ var createJSDocTag = deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
150806
+ var createJsxElement = deprecate(factory.createJsxElement, factoryDeprecation);
150807
+ var updateJsxElement = deprecate(factory.updateJsxElement, factoryDeprecation);
150808
+ var createJsxSelfClosingElement = deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
150809
+ var updateJsxSelfClosingElement = deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
150810
+ var createJsxOpeningElement = deprecate(factory.createJsxOpeningElement, factoryDeprecation);
150811
+ var updateJsxOpeningElement = deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
150812
+ var createJsxClosingElement = deprecate(factory.createJsxClosingElement, factoryDeprecation);
150813
+ var updateJsxClosingElement = deprecate(factory.updateJsxClosingElement, factoryDeprecation);
150814
+ var createJsxFragment = deprecate(factory.createJsxFragment, factoryDeprecation);
150815
+ var createJsxText = deprecate(factory.createJsxText, factoryDeprecation);
150816
+ var updateJsxText = deprecate(factory.updateJsxText, factoryDeprecation);
150817
+ var createJsxOpeningFragment = deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
150818
+ var createJsxJsxClosingFragment = deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
150819
+ var updateJsxFragment = deprecate(factory.updateJsxFragment, factoryDeprecation);
150820
+ var createJsxAttribute = deprecate(factory.createJsxAttribute, factoryDeprecation);
150821
+ var updateJsxAttribute = deprecate(factory.updateJsxAttribute, factoryDeprecation);
150822
+ var createJsxAttributes = deprecate(factory.createJsxAttributes, factoryDeprecation);
150823
+ var updateJsxAttributes = deprecate(factory.updateJsxAttributes, factoryDeprecation);
150824
+ var createJsxSpreadAttribute = deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
150825
+ var updateJsxSpreadAttribute = deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
150826
+ var createJsxExpression = deprecate(factory.createJsxExpression, factoryDeprecation);
150827
+ var updateJsxExpression = deprecate(factory.updateJsxExpression, factoryDeprecation);
150828
+ var createCaseClause = deprecate(factory.createCaseClause, factoryDeprecation);
150829
+ var updateCaseClause = deprecate(factory.updateCaseClause, factoryDeprecation);
150830
+ var createDefaultClause = deprecate(factory.createDefaultClause, factoryDeprecation);
150831
+ var updateDefaultClause = deprecate(factory.updateDefaultClause, factoryDeprecation);
150832
+ var createHeritageClause = deprecate(factory.createHeritageClause, factoryDeprecation);
150833
+ var updateHeritageClause = deprecate(factory.updateHeritageClause, factoryDeprecation);
150834
+ var createCatchClause = deprecate(factory.createCatchClause, factoryDeprecation);
150835
+ var updateCatchClause = deprecate(factory.updateCatchClause, factoryDeprecation);
150836
+ var createPropertyAssignment = deprecate(factory.createPropertyAssignment, factoryDeprecation);
150837
+ var updatePropertyAssignment = deprecate(factory.updatePropertyAssignment, factoryDeprecation);
150838
+ var createShorthandPropertyAssignment = deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
150839
+ var updateShorthandPropertyAssignment = deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
150840
+ var createSpreadAssignment = deprecate(factory.createSpreadAssignment, factoryDeprecation);
150841
+ var updateSpreadAssignment = deprecate(factory.updateSpreadAssignment, factoryDeprecation);
150842
+ var createEnumMember = deprecate(factory.createEnumMember, factoryDeprecation);
150843
+ var updateEnumMember = deprecate(factory.updateEnumMember, factoryDeprecation);
150844
+ var updateSourceFileNode = deprecate(factory.updateSourceFile, factoryDeprecation);
150845
+ var createNotEmittedStatement = deprecate(factory.createNotEmittedStatement, factoryDeprecation);
150846
+ var createPartiallyEmittedExpression = deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
150847
+ var updatePartiallyEmittedExpression = deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
150848
+ var createCommaList = deprecate(factory.createCommaListExpression, factoryDeprecation);
150849
+ var updateCommaList = deprecate(factory.updateCommaListExpression, factoryDeprecation);
150850
+ var createBundle = deprecate(factory.createBundle, factoryDeprecation);
150851
+ var updateBundle = deprecate(factory.updateBundle, factoryDeprecation);
150852
+ var createImmediatelyInvokedFunctionExpression = deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
150853
+ var createImmediatelyInvokedArrowFunction = deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
150854
+ var createVoidZero = deprecate(factory.createVoidZero, factoryDeprecation);
150855
+ var createExportDefault = deprecate(factory.createExportDefault, factoryDeprecation);
150856
+ var createExternalModuleExport = deprecate(factory.createExternalModuleExport, factoryDeprecation);
150857
+ var createNamespaceExport = deprecate(factory.createNamespaceExport, factoryDeprecation);
150858
+ var updateNamespaceExport = deprecate(factory.updateNamespaceExport, factoryDeprecation);
150859
+ var createToken = deprecate(function createToken2(kind) {
150868
150860
  return factory.createToken(kind);
150869
150861
  }, factoryDeprecation);
150870
- var createIdentifier = Debug.deprecate(function createIdentifier2(text) {
150862
+ var createIdentifier = deprecate(function createIdentifier2(text) {
150871
150863
  return factory.createIdentifier(text, void 0, void 0);
150872
150864
  }, factoryDeprecation);
150873
- var createTempVariable = Debug.deprecate(function createTempVariable2(recordTempVariable) {
150865
+ var createTempVariable = deprecate(function createTempVariable2(recordTempVariable) {
150874
150866
  return factory.createTempVariable(recordTempVariable, void 0);
150875
150867
  }, factoryDeprecation);
150876
- var getGeneratedNameForNode = Debug.deprecate(function getGeneratedNameForNode2(node) {
150868
+ var getGeneratedNameForNode = deprecate(function getGeneratedNameForNode2(node) {
150877
150869
  return factory.getGeneratedNameForNode(node, void 0);
150878
150870
  }, factoryDeprecation);
150879
- var createOptimisticUniqueName = Debug.deprecate(function createOptimisticUniqueName2(text) {
150871
+ var createOptimisticUniqueName = deprecate(function createOptimisticUniqueName2(text) {
150880
150872
  return factory.createUniqueName(text, 16 /* Optimistic */);
150881
150873
  }, factoryDeprecation);
150882
- var createFileLevelUniqueName = Debug.deprecate(function createFileLevelUniqueName2(text) {
150874
+ var createFileLevelUniqueName = deprecate(function createFileLevelUniqueName2(text) {
150883
150875
  return factory.createUniqueName(text, 16 /* Optimistic */ | 32 /* FileLevel */);
150884
150876
  }, factoryDeprecation);
150885
- var createIndexSignature = Debug.deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
150877
+ var createIndexSignature = deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
150886
150878
  return factory.createIndexSignature(decorators, modifiers, parameters, type);
150887
150879
  }, factoryDeprecation);
150888
- var createTypePredicateNode = Debug.deprecate(function createTypePredicateNode2(parameterName, type) {
150880
+ var createTypePredicateNode = deprecate(function createTypePredicateNode2(parameterName, type) {
150889
150881
  return factory.createTypePredicateNode(void 0, parameterName, type);
150890
150882
  }, factoryDeprecation);
150891
- var updateTypePredicateNode = Debug.deprecate(function updateTypePredicateNode2(node, parameterName, type) {
150883
+ var updateTypePredicateNode = deprecate(function updateTypePredicateNode2(node, parameterName, type) {
150892
150884
  return factory.updateTypePredicateNode(node, void 0, parameterName, type);
150893
150885
  }, factoryDeprecation);
150894
- var createLiteral = Debug.deprecate(function createLiteral2(value) {
150886
+ var createLiteral = deprecate(function createLiteral2(value) {
150895
150887
  if (typeof value === "number") {
150896
150888
  return factory.createNumericLiteral(value);
150897
150889
  }
@@ -150906,13 +150898,13 @@ ${options.prefix}` : "\n" : options.prefix
150906
150898
  }
150907
150899
  return factory.createStringLiteralFromNode(value);
150908
150900
  }, { 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." });
150909
- var createMethodSignature = Debug.deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
150901
+ var createMethodSignature = deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
150910
150902
  return factory.createMethodSignature(void 0, name, questionToken, typeParameters, parameters, type);
150911
150903
  }, factoryDeprecation);
150912
- var updateMethodSignature = Debug.deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
150904
+ var updateMethodSignature = deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
150913
150905
  return factory.updateMethodSignature(node, node.modifiers, name, questionToken, typeParameters, parameters, type);
150914
150906
  }, factoryDeprecation);
150915
- var createTypeOperatorNode = Debug.deprecate(function createTypeOperatorNode2(operatorOrType, type) {
150907
+ var createTypeOperatorNode = deprecate(function createTypeOperatorNode2(operatorOrType, type) {
150916
150908
  let operator;
150917
150909
  if (type) {
150918
150910
  operator = operatorOrType;
@@ -150922,7 +150914,7 @@ ${options.prefix}` : "\n" : options.prefix
150922
150914
  }
150923
150915
  return factory.createTypeOperatorNode(operator, type);
150924
150916
  }, factoryDeprecation);
150925
- var createTaggedTemplate = Debug.deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
150917
+ var createTaggedTemplate = deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
150926
150918
  let typeArguments;
150927
150919
  if (template) {
150928
150920
  typeArguments = typeArgumentsOrTemplate;
@@ -150931,7 +150923,7 @@ ${options.prefix}` : "\n" : options.prefix
150931
150923
  }
150932
150924
  return factory.createTaggedTemplateExpression(tag, typeArguments, template);
150933
150925
  }, factoryDeprecation);
150934
- var updateTaggedTemplate = Debug.deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
150926
+ var updateTaggedTemplate = deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
150935
150927
  let typeArguments;
150936
150928
  if (template) {
150937
150929
  typeArguments = typeArgumentsOrTemplate;
@@ -150940,16 +150932,16 @@ ${options.prefix}` : "\n" : options.prefix
150940
150932
  }
150941
150933
  return factory.updateTaggedTemplateExpression(node, tag, typeArguments, template);
150942
150934
  }, factoryDeprecation);
150943
- var updateBinary = Debug.deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
150935
+ var updateBinary = deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
150944
150936
  if (typeof operator === "number") {
150945
150937
  operator = operator === node.operatorToken.kind ? node.operatorToken : factory.createToken(operator);
150946
150938
  }
150947
150939
  return factory.updateBinaryExpression(node, left, operator, right);
150948
150940
  }, factoryDeprecation);
150949
- var createConditional = Debug.deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
150941
+ var createConditional = deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
150950
150942
  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");
150951
150943
  }, factoryDeprecation);
150952
- var createYield = Debug.deprecate(function createYield2(asteriskTokenOrExpression, expression) {
150944
+ var createYield = deprecate(function createYield2(asteriskTokenOrExpression, expression) {
150953
150945
  let asteriskToken;
150954
150946
  if (expression) {
150955
150947
  asteriskToken = asteriskTokenOrExpression;
@@ -150958,18 +150950,18 @@ ${options.prefix}` : "\n" : options.prefix
150958
150950
  }
150959
150951
  return factory.createYieldExpression(asteriskToken, expression);
150960
150952
  }, factoryDeprecation);
150961
- var createClassExpression = Debug.deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
150953
+ var createClassExpression = deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
150962
150954
  return factory.createClassExpression(void 0, modifiers, name, typeParameters, heritageClauses, members);
150963
150955
  }, factoryDeprecation);
150964
- var updateClassExpression = Debug.deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
150956
+ var updateClassExpression = deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
150965
150957
  return factory.updateClassExpression(node, void 0, modifiers, name, typeParameters, heritageClauses, members);
150966
150958
  }, factoryDeprecation);
150967
- var createPropertySignature = Debug.deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
150959
+ var createPropertySignature = deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
150968
150960
  const node = factory.createPropertySignature(modifiers, name, questionToken, type);
150969
150961
  node.initializer = initializer;
150970
150962
  return node;
150971
150963
  }, factoryDeprecation);
150972
- var updatePropertySignature = Debug.deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
150964
+ var updatePropertySignature = deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
150973
150965
  let updated = factory.updatePropertySignature(node, modifiers, name, questionToken, type);
150974
150966
  if (node.initializer !== initializer) {
150975
150967
  if (updated === node) {
@@ -150979,80 +150971,80 @@ ${options.prefix}` : "\n" : options.prefix
150979
150971
  }
150980
150972
  return updated;
150981
150973
  }, factoryDeprecation);
150982
- var createExpressionWithTypeArguments = Debug.deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
150974
+ var createExpressionWithTypeArguments = deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
150983
150975
  return factory.createExpressionWithTypeArguments(expression, typeArguments);
150984
150976
  }, factoryDeprecation);
150985
- var updateExpressionWithTypeArguments = Debug.deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
150977
+ var updateExpressionWithTypeArguments = deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
150986
150978
  return factory.updateExpressionWithTypeArguments(node, expression, typeArguments);
150987
150979
  }, factoryDeprecation);
150988
- var createArrowFunction = Debug.deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
150980
+ var createArrowFunction = deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
150989
150981
  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");
150990
150982
  }, factoryDeprecation);
150991
- var updateArrowFunction = Debug.deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
150983
+ var updateArrowFunction = deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
150992
150984
  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");
150993
150985
  }, factoryDeprecation);
150994
- var createVariableDeclaration = Debug.deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
150986
+ var createVariableDeclaration = deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
150995
150987
  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");
150996
150988
  }, factoryDeprecation);
150997
- var updateVariableDeclaration = Debug.deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
150989
+ var updateVariableDeclaration = deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
150998
150990
  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");
150999
150991
  }, factoryDeprecation);
151000
- var createImportClause = Debug.deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
150992
+ var createImportClause = deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
151001
150993
  return factory.createImportClause(isTypeOnly, name, namedBindings);
151002
150994
  }, factoryDeprecation);
151003
- var updateImportClause = Debug.deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
150995
+ var updateImportClause = deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
151004
150996
  return factory.updateImportClause(node, isTypeOnly, name, namedBindings);
151005
150997
  }, factoryDeprecation);
151006
- var createExportDeclaration = Debug.deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
150998
+ var createExportDeclaration = deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
151007
150999
  return factory.createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);
151008
151000
  }, factoryDeprecation);
151009
- var updateExportDeclaration = Debug.deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
151001
+ var updateExportDeclaration = deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
151010
151002
  return factory.updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, node.assertClause);
151011
151003
  }, factoryDeprecation);
151012
- var createJSDocParamTag = Debug.deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
151004
+ var createJSDocParamTag = deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
151013
151005
  return factory.createJSDocParameterTag(void 0, name, isBracketed, typeExpression, false, comment ? factory.createNodeArray([factory.createJSDocText(comment)]) : void 0);
151014
151006
  }, factoryDeprecation);
151015
- var createComma = Debug.deprecate(function createComma2(left, right) {
151007
+ var createComma = deprecate(function createComma2(left, right) {
151016
151008
  return factory.createComma(left, right);
151017
151009
  }, factoryDeprecation);
151018
- var createLessThan = Debug.deprecate(function createLessThan2(left, right) {
151010
+ var createLessThan = deprecate(function createLessThan2(left, right) {
151019
151011
  return factory.createLessThan(left, right);
151020
151012
  }, factoryDeprecation);
151021
- var createAssignment = Debug.deprecate(function createAssignment2(left, right) {
151013
+ var createAssignment = deprecate(function createAssignment2(left, right) {
151022
151014
  return factory.createAssignment(left, right);
151023
151015
  }, factoryDeprecation);
151024
- var createStrictEquality = Debug.deprecate(function createStrictEquality2(left, right) {
151016
+ var createStrictEquality = deprecate(function createStrictEquality2(left, right) {
151025
151017
  return factory.createStrictEquality(left, right);
151026
151018
  }, factoryDeprecation);
151027
- var createStrictInequality = Debug.deprecate(function createStrictInequality2(left, right) {
151019
+ var createStrictInequality = deprecate(function createStrictInequality2(left, right) {
151028
151020
  return factory.createStrictInequality(left, right);
151029
151021
  }, factoryDeprecation);
151030
- var createAdd = Debug.deprecate(function createAdd2(left, right) {
151022
+ var createAdd = deprecate(function createAdd2(left, right) {
151031
151023
  return factory.createAdd(left, right);
151032
151024
  }, factoryDeprecation);
151033
- var createSubtract = Debug.deprecate(function createSubtract2(left, right) {
151025
+ var createSubtract = deprecate(function createSubtract2(left, right) {
151034
151026
  return factory.createSubtract(left, right);
151035
151027
  }, factoryDeprecation);
151036
- var createLogicalAnd = Debug.deprecate(function createLogicalAnd2(left, right) {
151028
+ var createLogicalAnd = deprecate(function createLogicalAnd2(left, right) {
151037
151029
  return factory.createLogicalAnd(left, right);
151038
151030
  }, factoryDeprecation);
151039
- var createLogicalOr = Debug.deprecate(function createLogicalOr2(left, right) {
151031
+ var createLogicalOr = deprecate(function createLogicalOr2(left, right) {
151040
151032
  return factory.createLogicalOr(left, right);
151041
151033
  }, factoryDeprecation);
151042
- var createPostfixIncrement = Debug.deprecate(function createPostfixIncrement2(operand) {
151034
+ var createPostfixIncrement = deprecate(function createPostfixIncrement2(operand) {
151043
151035
  return factory.createPostfixIncrement(operand);
151044
151036
  }, factoryDeprecation);
151045
- var createLogicalNot = Debug.deprecate(function createLogicalNot2(operand) {
151037
+ var createLogicalNot = deprecate(function createLogicalNot2(operand) {
151046
151038
  return factory.createLogicalNot(operand);
151047
151039
  }, factoryDeprecation);
151048
- var createNode2 = Debug.deprecate(function createNode3(kind, pos = 0, end = 0) {
151040
+ var createNode2 = deprecate(function createNode3(kind, pos = 0, end = 0) {
151049
151041
  return setTextRangePosEnd(
151050
151042
  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),
151051
151043
  pos,
151052
151044
  end
151053
151045
  );
151054
151046
  }, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory` method instead." });
151055
- var getMutableClone = Debug.deprecate(function getMutableClone2(node) {
151047
+ var getMutableClone = deprecate(function getMutableClone2(node) {
151056
151048
  const clone2 = factory.cloneNode(node);
151057
151049
  setTextRange(clone2, node);
151058
151050
  setParent(clone2, node.parent);
@@ -151060,7 +151052,7 @@ ${options.prefix}` : "\n" : options.prefix
151060
151052
  }, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`." });
151061
151053
 
151062
151054
  // src/deprecatedCompat/4.0/renamedNodeTests.ts
151063
- var isTypeAssertion = Debug.deprecate(function isTypeAssertion2(node) {
151055
+ var isTypeAssertion = deprecate(function isTypeAssertion2(node) {
151064
151056
  return node.kind === 213 /* TypeAssertionExpression */;
151065
151057
  }, {
151066
151058
  since: "4.0",
@@ -151069,7 +151061,7 @@ ${options.prefix}` : "\n" : options.prefix
151069
151061
  });
151070
151062
 
151071
151063
  // src/deprecatedCompat/4.2/renamedNodeTests.ts
151072
- var isIdentifierOrPrivateIdentifier = Debug.deprecate(function isIdentifierOrPrivateIdentifier2(node) {
151064
+ var isIdentifierOrPrivateIdentifier = deprecate(function isIdentifierOrPrivateIdentifier2(node) {
151073
151065
  return isMemberName(node);
151074
151066
  }, {
151075
151067
  since: "4.2",
@@ -151906,7 +151898,7 @@ ${options.prefix}` : "\n" : options.prefix
151906
151898
  CompletionTriggerKind: () => CompletionTriggerKind2,
151907
151899
  IndentStyle: () => IndentStyle2,
151908
151900
  JsxEmit: () => JsxEmit2,
151909
- ModuleKind: () => ModuleKind5,
151901
+ ModuleKind: () => ModuleKind2,
151910
151902
  ModuleResolutionKind: () => ModuleResolutionKind2,
151911
151903
  NewLineKind: () => NewLineKind2,
151912
151904
  OrganizeImportsMode: () => OrganizeImportsMode2,
@@ -152083,17 +152075,17 @@ ${options.prefix}` : "\n" : options.prefix
152083
152075
  JsxEmit3["React"] = "React";
152084
152076
  return JsxEmit3;
152085
152077
  })(JsxEmit2 || {});
152086
- var ModuleKind5 = /* @__PURE__ */ ((ModuleKind7) => {
152087
- ModuleKind7["None"] = "None";
152088
- ModuleKind7["CommonJS"] = "CommonJS";
152089
- ModuleKind7["AMD"] = "AMD";
152090
- ModuleKind7["UMD"] = "UMD";
152091
- ModuleKind7["System"] = "System";
152092
- ModuleKind7["ES6"] = "ES6";
152093
- ModuleKind7["ES2015"] = "ES2015";
152094
- ModuleKind7["ESNext"] = "ESNext";
152095
- return ModuleKind7;
152096
- })(ModuleKind5 || {});
152078
+ var ModuleKind2 = /* @__PURE__ */ ((ModuleKind3) => {
152079
+ ModuleKind3["None"] = "None";
152080
+ ModuleKind3["CommonJS"] = "CommonJS";
152081
+ ModuleKind3["AMD"] = "AMD";
152082
+ ModuleKind3["UMD"] = "UMD";
152083
+ ModuleKind3["System"] = "System";
152084
+ ModuleKind3["ES6"] = "ES6";
152085
+ ModuleKind3["ES2015"] = "ES2015";
152086
+ ModuleKind3["ESNext"] = "ESNext";
152087
+ return ModuleKind3;
152088
+ })(ModuleKind2 || {});
152097
152089
  var ModuleResolutionKind2 = /* @__PURE__ */ ((ModuleResolutionKind3) => {
152098
152090
  ModuleResolutionKind3["Classic"] = "Classic";
152099
152091
  ModuleResolutionKind3["Node"] = "Node";
@@ -152775,6 +152767,7 @@ ${options.prefix}` : "\n" : options.prefix
152775
152767
  this.dirty = false;
152776
152768
  this.typingFiles = emptyArray2;
152777
152769
  this.moduleSpecifierCache = createModuleSpecifierCache(this);
152770
+ this.createHash = maybeBind(this.projectService.host, this.projectService.host.createHash);
152778
152771
  this.globalCacheResolutionModuleName = ts_JsTyping_exports.nonRelativeModuleNameForTypingCache;
152779
152772
  this.projectName = projectName;
152780
152773
  this.directoryStructureHost = directoryStructureHost;
@@ -153103,15 +153096,14 @@ ${options.prefix}` : "\n" : options.prefix
153103
153096
  return [];
153104
153097
  }
153105
153098
  updateProjectIfDirty(this);
153106
- this.builderState = BuilderState.create(this.program, this.projectService.toCanonicalFileName, this.builderState, true);
153099
+ this.builderState = BuilderState.create(this.program, this.builderState, true);
153107
153100
  return mapDefined(
153108
153101
  BuilderState.getFilesAffectedBy(
153109
153102
  this.builderState,
153110
153103
  this.program,
153111
153104
  scriptInfo.path,
153112
153105
  this.cancellationToken,
153113
- maybeBind(this.projectService.host, this.projectService.host.createHash),
153114
- this.getCanonicalFileName
153106
+ this.projectService.host
153115
153107
  ),
153116
153108
  (sourceFile) => this.shouldEmitFile(this.projectService.getScriptInfoForPath(sourceFile.path)) ? sourceFile.fileName : void 0
153117
153109
  );