typescript 5.0.0-dev.20221115 → 5.0.0-dev.20221116

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/typescript.js CHANGED
@@ -42,7 +42,7 @@ var ts = (() => {
42
42
  "src/compiler/corePublic.ts"() {
43
43
  "use strict";
44
44
  versionMajorMinor = "5.0";
45
- version = `${versionMajorMinor}.0-dev.20221115`;
45
+ version = `${versionMajorMinor}.0-dev.20221116`;
46
46
  Comparison = /* @__PURE__ */ ((Comparison3) => {
47
47
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
48
48
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -1789,15 +1789,9 @@ var ts = (() => {
1789
1789
  return LogLevel2;
1790
1790
  })(LogLevel || {});
1791
1791
  ((Debug2) => {
1792
- let typeScriptVersion2;
1793
1792
  let currentAssertionLevel = 0 /* None */;
1794
1793
  Debug2.currentLogLevel = 2 /* Warning */;
1795
1794
  Debug2.isDebugging = false;
1796
- Debug2.enableDeprecationWarnings = true;
1797
- function getTypeScriptVersion() {
1798
- return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
1799
- }
1800
- Debug2.getTypeScriptVersion = getTypeScriptVersion;
1801
1795
  function shouldLog(level) {
1802
1796
  return Debug2.currentLogLevel <= level;
1803
1797
  }
@@ -2313,52 +2307,6 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
2313
2307
  isDebugInfoEnabled = true;
2314
2308
  }
2315
2309
  Debug2.enableDebugInfo = enableDebugInfo;
2316
- function formatDeprecationMessage(name, error, errorAfter, since, message) {
2317
- let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
2318
- deprecationMessage += `'${name}' `;
2319
- deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
2320
- deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
2321
- deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
2322
- return deprecationMessage;
2323
- }
2324
- function createErrorDeprecation(name, errorAfter, since, message) {
2325
- const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
2326
- return () => {
2327
- throw new TypeError(deprecationMessage);
2328
- };
2329
- }
2330
- function createWarningDeprecation(name, errorAfter, since, message) {
2331
- let hasWrittenDeprecation = false;
2332
- return () => {
2333
- if (Debug2.enableDeprecationWarnings && !hasWrittenDeprecation) {
2334
- log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
2335
- hasWrittenDeprecation = true;
2336
- }
2337
- };
2338
- }
2339
- function createDeprecation(name, options = {}) {
2340
- var _a2, _b;
2341
- const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
2342
- const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
2343
- const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
2344
- const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
2345
- const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
2346
- const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
2347
- return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
2348
- }
2349
- Debug2.createDeprecation = createDeprecation;
2350
- function wrapFunction(deprecation, func) {
2351
- return function() {
2352
- deprecation();
2353
- return func.apply(this, arguments);
2354
- };
2355
- }
2356
- function deprecate(func, options) {
2357
- var _a2;
2358
- const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : getFunctionName(func), options);
2359
- return wrapFunction(deprecation, func);
2360
- }
2361
- Debug2.deprecate = deprecate;
2362
2310
  function formatVariance(varianceFlags) {
2363
2311
  const variance = varianceFlags & 7 /* VarianceMask */;
2364
2312
  let result = variance === 0 /* Invariant */ ? "in out" : variance === 3 /* Bivariant */ ? "[bivariant]" : variance === 2 /* Contravariant */ ? "in" : variance === 1 /* Covariant */ ? "out" : variance === 4 /* Independent */ ? "[independent]" : "";
@@ -8112,10 +8060,10 @@ ${lanes.join("\n")}
8112
8060
  Module_name_0_matched_pattern_1: diag(6092, 3 /* Message */, "Module_name_0_matched_pattern_1_6092", "Module name '{0}', matched pattern '{1}'."),
8113
8061
  Trying_substitution_0_candidate_module_location_Colon_1: diag(6093, 3 /* Message */, "Trying_substitution_0_candidate_module_location_Colon_1_6093", "Trying substitution '{0}', candidate module location: '{1}'."),
8114
8062
  Resolving_module_name_0_relative_to_base_url_1_2: diag(6094, 3 /* Message */, "Resolving_module_name_0_relative_to_base_url_1_2_6094", "Resolving module name '{0}' relative to base url '{1}' - '{2}'."),
8115
- Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1: diag(6095, 3 /* Message */, "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095", "Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),
8063
+ Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1: diag(6095, 3 /* Message */, "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095", "Loading module as file / folder, candidate module location '{0}', target file types: {1}."),
8116
8064
  File_0_does_not_exist: diag(6096, 3 /* Message */, "File_0_does_not_exist_6096", "File '{0}' does not exist."),
8117
8065
  File_0_exist_use_it_as_a_name_resolution_result: diag(6097, 3 /* Message */, "File_0_exist_use_it_as_a_name_resolution_result_6097", "File '{0}' exist - use it as a name resolution result."),
8118
- Loading_module_0_from_node_modules_folder_target_file_type_1: diag(6098, 3 /* Message */, "Loading_module_0_from_node_modules_folder_target_file_type_1_6098", "Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),
8066
+ Loading_module_0_from_node_modules_folder_target_file_types_Colon_1: diag(6098, 3 /* Message */, "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098", "Loading module '{0}' from 'node_modules' folder, target file types: {1}."),
8119
8067
  Found_package_json_at_0: diag(6099, 3 /* Message */, "Found_package_json_at_0_6099", "Found 'package.json' at '{0}'."),
8120
8068
  package_json_does_not_have_a_0_field: diag(6100, 3 /* Message */, "package_json_does_not_have_a_0_field_6100", "'package.json' does not have a '{0}' field."),
8121
8069
  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}'."),
@@ -17468,7 +17416,7 @@ ${lanes.join("\n")}
17468
17416
  const { isBracketed, typeExpression } = node;
17469
17417
  return isBracketed || !!typeExpression && typeExpression.type.kind === 319 /* JSDocOptionalType */;
17470
17418
  }
17471
- var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashAMDReferencePathRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, AccessKind, objectAllocator, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, extensionsToRemove, emptyFileSystemEntries;
17419
+ var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashAMDReferencePathRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, AccessKind, objectAllocator, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, supportedTSImplementationExtensions, extensionsToRemove, emptyFileSystemEntries;
17472
17420
  var init_utilities = __esm({
17473
17421
  "src/compiler/utilities.ts"() {
17474
17422
  "use strict";
@@ -17618,6 +17566,7 @@ ${lanes.join("\n")}
17618
17566
  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 */]];
17619
17567
  allSupportedExtensionsWithJson = [...allSupportedExtensions, [".json" /* Json */]];
17620
17568
  supportedDeclarationExtensions = [".d.ts" /* Dts */, ".d.cts" /* Dcts */, ".d.mts" /* Dmts */];
17569
+ supportedTSImplementationExtensions = [".ts" /* Ts */, ".cts" /* Cts */, ".mts" /* Mts */, ".tsx" /* Tsx */];
17621
17570
  extensionsToRemove = [".d.ts" /* Dts */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".mjs" /* Mjs */, ".mts" /* Mts */, ".cjs" /* Cjs */, ".cts" /* Cts */, ".ts" /* Ts */, ".js" /* Js */, ".tsx" /* Tsx */, ".jsx" /* Jsx */, ".json" /* Json */];
17622
17571
  emptyFileSystemEntries = {
17623
17572
  files: emptyArray,
@@ -23193,7 +23142,7 @@ ${lanes.join("\n")}
23193
23142
  var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
23194
23143
  var i, p;
23195
23144
  return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
23196
- 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; }
23145
+ 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; }
23197
23146
  };`
23198
23147
  };
23199
23148
  asyncValues = {
@@ -34969,6 +34918,18 @@ ${lanes.join("\n")}
34969
34918
  return { path: r.path, ext: r.extension };
34970
34919
  }
34971
34920
  }
34921
+ function formatExtensions(extensions) {
34922
+ const result = [];
34923
+ if (extensions & 1 /* TypeScript */)
34924
+ result.push("TypeScript");
34925
+ if (extensions & 2 /* JavaScript */)
34926
+ result.push("JavaScript");
34927
+ if (extensions & 4 /* Declaration */)
34928
+ result.push("Declaration");
34929
+ if (extensions & 8 /* Json */)
34930
+ result.push("JSON");
34931
+ return result.join(", ");
34932
+ }
34972
34933
  function resolvedTypeScriptOnly(resolved) {
34973
34934
  if (!resolved) {
34974
34935
  return void 0;
@@ -35170,7 +35131,8 @@ ${lanes.join("\n")}
35170
35131
  features,
35171
35132
  conditions,
35172
35133
  requestContainingDirectory: containingDirectory,
35173
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
35134
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
35135
+ isConfigLookup: false
35174
35136
  };
35175
35137
  let resolved = primaryLookup();
35176
35138
  let primary = true;
@@ -35220,7 +35182,7 @@ ${lanes.join("\n")}
35220
35182
  }
35221
35183
  return resolvedTypeScriptOnly(
35222
35184
  loadNodeModuleFromDirectory(
35223
- 4 /* DtsOnly */,
35185
+ 4 /* Declaration */,
35224
35186
  candidate,
35225
35187
  !directoryExists,
35226
35188
  moduleResolutionState
@@ -35241,11 +35203,11 @@ ${lanes.join("\n")}
35241
35203
  }
35242
35204
  let result2;
35243
35205
  if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) {
35244
- const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /* DtsOnly */, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);
35206
+ const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /* Declaration */, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);
35245
35207
  result2 = searchResult && searchResult.value;
35246
35208
  } else {
35247
35209
  const { path: candidate } = normalizePathForCJSResolution(initialLocationForSecondaryLookup, typeReferenceDirectiveName);
35248
- result2 = nodeLoadModuleByRelativeName(4 /* DtsOnly */, candidate, false, moduleResolutionState, true);
35210
+ result2 = nodeLoadModuleByRelativeName(4 /* Declaration */, candidate, false, moduleResolutionState, true);
35249
35211
  }
35250
35212
  return resolvedTypeScriptOnly(result2);
35251
35213
  } else {
@@ -35762,31 +35724,39 @@ ${lanes.join("\n")}
35762
35724
  function nodeNextModuleNameResolverWorker(features, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {
35763
35725
  const containingDirectory = getDirectoryPath(containingFile);
35764
35726
  const esmMode = resolutionMode === 99 /* ESNext */ ? 32 /* EsmMode */ : 0;
35765
- let extensions = compilerOptions.noDtsResolution ? [5 /* TsOnly */, 1 /* JavaScript */] : tsExtensions;
35727
+ let extensions = compilerOptions.noDtsResolution ? 3 /* ImplementationFiles */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
35766
35728
  if (compilerOptions.resolveJsonModule) {
35767
- extensions = [...extensions, 2 /* Json */];
35729
+ extensions |= 8 /* Json */;
35768
35730
  }
35769
- return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference);
35731
+ return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, false, redirectedReference);
35770
35732
  }
35771
35733
  function tryResolveJSModuleWorker(moduleName, initialDir, host) {
35772
- return nodeModuleNameResolverWorker(0 /* None */, moduleName, initialDir, { moduleResolution: 2 /* NodeJs */, allowJs: true }, host, void 0, jsOnlyExtensions, void 0);
35734
+ return nodeModuleNameResolverWorker(
35735
+ 0 /* None */,
35736
+ moduleName,
35737
+ initialDir,
35738
+ { moduleResolution: 2 /* NodeJs */, allowJs: true },
35739
+ host,
35740
+ void 0,
35741
+ 2 /* JavaScript */,
35742
+ false,
35743
+ void 0
35744
+ );
35773
35745
  }
35774
- function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, lookupConfig) {
35746
+ function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, isConfigLookup) {
35775
35747
  let extensions;
35776
- if (lookupConfig) {
35777
- extensions = tsconfigExtensions;
35748
+ if (isConfigLookup) {
35749
+ extensions = 8 /* Json */;
35778
35750
  } else if (compilerOptions.noDtsResolution) {
35779
- extensions = [5 /* TsOnly */];
35780
- if (compilerOptions.allowJs)
35781
- extensions.push(1 /* JavaScript */);
35751
+ extensions = 3 /* ImplementationFiles */;
35782
35752
  if (compilerOptions.resolveJsonModule)
35783
- extensions.push(2 /* Json */);
35753
+ extensions |= 8 /* Json */;
35784
35754
  } else {
35785
- extensions = compilerOptions.resolveJsonModule ? tsPlusJsonExtensions : tsExtensions;
35755
+ extensions = compilerOptions.resolveJsonModule ? 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */ | 8 /* Json */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
35786
35756
  }
35787
- return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, redirectedReference);
35757
+ return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, !!isConfigLookup, redirectedReference);
35788
35758
  }
35789
- function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference) {
35759
+ function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, isConfigLookup, redirectedReference) {
35790
35760
  var _a2, _b;
35791
35761
  const traceEnabled = isTraceEnabled(compilerOptions, host);
35792
35762
  const failedLookupLocations = [];
@@ -35806,12 +35776,20 @@ ${lanes.join("\n")}
35806
35776
  features,
35807
35777
  conditions,
35808
35778
  requestContainingDirectory: containingDirectory,
35809
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
35779
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
35780
+ isConfigLookup
35810
35781
  };
35811
35782
  if (traceEnabled && getEmitModuleResolutionKind(compilerOptions) >= 3 /* Node16 */ && getEmitModuleResolutionKind(compilerOptions) <= 99 /* NodeNext */) {
35812
35783
  trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & 32 /* EsmMode */ ? "ESM" : "CJS", conditions.map((c) => `'${c}'`).join(", "));
35813
35784
  }
35814
- const result = forEach(extensions, (ext) => tryResolve(ext));
35785
+ let result;
35786
+ if (getEmitModuleResolutionKind(compilerOptions) === 2 /* NodeJs */) {
35787
+ const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
35788
+ const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
35789
+ result = priorityExtensions && tryResolve(priorityExtensions) || secondaryExtensions && tryResolve(secondaryExtensions) || void 0;
35790
+ } else {
35791
+ result = tryResolve(extensions);
35792
+ }
35815
35793
  return createResolvedModuleWithFailedLookupLocations(
35816
35794
  (_a2 = result == null ? void 0 : result.value) == null ? void 0 : _a2.resolved,
35817
35795
  (_b = result == null ? void 0 : result.value) == null ? void 0 : _b.isExternalLibraryImport,
@@ -35836,7 +35814,7 @@ ${lanes.join("\n")}
35836
35814
  }
35837
35815
  if (!resolved2) {
35838
35816
  if (traceEnabled) {
35839
- trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1, moduleName, Extensions[extensions2]);
35817
+ trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions2));
35840
35818
  }
35841
35819
  resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state, cache, redirectedReference);
35842
35820
  }
@@ -35877,7 +35855,7 @@ ${lanes.join("\n")}
35877
35855
  }
35878
35856
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
35879
35857
  if (state.traceEnabled) {
35880
- trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1, candidate, Extensions[extensions]);
35858
+ trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1, candidate, formatExtensions(extensions));
35881
35859
  }
35882
35860
  if (!hasTrailingDirectorySeparator(candidate)) {
35883
35861
  if (!onlyRecordFailures) {
@@ -35934,10 +35912,9 @@ ${lanes.join("\n")}
35934
35912
  return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state));
35935
35913
  }
35936
35914
  function loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) {
35937
- if (extensions === 2 /* Json */ || extensions === 3 /* TSConfig */) {
35938
- const extensionLess = tryRemoveExtension(candidate, ".json" /* Json */);
35939
- const extension = extensionLess ? candidate.substring(extensionLess.length) : "";
35940
- return extensionLess === void 0 && extensions === 2 /* Json */ ? void 0 : tryAddingExtensions(extensionLess || candidate, extensions, extension, onlyRecordFailures, state);
35915
+ const resolvedByReplacingExtension = loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
35916
+ if (resolvedByReplacingExtension) {
35917
+ return resolvedByReplacingExtension;
35941
35918
  }
35942
35919
  if (!(state.features & 32 /* EsmMode */)) {
35943
35920
  const resolvedByAddingExtension = tryAddingExtensions(candidate, extensions, "", onlyRecordFailures, state);
@@ -35945,10 +35922,9 @@ ${lanes.join("\n")}
35945
35922
  return resolvedByAddingExtension;
35946
35923
  }
35947
35924
  }
35948
- return loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
35949
35925
  }
35950
35926
  function loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state) {
35951
- if (hasJSFileExtension(candidate) || fileExtensionIs(candidate, ".json" /* Json */) && state.compilerOptions.resolveJsonModule) {
35927
+ if (hasJSFileExtension(candidate) || extensions & 8 /* Json */ && fileExtensionIs(candidate, ".json" /* Json */)) {
35952
35928
  const extensionless = removeFileExtension(candidate);
35953
35929
  const extension = candidate.substring(extensionless.length);
35954
35930
  if (state.traceEnabled) {
@@ -35958,7 +35934,7 @@ ${lanes.join("\n")}
35958
35934
  }
35959
35935
  }
35960
35936
  function loadJSOrExactTSFileName(extensions, candidate, onlyRecordFailures, state) {
35961
- if ((extensions === 0 /* TypeScript */ || extensions === 4 /* DtsOnly */) && fileExtensionIsOneOf(candidate, supportedTSExtensionsFlat)) {
35937
+ if (extensions & 1 /* TypeScript */ && fileExtensionIsOneOf(candidate, supportedTSImplementationExtensions) || extensions & 4 /* Declaration */ && fileExtensionIsOneOf(candidate, supportedDeclarationExtensions)) {
35962
35938
  const result = tryFile(candidate, onlyRecordFailures, state);
35963
35939
  return result !== void 0 ? { path: candidate, ext: tryExtractTSExtension(candidate) } : void 0;
35964
35940
  }
@@ -35971,59 +35947,32 @@ ${lanes.join("\n")}
35971
35947
  onlyRecordFailures = !directoryProbablyExists(directory, state.host);
35972
35948
  }
35973
35949
  }
35974
- switch (extensions) {
35975
- case 4 /* DtsOnly */:
35976
- switch (originalExtension) {
35977
- case ".mjs" /* Mjs */:
35978
- case ".mts" /* Mts */:
35979
- case ".d.mts" /* Dmts */:
35980
- return tryExtension(".d.mts" /* Dmts */);
35981
- case ".cjs" /* Cjs */:
35982
- case ".cts" /* Cts */:
35983
- case ".d.cts" /* Dcts */:
35984
- return tryExtension(".d.cts" /* Dcts */);
35985
- case ".json" /* Json */:
35986
- candidate += ".json" /* Json */;
35987
- return tryExtension(".d.ts" /* Dts */);
35988
- default:
35989
- return tryExtension(".d.ts" /* Dts */);
35990
- }
35991
- case 0 /* TypeScript */:
35992
- case 5 /* TsOnly */:
35993
- const useDts = extensions === 0 /* TypeScript */;
35994
- switch (originalExtension) {
35995
- case ".mjs" /* Mjs */:
35996
- case ".mts" /* Mts */:
35997
- case ".d.mts" /* Dmts */:
35998
- return tryExtension(".mts" /* Mts */) || (useDts ? tryExtension(".d.mts" /* Dmts */) : void 0);
35999
- case ".cjs" /* Cjs */:
36000
- case ".cts" /* Cts */:
36001
- case ".d.cts" /* Dcts */:
36002
- return tryExtension(".cts" /* Cts */) || (useDts ? tryExtension(".d.cts" /* Dcts */) : void 0);
36003
- case ".json" /* Json */:
36004
- candidate += ".json" /* Json */;
36005
- return useDts ? tryExtension(".d.ts" /* Dts */) : void 0;
36006
- default:
36007
- return tryExtension(".ts" /* Ts */) || tryExtension(".tsx" /* Tsx */) || (useDts ? tryExtension(".d.ts" /* Dts */) : void 0);
36008
- }
36009
- case 1 /* JavaScript */:
36010
- switch (originalExtension) {
36011
- case ".mjs" /* Mjs */:
36012
- case ".mts" /* Mts */:
36013
- case ".d.mts" /* Dmts */:
36014
- return tryExtension(".mjs" /* Mjs */);
36015
- case ".cjs" /* Cjs */:
36016
- case ".cts" /* Cts */:
36017
- case ".d.cts" /* Dcts */:
36018
- return tryExtension(".cjs" /* Cjs */);
36019
- case ".json" /* Json */:
36020
- return tryExtension(".json" /* Json */);
36021
- default:
36022
- return tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */);
35950
+ switch (originalExtension) {
35951
+ case ".mjs" /* Mjs */:
35952
+ case ".mts" /* Mts */:
35953
+ case ".d.mts" /* Dmts */:
35954
+ return extensions & 1 /* TypeScript */ && tryExtension(".mts" /* Mts */) || extensions & 4 /* Declaration */ && tryExtension(".d.mts" /* Dmts */) || extensions & 2 /* JavaScript */ && tryExtension(".mjs" /* Mjs */) || void 0;
35955
+ case ".cjs" /* Cjs */:
35956
+ case ".cts" /* Cts */:
35957
+ case ".d.cts" /* Dcts */:
35958
+ return extensions & 1 /* TypeScript */ && tryExtension(".cts" /* Cts */) || extensions & 4 /* Declaration */ && tryExtension(".d.cts" /* Dcts */) || extensions & 2 /* JavaScript */ && tryExtension(".cjs" /* Cjs */) || void 0;
35959
+ case ".json" /* Json */:
35960
+ const originalCandidate = candidate;
35961
+ if (extensions & 4 /* Declaration */) {
35962
+ candidate += ".json" /* Json */;
35963
+ const result = tryExtension(".d.ts" /* Dts */);
35964
+ if (result)
35965
+ return result;
35966
+ }
35967
+ if (extensions & 8 /* Json */) {
35968
+ candidate = originalCandidate;
35969
+ const result = tryExtension(".json" /* Json */);
35970
+ if (result)
35971
+ return result;
36023
35972
  }
36024
- case 3 /* TSConfig */:
36025
- case 2 /* Json */:
36026
- return tryExtension(".json" /* Json */);
35973
+ return void 0;
35974
+ default:
35975
+ 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;
36027
35976
  }
36028
35977
  function tryExtension(ext) {
36029
35978
  const path = tryFile(candidate + ext, onlyRecordFailures, state);
@@ -36066,7 +36015,7 @@ ${lanes.join("\n")}
36066
36015
  return packageJsonInfo.contents.resolvedEntrypoints;
36067
36016
  }
36068
36017
  let entrypoints;
36069
- const extensions = resolveJs ? 1 /* JavaScript */ : 0 /* TypeScript */;
36018
+ const extensions = 1 /* TypeScript */ | 4 /* Declaration */ | (resolveJs ? 2 /* JavaScript */ : 0);
36070
36019
  const features = getDefaultNodeResolutionFeatures(options);
36071
36020
  const requireState = getTemporaryModuleResolutionState(cache == null ? void 0 : cache.getPackageJsonInfoCache(), host, options);
36072
36021
  requireState.conditions = ["node", "require", "types"];
@@ -36154,7 +36103,8 @@ ${lanes.join("\n")}
36154
36103
  features: 0 /* None */,
36155
36104
  conditions: emptyArray,
36156
36105
  requestContainingDirectory: void 0,
36157
- reportDiagnostic: noop
36106
+ reportDiagnostic: noop,
36107
+ isConfigLookup: false
36158
36108
  };
36159
36109
  }
36160
36110
  function getPackageScopeForPath(fileName, state) {
@@ -36213,23 +36163,10 @@ ${lanes.join("\n")}
36213
36163
  function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) {
36214
36164
  let packageFile;
36215
36165
  if (jsonContent) {
36216
- switch (extensions) {
36217
- case 1 /* JavaScript */:
36218
- case 2 /* Json */:
36219
- case 5 /* TsOnly */:
36220
- packageFile = readPackageJsonMainField(jsonContent, candidate, state);
36221
- break;
36222
- case 0 /* TypeScript */:
36223
- packageFile = readPackageJsonTypesFields(jsonContent, candidate, state) || readPackageJsonMainField(jsonContent, candidate, state);
36224
- break;
36225
- case 4 /* DtsOnly */:
36226
- packageFile = readPackageJsonTypesFields(jsonContent, candidate, state);
36227
- break;
36228
- case 3 /* TSConfig */:
36229
- packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
36230
- break;
36231
- default:
36232
- return Debug.assertNever(extensions);
36166
+ if (state.isConfigLookup) {
36167
+ packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
36168
+ } else {
36169
+ packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(jsonContent, candidate, state) || void 0;
36233
36170
  }
36234
36171
  }
36235
36172
  const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
@@ -36243,18 +36180,18 @@ ${lanes.join("\n")}
36243
36180
  trace(state2.host, Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromFile);
36244
36181
  }
36245
36182
  }
36246
- const nextExtensions = extensions2 === 4 /* DtsOnly */ ? 0 /* TypeScript */ : extensions2;
36183
+ const expandedExtensions = extensions2 === 4 /* Declaration */ ? 1 /* TypeScript */ | 4 /* Declaration */ : extensions2;
36247
36184
  const features = state2.features;
36248
36185
  if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") {
36249
36186
  state2.features &= ~32 /* EsmMode */;
36250
36187
  }
36251
- const result = nodeLoadModuleByRelativeName(nextExtensions, candidate2, onlyRecordFailures2, state2, false);
36188
+ const result = nodeLoadModuleByRelativeName(expandedExtensions, candidate2, onlyRecordFailures2, state2, false);
36252
36189
  state2.features = features;
36253
36190
  return result;
36254
36191
  };
36255
36192
  const onlyRecordFailuresForPackageFile = packageFile ? !directoryProbablyExists(getDirectoryPath(packageFile), state.host) : void 0;
36256
36193
  const onlyRecordFailuresForIndex = onlyRecordFailures || !directoryProbablyExists(candidate, state.host);
36257
- const indexPath = combinePaths(candidate, extensions === 3 /* TSConfig */ ? "tsconfig" : "index");
36194
+ const indexPath = combinePaths(candidate, state.isConfigLookup ? "tsconfig" : "index");
36258
36195
  if (versionPaths && (!packageFile || containsPath(candidate, packageFile))) {
36259
36196
  const moduleName = getRelativePathFromDirectory(candidate, packageFile || indexPath, false);
36260
36197
  if (state.traceEnabled) {
@@ -36277,19 +36214,7 @@ ${lanes.join("\n")}
36277
36214
  return ext !== void 0 && extensionIsOk(extensions, ext) ? { path, ext } : void 0;
36278
36215
  }
36279
36216
  function extensionIsOk(extensions, extension) {
36280
- switch (extensions) {
36281
- case 1 /* JavaScript */:
36282
- return extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */;
36283
- case 3 /* TSConfig */:
36284
- case 2 /* Json */:
36285
- return extension === ".json" /* Json */;
36286
- case 0 /* TypeScript */:
36287
- 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 */;
36288
- case 5 /* TsOnly */:
36289
- return extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */;
36290
- case 4 /* DtsOnly */:
36291
- return extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */;
36292
- }
36217
+ 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;
36293
36218
  }
36294
36219
  function parsePackageName(moduleName) {
36295
36220
  let idx = moduleName.indexOf(directorySeparator);
@@ -36451,7 +36376,7 @@ ${lanes.join("\n")}
36451
36376
  const combinedLookup = pattern ? target.replace(/\*/g, subpath) : target + subpath;
36452
36377
  traceIfEnabled(state, Diagnostics.Using_0_subpath_1_with_target_2, "imports", key, combinedLookup);
36453
36378
  traceIfEnabled(state, Diagnostics.Resolving_module_0_from_1, combinedLookup, scope.packageDirectory + "/");
36454
- const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache, [extensions], redirectedReference);
36379
+ const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache, extensions, false, redirectedReference);
36455
36380
  return toSearchResult(result.resolvedModule ? { path: result.resolvedModule.resolvedFileName, extension: result.resolvedModule.extension, packageId: result.resolvedModule.packageId, originalPath: result.resolvedModule.originalPath } : void 0);
36456
36381
  }
36457
36382
  if (state.traceEnabled) {
@@ -36542,7 +36467,7 @@ ${lanes.join("\n")}
36542
36467
  }
36543
36468
  function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
36544
36469
  var _a2, _b, _c, _d;
36545
- 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)) {
36470
+ 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)) {
36546
36471
  const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames });
36547
36472
  const commonSourceDirGuesses = [];
36548
36473
  if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
@@ -36579,10 +36504,9 @@ ${lanes.join("\n")}
36579
36504
  if (fileExtensionIs(possibleInputBase, ext)) {
36580
36505
  const inputExts = getPossibleOriginalInputExtensionForExtension(possibleInputBase);
36581
36506
  for (const possibleExt of inputExts) {
36582
- const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
36583
- if (extensions === 0 /* TypeScript */ && hasJSFileExtension(possibleInputWithInputExtension) || extensions === 1 /* JavaScript */ && hasTSFileExtension(possibleInputWithInputExtension)) {
36507
+ if (!extensionIsOk(extensions, possibleExt))
36584
36508
  continue;
36585
- }
36509
+ const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
36586
36510
  if (state.host.fileExists(possibleInputWithInputExtension)) {
36587
36511
  return toSearchResult(withPackageId(scope, loadJSOrExactTSFileName(extensions, possibleInputWithInputExtension, false, state)));
36588
36512
  }
@@ -36623,19 +36547,31 @@ ${lanes.join("\n")}
36623
36547
  return loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, false, cache, redirectedReference);
36624
36548
  }
36625
36549
  function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directory, state) {
36626
- return loadModuleFromNearestNodeModulesDirectoryWorker(4 /* DtsOnly */, moduleName, directory, state, true, void 0, void 0);
36550
+ return loadModuleFromNearestNodeModulesDirectoryWorker(4 /* Declaration */, moduleName, directory, state, true, void 0, void 0);
36627
36551
  }
36628
36552
  function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
36629
36553
  const perModuleNameCache = cache && cache.getOrCreateCacheForModuleName(moduleName, state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ ? 99 /* ESNext */ : 1 /* CommonJS */, redirectedReference);
36630
- return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => {
36631
- if (getBaseFileName(ancestorDirectory) !== "node_modules") {
36632
- const resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, ancestorDirectory, state);
36633
- if (resolutionFromCache) {
36634
- return resolutionFromCache;
36554
+ const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
36555
+ const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
36556
+ if (priorityExtensions) {
36557
+ const result = lookup(priorityExtensions);
36558
+ if (result)
36559
+ return result;
36560
+ }
36561
+ if (secondaryExtensions && !typesScopeOnly) {
36562
+ return lookup(secondaryExtensions);
36563
+ }
36564
+ function lookup(extensions2) {
36565
+ return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => {
36566
+ if (getBaseFileName(ancestorDirectory) !== "node_modules") {
36567
+ const resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, ancestorDirectory, state);
36568
+ if (resolutionFromCache) {
36569
+ return resolutionFromCache;
36570
+ }
36571
+ return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions2, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));
36635
36572
  }
36636
- return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));
36637
- }
36638
- });
36573
+ });
36574
+ }
36639
36575
  }
36640
36576
  function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
36641
36577
  const nodeModulesFolder = combinePaths(directory, "node_modules");
@@ -36643,11 +36579,13 @@ ${lanes.join("\n")}
36643
36579
  if (!nodeModulesFolderExists && state.traceEnabled) {
36644
36580
  trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesFolder);
36645
36581
  }
36646
- const packageResult = typesScopeOnly ? void 0 : loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);
36647
- if (packageResult) {
36648
- return packageResult;
36582
+ if (!typesScopeOnly) {
36583
+ const packageResult = loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);
36584
+ if (packageResult) {
36585
+ return packageResult;
36586
+ }
36649
36587
  }
36650
- if (extensions === 0 /* TypeScript */ || extensions === 4 /* DtsOnly */) {
36588
+ if (extensions & 4 /* Declaration */) {
36651
36589
  const nodeModulesAtTypes2 = combinePaths(nodeModulesFolder, "@types");
36652
36590
  let nodeModulesAtTypesExists = nodeModulesFolderExists;
36653
36591
  if (nodeModulesFolderExists && !directoryProbablyExists(nodeModulesAtTypes2, state.host)) {
@@ -36656,7 +36594,7 @@ ${lanes.join("\n")}
36656
36594
  }
36657
36595
  nodeModulesAtTypesExists = false;
36658
36596
  }
36659
- return loadModuleFromSpecificNodeModulesDirectory(4 /* DtsOnly */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);
36597
+ return loadModuleFromSpecificNodeModulesDirectory(4 /* Declaration */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);
36660
36598
  }
36661
36599
  }
36662
36600
  function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {
@@ -36796,9 +36734,10 @@ ${lanes.join("\n")}
36796
36734
  features: 0 /* None */,
36797
36735
  conditions: [],
36798
36736
  requestContainingDirectory: containingDirectory,
36799
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
36737
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
36738
+ isConfigLookup: false
36800
36739
  };
36801
- const resolved = tryResolve(0 /* TypeScript */) || tryResolve(1 /* JavaScript */);
36740
+ const resolved = tryResolve(1 /* TypeScript */ | 4 /* Declaration */) || tryResolve(2 /* JavaScript */ | (compilerOptions.resolveJsonModule ? 8 /* Json */ : 0));
36802
36741
  return createResolvedModuleWithFailedLookupLocations(
36803
36742
  resolved && resolved.value,
36804
36743
  false,
@@ -36825,7 +36764,7 @@ ${lanes.join("\n")}
36825
36764
  if (resolved2) {
36826
36765
  return resolved2;
36827
36766
  }
36828
- if (extensions === 0 /* TypeScript */) {
36767
+ if (extensions & (1 /* TypeScript */ | 4 /* Declaration */)) {
36829
36768
  return loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state);
36830
36769
  }
36831
36770
  } else {
@@ -36852,9 +36791,10 @@ ${lanes.join("\n")}
36852
36791
  features: 0 /* None */,
36853
36792
  conditions: [],
36854
36793
  requestContainingDirectory: void 0,
36855
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
36794
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
36795
+ isConfigLookup: false
36856
36796
  };
36857
- const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /* DtsOnly */, moduleName, globalCache, state, false, void 0, void 0);
36797
+ const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /* Declaration */, moduleName, globalCache, state, false, void 0, void 0);
36858
36798
  return createResolvedModuleWithFailedLookupLocations(
36859
36799
  resolved,
36860
36800
  true,
@@ -36872,20 +36812,11 @@ ${lanes.join("\n")}
36872
36812
  trace(state.host, diagnostic, ...args);
36873
36813
  }
36874
36814
  }
36875
- var Extensions, typeScriptVersion, nodeModulesAtTypes, NodeResolutionFeatures, jsOnlyExtensions, tsExtensions, tsPlusJsonExtensions, tsconfigExtensions, nodeModulesPathPart, mangledScopedPackageSeparator;
36815
+ var typeScriptVersion, nodeModulesAtTypes, NodeResolutionFeatures, nodeModulesPathPart, mangledScopedPackageSeparator;
36876
36816
  var init_moduleNameResolver = __esm({
36877
36817
  "src/compiler/moduleNameResolver.ts"() {
36878
36818
  "use strict";
36879
36819
  init_ts2();
36880
- Extensions = /* @__PURE__ */ ((Extensions2) => {
36881
- Extensions2[Extensions2["TypeScript"] = 0] = "TypeScript";
36882
- Extensions2[Extensions2["JavaScript"] = 1] = "JavaScript";
36883
- Extensions2[Extensions2["Json"] = 2] = "Json";
36884
- Extensions2[Extensions2["TSConfig"] = 3] = "TSConfig";
36885
- Extensions2[Extensions2["DtsOnly"] = 4] = "DtsOnly";
36886
- Extensions2[Extensions2["TsOnly"] = 5] = "TsOnly";
36887
- return Extensions2;
36888
- })(Extensions || {});
36889
36820
  nodeModulesAtTypes = combinePaths("node_modules", "@types");
36890
36821
  NodeResolutionFeatures = /* @__PURE__ */ ((NodeResolutionFeatures2) => {
36891
36822
  NodeResolutionFeatures2[NodeResolutionFeatures2["None"] = 0] = "None";
@@ -36899,10 +36830,6 @@ ${lanes.join("\n")}
36899
36830
  NodeResolutionFeatures2[NodeResolutionFeatures2["EsmMode"] = 32] = "EsmMode";
36900
36831
  return NodeResolutionFeatures2;
36901
36832
  })(NodeResolutionFeatures || {});
36902
- jsOnlyExtensions = [1 /* JavaScript */];
36903
- tsExtensions = [0 /* TypeScript */, 1 /* JavaScript */];
36904
- tsPlusJsonExtensions = [...tsExtensions, 2 /* Json */];
36905
- tsconfigExtensions = [3 /* TSConfig */];
36906
36833
  nodeModulesPathPart = "/node_modules/";
36907
36834
  mangledScopedPackageSeparator = "__";
36908
36835
  }
@@ -39888,6 +39815,7 @@ ${lanes.join("\n")}
39888
39815
  const importedFileIsInNodeModules = some(modulePaths, (p) => p.isInNodeModules);
39889
39816
  let nodeModulesSpecifiers;
39890
39817
  let pathsSpecifiers;
39818
+ let redirectPathsSpecifiers;
39891
39819
  let relativeSpecifiers;
39892
39820
  for (const modulePath of modulePaths) {
39893
39821
  const specifier = tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, void 0, options.overrideImportMode);
@@ -39895,60 +39823,77 @@ ${lanes.join("\n")}
39895
39823
  if (specifier && modulePath.isRedirect) {
39896
39824
  return nodeModulesSpecifiers;
39897
39825
  }
39898
- if (!specifier && !modulePath.isRedirect) {
39899
- const local = getLocalModuleSpecifier(modulePath.path, info, compilerOptions, host, options.overrideImportMode || importingSourceFile.impliedNodeFormat, preferences);
39900
- if (pathIsBareSpecifier(local)) {
39826
+ if (!specifier) {
39827
+ const local = getLocalModuleSpecifier(
39828
+ modulePath.path,
39829
+ info,
39830
+ compilerOptions,
39831
+ host,
39832
+ options.overrideImportMode || importingSourceFile.impliedNodeFormat,
39833
+ preferences,
39834
+ modulePath.isRedirect
39835
+ );
39836
+ if (!local) {
39837
+ continue;
39838
+ }
39839
+ if (modulePath.isRedirect) {
39840
+ redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
39841
+ } else if (pathIsBareSpecifier(local)) {
39901
39842
  pathsSpecifiers = append(pathsSpecifiers, local);
39902
39843
  } else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
39903
39844
  relativeSpecifiers = append(relativeSpecifiers, local);
39904
39845
  }
39905
39846
  }
39906
39847
  }
39907
- return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers : Debug.checkDefined(relativeSpecifiers);
39848
+ 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);
39908
39849
  }
39909
39850
  function getInfo(importingSourceFileName, host) {
39910
39851
  const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : true);
39911
39852
  const sourceDirectory = getDirectoryPath(importingSourceFileName);
39912
39853
  return { getCanonicalFileName, importingSourceFileName, sourceDirectory };
39913
39854
  }
39914
- function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }) {
39855
+ function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }, pathsOnly) {
39915
39856
  const { baseUrl, paths, rootDirs } = compilerOptions;
39857
+ if (pathsOnly && !paths) {
39858
+ return void 0;
39859
+ }
39916
39860
  const { sourceDirectory, getCanonicalFileName } = info;
39917
39861
  const relativePath = rootDirs && tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, ending, compilerOptions) || removeExtensionAndIndexPostFix(ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceDirectory, moduleFileName, getCanonicalFileName)), ending, compilerOptions);
39918
39862
  if (!baseUrl && !paths || relativePreference === 0 /* Relative */) {
39919
- return relativePath;
39863
+ return pathsOnly ? void 0 : relativePath;
39920
39864
  }
39921
39865
  const baseDirectory = getNormalizedAbsolutePath(getPathsBasePath(compilerOptions, host) || baseUrl, host.getCurrentDirectory());
39922
39866
  const relativeToBaseUrl = getRelativePathIfInDirectory(moduleFileName, baseDirectory, getCanonicalFileName);
39923
39867
  if (!relativeToBaseUrl) {
39924
- return relativePath;
39868
+ return pathsOnly ? void 0 : relativePath;
39925
39869
  }
39926
39870
  const fromPaths = paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, getAllowedEndings(ending, compilerOptions, importMode), host, compilerOptions);
39927
- const nonRelative = fromPaths === void 0 && baseUrl !== void 0 ? removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) : fromPaths;
39928
- if (!nonRelative) {
39871
+ if (pathsOnly) {
39872
+ return fromPaths;
39873
+ }
39874
+ const maybeNonRelative = fromPaths === void 0 && baseUrl !== void 0 ? removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) : fromPaths;
39875
+ if (!maybeNonRelative) {
39929
39876
  return relativePath;
39930
39877
  }
39931
- if (relativePreference === 1 /* NonRelative */) {
39932
- return nonRelative;
39878
+ if (relativePreference === 1 /* NonRelative */ && !pathIsRelative(maybeNonRelative)) {
39879
+ return maybeNonRelative;
39933
39880
  }
39934
- if (relativePreference === 3 /* ExternalNonRelative */) {
39881
+ if (relativePreference === 3 /* ExternalNonRelative */ && !pathIsRelative(maybeNonRelative)) {
39935
39882
  const projectDirectory = compilerOptions.configFilePath ? toPath(getDirectoryPath(compilerOptions.configFilePath), host.getCurrentDirectory(), info.getCanonicalFileName) : info.getCanonicalFileName(host.getCurrentDirectory());
39936
39883
  const modulePath = toPath(moduleFileName, projectDirectory, getCanonicalFileName);
39937
39884
  const sourceIsInternal = startsWith(sourceDirectory, projectDirectory);
39938
39885
  const targetIsInternal = startsWith(modulePath, projectDirectory);
39939
39886
  if (sourceIsInternal && !targetIsInternal || !sourceIsInternal && targetIsInternal) {
39940
- return nonRelative;
39887
+ return maybeNonRelative;
39941
39888
  }
39942
39889
  const nearestTargetPackageJson = getNearestAncestorDirectoryWithPackageJson(host, getDirectoryPath(modulePath));
39943
39890
  const nearestSourcePackageJson = getNearestAncestorDirectoryWithPackageJson(host, sourceDirectory);
39944
39891
  if (nearestSourcePackageJson !== nearestTargetPackageJson) {
39945
- return nonRelative;
39892
+ return maybeNonRelative;
39946
39893
  }
39947
39894
  return relativePath;
39948
39895
  }
39949
- if (relativePreference !== 2 /* Shortest */)
39950
- Debug.assertNever(relativePreference);
39951
- return isPathRelativeToParent(nonRelative) || countPathComponents(relativePath) < countPathComponents(nonRelative) ? relativePath : nonRelative;
39896
+ return isPathRelativeToParent(maybeNonRelative) || countPathComponents(relativePath) < countPathComponents(maybeNonRelative) ? relativePath : maybeNonRelative;
39952
39897
  }
39953
39898
  function countPathComponents(path) {
39954
39899
  let count = 0;
@@ -76627,10 +76572,10 @@ ${lanes.join("\n")}
76627
76572
  nodeVisitor(node.initializer, visitor, isExpression)
76628
76573
  );
76629
76574
  },
76630
- [308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
76575
+ [308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
76631
76576
  return context.factory.updateSourceFile(
76632
76577
  node,
76633
- visitLexicalEnvironment(node.statements, visitor, context, void 0, void 0, nodesVisitor)
76578
+ visitLexicalEnvironment(node.statements, visitor, context)
76634
76579
  );
76635
76580
  },
76636
76581
  [353 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
@@ -94939,7 +94884,7 @@ ${lanes.join("\n")}
94939
94884
  const sourceMap = sourceMapGenerator.toString();
94940
94885
  writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap, false, sourceFiles);
94941
94886
  if (printer.bundleFileInfo)
94942
- printer.bundleFileInfo.mapHash = computeSignature(sourceMap, maybeBind(host, host.createHash));
94887
+ printer.bundleFileInfo.mapHash = computeSignature(sourceMap, host);
94943
94888
  }
94944
94889
  } else {
94945
94890
  writer.writeLine();
@@ -94947,7 +94892,7 @@ ${lanes.join("\n")}
94947
94892
  const text = writer.getText();
94948
94893
  writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform2.diagnostics });
94949
94894
  if (printer.bundleFileInfo)
94950
- printer.bundleFileInfo.hash = computeSignature(text, maybeBind(host, host.createHash));
94895
+ printer.bundleFileInfo.hash = computeSignature(text, host);
94951
94896
  writer.clear();
94952
94897
  }
94953
94898
  function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) {
@@ -95051,7 +94996,6 @@ ${lanes.join("\n")}
95051
94996
  return result;
95052
94997
  }
95053
94998
  function emitUsingBuildInfoWorker(config, host, getCommandLine, customTransformers) {
95054
- const createHash = maybeBind(host, host.createHash);
95055
94999
  const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle(config.options, false);
95056
95000
  const buildInfo = host.getBuildInfo(buildInfoPath, config.options.configFilePath);
95057
95001
  if (!buildInfo)
@@ -95061,22 +95005,22 @@ ${lanes.join("\n")}
95061
95005
  const jsFileText = host.readFile(Debug.checkDefined(jsFilePath));
95062
95006
  if (!jsFileText)
95063
95007
  return jsFilePath;
95064
- if (computeSignature(jsFileText, createHash) !== buildInfo.bundle.js.hash)
95008
+ if (computeSignature(jsFileText, host) !== buildInfo.bundle.js.hash)
95065
95009
  return jsFilePath;
95066
95010
  const sourceMapText = sourceMapFilePath && host.readFile(sourceMapFilePath);
95067
95011
  if (sourceMapFilePath && !sourceMapText || config.options.inlineSourceMap)
95068
95012
  return sourceMapFilePath || "inline sourcemap decoding";
95069
- if (sourceMapFilePath && computeSignature(sourceMapText, createHash) !== buildInfo.bundle.js.mapHash)
95013
+ if (sourceMapFilePath && computeSignature(sourceMapText, host) !== buildInfo.bundle.js.mapHash)
95070
95014
  return sourceMapFilePath;
95071
95015
  const declarationText = declarationFilePath && host.readFile(declarationFilePath);
95072
95016
  if (declarationFilePath && !declarationText)
95073
95017
  return declarationFilePath;
95074
- if (declarationFilePath && computeSignature(declarationText, createHash) !== buildInfo.bundle.dts.hash)
95018
+ if (declarationFilePath && computeSignature(declarationText, host) !== buildInfo.bundle.dts.hash)
95075
95019
  return declarationFilePath;
95076
95020
  const declarationMapText = declarationMapPath && host.readFile(declarationMapPath);
95077
95021
  if (declarationMapPath && !declarationMapText || config.options.inlineSourceMap)
95078
95022
  return declarationMapPath || "inline sourcemap decoding";
95079
- if (declarationMapPath && computeSignature(declarationMapText, createHash) !== buildInfo.bundle.dts.mapHash)
95023
+ if (declarationMapPath && computeSignature(declarationMapText, host) !== buildInfo.bundle.dts.mapHash)
95080
95024
  return declarationMapPath;
95081
95025
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
95082
95026
  const ownPrependInput = createInputFilesWithFileTexts(
@@ -95146,7 +95090,7 @@ ${lanes.join("\n")}
95146
95090
  getBuildInfo: (bundle) => {
95147
95091
  const program = buildInfo.program;
95148
95092
  if (program && changedDtsText !== void 0 && config.options.composite) {
95149
- program.outSignature = computeSignature(changedDtsText, createHash, changedDtsData);
95093
+ program.outSignature = computeSignature(changedDtsText, host, changedDtsData);
95150
95094
  }
95151
95095
  const { js, dts, sourceFiles } = buildInfo.bundle;
95152
95096
  bundle.js.sources = js.sources;
@@ -95159,7 +95103,7 @@ ${lanes.join("\n")}
95159
95103
  getSourceFileFromReference: returnUndefined,
95160
95104
  redirectTargetsMap: createMultiMap(),
95161
95105
  getFileIncludeReasons: notImplemented,
95162
- createHash
95106
+ createHash: maybeBind(host, host.createHash)
95163
95107
  };
95164
95108
  emitFiles(
95165
95109
  notImplementedResolver,
@@ -103354,7 +103298,7 @@ ${lanes.join("\n")}
103354
103298
  return oldState && !oldState.referencedMap === !newReferencedMap;
103355
103299
  }
103356
103300
  BuilderState2.canReuseOldState = canReuseOldState;
103357
- function create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
103301
+ function create(newProgram, oldState, disableUseFileVersionAsSignature) {
103358
103302
  var _a2, _b, _c;
103359
103303
  const fileInfos = /* @__PURE__ */ new Map();
103360
103304
  const options = newProgram.getCompilerOptions();
@@ -103362,6 +103306,7 @@ ${lanes.join("\n")}
103362
103306
  const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
103363
103307
  const exportedModulesMap = referencedMap ? createManyToManyPathMap() : void 0;
103364
103308
  const useOldState = canReuseOldState(referencedMap, oldState);
103309
+ const getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames());
103365
103310
  newProgram.getTypeChecker();
103366
103311
  for (const sourceFile of newProgram.getSourceFiles()) {
103367
103312
  const version2 = Debug.checkDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set");
@@ -103400,30 +103345,29 @@ ${lanes.join("\n")}
103400
103345
  state.allFileNames = void 0;
103401
103346
  }
103402
103347
  BuilderState2.releaseCache = releaseCache2;
103403
- function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, computeHash, getCanonicalFileName) {
103348
+ function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, host) {
103404
103349
  var _a2, _b;
103405
103350
  const result = getFilesAffectedByWithOldState(
103406
103351
  state,
103407
103352
  programOfThisState,
103408
103353
  path,
103409
103354
  cancellationToken,
103410
- computeHash,
103411
- getCanonicalFileName
103355
+ host
103412
103356
  );
103413
103357
  (_a2 = state.oldSignatures) == null ? void 0 : _a2.clear();
103414
103358
  (_b = state.oldExportedModulesMap) == null ? void 0 : _b.clear();
103415
103359
  return result;
103416
103360
  }
103417
103361
  BuilderState2.getFilesAffectedBy = getFilesAffectedBy;
103418
- function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, computeHash, getCanonicalFileName) {
103362
+ function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host) {
103419
103363
  const sourceFile = programOfThisState.getSourceFileByPath(path);
103420
103364
  if (!sourceFile) {
103421
103365
  return emptyArray;
103422
103366
  }
103423
- if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName)) {
103367
+ if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host)) {
103424
103368
  return [sourceFile];
103425
103369
  }
103426
- return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName);
103370
+ return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host);
103427
103371
  }
103428
103372
  BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
103429
103373
  function updateSignatureOfFile(state, signature, path) {
@@ -103431,7 +103375,7 @@ ${lanes.join("\n")}
103431
103375
  (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
103432
103376
  }
103433
103377
  BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
103434
- function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName, useFileVersionAsSignature = state.useFileVersionAsSignature) {
103378
+ function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) {
103435
103379
  var _a2;
103436
103380
  if ((_a2 = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a2.has(sourceFile.resolvedPath))
103437
103381
  return false;
@@ -103444,10 +103388,10 @@ ${lanes.join("\n")}
103444
103388
  (fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => {
103445
103389
  Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`);
103446
103390
  latestSignature = computeSignatureWithDiagnostics(
103391
+ programOfThisState,
103447
103392
  sourceFile,
103448
103393
  text,
103449
- computeHash,
103450
- getCanonicalFileName,
103394
+ host,
103451
103395
  data
103452
103396
  );
103453
103397
  if (latestSignature !== prevSignature) {
@@ -103586,7 +103530,7 @@ ${lanes.join("\n")}
103586
103530
  }
103587
103531
  return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
103588
103532
  }
103589
- function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, computeHash, getCanonicalFileName) {
103533
+ function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, host) {
103590
103534
  if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) {
103591
103535
  return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
103592
103536
  }
@@ -103602,7 +103546,7 @@ ${lanes.join("\n")}
103602
103546
  if (!seenFileNamesMap.has(currentPath)) {
103603
103547
  const currentSourceFile = programOfThisState.getSourceFileByPath(currentPath);
103604
103548
  seenFileNamesMap.set(currentPath, currentSourceFile);
103605
- if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, computeHash, getCanonicalFileName)) {
103549
+ if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, host)) {
103606
103550
  queue.push(...getReferencedByPaths(state, currentSourceFile.resolvedPath));
103607
103551
  }
103608
103552
  }
@@ -103646,9 +103590,9 @@ ${lanes.join("\n")}
103646
103590
  function hasSameKeys(map1, map2) {
103647
103591
  return map1 === map2 || map1 !== void 0 && map2 !== void 0 && map1.size === map2.size && !forEachKey(map1, (key) => !map2.has(key));
103648
103592
  }
103649
- function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
103593
+ function createBuilderProgramState(newProgram, oldState, disableUseFileVersionAsSignature) {
103650
103594
  var _a2, _b;
103651
- const state = BuilderState.create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature);
103595
+ const state = BuilderState.create(newProgram, oldState, disableUseFileVersionAsSignature);
103652
103596
  state.program = newProgram;
103653
103597
  const compilerOptions = newProgram.getCompilerOptions();
103654
103598
  state.compilerOptions = compilerOptions;
@@ -103692,7 +103636,7 @@ ${lanes.join("\n")}
103692
103636
  return;
103693
103637
  const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);
103694
103638
  if (diagnostics) {
103695
- state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) : diagnostics);
103639
+ state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram) : diagnostics);
103696
103640
  if (!state.semanticDiagnosticsFromOldState) {
103697
103641
  state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
103698
103642
  }
@@ -103752,10 +103696,11 @@ ${lanes.join("\n")}
103752
103696
  function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) {
103753
103697
  return !!options.declarationMap === !!oldOptions.declarationMap ? oldEmitSignature : isString(oldEmitSignature) ? [oldEmitSignature] : oldEmitSignature[0];
103754
103698
  }
103755
- function convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) {
103699
+ function convertToDiagnostics(diagnostics, newProgram) {
103756
103700
  if (!diagnostics.length)
103757
103701
  return emptyArray;
103758
- const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
103702
+ let buildInfoDirectory;
103703
+ let getCanonicalFileName;
103759
103704
  return diagnostics.map((diagnostic) => {
103760
103705
  const result = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3);
103761
103706
  result.reportsUnnecessary = diagnostic.reportsUnnecessary;
@@ -103767,7 +103712,8 @@ ${lanes.join("\n")}
103767
103712
  return result;
103768
103713
  });
103769
103714
  function toPath3(path) {
103770
- return toPath(path, buildInfoDirectory, getCanonicalFileName);
103715
+ buildInfoDirectory != null ? buildInfoDirectory : buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
103716
+ return toPath(path, buildInfoDirectory, getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames()));
103771
103717
  }
103772
103718
  }
103773
103719
  function convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3) {
@@ -103809,7 +103755,7 @@ ${lanes.join("\n")}
103809
103755
  function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) {
103810
103756
  Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath));
103811
103757
  }
103812
- function getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host) {
103758
+ function getNextAffectedFile(state, cancellationToken, host) {
103813
103759
  var _a2, _b;
103814
103760
  while (true) {
103815
103761
  const { affectedFiles } = state;
@@ -103825,8 +103771,6 @@ ${lanes.join("\n")}
103825
103771
  state,
103826
103772
  affectedFile,
103827
103773
  cancellationToken,
103828
- computeHash,
103829
- getCanonicalFileName,
103830
103774
  host
103831
103775
  );
103832
103776
  return affectedFile;
@@ -103854,8 +103798,7 @@ ${lanes.join("\n")}
103854
103798
  program,
103855
103799
  nextKey.value,
103856
103800
  cancellationToken,
103857
- computeHash,
103858
- getCanonicalFileName
103801
+ host
103859
103802
  );
103860
103803
  state.currentChangedFilePath = nextKey.value;
103861
103804
  state.affectedFilesIndex = 0;
@@ -103907,7 +103850,7 @@ ${lanes.join("\n")}
103907
103850
  );
103908
103851
  }
103909
103852
  }
103910
- function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, computeHash, getCanonicalFileName, host) {
103853
+ function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) {
103911
103854
  removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath);
103912
103855
  if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) {
103913
103856
  removeDiagnosticsOfLibraryFiles(state);
@@ -103916,8 +103859,7 @@ ${lanes.join("\n")}
103916
103859
  Debug.checkDefined(state.program),
103917
103860
  affectedFile,
103918
103861
  cancellationToken,
103919
- computeHash,
103920
- getCanonicalFileName
103862
+ host
103921
103863
  );
103922
103864
  return;
103923
103865
  }
@@ -103927,12 +103869,10 @@ ${lanes.join("\n")}
103927
103869
  state,
103928
103870
  affectedFile,
103929
103871
  cancellationToken,
103930
- computeHash,
103931
- getCanonicalFileName,
103932
103872
  host
103933
103873
  );
103934
103874
  }
103935
- function handleDtsMayChangeOf(state, path, cancellationToken, computeHash, getCanonicalFileName, host) {
103875
+ function handleDtsMayChangeOf(state, path, cancellationToken, host) {
103936
103876
  removeSemanticDiagnosticsOf(state, path);
103937
103877
  if (!state.changedFilesSet.has(path)) {
103938
103878
  const program = Debug.checkDefined(state.program);
@@ -103943,8 +103883,7 @@ ${lanes.join("\n")}
103943
103883
  program,
103944
103884
  sourceFile,
103945
103885
  cancellationToken,
103946
- computeHash,
103947
- getCanonicalFileName,
103886
+ host,
103948
103887
  !host.disableUseFileVersionAsSignature
103949
103888
  );
103950
103889
  if (getEmitDeclarations(state.compilerOptions)) {
@@ -103966,7 +103905,7 @@ ${lanes.join("\n")}
103966
103905
  const newSignature = Debug.checkDefined(state.fileInfos.get(path)).signature;
103967
103906
  return newSignature !== oldSignature;
103968
103907
  }
103969
- function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host) {
103908
+ function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host) {
103970
103909
  var _a2;
103971
103910
  if (!((_a2 = state.fileInfos.get(filePath)) == null ? void 0 : _a2.affectsGlobalScope))
103972
103911
  return false;
@@ -103974,14 +103913,12 @@ ${lanes.join("\n")}
103974
103913
  state,
103975
103914
  file.resolvedPath,
103976
103915
  cancellationToken,
103977
- computeHash,
103978
- getCanonicalFileName,
103979
103916
  host
103980
103917
  ));
103981
103918
  removeDiagnosticsOfLibraryFiles(state);
103982
103919
  return true;
103983
103920
  }
103984
- function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, computeHash, getCanonicalFileName, host) {
103921
+ function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host) {
103985
103922
  var _a2;
103986
103923
  if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.resolvedPath))
103987
103924
  return;
@@ -103995,9 +103932,9 @@ ${lanes.join("\n")}
103995
103932
  const currentPath = queue.pop();
103996
103933
  if (!seenFileNamesMap.has(currentPath)) {
103997
103934
  seenFileNamesMap.set(currentPath, true);
103998
- if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, computeHash, getCanonicalFileName, host))
103935
+ if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, host))
103999
103936
  return;
104000
- handleDtsMayChangeOf(state, currentPath, cancellationToken, computeHash, getCanonicalFileName, host);
103937
+ handleDtsMayChangeOf(state, currentPath, cancellationToken, host);
104001
103938
  if (isChangedSignature(state, currentPath)) {
104002
103939
  const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath);
104003
103940
  queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath));
@@ -104007,7 +103944,7 @@ ${lanes.join("\n")}
104007
103944
  }
104008
103945
  const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
104009
103946
  (_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
104010
- if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, computeHash, getCanonicalFileName, host))
103947
+ if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, host))
104011
103948
  return true;
104012
103949
  const references = state.referencedMap.getKeys(exportedFromPath);
104013
103950
  return references && forEachKey(
@@ -104017,28 +103954,24 @@ ${lanes.join("\n")}
104017
103954
  filePath,
104018
103955
  seenFileAndExportsOfFile,
104019
103956
  cancellationToken,
104020
- computeHash,
104021
- getCanonicalFileName,
104022
103957
  host
104023
103958
  )
104024
103959
  );
104025
103960
  });
104026
103961
  }
104027
- function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, computeHash, getCanonicalFileName, host) {
103962
+ function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, host) {
104028
103963
  var _a2, _b;
104029
103964
  if (!tryAddToSet(seenFileAndExportsOfFile, filePath))
104030
103965
  return void 0;
104031
- if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host))
103966
+ if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host))
104032
103967
  return true;
104033
- handleDtsMayChangeOf(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host);
103968
+ handleDtsMayChangeOf(state, filePath, cancellationToken, host);
104034
103969
  (_a2 = state.exportedModulesMap.getKeys(filePath)) == null ? void 0 : _a2.forEach(
104035
103970
  (exportedFromPath) => handleDtsMayChangeOfFileAndExportsOfFile(
104036
103971
  state,
104037
103972
  exportedFromPath,
104038
103973
  seenFileAndExportsOfFile,
104039
103974
  cancellationToken,
104040
- computeHash,
104041
- getCanonicalFileName,
104042
103975
  host
104043
103976
  )
104044
103977
  );
@@ -104047,8 +103980,6 @@ ${lanes.join("\n")}
104047
103980
  state,
104048
103981
  referencingFilePath,
104049
103982
  cancellationToken,
104050
- computeHash,
104051
- getCanonicalFileName,
104052
103983
  host
104053
103984
  )
104054
103985
  );
@@ -104077,9 +104008,10 @@ ${lanes.join("\n")}
104077
104008
  function isProgramBundleEmitBuildInfo(info) {
104078
104009
  return !!outFile(info.options || {});
104079
104010
  }
104080
- function getBuildInfo2(state, getCanonicalFileName, bundle) {
104011
+ function getBuildInfo2(state, bundle) {
104081
104012
  var _a2, _b, _c;
104082
104013
  const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory();
104014
+ const getCanonicalFileName = createGetCanonicalFileName(state.program.useCaseSensitiveFileNames());
104083
104015
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
104084
104016
  const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
104085
104017
  const fileNames = [];
@@ -104298,8 +104230,9 @@ ${lanes.join("\n")}
104298
104230
  function getTextHandlingSourceMapForSignature(text, data) {
104299
104231
  return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text;
104300
104232
  }
104301
- function computeSignatureWithDiagnostics(sourceFile, text, computeHash, getCanonicalFileName, data) {
104302
- var _a2;
104233
+ function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) {
104234
+ var _a2, _b;
104235
+ let getCanonicalFileName;
104303
104236
  text = getTextHandlingSourceMapForSignature(text, data);
104304
104237
  let sourceFileDirectory;
104305
104238
  if ((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length) {
@@ -104307,7 +104240,7 @@ ${lanes.join("\n")}
104307
104240
  (diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`
104308
104241
  ).join("\n");
104309
104242
  }
104310
- return (computeHash != null ? computeHash : generateDjb2Hash)(text);
104243
+ return ((_b = host.createHash) != null ? _b : generateDjb2Hash)(text);
104311
104244
  function flattenDiagnosticMessageText2(diagnostic) {
104312
104245
  return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? "" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText2).join("\n");
104313
104246
  }
@@ -104316,11 +104249,16 @@ ${lanes.join("\n")}
104316
104249
  return `(${diagnostic.start},${diagnostic.length})`;
104317
104250
  if (sourceFileDirectory === void 0)
104318
104251
  sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath);
104319
- return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceFileDirectory, diagnostic.file.resolvedPath, getCanonicalFileName))}(${diagnostic.start},${diagnostic.length})`;
104252
+ return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(
104253
+ sourceFileDirectory,
104254
+ diagnostic.file.resolvedPath,
104255
+ getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(program.useCaseSensitiveFileNames())
104256
+ ))}(${diagnostic.start},${diagnostic.length})`;
104320
104257
  }
104321
104258
  }
104322
- function computeSignature(text, computeHash, data) {
104323
- return (computeHash != null ? computeHash : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
104259
+ function computeSignature(text, host, data) {
104260
+ var _a2;
104261
+ return ((_a2 = host.createHash) != null ? _a2 : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
104324
104262
  }
104325
104263
  function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) {
104326
104264
  let oldState = oldProgram && oldProgram.getState();
@@ -104329,10 +104267,8 @@ ${lanes.join("\n")}
104329
104267
  oldState = void 0;
104330
104268
  return oldProgram;
104331
104269
  }
104332
- const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
104333
- const computeHash = maybeBind(host, host.createHash);
104334
- const state = createBuilderProgramState(newProgram, getCanonicalFileName, oldState, host.disableUseFileVersionAsSignature);
104335
- newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, getCanonicalFileName, bundle);
104270
+ const state = createBuilderProgramState(newProgram, oldState, host.disableUseFileVersionAsSignature);
104271
+ newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, bundle);
104336
104272
  newProgram = void 0;
104337
104273
  oldProgram = void 0;
104338
104274
  oldState = void 0;
@@ -104366,7 +104302,7 @@ ${lanes.join("\n")}
104366
104302
  }
104367
104303
  function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
104368
104304
  var _a2, _b, _c, _d, _e;
104369
- let affected = getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host);
104305
+ let affected = getNextAffectedFile(state, cancellationToken, host);
104370
104306
  const programEmitKind = getBuilderFileEmit(state.compilerOptions);
104371
104307
  let emitKind = emitOnlyDtsFiles ? programEmitKind & 24 /* AllDts */ : programEmitKind;
104372
104308
  if (!affected) {
@@ -104440,10 +104376,10 @@ ${lanes.join("\n")}
104440
104376
  const info = state.fileInfos.get(file.resolvedPath);
104441
104377
  if (info.signature === file.version) {
104442
104378
  const signature = computeSignatureWithDiagnostics(
104379
+ state.program,
104443
104380
  file,
104444
104381
  text,
104445
- computeHash,
104446
- getCanonicalFileName,
104382
+ host,
104447
104383
  data
104448
104384
  );
104449
104385
  if (!((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length))
@@ -104487,7 +104423,7 @@ ${lanes.join("\n")}
104487
104423
  state.program.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
104488
104424
  function handleNewSignature(oldSignatureFormat, newSignature) {
104489
104425
  const oldSignature = !oldSignatureFormat || isString(oldSignatureFormat) ? oldSignatureFormat : oldSignatureFormat[0];
104490
- newSignature != null ? newSignature : newSignature = computeSignature(text, computeHash, data);
104426
+ newSignature != null ? newSignature : newSignature = computeSignature(text, host, data);
104491
104427
  if (newSignature === oldSignature) {
104492
104428
  if (oldSignatureFormat === oldSignature)
104493
104429
  return void 0;
@@ -104543,7 +104479,7 @@ ${lanes.join("\n")}
104543
104479
  }
104544
104480
  function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) {
104545
104481
  while (true) {
104546
- const affected = getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host);
104482
+ const affected = getNextAffectedFile(state, cancellationToken, host);
104547
104483
  let result;
104548
104484
  if (!affected)
104549
104485
  return void 0;
@@ -116412,6 +116348,7 @@ ${lanes.join("\n")}
116412
116348
  trace: maybeBind(host, host.trace),
116413
116349
  resolveModuleNames: maybeBind(host, host.resolveModuleNames),
116414
116350
  getModuleResolutionCache: maybeBind(host, host.getModuleResolutionCache),
116351
+ createHash: maybeBind(host, host.createHash),
116415
116352
  resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives),
116416
116353
  useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect),
116417
116354
  getParsedCommandLine
@@ -146916,6 +146853,63 @@ ${options.prefix}` : "\n" : options.prefix
146916
146853
  }
146917
146854
  });
146918
146855
 
146856
+ // src/deprecatedCompat/deprecate.ts
146857
+ function getTypeScriptVersion() {
146858
+ return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
146859
+ }
146860
+ function formatDeprecationMessage(name, error, errorAfter, since, message) {
146861
+ let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
146862
+ deprecationMessage += `'${name}' `;
146863
+ deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
146864
+ deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
146865
+ deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
146866
+ return deprecationMessage;
146867
+ }
146868
+ function createErrorDeprecation(name, errorAfter, since, message) {
146869
+ const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
146870
+ return () => {
146871
+ throw new TypeError(deprecationMessage);
146872
+ };
146873
+ }
146874
+ function createWarningDeprecation(name, errorAfter, since, message) {
146875
+ let hasWrittenDeprecation = false;
146876
+ return () => {
146877
+ if (enableDeprecationWarnings && !hasWrittenDeprecation) {
146878
+ Debug.log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
146879
+ hasWrittenDeprecation = true;
146880
+ }
146881
+ };
146882
+ }
146883
+ function createDeprecation(name, options = {}) {
146884
+ var _a2, _b;
146885
+ const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
146886
+ const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
146887
+ const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
146888
+ const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
146889
+ const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
146890
+ const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
146891
+ return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
146892
+ }
146893
+ function wrapFunction(deprecation, func) {
146894
+ return function() {
146895
+ deprecation();
146896
+ return func.apply(this, arguments);
146897
+ };
146898
+ }
146899
+ function deprecate(func, options) {
146900
+ var _a2;
146901
+ const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : Debug.getFunctionName(func), options);
146902
+ return wrapFunction(deprecation, func);
146903
+ }
146904
+ var enableDeprecationWarnings, typeScriptVersion2;
146905
+ var init_deprecate = __esm({
146906
+ "src/deprecatedCompat/deprecate.ts"() {
146907
+ "use strict";
146908
+ init_ts5();
146909
+ enableDeprecationWarnings = true;
146910
+ }
146911
+ });
146912
+
146919
146913
  // src/deprecatedCompat/deprecations.ts
146920
146914
  function createOverload(name, overloads, binder2, deprecations) {
146921
146915
  Object.defineProperty(call, "name", { ...Object.getOwnPropertyDescriptor(call, "name"), value: name });
@@ -146923,7 +146917,7 @@ ${options.prefix}` : "\n" : options.prefix
146923
146917
  for (const key of Object.keys(deprecations)) {
146924
146918
  const index = +key;
146925
146919
  if (!isNaN(index) && hasProperty(overloads, `${index}`)) {
146926
- overloads[index] = Debug.deprecate(overloads[index], { ...deprecations[index], name });
146920
+ overloads[index] = deprecate(overloads[index], { ...deprecations[index], name });
146927
146921
  }
146928
146922
  }
146929
146923
  }
@@ -146964,6 +146958,7 @@ ${options.prefix}` : "\n" : options.prefix
146964
146958
  "src/deprecatedCompat/deprecations.ts"() {
146965
146959
  "use strict";
146966
146960
  init_ts5();
146961
+ init_deprecate();
146967
146962
  }
146968
146963
  });
146969
146964
 
@@ -146973,337 +146968,338 @@ ${options.prefix}` : "\n" : options.prefix
146973
146968
  "src/deprecatedCompat/4.0/nodeFactoryTopLevelExports.ts"() {
146974
146969
  "use strict";
146975
146970
  init_ts5();
146971
+ init_deprecate();
146976
146972
  factoryDeprecation = { since: "4.0", warnAfter: "4.1", message: "Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead." };
146977
- createNodeArray = Debug.deprecate(factory.createNodeArray, factoryDeprecation);
146978
- createNumericLiteral = Debug.deprecate(factory.createNumericLiteral, factoryDeprecation);
146979
- createBigIntLiteral = Debug.deprecate(factory.createBigIntLiteral, factoryDeprecation);
146980
- createStringLiteral = Debug.deprecate(factory.createStringLiteral, factoryDeprecation);
146981
- createStringLiteralFromNode = Debug.deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
146982
- createRegularExpressionLiteral = Debug.deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
146983
- createLoopVariable = Debug.deprecate(factory.createLoopVariable, factoryDeprecation);
146984
- createUniqueName = Debug.deprecate(factory.createUniqueName, factoryDeprecation);
146985
- createPrivateIdentifier = Debug.deprecate(factory.createPrivateIdentifier, factoryDeprecation);
146986
- createSuper = Debug.deprecate(factory.createSuper, factoryDeprecation);
146987
- createThis = Debug.deprecate(factory.createThis, factoryDeprecation);
146988
- createNull = Debug.deprecate(factory.createNull, factoryDeprecation);
146989
- createTrue = Debug.deprecate(factory.createTrue, factoryDeprecation);
146990
- createFalse = Debug.deprecate(factory.createFalse, factoryDeprecation);
146991
- createModifier = Debug.deprecate(factory.createModifier, factoryDeprecation);
146992
- createModifiersFromModifierFlags = Debug.deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
146993
- createQualifiedName = Debug.deprecate(factory.createQualifiedName, factoryDeprecation);
146994
- updateQualifiedName = Debug.deprecate(factory.updateQualifiedName, factoryDeprecation);
146995
- createComputedPropertyName = Debug.deprecate(factory.createComputedPropertyName, factoryDeprecation);
146996
- updateComputedPropertyName = Debug.deprecate(factory.updateComputedPropertyName, factoryDeprecation);
146997
- createTypeParameterDeclaration = Debug.deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
146998
- updateTypeParameterDeclaration = Debug.deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
146999
- createParameter = Debug.deprecate(factory.createParameterDeclaration, factoryDeprecation);
147000
- updateParameter = Debug.deprecate(factory.updateParameterDeclaration, factoryDeprecation);
147001
- createDecorator = Debug.deprecate(factory.createDecorator, factoryDeprecation);
147002
- updateDecorator = Debug.deprecate(factory.updateDecorator, factoryDeprecation);
147003
- createProperty = Debug.deprecate(factory.createPropertyDeclaration, factoryDeprecation);
147004
- updateProperty = Debug.deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
147005
- createMethod = Debug.deprecate(factory.createMethodDeclaration, factoryDeprecation);
147006
- updateMethod = Debug.deprecate(factory.updateMethodDeclaration, factoryDeprecation);
147007
- createConstructor = Debug.deprecate(factory.createConstructorDeclaration, factoryDeprecation);
147008
- updateConstructor = Debug.deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
147009
- createGetAccessor = Debug.deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
147010
- updateGetAccessor = Debug.deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
147011
- createSetAccessor = Debug.deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
147012
- updateSetAccessor = Debug.deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
147013
- createCallSignature = Debug.deprecate(factory.createCallSignature, factoryDeprecation);
147014
- updateCallSignature = Debug.deprecate(factory.updateCallSignature, factoryDeprecation);
147015
- createConstructSignature = Debug.deprecate(factory.createConstructSignature, factoryDeprecation);
147016
- updateConstructSignature = Debug.deprecate(factory.updateConstructSignature, factoryDeprecation);
147017
- updateIndexSignature = Debug.deprecate(factory.updateIndexSignature, factoryDeprecation);
147018
- createKeywordTypeNode = Debug.deprecate(factory.createKeywordTypeNode, factoryDeprecation);
147019
- createTypePredicateNodeWithModifier = Debug.deprecate(factory.createTypePredicateNode, factoryDeprecation);
147020
- updateTypePredicateNodeWithModifier = Debug.deprecate(factory.updateTypePredicateNode, factoryDeprecation);
147021
- createTypeReferenceNode = Debug.deprecate(factory.createTypeReferenceNode, factoryDeprecation);
147022
- updateTypeReferenceNode = Debug.deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
147023
- createFunctionTypeNode = Debug.deprecate(factory.createFunctionTypeNode, factoryDeprecation);
147024
- updateFunctionTypeNode = Debug.deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
147025
- createConstructorTypeNode = Debug.deprecate((typeParameters, parameters, type) => {
146973
+ createNodeArray = deprecate(factory.createNodeArray, factoryDeprecation);
146974
+ createNumericLiteral = deprecate(factory.createNumericLiteral, factoryDeprecation);
146975
+ createBigIntLiteral = deprecate(factory.createBigIntLiteral, factoryDeprecation);
146976
+ createStringLiteral = deprecate(factory.createStringLiteral, factoryDeprecation);
146977
+ createStringLiteralFromNode = deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
146978
+ createRegularExpressionLiteral = deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
146979
+ createLoopVariable = deprecate(factory.createLoopVariable, factoryDeprecation);
146980
+ createUniqueName = deprecate(factory.createUniqueName, factoryDeprecation);
146981
+ createPrivateIdentifier = deprecate(factory.createPrivateIdentifier, factoryDeprecation);
146982
+ createSuper = deprecate(factory.createSuper, factoryDeprecation);
146983
+ createThis = deprecate(factory.createThis, factoryDeprecation);
146984
+ createNull = deprecate(factory.createNull, factoryDeprecation);
146985
+ createTrue = deprecate(factory.createTrue, factoryDeprecation);
146986
+ createFalse = deprecate(factory.createFalse, factoryDeprecation);
146987
+ createModifier = deprecate(factory.createModifier, factoryDeprecation);
146988
+ createModifiersFromModifierFlags = deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
146989
+ createQualifiedName = deprecate(factory.createQualifiedName, factoryDeprecation);
146990
+ updateQualifiedName = deprecate(factory.updateQualifiedName, factoryDeprecation);
146991
+ createComputedPropertyName = deprecate(factory.createComputedPropertyName, factoryDeprecation);
146992
+ updateComputedPropertyName = deprecate(factory.updateComputedPropertyName, factoryDeprecation);
146993
+ createTypeParameterDeclaration = deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
146994
+ updateTypeParameterDeclaration = deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
146995
+ createParameter = deprecate(factory.createParameterDeclaration, factoryDeprecation);
146996
+ updateParameter = deprecate(factory.updateParameterDeclaration, factoryDeprecation);
146997
+ createDecorator = deprecate(factory.createDecorator, factoryDeprecation);
146998
+ updateDecorator = deprecate(factory.updateDecorator, factoryDeprecation);
146999
+ createProperty = deprecate(factory.createPropertyDeclaration, factoryDeprecation);
147000
+ updateProperty = deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
147001
+ createMethod = deprecate(factory.createMethodDeclaration, factoryDeprecation);
147002
+ updateMethod = deprecate(factory.updateMethodDeclaration, factoryDeprecation);
147003
+ createConstructor = deprecate(factory.createConstructorDeclaration, factoryDeprecation);
147004
+ updateConstructor = deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
147005
+ createGetAccessor = deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
147006
+ updateGetAccessor = deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
147007
+ createSetAccessor = deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
147008
+ updateSetAccessor = deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
147009
+ createCallSignature = deprecate(factory.createCallSignature, factoryDeprecation);
147010
+ updateCallSignature = deprecate(factory.updateCallSignature, factoryDeprecation);
147011
+ createConstructSignature = deprecate(factory.createConstructSignature, factoryDeprecation);
147012
+ updateConstructSignature = deprecate(factory.updateConstructSignature, factoryDeprecation);
147013
+ updateIndexSignature = deprecate(factory.updateIndexSignature, factoryDeprecation);
147014
+ createKeywordTypeNode = deprecate(factory.createKeywordTypeNode, factoryDeprecation);
147015
+ createTypePredicateNodeWithModifier = deprecate(factory.createTypePredicateNode, factoryDeprecation);
147016
+ updateTypePredicateNodeWithModifier = deprecate(factory.updateTypePredicateNode, factoryDeprecation);
147017
+ createTypeReferenceNode = deprecate(factory.createTypeReferenceNode, factoryDeprecation);
147018
+ updateTypeReferenceNode = deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
147019
+ createFunctionTypeNode = deprecate(factory.createFunctionTypeNode, factoryDeprecation);
147020
+ updateFunctionTypeNode = deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
147021
+ createConstructorTypeNode = deprecate((typeParameters, parameters, type) => {
147026
147022
  return factory.createConstructorTypeNode(void 0, typeParameters, parameters, type);
147027
147023
  }, factoryDeprecation);
147028
- updateConstructorTypeNode = Debug.deprecate((node, typeParameters, parameters, type) => {
147024
+ updateConstructorTypeNode = deprecate((node, typeParameters, parameters, type) => {
147029
147025
  return factory.updateConstructorTypeNode(node, node.modifiers, typeParameters, parameters, type);
147030
147026
  }, factoryDeprecation);
147031
- createTypeQueryNode = Debug.deprecate(factory.createTypeQueryNode, factoryDeprecation);
147032
- updateTypeQueryNode = Debug.deprecate(factory.updateTypeQueryNode, factoryDeprecation);
147033
- createTypeLiteralNode = Debug.deprecate(factory.createTypeLiteralNode, factoryDeprecation);
147034
- updateTypeLiteralNode = Debug.deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
147035
- createArrayTypeNode = Debug.deprecate(factory.createArrayTypeNode, factoryDeprecation);
147036
- updateArrayTypeNode = Debug.deprecate(factory.updateArrayTypeNode, factoryDeprecation);
147037
- createTupleTypeNode = Debug.deprecate(factory.createTupleTypeNode, factoryDeprecation);
147038
- updateTupleTypeNode = Debug.deprecate(factory.updateTupleTypeNode, factoryDeprecation);
147039
- createOptionalTypeNode = Debug.deprecate(factory.createOptionalTypeNode, factoryDeprecation);
147040
- updateOptionalTypeNode = Debug.deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
147041
- createRestTypeNode = Debug.deprecate(factory.createRestTypeNode, factoryDeprecation);
147042
- updateRestTypeNode = Debug.deprecate(factory.updateRestTypeNode, factoryDeprecation);
147043
- createUnionTypeNode = Debug.deprecate(factory.createUnionTypeNode, factoryDeprecation);
147044
- updateUnionTypeNode = Debug.deprecate(factory.updateUnionTypeNode, factoryDeprecation);
147045
- createIntersectionTypeNode = Debug.deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
147046
- updateIntersectionTypeNode = Debug.deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
147047
- createConditionalTypeNode = Debug.deprecate(factory.createConditionalTypeNode, factoryDeprecation);
147048
- updateConditionalTypeNode = Debug.deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
147049
- createInferTypeNode = Debug.deprecate(factory.createInferTypeNode, factoryDeprecation);
147050
- updateInferTypeNode = Debug.deprecate(factory.updateInferTypeNode, factoryDeprecation);
147051
- createImportTypeNode = Debug.deprecate(factory.createImportTypeNode, factoryDeprecation);
147052
- updateImportTypeNode = Debug.deprecate(factory.updateImportTypeNode, factoryDeprecation);
147053
- createParenthesizedType = Debug.deprecate(factory.createParenthesizedType, factoryDeprecation);
147054
- updateParenthesizedType = Debug.deprecate(factory.updateParenthesizedType, factoryDeprecation);
147055
- createThisTypeNode = Debug.deprecate(factory.createThisTypeNode, factoryDeprecation);
147056
- updateTypeOperatorNode = Debug.deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
147057
- createIndexedAccessTypeNode = Debug.deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
147058
- updateIndexedAccessTypeNode = Debug.deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
147059
- createMappedTypeNode = Debug.deprecate(factory.createMappedTypeNode, factoryDeprecation);
147060
- updateMappedTypeNode = Debug.deprecate(factory.updateMappedTypeNode, factoryDeprecation);
147061
- createLiteralTypeNode = Debug.deprecate(factory.createLiteralTypeNode, factoryDeprecation);
147062
- updateLiteralTypeNode = Debug.deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
147063
- createObjectBindingPattern = Debug.deprecate(factory.createObjectBindingPattern, factoryDeprecation);
147064
- updateObjectBindingPattern = Debug.deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
147065
- createArrayBindingPattern = Debug.deprecate(factory.createArrayBindingPattern, factoryDeprecation);
147066
- updateArrayBindingPattern = Debug.deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
147067
- createBindingElement = Debug.deprecate(factory.createBindingElement, factoryDeprecation);
147068
- updateBindingElement = Debug.deprecate(factory.updateBindingElement, factoryDeprecation);
147069
- createArrayLiteral = Debug.deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
147070
- updateArrayLiteral = Debug.deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
147071
- createObjectLiteral = Debug.deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
147072
- updateObjectLiteral = Debug.deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
147073
- createPropertyAccess = Debug.deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
147074
- updatePropertyAccess = Debug.deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
147075
- createPropertyAccessChain = Debug.deprecate(factory.createPropertyAccessChain, factoryDeprecation);
147076
- updatePropertyAccessChain = Debug.deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
147077
- createElementAccess = Debug.deprecate(factory.createElementAccessExpression, factoryDeprecation);
147078
- updateElementAccess = Debug.deprecate(factory.updateElementAccessExpression, factoryDeprecation);
147079
- createElementAccessChain = Debug.deprecate(factory.createElementAccessChain, factoryDeprecation);
147080
- updateElementAccessChain = Debug.deprecate(factory.updateElementAccessChain, factoryDeprecation);
147081
- createCall = Debug.deprecate(factory.createCallExpression, factoryDeprecation);
147082
- updateCall = Debug.deprecate(factory.updateCallExpression, factoryDeprecation);
147083
- createCallChain = Debug.deprecate(factory.createCallChain, factoryDeprecation);
147084
- updateCallChain = Debug.deprecate(factory.updateCallChain, factoryDeprecation);
147085
- createNew = Debug.deprecate(factory.createNewExpression, factoryDeprecation);
147086
- updateNew = Debug.deprecate(factory.updateNewExpression, factoryDeprecation);
147087
- createTypeAssertion = Debug.deprecate(factory.createTypeAssertion, factoryDeprecation);
147088
- updateTypeAssertion = Debug.deprecate(factory.updateTypeAssertion, factoryDeprecation);
147089
- createParen = Debug.deprecate(factory.createParenthesizedExpression, factoryDeprecation);
147090
- updateParen = Debug.deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
147091
- createFunctionExpression = Debug.deprecate(factory.createFunctionExpression, factoryDeprecation);
147092
- updateFunctionExpression = Debug.deprecate(factory.updateFunctionExpression, factoryDeprecation);
147093
- createDelete = Debug.deprecate(factory.createDeleteExpression, factoryDeprecation);
147094
- updateDelete = Debug.deprecate(factory.updateDeleteExpression, factoryDeprecation);
147095
- createTypeOf = Debug.deprecate(factory.createTypeOfExpression, factoryDeprecation);
147096
- updateTypeOf = Debug.deprecate(factory.updateTypeOfExpression, factoryDeprecation);
147097
- createVoid = Debug.deprecate(factory.createVoidExpression, factoryDeprecation);
147098
- updateVoid = Debug.deprecate(factory.updateVoidExpression, factoryDeprecation);
147099
- createAwait = Debug.deprecate(factory.createAwaitExpression, factoryDeprecation);
147100
- updateAwait = Debug.deprecate(factory.updateAwaitExpression, factoryDeprecation);
147101
- createPrefix = Debug.deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
147102
- updatePrefix = Debug.deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
147103
- createPostfix = Debug.deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
147104
- updatePostfix = Debug.deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
147105
- createBinary = Debug.deprecate(factory.createBinaryExpression, factoryDeprecation);
147106
- updateConditional = Debug.deprecate(factory.updateConditionalExpression, factoryDeprecation);
147107
- createTemplateExpression = Debug.deprecate(factory.createTemplateExpression, factoryDeprecation);
147108
- updateTemplateExpression = Debug.deprecate(factory.updateTemplateExpression, factoryDeprecation);
147109
- createTemplateHead = Debug.deprecate(factory.createTemplateHead, factoryDeprecation);
147110
- createTemplateMiddle = Debug.deprecate(factory.createTemplateMiddle, factoryDeprecation);
147111
- createTemplateTail = Debug.deprecate(factory.createTemplateTail, factoryDeprecation);
147112
- createNoSubstitutionTemplateLiteral = Debug.deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
147113
- updateYield = Debug.deprecate(factory.updateYieldExpression, factoryDeprecation);
147114
- createSpread = Debug.deprecate(factory.createSpreadElement, factoryDeprecation);
147115
- updateSpread = Debug.deprecate(factory.updateSpreadElement, factoryDeprecation);
147116
- createOmittedExpression = Debug.deprecate(factory.createOmittedExpression, factoryDeprecation);
147117
- createAsExpression = Debug.deprecate(factory.createAsExpression, factoryDeprecation);
147118
- updateAsExpression = Debug.deprecate(factory.updateAsExpression, factoryDeprecation);
147119
- createNonNullExpression = Debug.deprecate(factory.createNonNullExpression, factoryDeprecation);
147120
- updateNonNullExpression = Debug.deprecate(factory.updateNonNullExpression, factoryDeprecation);
147121
- createNonNullChain = Debug.deprecate(factory.createNonNullChain, factoryDeprecation);
147122
- updateNonNullChain = Debug.deprecate(factory.updateNonNullChain, factoryDeprecation);
147123
- createMetaProperty = Debug.deprecate(factory.createMetaProperty, factoryDeprecation);
147124
- updateMetaProperty = Debug.deprecate(factory.updateMetaProperty, factoryDeprecation);
147125
- createTemplateSpan = Debug.deprecate(factory.createTemplateSpan, factoryDeprecation);
147126
- updateTemplateSpan = Debug.deprecate(factory.updateTemplateSpan, factoryDeprecation);
147127
- createSemicolonClassElement = Debug.deprecate(factory.createSemicolonClassElement, factoryDeprecation);
147128
- createBlock = Debug.deprecate(factory.createBlock, factoryDeprecation);
147129
- updateBlock = Debug.deprecate(factory.updateBlock, factoryDeprecation);
147130
- createVariableStatement = Debug.deprecate(factory.createVariableStatement, factoryDeprecation);
147131
- updateVariableStatement = Debug.deprecate(factory.updateVariableStatement, factoryDeprecation);
147132
- createEmptyStatement = Debug.deprecate(factory.createEmptyStatement, factoryDeprecation);
147133
- createExpressionStatement = Debug.deprecate(factory.createExpressionStatement, factoryDeprecation);
147134
- updateExpressionStatement = Debug.deprecate(factory.updateExpressionStatement, factoryDeprecation);
147135
- createStatement = Debug.deprecate(factory.createExpressionStatement, factoryDeprecation);
147136
- updateStatement = Debug.deprecate(factory.updateExpressionStatement, factoryDeprecation);
147137
- createIf = Debug.deprecate(factory.createIfStatement, factoryDeprecation);
147138
- updateIf = Debug.deprecate(factory.updateIfStatement, factoryDeprecation);
147139
- createDo = Debug.deprecate(factory.createDoStatement, factoryDeprecation);
147140
- updateDo = Debug.deprecate(factory.updateDoStatement, factoryDeprecation);
147141
- createWhile = Debug.deprecate(factory.createWhileStatement, factoryDeprecation);
147142
- updateWhile = Debug.deprecate(factory.updateWhileStatement, factoryDeprecation);
147143
- createFor = Debug.deprecate(factory.createForStatement, factoryDeprecation);
147144
- updateFor = Debug.deprecate(factory.updateForStatement, factoryDeprecation);
147145
- createForIn = Debug.deprecate(factory.createForInStatement, factoryDeprecation);
147146
- updateForIn = Debug.deprecate(factory.updateForInStatement, factoryDeprecation);
147147
- createForOf = Debug.deprecate(factory.createForOfStatement, factoryDeprecation);
147148
- updateForOf = Debug.deprecate(factory.updateForOfStatement, factoryDeprecation);
147149
- createContinue = Debug.deprecate(factory.createContinueStatement, factoryDeprecation);
147150
- updateContinue = Debug.deprecate(factory.updateContinueStatement, factoryDeprecation);
147151
- createBreak = Debug.deprecate(factory.createBreakStatement, factoryDeprecation);
147152
- updateBreak = Debug.deprecate(factory.updateBreakStatement, factoryDeprecation);
147153
- createReturn = Debug.deprecate(factory.createReturnStatement, factoryDeprecation);
147154
- updateReturn = Debug.deprecate(factory.updateReturnStatement, factoryDeprecation);
147155
- createWith = Debug.deprecate(factory.createWithStatement, factoryDeprecation);
147156
- updateWith = Debug.deprecate(factory.updateWithStatement, factoryDeprecation);
147157
- createSwitch = Debug.deprecate(factory.createSwitchStatement, factoryDeprecation);
147158
- updateSwitch = Debug.deprecate(factory.updateSwitchStatement, factoryDeprecation);
147159
- createLabel = Debug.deprecate(factory.createLabeledStatement, factoryDeprecation);
147160
- updateLabel = Debug.deprecate(factory.updateLabeledStatement, factoryDeprecation);
147161
- createThrow = Debug.deprecate(factory.createThrowStatement, factoryDeprecation);
147162
- updateThrow = Debug.deprecate(factory.updateThrowStatement, factoryDeprecation);
147163
- createTry = Debug.deprecate(factory.createTryStatement, factoryDeprecation);
147164
- updateTry = Debug.deprecate(factory.updateTryStatement, factoryDeprecation);
147165
- createDebuggerStatement = Debug.deprecate(factory.createDebuggerStatement, factoryDeprecation);
147166
- createVariableDeclarationList = Debug.deprecate(factory.createVariableDeclarationList, factoryDeprecation);
147167
- updateVariableDeclarationList = Debug.deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
147168
- createFunctionDeclaration = Debug.deprecate(factory.createFunctionDeclaration, factoryDeprecation);
147169
- updateFunctionDeclaration = Debug.deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
147170
- createClassDeclaration = Debug.deprecate(factory.createClassDeclaration, factoryDeprecation);
147171
- updateClassDeclaration = Debug.deprecate(factory.updateClassDeclaration, factoryDeprecation);
147172
- createInterfaceDeclaration = Debug.deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
147173
- updateInterfaceDeclaration = Debug.deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
147174
- createTypeAliasDeclaration = Debug.deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
147175
- updateTypeAliasDeclaration = Debug.deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
147176
- createEnumDeclaration = Debug.deprecate(factory.createEnumDeclaration, factoryDeprecation);
147177
- updateEnumDeclaration = Debug.deprecate(factory.updateEnumDeclaration, factoryDeprecation);
147178
- createModuleDeclaration = Debug.deprecate(factory.createModuleDeclaration, factoryDeprecation);
147179
- updateModuleDeclaration = Debug.deprecate(factory.updateModuleDeclaration, factoryDeprecation);
147180
- createModuleBlock = Debug.deprecate(factory.createModuleBlock, factoryDeprecation);
147181
- updateModuleBlock = Debug.deprecate(factory.updateModuleBlock, factoryDeprecation);
147182
- createCaseBlock = Debug.deprecate(factory.createCaseBlock, factoryDeprecation);
147183
- updateCaseBlock = Debug.deprecate(factory.updateCaseBlock, factoryDeprecation);
147184
- createNamespaceExportDeclaration = Debug.deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
147185
- updateNamespaceExportDeclaration = Debug.deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
147186
- createImportEqualsDeclaration = Debug.deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
147187
- updateImportEqualsDeclaration = Debug.deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
147188
- createImportDeclaration = Debug.deprecate(factory.createImportDeclaration, factoryDeprecation);
147189
- updateImportDeclaration = Debug.deprecate(factory.updateImportDeclaration, factoryDeprecation);
147190
- createNamespaceImport = Debug.deprecate(factory.createNamespaceImport, factoryDeprecation);
147191
- updateNamespaceImport = Debug.deprecate(factory.updateNamespaceImport, factoryDeprecation);
147192
- createNamedImports = Debug.deprecate(factory.createNamedImports, factoryDeprecation);
147193
- updateNamedImports = Debug.deprecate(factory.updateNamedImports, factoryDeprecation);
147194
- createImportSpecifier = Debug.deprecate(factory.createImportSpecifier, factoryDeprecation);
147195
- updateImportSpecifier = Debug.deprecate(factory.updateImportSpecifier, factoryDeprecation);
147196
- createExportAssignment2 = Debug.deprecate(factory.createExportAssignment, factoryDeprecation);
147197
- updateExportAssignment = Debug.deprecate(factory.updateExportAssignment, factoryDeprecation);
147198
- createNamedExports = Debug.deprecate(factory.createNamedExports, factoryDeprecation);
147199
- updateNamedExports = Debug.deprecate(factory.updateNamedExports, factoryDeprecation);
147200
- createExportSpecifier = Debug.deprecate(factory.createExportSpecifier, factoryDeprecation);
147201
- updateExportSpecifier = Debug.deprecate(factory.updateExportSpecifier, factoryDeprecation);
147202
- createExternalModuleReference = Debug.deprecate(factory.createExternalModuleReference, factoryDeprecation);
147203
- updateExternalModuleReference = Debug.deprecate(factory.updateExternalModuleReference, factoryDeprecation);
147204
- createJSDocTypeExpression = Debug.deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
147205
- createJSDocTypeTag = Debug.deprecate(factory.createJSDocTypeTag, factoryDeprecation);
147206
- createJSDocReturnTag = Debug.deprecate(factory.createJSDocReturnTag, factoryDeprecation);
147207
- createJSDocThisTag = Debug.deprecate(factory.createJSDocThisTag, factoryDeprecation);
147208
- createJSDocComment = Debug.deprecate(factory.createJSDocComment, factoryDeprecation);
147209
- createJSDocParameterTag = Debug.deprecate(factory.createJSDocParameterTag, factoryDeprecation);
147210
- createJSDocClassTag = Debug.deprecate(factory.createJSDocClassTag, factoryDeprecation);
147211
- createJSDocAugmentsTag = Debug.deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
147212
- createJSDocEnumTag = Debug.deprecate(factory.createJSDocEnumTag, factoryDeprecation);
147213
- createJSDocTemplateTag = Debug.deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
147214
- createJSDocTypedefTag = Debug.deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
147215
- createJSDocCallbackTag = Debug.deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
147216
- createJSDocSignature = Debug.deprecate(factory.createJSDocSignature, factoryDeprecation);
147217
- createJSDocPropertyTag = Debug.deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
147218
- createJSDocTypeLiteral = Debug.deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
147219
- createJSDocImplementsTag = Debug.deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
147220
- createJSDocAuthorTag = Debug.deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
147221
- createJSDocPublicTag = Debug.deprecate(factory.createJSDocPublicTag, factoryDeprecation);
147222
- createJSDocPrivateTag = Debug.deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
147223
- createJSDocProtectedTag = Debug.deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
147224
- createJSDocReadonlyTag = Debug.deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
147225
- createJSDocTag = Debug.deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
147226
- createJsxElement = Debug.deprecate(factory.createJsxElement, factoryDeprecation);
147227
- updateJsxElement = Debug.deprecate(factory.updateJsxElement, factoryDeprecation);
147228
- createJsxSelfClosingElement = Debug.deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
147229
- updateJsxSelfClosingElement = Debug.deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
147230
- createJsxOpeningElement = Debug.deprecate(factory.createJsxOpeningElement, factoryDeprecation);
147231
- updateJsxOpeningElement = Debug.deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
147232
- createJsxClosingElement = Debug.deprecate(factory.createJsxClosingElement, factoryDeprecation);
147233
- updateJsxClosingElement = Debug.deprecate(factory.updateJsxClosingElement, factoryDeprecation);
147234
- createJsxFragment = Debug.deprecate(factory.createJsxFragment, factoryDeprecation);
147235
- createJsxText = Debug.deprecate(factory.createJsxText, factoryDeprecation);
147236
- updateJsxText = Debug.deprecate(factory.updateJsxText, factoryDeprecation);
147237
- createJsxOpeningFragment = Debug.deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
147238
- createJsxJsxClosingFragment = Debug.deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
147239
- updateJsxFragment = Debug.deprecate(factory.updateJsxFragment, factoryDeprecation);
147240
- createJsxAttribute = Debug.deprecate(factory.createJsxAttribute, factoryDeprecation);
147241
- updateJsxAttribute = Debug.deprecate(factory.updateJsxAttribute, factoryDeprecation);
147242
- createJsxAttributes = Debug.deprecate(factory.createJsxAttributes, factoryDeprecation);
147243
- updateJsxAttributes = Debug.deprecate(factory.updateJsxAttributes, factoryDeprecation);
147244
- createJsxSpreadAttribute = Debug.deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
147245
- updateJsxSpreadAttribute = Debug.deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
147246
- createJsxExpression = Debug.deprecate(factory.createJsxExpression, factoryDeprecation);
147247
- updateJsxExpression = Debug.deprecate(factory.updateJsxExpression, factoryDeprecation);
147248
- createCaseClause = Debug.deprecate(factory.createCaseClause, factoryDeprecation);
147249
- updateCaseClause = Debug.deprecate(factory.updateCaseClause, factoryDeprecation);
147250
- createDefaultClause = Debug.deprecate(factory.createDefaultClause, factoryDeprecation);
147251
- updateDefaultClause = Debug.deprecate(factory.updateDefaultClause, factoryDeprecation);
147252
- createHeritageClause = Debug.deprecate(factory.createHeritageClause, factoryDeprecation);
147253
- updateHeritageClause = Debug.deprecate(factory.updateHeritageClause, factoryDeprecation);
147254
- createCatchClause = Debug.deprecate(factory.createCatchClause, factoryDeprecation);
147255
- updateCatchClause = Debug.deprecate(factory.updateCatchClause, factoryDeprecation);
147256
- createPropertyAssignment = Debug.deprecate(factory.createPropertyAssignment, factoryDeprecation);
147257
- updatePropertyAssignment = Debug.deprecate(factory.updatePropertyAssignment, factoryDeprecation);
147258
- createShorthandPropertyAssignment = Debug.deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
147259
- updateShorthandPropertyAssignment = Debug.deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
147260
- createSpreadAssignment = Debug.deprecate(factory.createSpreadAssignment, factoryDeprecation);
147261
- updateSpreadAssignment = Debug.deprecate(factory.updateSpreadAssignment, factoryDeprecation);
147262
- createEnumMember = Debug.deprecate(factory.createEnumMember, factoryDeprecation);
147263
- updateEnumMember = Debug.deprecate(factory.updateEnumMember, factoryDeprecation);
147264
- updateSourceFileNode = Debug.deprecate(factory.updateSourceFile, factoryDeprecation);
147265
- createNotEmittedStatement = Debug.deprecate(factory.createNotEmittedStatement, factoryDeprecation);
147266
- createPartiallyEmittedExpression = Debug.deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
147267
- updatePartiallyEmittedExpression = Debug.deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
147268
- createCommaList = Debug.deprecate(factory.createCommaListExpression, factoryDeprecation);
147269
- updateCommaList = Debug.deprecate(factory.updateCommaListExpression, factoryDeprecation);
147270
- createBundle = Debug.deprecate(factory.createBundle, factoryDeprecation);
147271
- updateBundle = Debug.deprecate(factory.updateBundle, factoryDeprecation);
147272
- createImmediatelyInvokedFunctionExpression = Debug.deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
147273
- createImmediatelyInvokedArrowFunction = Debug.deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
147274
- createVoidZero = Debug.deprecate(factory.createVoidZero, factoryDeprecation);
147275
- createExportDefault = Debug.deprecate(factory.createExportDefault, factoryDeprecation);
147276
- createExternalModuleExport = Debug.deprecate(factory.createExternalModuleExport, factoryDeprecation);
147277
- createNamespaceExport = Debug.deprecate(factory.createNamespaceExport, factoryDeprecation);
147278
- updateNamespaceExport = Debug.deprecate(factory.updateNamespaceExport, factoryDeprecation);
147279
- createToken = Debug.deprecate(function createToken2(kind) {
147027
+ createTypeQueryNode = deprecate(factory.createTypeQueryNode, factoryDeprecation);
147028
+ updateTypeQueryNode = deprecate(factory.updateTypeQueryNode, factoryDeprecation);
147029
+ createTypeLiteralNode = deprecate(factory.createTypeLiteralNode, factoryDeprecation);
147030
+ updateTypeLiteralNode = deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
147031
+ createArrayTypeNode = deprecate(factory.createArrayTypeNode, factoryDeprecation);
147032
+ updateArrayTypeNode = deprecate(factory.updateArrayTypeNode, factoryDeprecation);
147033
+ createTupleTypeNode = deprecate(factory.createTupleTypeNode, factoryDeprecation);
147034
+ updateTupleTypeNode = deprecate(factory.updateTupleTypeNode, factoryDeprecation);
147035
+ createOptionalTypeNode = deprecate(factory.createOptionalTypeNode, factoryDeprecation);
147036
+ updateOptionalTypeNode = deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
147037
+ createRestTypeNode = deprecate(factory.createRestTypeNode, factoryDeprecation);
147038
+ updateRestTypeNode = deprecate(factory.updateRestTypeNode, factoryDeprecation);
147039
+ createUnionTypeNode = deprecate(factory.createUnionTypeNode, factoryDeprecation);
147040
+ updateUnionTypeNode = deprecate(factory.updateUnionTypeNode, factoryDeprecation);
147041
+ createIntersectionTypeNode = deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
147042
+ updateIntersectionTypeNode = deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
147043
+ createConditionalTypeNode = deprecate(factory.createConditionalTypeNode, factoryDeprecation);
147044
+ updateConditionalTypeNode = deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
147045
+ createInferTypeNode = deprecate(factory.createInferTypeNode, factoryDeprecation);
147046
+ updateInferTypeNode = deprecate(factory.updateInferTypeNode, factoryDeprecation);
147047
+ createImportTypeNode = deprecate(factory.createImportTypeNode, factoryDeprecation);
147048
+ updateImportTypeNode = deprecate(factory.updateImportTypeNode, factoryDeprecation);
147049
+ createParenthesizedType = deprecate(factory.createParenthesizedType, factoryDeprecation);
147050
+ updateParenthesizedType = deprecate(factory.updateParenthesizedType, factoryDeprecation);
147051
+ createThisTypeNode = deprecate(factory.createThisTypeNode, factoryDeprecation);
147052
+ updateTypeOperatorNode = deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
147053
+ createIndexedAccessTypeNode = deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
147054
+ updateIndexedAccessTypeNode = deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
147055
+ createMappedTypeNode = deprecate(factory.createMappedTypeNode, factoryDeprecation);
147056
+ updateMappedTypeNode = deprecate(factory.updateMappedTypeNode, factoryDeprecation);
147057
+ createLiteralTypeNode = deprecate(factory.createLiteralTypeNode, factoryDeprecation);
147058
+ updateLiteralTypeNode = deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
147059
+ createObjectBindingPattern = deprecate(factory.createObjectBindingPattern, factoryDeprecation);
147060
+ updateObjectBindingPattern = deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
147061
+ createArrayBindingPattern = deprecate(factory.createArrayBindingPattern, factoryDeprecation);
147062
+ updateArrayBindingPattern = deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
147063
+ createBindingElement = deprecate(factory.createBindingElement, factoryDeprecation);
147064
+ updateBindingElement = deprecate(factory.updateBindingElement, factoryDeprecation);
147065
+ createArrayLiteral = deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
147066
+ updateArrayLiteral = deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
147067
+ createObjectLiteral = deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
147068
+ updateObjectLiteral = deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
147069
+ createPropertyAccess = deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
147070
+ updatePropertyAccess = deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
147071
+ createPropertyAccessChain = deprecate(factory.createPropertyAccessChain, factoryDeprecation);
147072
+ updatePropertyAccessChain = deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
147073
+ createElementAccess = deprecate(factory.createElementAccessExpression, factoryDeprecation);
147074
+ updateElementAccess = deprecate(factory.updateElementAccessExpression, factoryDeprecation);
147075
+ createElementAccessChain = deprecate(factory.createElementAccessChain, factoryDeprecation);
147076
+ updateElementAccessChain = deprecate(factory.updateElementAccessChain, factoryDeprecation);
147077
+ createCall = deprecate(factory.createCallExpression, factoryDeprecation);
147078
+ updateCall = deprecate(factory.updateCallExpression, factoryDeprecation);
147079
+ createCallChain = deprecate(factory.createCallChain, factoryDeprecation);
147080
+ updateCallChain = deprecate(factory.updateCallChain, factoryDeprecation);
147081
+ createNew = deprecate(factory.createNewExpression, factoryDeprecation);
147082
+ updateNew = deprecate(factory.updateNewExpression, factoryDeprecation);
147083
+ createTypeAssertion = deprecate(factory.createTypeAssertion, factoryDeprecation);
147084
+ updateTypeAssertion = deprecate(factory.updateTypeAssertion, factoryDeprecation);
147085
+ createParen = deprecate(factory.createParenthesizedExpression, factoryDeprecation);
147086
+ updateParen = deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
147087
+ createFunctionExpression = deprecate(factory.createFunctionExpression, factoryDeprecation);
147088
+ updateFunctionExpression = deprecate(factory.updateFunctionExpression, factoryDeprecation);
147089
+ createDelete = deprecate(factory.createDeleteExpression, factoryDeprecation);
147090
+ updateDelete = deprecate(factory.updateDeleteExpression, factoryDeprecation);
147091
+ createTypeOf = deprecate(factory.createTypeOfExpression, factoryDeprecation);
147092
+ updateTypeOf = deprecate(factory.updateTypeOfExpression, factoryDeprecation);
147093
+ createVoid = deprecate(factory.createVoidExpression, factoryDeprecation);
147094
+ updateVoid = deprecate(factory.updateVoidExpression, factoryDeprecation);
147095
+ createAwait = deprecate(factory.createAwaitExpression, factoryDeprecation);
147096
+ updateAwait = deprecate(factory.updateAwaitExpression, factoryDeprecation);
147097
+ createPrefix = deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
147098
+ updatePrefix = deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
147099
+ createPostfix = deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
147100
+ updatePostfix = deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
147101
+ createBinary = deprecate(factory.createBinaryExpression, factoryDeprecation);
147102
+ updateConditional = deprecate(factory.updateConditionalExpression, factoryDeprecation);
147103
+ createTemplateExpression = deprecate(factory.createTemplateExpression, factoryDeprecation);
147104
+ updateTemplateExpression = deprecate(factory.updateTemplateExpression, factoryDeprecation);
147105
+ createTemplateHead = deprecate(factory.createTemplateHead, factoryDeprecation);
147106
+ createTemplateMiddle = deprecate(factory.createTemplateMiddle, factoryDeprecation);
147107
+ createTemplateTail = deprecate(factory.createTemplateTail, factoryDeprecation);
147108
+ createNoSubstitutionTemplateLiteral = deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
147109
+ updateYield = deprecate(factory.updateYieldExpression, factoryDeprecation);
147110
+ createSpread = deprecate(factory.createSpreadElement, factoryDeprecation);
147111
+ updateSpread = deprecate(factory.updateSpreadElement, factoryDeprecation);
147112
+ createOmittedExpression = deprecate(factory.createOmittedExpression, factoryDeprecation);
147113
+ createAsExpression = deprecate(factory.createAsExpression, factoryDeprecation);
147114
+ updateAsExpression = deprecate(factory.updateAsExpression, factoryDeprecation);
147115
+ createNonNullExpression = deprecate(factory.createNonNullExpression, factoryDeprecation);
147116
+ updateNonNullExpression = deprecate(factory.updateNonNullExpression, factoryDeprecation);
147117
+ createNonNullChain = deprecate(factory.createNonNullChain, factoryDeprecation);
147118
+ updateNonNullChain = deprecate(factory.updateNonNullChain, factoryDeprecation);
147119
+ createMetaProperty = deprecate(factory.createMetaProperty, factoryDeprecation);
147120
+ updateMetaProperty = deprecate(factory.updateMetaProperty, factoryDeprecation);
147121
+ createTemplateSpan = deprecate(factory.createTemplateSpan, factoryDeprecation);
147122
+ updateTemplateSpan = deprecate(factory.updateTemplateSpan, factoryDeprecation);
147123
+ createSemicolonClassElement = deprecate(factory.createSemicolonClassElement, factoryDeprecation);
147124
+ createBlock = deprecate(factory.createBlock, factoryDeprecation);
147125
+ updateBlock = deprecate(factory.updateBlock, factoryDeprecation);
147126
+ createVariableStatement = deprecate(factory.createVariableStatement, factoryDeprecation);
147127
+ updateVariableStatement = deprecate(factory.updateVariableStatement, factoryDeprecation);
147128
+ createEmptyStatement = deprecate(factory.createEmptyStatement, factoryDeprecation);
147129
+ createExpressionStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
147130
+ updateExpressionStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
147131
+ createStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
147132
+ updateStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
147133
+ createIf = deprecate(factory.createIfStatement, factoryDeprecation);
147134
+ updateIf = deprecate(factory.updateIfStatement, factoryDeprecation);
147135
+ createDo = deprecate(factory.createDoStatement, factoryDeprecation);
147136
+ updateDo = deprecate(factory.updateDoStatement, factoryDeprecation);
147137
+ createWhile = deprecate(factory.createWhileStatement, factoryDeprecation);
147138
+ updateWhile = deprecate(factory.updateWhileStatement, factoryDeprecation);
147139
+ createFor = deprecate(factory.createForStatement, factoryDeprecation);
147140
+ updateFor = deprecate(factory.updateForStatement, factoryDeprecation);
147141
+ createForIn = deprecate(factory.createForInStatement, factoryDeprecation);
147142
+ updateForIn = deprecate(factory.updateForInStatement, factoryDeprecation);
147143
+ createForOf = deprecate(factory.createForOfStatement, factoryDeprecation);
147144
+ updateForOf = deprecate(factory.updateForOfStatement, factoryDeprecation);
147145
+ createContinue = deprecate(factory.createContinueStatement, factoryDeprecation);
147146
+ updateContinue = deprecate(factory.updateContinueStatement, factoryDeprecation);
147147
+ createBreak = deprecate(factory.createBreakStatement, factoryDeprecation);
147148
+ updateBreak = deprecate(factory.updateBreakStatement, factoryDeprecation);
147149
+ createReturn = deprecate(factory.createReturnStatement, factoryDeprecation);
147150
+ updateReturn = deprecate(factory.updateReturnStatement, factoryDeprecation);
147151
+ createWith = deprecate(factory.createWithStatement, factoryDeprecation);
147152
+ updateWith = deprecate(factory.updateWithStatement, factoryDeprecation);
147153
+ createSwitch = deprecate(factory.createSwitchStatement, factoryDeprecation);
147154
+ updateSwitch = deprecate(factory.updateSwitchStatement, factoryDeprecation);
147155
+ createLabel = deprecate(factory.createLabeledStatement, factoryDeprecation);
147156
+ updateLabel = deprecate(factory.updateLabeledStatement, factoryDeprecation);
147157
+ createThrow = deprecate(factory.createThrowStatement, factoryDeprecation);
147158
+ updateThrow = deprecate(factory.updateThrowStatement, factoryDeprecation);
147159
+ createTry = deprecate(factory.createTryStatement, factoryDeprecation);
147160
+ updateTry = deprecate(factory.updateTryStatement, factoryDeprecation);
147161
+ createDebuggerStatement = deprecate(factory.createDebuggerStatement, factoryDeprecation);
147162
+ createVariableDeclarationList = deprecate(factory.createVariableDeclarationList, factoryDeprecation);
147163
+ updateVariableDeclarationList = deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
147164
+ createFunctionDeclaration = deprecate(factory.createFunctionDeclaration, factoryDeprecation);
147165
+ updateFunctionDeclaration = deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
147166
+ createClassDeclaration = deprecate(factory.createClassDeclaration, factoryDeprecation);
147167
+ updateClassDeclaration = deprecate(factory.updateClassDeclaration, factoryDeprecation);
147168
+ createInterfaceDeclaration = deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
147169
+ updateInterfaceDeclaration = deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
147170
+ createTypeAliasDeclaration = deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
147171
+ updateTypeAliasDeclaration = deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
147172
+ createEnumDeclaration = deprecate(factory.createEnumDeclaration, factoryDeprecation);
147173
+ updateEnumDeclaration = deprecate(factory.updateEnumDeclaration, factoryDeprecation);
147174
+ createModuleDeclaration = deprecate(factory.createModuleDeclaration, factoryDeprecation);
147175
+ updateModuleDeclaration = deprecate(factory.updateModuleDeclaration, factoryDeprecation);
147176
+ createModuleBlock = deprecate(factory.createModuleBlock, factoryDeprecation);
147177
+ updateModuleBlock = deprecate(factory.updateModuleBlock, factoryDeprecation);
147178
+ createCaseBlock = deprecate(factory.createCaseBlock, factoryDeprecation);
147179
+ updateCaseBlock = deprecate(factory.updateCaseBlock, factoryDeprecation);
147180
+ createNamespaceExportDeclaration = deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
147181
+ updateNamespaceExportDeclaration = deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
147182
+ createImportEqualsDeclaration = deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
147183
+ updateImportEqualsDeclaration = deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
147184
+ createImportDeclaration = deprecate(factory.createImportDeclaration, factoryDeprecation);
147185
+ updateImportDeclaration = deprecate(factory.updateImportDeclaration, factoryDeprecation);
147186
+ createNamespaceImport = deprecate(factory.createNamespaceImport, factoryDeprecation);
147187
+ updateNamespaceImport = deprecate(factory.updateNamespaceImport, factoryDeprecation);
147188
+ createNamedImports = deprecate(factory.createNamedImports, factoryDeprecation);
147189
+ updateNamedImports = deprecate(factory.updateNamedImports, factoryDeprecation);
147190
+ createImportSpecifier = deprecate(factory.createImportSpecifier, factoryDeprecation);
147191
+ updateImportSpecifier = deprecate(factory.updateImportSpecifier, factoryDeprecation);
147192
+ createExportAssignment2 = deprecate(factory.createExportAssignment, factoryDeprecation);
147193
+ updateExportAssignment = deprecate(factory.updateExportAssignment, factoryDeprecation);
147194
+ createNamedExports = deprecate(factory.createNamedExports, factoryDeprecation);
147195
+ updateNamedExports = deprecate(factory.updateNamedExports, factoryDeprecation);
147196
+ createExportSpecifier = deprecate(factory.createExportSpecifier, factoryDeprecation);
147197
+ updateExportSpecifier = deprecate(factory.updateExportSpecifier, factoryDeprecation);
147198
+ createExternalModuleReference = deprecate(factory.createExternalModuleReference, factoryDeprecation);
147199
+ updateExternalModuleReference = deprecate(factory.updateExternalModuleReference, factoryDeprecation);
147200
+ createJSDocTypeExpression = deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
147201
+ createJSDocTypeTag = deprecate(factory.createJSDocTypeTag, factoryDeprecation);
147202
+ createJSDocReturnTag = deprecate(factory.createJSDocReturnTag, factoryDeprecation);
147203
+ createJSDocThisTag = deprecate(factory.createJSDocThisTag, factoryDeprecation);
147204
+ createJSDocComment = deprecate(factory.createJSDocComment, factoryDeprecation);
147205
+ createJSDocParameterTag = deprecate(factory.createJSDocParameterTag, factoryDeprecation);
147206
+ createJSDocClassTag = deprecate(factory.createJSDocClassTag, factoryDeprecation);
147207
+ createJSDocAugmentsTag = deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
147208
+ createJSDocEnumTag = deprecate(factory.createJSDocEnumTag, factoryDeprecation);
147209
+ createJSDocTemplateTag = deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
147210
+ createJSDocTypedefTag = deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
147211
+ createJSDocCallbackTag = deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
147212
+ createJSDocSignature = deprecate(factory.createJSDocSignature, factoryDeprecation);
147213
+ createJSDocPropertyTag = deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
147214
+ createJSDocTypeLiteral = deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
147215
+ createJSDocImplementsTag = deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
147216
+ createJSDocAuthorTag = deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
147217
+ createJSDocPublicTag = deprecate(factory.createJSDocPublicTag, factoryDeprecation);
147218
+ createJSDocPrivateTag = deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
147219
+ createJSDocProtectedTag = deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
147220
+ createJSDocReadonlyTag = deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
147221
+ createJSDocTag = deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
147222
+ createJsxElement = deprecate(factory.createJsxElement, factoryDeprecation);
147223
+ updateJsxElement = deprecate(factory.updateJsxElement, factoryDeprecation);
147224
+ createJsxSelfClosingElement = deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
147225
+ updateJsxSelfClosingElement = deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
147226
+ createJsxOpeningElement = deprecate(factory.createJsxOpeningElement, factoryDeprecation);
147227
+ updateJsxOpeningElement = deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
147228
+ createJsxClosingElement = deprecate(factory.createJsxClosingElement, factoryDeprecation);
147229
+ updateJsxClosingElement = deprecate(factory.updateJsxClosingElement, factoryDeprecation);
147230
+ createJsxFragment = deprecate(factory.createJsxFragment, factoryDeprecation);
147231
+ createJsxText = deprecate(factory.createJsxText, factoryDeprecation);
147232
+ updateJsxText = deprecate(factory.updateJsxText, factoryDeprecation);
147233
+ createJsxOpeningFragment = deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
147234
+ createJsxJsxClosingFragment = deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
147235
+ updateJsxFragment = deprecate(factory.updateJsxFragment, factoryDeprecation);
147236
+ createJsxAttribute = deprecate(factory.createJsxAttribute, factoryDeprecation);
147237
+ updateJsxAttribute = deprecate(factory.updateJsxAttribute, factoryDeprecation);
147238
+ createJsxAttributes = deprecate(factory.createJsxAttributes, factoryDeprecation);
147239
+ updateJsxAttributes = deprecate(factory.updateJsxAttributes, factoryDeprecation);
147240
+ createJsxSpreadAttribute = deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
147241
+ updateJsxSpreadAttribute = deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
147242
+ createJsxExpression = deprecate(factory.createJsxExpression, factoryDeprecation);
147243
+ updateJsxExpression = deprecate(factory.updateJsxExpression, factoryDeprecation);
147244
+ createCaseClause = deprecate(factory.createCaseClause, factoryDeprecation);
147245
+ updateCaseClause = deprecate(factory.updateCaseClause, factoryDeprecation);
147246
+ createDefaultClause = deprecate(factory.createDefaultClause, factoryDeprecation);
147247
+ updateDefaultClause = deprecate(factory.updateDefaultClause, factoryDeprecation);
147248
+ createHeritageClause = deprecate(factory.createHeritageClause, factoryDeprecation);
147249
+ updateHeritageClause = deprecate(factory.updateHeritageClause, factoryDeprecation);
147250
+ createCatchClause = deprecate(factory.createCatchClause, factoryDeprecation);
147251
+ updateCatchClause = deprecate(factory.updateCatchClause, factoryDeprecation);
147252
+ createPropertyAssignment = deprecate(factory.createPropertyAssignment, factoryDeprecation);
147253
+ updatePropertyAssignment = deprecate(factory.updatePropertyAssignment, factoryDeprecation);
147254
+ createShorthandPropertyAssignment = deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
147255
+ updateShorthandPropertyAssignment = deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
147256
+ createSpreadAssignment = deprecate(factory.createSpreadAssignment, factoryDeprecation);
147257
+ updateSpreadAssignment = deprecate(factory.updateSpreadAssignment, factoryDeprecation);
147258
+ createEnumMember = deprecate(factory.createEnumMember, factoryDeprecation);
147259
+ updateEnumMember = deprecate(factory.updateEnumMember, factoryDeprecation);
147260
+ updateSourceFileNode = deprecate(factory.updateSourceFile, factoryDeprecation);
147261
+ createNotEmittedStatement = deprecate(factory.createNotEmittedStatement, factoryDeprecation);
147262
+ createPartiallyEmittedExpression = deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
147263
+ updatePartiallyEmittedExpression = deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
147264
+ createCommaList = deprecate(factory.createCommaListExpression, factoryDeprecation);
147265
+ updateCommaList = deprecate(factory.updateCommaListExpression, factoryDeprecation);
147266
+ createBundle = deprecate(factory.createBundle, factoryDeprecation);
147267
+ updateBundle = deprecate(factory.updateBundle, factoryDeprecation);
147268
+ createImmediatelyInvokedFunctionExpression = deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
147269
+ createImmediatelyInvokedArrowFunction = deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
147270
+ createVoidZero = deprecate(factory.createVoidZero, factoryDeprecation);
147271
+ createExportDefault = deprecate(factory.createExportDefault, factoryDeprecation);
147272
+ createExternalModuleExport = deprecate(factory.createExternalModuleExport, factoryDeprecation);
147273
+ createNamespaceExport = deprecate(factory.createNamespaceExport, factoryDeprecation);
147274
+ updateNamespaceExport = deprecate(factory.updateNamespaceExport, factoryDeprecation);
147275
+ createToken = deprecate(function createToken2(kind) {
147280
147276
  return factory.createToken(kind);
147281
147277
  }, factoryDeprecation);
147282
- createIdentifier = Debug.deprecate(function createIdentifier2(text) {
147278
+ createIdentifier = deprecate(function createIdentifier2(text) {
147283
147279
  return factory.createIdentifier(text, void 0, void 0);
147284
147280
  }, factoryDeprecation);
147285
- createTempVariable = Debug.deprecate(function createTempVariable2(recordTempVariable) {
147281
+ createTempVariable = deprecate(function createTempVariable2(recordTempVariable) {
147286
147282
  return factory.createTempVariable(recordTempVariable, void 0);
147287
147283
  }, factoryDeprecation);
147288
- getGeneratedNameForNode = Debug.deprecate(function getGeneratedNameForNode2(node) {
147284
+ getGeneratedNameForNode = deprecate(function getGeneratedNameForNode2(node) {
147289
147285
  return factory.getGeneratedNameForNode(node, void 0);
147290
147286
  }, factoryDeprecation);
147291
- createOptimisticUniqueName = Debug.deprecate(function createOptimisticUniqueName2(text) {
147287
+ createOptimisticUniqueName = deprecate(function createOptimisticUniqueName2(text) {
147292
147288
  return factory.createUniqueName(text, 16 /* Optimistic */);
147293
147289
  }, factoryDeprecation);
147294
- createFileLevelUniqueName = Debug.deprecate(function createFileLevelUniqueName2(text) {
147290
+ createFileLevelUniqueName = deprecate(function createFileLevelUniqueName2(text) {
147295
147291
  return factory.createUniqueName(text, 16 /* Optimistic */ | 32 /* FileLevel */);
147296
147292
  }, factoryDeprecation);
147297
- createIndexSignature = Debug.deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
147293
+ createIndexSignature = deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
147298
147294
  return factory.createIndexSignature(decorators, modifiers, parameters, type);
147299
147295
  }, factoryDeprecation);
147300
- createTypePredicateNode = Debug.deprecate(function createTypePredicateNode2(parameterName, type) {
147296
+ createTypePredicateNode = deprecate(function createTypePredicateNode2(parameterName, type) {
147301
147297
  return factory.createTypePredicateNode(void 0, parameterName, type);
147302
147298
  }, factoryDeprecation);
147303
- updateTypePredicateNode = Debug.deprecate(function updateTypePredicateNode2(node, parameterName, type) {
147299
+ updateTypePredicateNode = deprecate(function updateTypePredicateNode2(node, parameterName, type) {
147304
147300
  return factory.updateTypePredicateNode(node, void 0, parameterName, type);
147305
147301
  }, factoryDeprecation);
147306
- createLiteral = Debug.deprecate(function createLiteral2(value) {
147302
+ createLiteral = deprecate(function createLiteral2(value) {
147307
147303
  if (typeof value === "number") {
147308
147304
  return factory.createNumericLiteral(value);
147309
147305
  }
@@ -147318,13 +147314,13 @@ ${options.prefix}` : "\n" : options.prefix
147318
147314
  }
147319
147315
  return factory.createStringLiteralFromNode(value);
147320
147316
  }, { 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." });
147321
- createMethodSignature = Debug.deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
147317
+ createMethodSignature = deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
147322
147318
  return factory.createMethodSignature(void 0, name, questionToken, typeParameters, parameters, type);
147323
147319
  }, factoryDeprecation);
147324
- updateMethodSignature = Debug.deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
147320
+ updateMethodSignature = deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
147325
147321
  return factory.updateMethodSignature(node, node.modifiers, name, questionToken, typeParameters, parameters, type);
147326
147322
  }, factoryDeprecation);
147327
- createTypeOperatorNode = Debug.deprecate(function createTypeOperatorNode2(operatorOrType, type) {
147323
+ createTypeOperatorNode = deprecate(function createTypeOperatorNode2(operatorOrType, type) {
147328
147324
  let operator;
147329
147325
  if (type) {
147330
147326
  operator = operatorOrType;
@@ -147334,7 +147330,7 @@ ${options.prefix}` : "\n" : options.prefix
147334
147330
  }
147335
147331
  return factory.createTypeOperatorNode(operator, type);
147336
147332
  }, factoryDeprecation);
147337
- createTaggedTemplate = Debug.deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
147333
+ createTaggedTemplate = deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
147338
147334
  let typeArguments;
147339
147335
  if (template) {
147340
147336
  typeArguments = typeArgumentsOrTemplate;
@@ -147343,7 +147339,7 @@ ${options.prefix}` : "\n" : options.prefix
147343
147339
  }
147344
147340
  return factory.createTaggedTemplateExpression(tag, typeArguments, template);
147345
147341
  }, factoryDeprecation);
147346
- updateTaggedTemplate = Debug.deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
147342
+ updateTaggedTemplate = deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
147347
147343
  let typeArguments;
147348
147344
  if (template) {
147349
147345
  typeArguments = typeArgumentsOrTemplate;
@@ -147352,16 +147348,16 @@ ${options.prefix}` : "\n" : options.prefix
147352
147348
  }
147353
147349
  return factory.updateTaggedTemplateExpression(node, tag, typeArguments, template);
147354
147350
  }, factoryDeprecation);
147355
- updateBinary = Debug.deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
147351
+ updateBinary = deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
147356
147352
  if (typeof operator === "number") {
147357
147353
  operator = operator === node.operatorToken.kind ? node.operatorToken : factory.createToken(operator);
147358
147354
  }
147359
147355
  return factory.updateBinaryExpression(node, left, operator, right);
147360
147356
  }, factoryDeprecation);
147361
- createConditional = Debug.deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
147357
+ createConditional = deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
147362
147358
  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");
147363
147359
  }, factoryDeprecation);
147364
- createYield = Debug.deprecate(function createYield2(asteriskTokenOrExpression, expression) {
147360
+ createYield = deprecate(function createYield2(asteriskTokenOrExpression, expression) {
147365
147361
  let asteriskToken;
147366
147362
  if (expression) {
147367
147363
  asteriskToken = asteriskTokenOrExpression;
@@ -147370,18 +147366,18 @@ ${options.prefix}` : "\n" : options.prefix
147370
147366
  }
147371
147367
  return factory.createYieldExpression(asteriskToken, expression);
147372
147368
  }, factoryDeprecation);
147373
- createClassExpression = Debug.deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
147369
+ createClassExpression = deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
147374
147370
  return factory.createClassExpression(void 0, modifiers, name, typeParameters, heritageClauses, members);
147375
147371
  }, factoryDeprecation);
147376
- updateClassExpression = Debug.deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
147372
+ updateClassExpression = deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
147377
147373
  return factory.updateClassExpression(node, void 0, modifiers, name, typeParameters, heritageClauses, members);
147378
147374
  }, factoryDeprecation);
147379
- createPropertySignature = Debug.deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
147375
+ createPropertySignature = deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
147380
147376
  const node = factory.createPropertySignature(modifiers, name, questionToken, type);
147381
147377
  node.initializer = initializer;
147382
147378
  return node;
147383
147379
  }, factoryDeprecation);
147384
- updatePropertySignature = Debug.deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
147380
+ updatePropertySignature = deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
147385
147381
  let updated = factory.updatePropertySignature(node, modifiers, name, questionToken, type);
147386
147382
  if (node.initializer !== initializer) {
147387
147383
  if (updated === node) {
@@ -147391,80 +147387,80 @@ ${options.prefix}` : "\n" : options.prefix
147391
147387
  }
147392
147388
  return updated;
147393
147389
  }, factoryDeprecation);
147394
- createExpressionWithTypeArguments = Debug.deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
147390
+ createExpressionWithTypeArguments = deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
147395
147391
  return factory.createExpressionWithTypeArguments(expression, typeArguments);
147396
147392
  }, factoryDeprecation);
147397
- updateExpressionWithTypeArguments = Debug.deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
147393
+ updateExpressionWithTypeArguments = deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
147398
147394
  return factory.updateExpressionWithTypeArguments(node, expression, typeArguments);
147399
147395
  }, factoryDeprecation);
147400
- createArrowFunction = Debug.deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
147396
+ createArrowFunction = deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
147401
147397
  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");
147402
147398
  }, factoryDeprecation);
147403
- updateArrowFunction = Debug.deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
147399
+ updateArrowFunction = deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
147404
147400
  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");
147405
147401
  }, factoryDeprecation);
147406
- createVariableDeclaration = Debug.deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
147402
+ createVariableDeclaration = deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
147407
147403
  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");
147408
147404
  }, factoryDeprecation);
147409
- updateVariableDeclaration = Debug.deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
147405
+ updateVariableDeclaration = deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
147410
147406
  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");
147411
147407
  }, factoryDeprecation);
147412
- createImportClause = Debug.deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
147408
+ createImportClause = deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
147413
147409
  return factory.createImportClause(isTypeOnly, name, namedBindings);
147414
147410
  }, factoryDeprecation);
147415
- updateImportClause = Debug.deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
147411
+ updateImportClause = deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
147416
147412
  return factory.updateImportClause(node, isTypeOnly, name, namedBindings);
147417
147413
  }, factoryDeprecation);
147418
- createExportDeclaration = Debug.deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
147414
+ createExportDeclaration = deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
147419
147415
  return factory.createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);
147420
147416
  }, factoryDeprecation);
147421
- updateExportDeclaration = Debug.deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
147417
+ updateExportDeclaration = deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
147422
147418
  return factory.updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, node.assertClause);
147423
147419
  }, factoryDeprecation);
147424
- createJSDocParamTag = Debug.deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
147420
+ createJSDocParamTag = deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
147425
147421
  return factory.createJSDocParameterTag(void 0, name, isBracketed, typeExpression, false, comment ? factory.createNodeArray([factory.createJSDocText(comment)]) : void 0);
147426
147422
  }, factoryDeprecation);
147427
- createComma = Debug.deprecate(function createComma2(left, right) {
147423
+ createComma = deprecate(function createComma2(left, right) {
147428
147424
  return factory.createComma(left, right);
147429
147425
  }, factoryDeprecation);
147430
- createLessThan = Debug.deprecate(function createLessThan2(left, right) {
147426
+ createLessThan = deprecate(function createLessThan2(left, right) {
147431
147427
  return factory.createLessThan(left, right);
147432
147428
  }, factoryDeprecation);
147433
- createAssignment = Debug.deprecate(function createAssignment2(left, right) {
147429
+ createAssignment = deprecate(function createAssignment2(left, right) {
147434
147430
  return factory.createAssignment(left, right);
147435
147431
  }, factoryDeprecation);
147436
- createStrictEquality = Debug.deprecate(function createStrictEquality2(left, right) {
147432
+ createStrictEquality = deprecate(function createStrictEquality2(left, right) {
147437
147433
  return factory.createStrictEquality(left, right);
147438
147434
  }, factoryDeprecation);
147439
- createStrictInequality = Debug.deprecate(function createStrictInequality2(left, right) {
147435
+ createStrictInequality = deprecate(function createStrictInequality2(left, right) {
147440
147436
  return factory.createStrictInequality(left, right);
147441
147437
  }, factoryDeprecation);
147442
- createAdd = Debug.deprecate(function createAdd2(left, right) {
147438
+ createAdd = deprecate(function createAdd2(left, right) {
147443
147439
  return factory.createAdd(left, right);
147444
147440
  }, factoryDeprecation);
147445
- createSubtract = Debug.deprecate(function createSubtract2(left, right) {
147441
+ createSubtract = deprecate(function createSubtract2(left, right) {
147446
147442
  return factory.createSubtract(left, right);
147447
147443
  }, factoryDeprecation);
147448
- createLogicalAnd = Debug.deprecate(function createLogicalAnd2(left, right) {
147444
+ createLogicalAnd = deprecate(function createLogicalAnd2(left, right) {
147449
147445
  return factory.createLogicalAnd(left, right);
147450
147446
  }, factoryDeprecation);
147451
- createLogicalOr = Debug.deprecate(function createLogicalOr2(left, right) {
147447
+ createLogicalOr = deprecate(function createLogicalOr2(left, right) {
147452
147448
  return factory.createLogicalOr(left, right);
147453
147449
  }, factoryDeprecation);
147454
- createPostfixIncrement = Debug.deprecate(function createPostfixIncrement2(operand) {
147450
+ createPostfixIncrement = deprecate(function createPostfixIncrement2(operand) {
147455
147451
  return factory.createPostfixIncrement(operand);
147456
147452
  }, factoryDeprecation);
147457
- createLogicalNot = Debug.deprecate(function createLogicalNot2(operand) {
147453
+ createLogicalNot = deprecate(function createLogicalNot2(operand) {
147458
147454
  return factory.createLogicalNot(operand);
147459
147455
  }, factoryDeprecation);
147460
- createNode2 = Debug.deprecate(function createNode3(kind, pos = 0, end = 0) {
147456
+ createNode2 = deprecate(function createNode3(kind, pos = 0, end = 0) {
147461
147457
  return setTextRangePosEnd(
147462
147458
  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),
147463
147459
  pos,
147464
147460
  end
147465
147461
  );
147466
147462
  }, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory` method instead." });
147467
- getMutableClone = Debug.deprecate(function getMutableClone2(node) {
147463
+ getMutableClone = deprecate(function getMutableClone2(node) {
147468
147464
  const clone2 = factory.cloneNode(node);
147469
147465
  setTextRange(clone2, node);
147470
147466
  setParent(clone2, node.parent);
@@ -147479,7 +147475,8 @@ ${options.prefix}` : "\n" : options.prefix
147479
147475
  "src/deprecatedCompat/4.0/renamedNodeTests.ts"() {
147480
147476
  "use strict";
147481
147477
  init_ts5();
147482
- isTypeAssertion = Debug.deprecate(function isTypeAssertion2(node) {
147478
+ init_deprecate();
147479
+ isTypeAssertion = deprecate(function isTypeAssertion2(node) {
147483
147480
  return node.kind === 213 /* TypeAssertionExpression */;
147484
147481
  }, {
147485
147482
  since: "4.0",
@@ -147495,7 +147492,8 @@ ${options.prefix}` : "\n" : options.prefix
147495
147492
  "src/deprecatedCompat/4.2/renamedNodeTests.ts"() {
147496
147493
  "use strict";
147497
147494
  init_ts5();
147498
- isIdentifierOrPrivateIdentifier = Debug.deprecate(function isIdentifierOrPrivateIdentifier2(node) {
147495
+ init_deprecate();
147496
+ isIdentifierOrPrivateIdentifier = deprecate(function isIdentifierOrPrivateIdentifier2(node) {
147499
147497
  return isMemberName(node);
147500
147498
  }, {
147501
147499
  since: "4.2",
@@ -150413,6 +150411,7 @@ ${options.prefix}` : "\n" : options.prefix
150413
150411
  supportedLocaleDirectories: () => supportedLocaleDirectories,
150414
150412
  supportedTSExtensions: () => supportedTSExtensions,
150415
150413
  supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
150414
+ supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
150416
150415
  suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
150417
150416
  suppressLeadingTrivia: () => suppressLeadingTrivia,
150418
150417
  suppressTrailingTrivia: () => suppressTrailingTrivia,