typescript 5.0.0-dev.20221114 → 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.20221114`;
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;
36023
35966
  }
36024
- case 3 /* TSConfig */:
36025
- case 2 /* Json */:
36026
- return tryExtension(".json" /* Json */);
35967
+ if (extensions & 8 /* Json */) {
35968
+ candidate = originalCandidate;
35969
+ const result = tryExtension(".json" /* Json */);
35970
+ if (result)
35971
+ return result;
35972
+ }
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;
@@ -44082,25 +44027,22 @@ ${lanes.join("\n")}
44082
44027
  const context = {
44083
44028
  enclosingDeclaration,
44084
44029
  flags: flags || 0 /* None */,
44085
- tracker: tracker && tracker.trackSymbol ? tracker : {
44086
- trackSymbol: () => false,
44087
- moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
44088
- getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
44089
- getCurrentDirectory: () => host.getCurrentDirectory(),
44090
- getSymlinkCache: maybeBind(host, host.getSymlinkCache),
44091
- getPackageJsonInfoCache: () => {
44092
- var _a3;
44093
- return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
44094
- },
44095
- useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
44096
- redirectTargetsMap: host.redirectTargetsMap,
44097
- getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
44098
- isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
44099
- fileExists: (fileName) => host.fileExists(fileName),
44100
- getFileIncludeReasons: () => host.getFileIncludeReasons(),
44101
- readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
44102
- } : void 0
44103
- },
44030
+ tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: () => false, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
44031
+ getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
44032
+ getCurrentDirectory: () => host.getCurrentDirectory(),
44033
+ getSymlinkCache: maybeBind(host, host.getSymlinkCache),
44034
+ getPackageJsonInfoCache: () => {
44035
+ var _a3;
44036
+ return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
44037
+ },
44038
+ useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
44039
+ redirectTargetsMap: host.redirectTargetsMap,
44040
+ getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
44041
+ isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
44042
+ fileExists: (fileName) => host.fileExists(fileName),
44043
+ getFileIncludeReasons: () => host.getFileIncludeReasons(),
44044
+ readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
44045
+ } : void 0 },
44104
44046
  encounteredError: false,
44105
44047
  reportedDiagnostic: false,
44106
44048
  visitedTypes: void 0,
@@ -70476,8 +70418,9 @@ ${lanes.join("\n")}
70476
70418
  });
70477
70419
  const containsArguments = containsArgumentsReference(node);
70478
70420
  if (containsArguments) {
70479
- const lastJSDocParam = lastOrUndefined(jsdocParameters);
70480
- if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
70421
+ const lastJSDocParamIndex = jsdocParameters.length - 1;
70422
+ const lastJSDocParam = jsdocParameters[lastJSDocParamIndex];
70423
+ if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
70481
70424
  error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name));
70482
70425
  }
70483
70426
  } else {
@@ -76629,10 +76572,10 @@ ${lanes.join("\n")}
76629
76572
  nodeVisitor(node.initializer, visitor, isExpression)
76630
76573
  );
76631
76574
  },
76632
- [308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
76575
+ [308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
76633
76576
  return context.factory.updateSourceFile(
76634
76577
  node,
76635
- visitLexicalEnvironment(node.statements, visitor, context, void 0, void 0, nodesVisitor)
76578
+ visitLexicalEnvironment(node.statements, visitor, context)
76636
76579
  );
76637
76580
  },
76638
76581
  [353 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
@@ -94941,7 +94884,7 @@ ${lanes.join("\n")}
94941
94884
  const sourceMap = sourceMapGenerator.toString();
94942
94885
  writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap, false, sourceFiles);
94943
94886
  if (printer.bundleFileInfo)
94944
- printer.bundleFileInfo.mapHash = computeSignature(sourceMap, maybeBind(host, host.createHash));
94887
+ printer.bundleFileInfo.mapHash = computeSignature(sourceMap, host);
94945
94888
  }
94946
94889
  } else {
94947
94890
  writer.writeLine();
@@ -94949,7 +94892,7 @@ ${lanes.join("\n")}
94949
94892
  const text = writer.getText();
94950
94893
  writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform2.diagnostics });
94951
94894
  if (printer.bundleFileInfo)
94952
- printer.bundleFileInfo.hash = computeSignature(text, maybeBind(host, host.createHash));
94895
+ printer.bundleFileInfo.hash = computeSignature(text, host);
94953
94896
  writer.clear();
94954
94897
  }
94955
94898
  function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) {
@@ -95053,7 +94996,6 @@ ${lanes.join("\n")}
95053
94996
  return result;
95054
94997
  }
95055
94998
  function emitUsingBuildInfoWorker(config, host, getCommandLine, customTransformers) {
95056
- const createHash = maybeBind(host, host.createHash);
95057
94999
  const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle(config.options, false);
95058
95000
  const buildInfo = host.getBuildInfo(buildInfoPath, config.options.configFilePath);
95059
95001
  if (!buildInfo)
@@ -95063,22 +95005,22 @@ ${lanes.join("\n")}
95063
95005
  const jsFileText = host.readFile(Debug.checkDefined(jsFilePath));
95064
95006
  if (!jsFileText)
95065
95007
  return jsFilePath;
95066
- if (computeSignature(jsFileText, createHash) !== buildInfo.bundle.js.hash)
95008
+ if (computeSignature(jsFileText, host) !== buildInfo.bundle.js.hash)
95067
95009
  return jsFilePath;
95068
95010
  const sourceMapText = sourceMapFilePath && host.readFile(sourceMapFilePath);
95069
95011
  if (sourceMapFilePath && !sourceMapText || config.options.inlineSourceMap)
95070
95012
  return sourceMapFilePath || "inline sourcemap decoding";
95071
- if (sourceMapFilePath && computeSignature(sourceMapText, createHash) !== buildInfo.bundle.js.mapHash)
95013
+ if (sourceMapFilePath && computeSignature(sourceMapText, host) !== buildInfo.bundle.js.mapHash)
95072
95014
  return sourceMapFilePath;
95073
95015
  const declarationText = declarationFilePath && host.readFile(declarationFilePath);
95074
95016
  if (declarationFilePath && !declarationText)
95075
95017
  return declarationFilePath;
95076
- if (declarationFilePath && computeSignature(declarationText, createHash) !== buildInfo.bundle.dts.hash)
95018
+ if (declarationFilePath && computeSignature(declarationText, host) !== buildInfo.bundle.dts.hash)
95077
95019
  return declarationFilePath;
95078
95020
  const declarationMapText = declarationMapPath && host.readFile(declarationMapPath);
95079
95021
  if (declarationMapPath && !declarationMapText || config.options.inlineSourceMap)
95080
95022
  return declarationMapPath || "inline sourcemap decoding";
95081
- if (declarationMapPath && computeSignature(declarationMapText, createHash) !== buildInfo.bundle.dts.mapHash)
95023
+ if (declarationMapPath && computeSignature(declarationMapText, host) !== buildInfo.bundle.dts.mapHash)
95082
95024
  return declarationMapPath;
95083
95025
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
95084
95026
  const ownPrependInput = createInputFilesWithFileTexts(
@@ -95148,7 +95090,7 @@ ${lanes.join("\n")}
95148
95090
  getBuildInfo: (bundle) => {
95149
95091
  const program = buildInfo.program;
95150
95092
  if (program && changedDtsText !== void 0 && config.options.composite) {
95151
- program.outSignature = computeSignature(changedDtsText, createHash, changedDtsData);
95093
+ program.outSignature = computeSignature(changedDtsText, host, changedDtsData);
95152
95094
  }
95153
95095
  const { js, dts, sourceFiles } = buildInfo.bundle;
95154
95096
  bundle.js.sources = js.sources;
@@ -95161,7 +95103,7 @@ ${lanes.join("\n")}
95161
95103
  getSourceFileFromReference: returnUndefined,
95162
95104
  redirectTargetsMap: createMultiMap(),
95163
95105
  getFileIncludeReasons: notImplemented,
95164
- createHash
95106
+ createHash: maybeBind(host, host.createHash)
95165
95107
  };
95166
95108
  emitFiles(
95167
95109
  notImplementedResolver,
@@ -103356,7 +103298,7 @@ ${lanes.join("\n")}
103356
103298
  return oldState && !oldState.referencedMap === !newReferencedMap;
103357
103299
  }
103358
103300
  BuilderState2.canReuseOldState = canReuseOldState;
103359
- function create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
103301
+ function create(newProgram, oldState, disableUseFileVersionAsSignature) {
103360
103302
  var _a2, _b, _c;
103361
103303
  const fileInfos = /* @__PURE__ */ new Map();
103362
103304
  const options = newProgram.getCompilerOptions();
@@ -103364,6 +103306,7 @@ ${lanes.join("\n")}
103364
103306
  const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
103365
103307
  const exportedModulesMap = referencedMap ? createManyToManyPathMap() : void 0;
103366
103308
  const useOldState = canReuseOldState(referencedMap, oldState);
103309
+ const getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames());
103367
103310
  newProgram.getTypeChecker();
103368
103311
  for (const sourceFile of newProgram.getSourceFiles()) {
103369
103312
  const version2 = Debug.checkDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set");
@@ -103402,30 +103345,29 @@ ${lanes.join("\n")}
103402
103345
  state.allFileNames = void 0;
103403
103346
  }
103404
103347
  BuilderState2.releaseCache = releaseCache2;
103405
- function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, computeHash, getCanonicalFileName) {
103348
+ function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, host) {
103406
103349
  var _a2, _b;
103407
103350
  const result = getFilesAffectedByWithOldState(
103408
103351
  state,
103409
103352
  programOfThisState,
103410
103353
  path,
103411
103354
  cancellationToken,
103412
- computeHash,
103413
- getCanonicalFileName
103355
+ host
103414
103356
  );
103415
103357
  (_a2 = state.oldSignatures) == null ? void 0 : _a2.clear();
103416
103358
  (_b = state.oldExportedModulesMap) == null ? void 0 : _b.clear();
103417
103359
  return result;
103418
103360
  }
103419
103361
  BuilderState2.getFilesAffectedBy = getFilesAffectedBy;
103420
- function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, computeHash, getCanonicalFileName) {
103362
+ function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host) {
103421
103363
  const sourceFile = programOfThisState.getSourceFileByPath(path);
103422
103364
  if (!sourceFile) {
103423
103365
  return emptyArray;
103424
103366
  }
103425
- if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName)) {
103367
+ if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host)) {
103426
103368
  return [sourceFile];
103427
103369
  }
103428
- return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName);
103370
+ return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host);
103429
103371
  }
103430
103372
  BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
103431
103373
  function updateSignatureOfFile(state, signature, path) {
@@ -103433,7 +103375,7 @@ ${lanes.join("\n")}
103433
103375
  (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
103434
103376
  }
103435
103377
  BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
103436
- function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName, useFileVersionAsSignature = state.useFileVersionAsSignature) {
103378
+ function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) {
103437
103379
  var _a2;
103438
103380
  if ((_a2 = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a2.has(sourceFile.resolvedPath))
103439
103381
  return false;
@@ -103446,10 +103388,10 @@ ${lanes.join("\n")}
103446
103388
  (fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => {
103447
103389
  Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`);
103448
103390
  latestSignature = computeSignatureWithDiagnostics(
103391
+ programOfThisState,
103449
103392
  sourceFile,
103450
103393
  text,
103451
- computeHash,
103452
- getCanonicalFileName,
103394
+ host,
103453
103395
  data
103454
103396
  );
103455
103397
  if (latestSignature !== prevSignature) {
@@ -103588,7 +103530,7 @@ ${lanes.join("\n")}
103588
103530
  }
103589
103531
  return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
103590
103532
  }
103591
- function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, computeHash, getCanonicalFileName) {
103533
+ function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, host) {
103592
103534
  if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) {
103593
103535
  return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
103594
103536
  }
@@ -103604,7 +103546,7 @@ ${lanes.join("\n")}
103604
103546
  if (!seenFileNamesMap.has(currentPath)) {
103605
103547
  const currentSourceFile = programOfThisState.getSourceFileByPath(currentPath);
103606
103548
  seenFileNamesMap.set(currentPath, currentSourceFile);
103607
- if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, computeHash, getCanonicalFileName)) {
103549
+ if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, host)) {
103608
103550
  queue.push(...getReferencedByPaths(state, currentSourceFile.resolvedPath));
103609
103551
  }
103610
103552
  }
@@ -103648,9 +103590,9 @@ ${lanes.join("\n")}
103648
103590
  function hasSameKeys(map1, map2) {
103649
103591
  return map1 === map2 || map1 !== void 0 && map2 !== void 0 && map1.size === map2.size && !forEachKey(map1, (key) => !map2.has(key));
103650
103592
  }
103651
- function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
103593
+ function createBuilderProgramState(newProgram, oldState, disableUseFileVersionAsSignature) {
103652
103594
  var _a2, _b;
103653
- const state = BuilderState.create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature);
103595
+ const state = BuilderState.create(newProgram, oldState, disableUseFileVersionAsSignature);
103654
103596
  state.program = newProgram;
103655
103597
  const compilerOptions = newProgram.getCompilerOptions();
103656
103598
  state.compilerOptions = compilerOptions;
@@ -103694,7 +103636,7 @@ ${lanes.join("\n")}
103694
103636
  return;
103695
103637
  const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);
103696
103638
  if (diagnostics) {
103697
- state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) : diagnostics);
103639
+ state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram) : diagnostics);
103698
103640
  if (!state.semanticDiagnosticsFromOldState) {
103699
103641
  state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
103700
103642
  }
@@ -103754,10 +103696,11 @@ ${lanes.join("\n")}
103754
103696
  function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) {
103755
103697
  return !!options.declarationMap === !!oldOptions.declarationMap ? oldEmitSignature : isString(oldEmitSignature) ? [oldEmitSignature] : oldEmitSignature[0];
103756
103698
  }
103757
- function convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) {
103699
+ function convertToDiagnostics(diagnostics, newProgram) {
103758
103700
  if (!diagnostics.length)
103759
103701
  return emptyArray;
103760
- const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
103702
+ let buildInfoDirectory;
103703
+ let getCanonicalFileName;
103761
103704
  return diagnostics.map((diagnostic) => {
103762
103705
  const result = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3);
103763
103706
  result.reportsUnnecessary = diagnostic.reportsUnnecessary;
@@ -103769,7 +103712,8 @@ ${lanes.join("\n")}
103769
103712
  return result;
103770
103713
  });
103771
103714
  function toPath3(path) {
103772
- 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()));
103773
103717
  }
103774
103718
  }
103775
103719
  function convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3) {
@@ -103811,7 +103755,7 @@ ${lanes.join("\n")}
103811
103755
  function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) {
103812
103756
  Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath));
103813
103757
  }
103814
- function getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host) {
103758
+ function getNextAffectedFile(state, cancellationToken, host) {
103815
103759
  var _a2, _b;
103816
103760
  while (true) {
103817
103761
  const { affectedFiles } = state;
@@ -103827,8 +103771,6 @@ ${lanes.join("\n")}
103827
103771
  state,
103828
103772
  affectedFile,
103829
103773
  cancellationToken,
103830
- computeHash,
103831
- getCanonicalFileName,
103832
103774
  host
103833
103775
  );
103834
103776
  return affectedFile;
@@ -103856,8 +103798,7 @@ ${lanes.join("\n")}
103856
103798
  program,
103857
103799
  nextKey.value,
103858
103800
  cancellationToken,
103859
- computeHash,
103860
- getCanonicalFileName
103801
+ host
103861
103802
  );
103862
103803
  state.currentChangedFilePath = nextKey.value;
103863
103804
  state.affectedFilesIndex = 0;
@@ -103909,7 +103850,7 @@ ${lanes.join("\n")}
103909
103850
  );
103910
103851
  }
103911
103852
  }
103912
- function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, computeHash, getCanonicalFileName, host) {
103853
+ function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) {
103913
103854
  removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath);
103914
103855
  if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) {
103915
103856
  removeDiagnosticsOfLibraryFiles(state);
@@ -103918,8 +103859,7 @@ ${lanes.join("\n")}
103918
103859
  Debug.checkDefined(state.program),
103919
103860
  affectedFile,
103920
103861
  cancellationToken,
103921
- computeHash,
103922
- getCanonicalFileName
103862
+ host
103923
103863
  );
103924
103864
  return;
103925
103865
  }
@@ -103929,12 +103869,10 @@ ${lanes.join("\n")}
103929
103869
  state,
103930
103870
  affectedFile,
103931
103871
  cancellationToken,
103932
- computeHash,
103933
- getCanonicalFileName,
103934
103872
  host
103935
103873
  );
103936
103874
  }
103937
- function handleDtsMayChangeOf(state, path, cancellationToken, computeHash, getCanonicalFileName, host) {
103875
+ function handleDtsMayChangeOf(state, path, cancellationToken, host) {
103938
103876
  removeSemanticDiagnosticsOf(state, path);
103939
103877
  if (!state.changedFilesSet.has(path)) {
103940
103878
  const program = Debug.checkDefined(state.program);
@@ -103945,8 +103883,7 @@ ${lanes.join("\n")}
103945
103883
  program,
103946
103884
  sourceFile,
103947
103885
  cancellationToken,
103948
- computeHash,
103949
- getCanonicalFileName,
103886
+ host,
103950
103887
  !host.disableUseFileVersionAsSignature
103951
103888
  );
103952
103889
  if (getEmitDeclarations(state.compilerOptions)) {
@@ -103968,7 +103905,7 @@ ${lanes.join("\n")}
103968
103905
  const newSignature = Debug.checkDefined(state.fileInfos.get(path)).signature;
103969
103906
  return newSignature !== oldSignature;
103970
103907
  }
103971
- function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host) {
103908
+ function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host) {
103972
103909
  var _a2;
103973
103910
  if (!((_a2 = state.fileInfos.get(filePath)) == null ? void 0 : _a2.affectsGlobalScope))
103974
103911
  return false;
@@ -103976,14 +103913,12 @@ ${lanes.join("\n")}
103976
103913
  state,
103977
103914
  file.resolvedPath,
103978
103915
  cancellationToken,
103979
- computeHash,
103980
- getCanonicalFileName,
103981
103916
  host
103982
103917
  ));
103983
103918
  removeDiagnosticsOfLibraryFiles(state);
103984
103919
  return true;
103985
103920
  }
103986
- function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, computeHash, getCanonicalFileName, host) {
103921
+ function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host) {
103987
103922
  var _a2;
103988
103923
  if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.resolvedPath))
103989
103924
  return;
@@ -103997,9 +103932,9 @@ ${lanes.join("\n")}
103997
103932
  const currentPath = queue.pop();
103998
103933
  if (!seenFileNamesMap.has(currentPath)) {
103999
103934
  seenFileNamesMap.set(currentPath, true);
104000
- if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, computeHash, getCanonicalFileName, host))
103935
+ if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, host))
104001
103936
  return;
104002
- handleDtsMayChangeOf(state, currentPath, cancellationToken, computeHash, getCanonicalFileName, host);
103937
+ handleDtsMayChangeOf(state, currentPath, cancellationToken, host);
104003
103938
  if (isChangedSignature(state, currentPath)) {
104004
103939
  const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath);
104005
103940
  queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath));
@@ -104009,7 +103944,7 @@ ${lanes.join("\n")}
104009
103944
  }
104010
103945
  const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
104011
103946
  (_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
104012
- if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, computeHash, getCanonicalFileName, host))
103947
+ if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, host))
104013
103948
  return true;
104014
103949
  const references = state.referencedMap.getKeys(exportedFromPath);
104015
103950
  return references && forEachKey(
@@ -104019,28 +103954,24 @@ ${lanes.join("\n")}
104019
103954
  filePath,
104020
103955
  seenFileAndExportsOfFile,
104021
103956
  cancellationToken,
104022
- computeHash,
104023
- getCanonicalFileName,
104024
103957
  host
104025
103958
  )
104026
103959
  );
104027
103960
  });
104028
103961
  }
104029
- function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, computeHash, getCanonicalFileName, host) {
103962
+ function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, host) {
104030
103963
  var _a2, _b;
104031
103964
  if (!tryAddToSet(seenFileAndExportsOfFile, filePath))
104032
103965
  return void 0;
104033
- if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host))
103966
+ if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host))
104034
103967
  return true;
104035
- handleDtsMayChangeOf(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host);
103968
+ handleDtsMayChangeOf(state, filePath, cancellationToken, host);
104036
103969
  (_a2 = state.exportedModulesMap.getKeys(filePath)) == null ? void 0 : _a2.forEach(
104037
103970
  (exportedFromPath) => handleDtsMayChangeOfFileAndExportsOfFile(
104038
103971
  state,
104039
103972
  exportedFromPath,
104040
103973
  seenFileAndExportsOfFile,
104041
103974
  cancellationToken,
104042
- computeHash,
104043
- getCanonicalFileName,
104044
103975
  host
104045
103976
  )
104046
103977
  );
@@ -104049,8 +103980,6 @@ ${lanes.join("\n")}
104049
103980
  state,
104050
103981
  referencingFilePath,
104051
103982
  cancellationToken,
104052
- computeHash,
104053
- getCanonicalFileName,
104054
103983
  host
104055
103984
  )
104056
103985
  );
@@ -104079,9 +104008,10 @@ ${lanes.join("\n")}
104079
104008
  function isProgramBundleEmitBuildInfo(info) {
104080
104009
  return !!outFile(info.options || {});
104081
104010
  }
104082
- function getBuildInfo2(state, getCanonicalFileName, bundle) {
104011
+ function getBuildInfo2(state, bundle) {
104083
104012
  var _a2, _b, _c;
104084
104013
  const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory();
104014
+ const getCanonicalFileName = createGetCanonicalFileName(state.program.useCaseSensitiveFileNames());
104085
104015
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
104086
104016
  const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
104087
104017
  const fileNames = [];
@@ -104300,8 +104230,9 @@ ${lanes.join("\n")}
104300
104230
  function getTextHandlingSourceMapForSignature(text, data) {
104301
104231
  return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text;
104302
104232
  }
104303
- function computeSignatureWithDiagnostics(sourceFile, text, computeHash, getCanonicalFileName, data) {
104304
- var _a2;
104233
+ function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) {
104234
+ var _a2, _b;
104235
+ let getCanonicalFileName;
104305
104236
  text = getTextHandlingSourceMapForSignature(text, data);
104306
104237
  let sourceFileDirectory;
104307
104238
  if ((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length) {
@@ -104309,7 +104240,7 @@ ${lanes.join("\n")}
104309
104240
  (diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`
104310
104241
  ).join("\n");
104311
104242
  }
104312
- return (computeHash != null ? computeHash : generateDjb2Hash)(text);
104243
+ return ((_b = host.createHash) != null ? _b : generateDjb2Hash)(text);
104313
104244
  function flattenDiagnosticMessageText2(diagnostic) {
104314
104245
  return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? "" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText2).join("\n");
104315
104246
  }
@@ -104318,11 +104249,16 @@ ${lanes.join("\n")}
104318
104249
  return `(${diagnostic.start},${diagnostic.length})`;
104319
104250
  if (sourceFileDirectory === void 0)
104320
104251
  sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath);
104321
- 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})`;
104322
104257
  }
104323
104258
  }
104324
- function computeSignature(text, computeHash, data) {
104325
- 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));
104326
104262
  }
104327
104263
  function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) {
104328
104264
  let oldState = oldProgram && oldProgram.getState();
@@ -104331,10 +104267,8 @@ ${lanes.join("\n")}
104331
104267
  oldState = void 0;
104332
104268
  return oldProgram;
104333
104269
  }
104334
- const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
104335
- const computeHash = maybeBind(host, host.createHash);
104336
- const state = createBuilderProgramState(newProgram, getCanonicalFileName, oldState, host.disableUseFileVersionAsSignature);
104337
- newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, getCanonicalFileName, bundle);
104270
+ const state = createBuilderProgramState(newProgram, oldState, host.disableUseFileVersionAsSignature);
104271
+ newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, bundle);
104338
104272
  newProgram = void 0;
104339
104273
  oldProgram = void 0;
104340
104274
  oldState = void 0;
@@ -104368,7 +104302,7 @@ ${lanes.join("\n")}
104368
104302
  }
104369
104303
  function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
104370
104304
  var _a2, _b, _c, _d, _e;
104371
- let affected = getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host);
104305
+ let affected = getNextAffectedFile(state, cancellationToken, host);
104372
104306
  const programEmitKind = getBuilderFileEmit(state.compilerOptions);
104373
104307
  let emitKind = emitOnlyDtsFiles ? programEmitKind & 24 /* AllDts */ : programEmitKind;
104374
104308
  if (!affected) {
@@ -104442,10 +104376,10 @@ ${lanes.join("\n")}
104442
104376
  const info = state.fileInfos.get(file.resolvedPath);
104443
104377
  if (info.signature === file.version) {
104444
104378
  const signature = computeSignatureWithDiagnostics(
104379
+ state.program,
104445
104380
  file,
104446
104381
  text,
104447
- computeHash,
104448
- getCanonicalFileName,
104382
+ host,
104449
104383
  data
104450
104384
  );
104451
104385
  if (!((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length))
@@ -104489,7 +104423,7 @@ ${lanes.join("\n")}
104489
104423
  state.program.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
104490
104424
  function handleNewSignature(oldSignatureFormat, newSignature) {
104491
104425
  const oldSignature = !oldSignatureFormat || isString(oldSignatureFormat) ? oldSignatureFormat : oldSignatureFormat[0];
104492
- newSignature != null ? newSignature : newSignature = computeSignature(text, computeHash, data);
104426
+ newSignature != null ? newSignature : newSignature = computeSignature(text, host, data);
104493
104427
  if (newSignature === oldSignature) {
104494
104428
  if (oldSignatureFormat === oldSignature)
104495
104429
  return void 0;
@@ -104545,7 +104479,7 @@ ${lanes.join("\n")}
104545
104479
  }
104546
104480
  function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) {
104547
104481
  while (true) {
104548
- const affected = getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host);
104482
+ const affected = getNextAffectedFile(state, cancellationToken, host);
104549
104483
  let result;
104550
104484
  if (!affected)
104551
104485
  return void 0;
@@ -116414,6 +116348,7 @@ ${lanes.join("\n")}
116414
116348
  trace: maybeBind(host, host.trace),
116415
116349
  resolveModuleNames: maybeBind(host, host.resolveModuleNames),
116416
116350
  getModuleResolutionCache: maybeBind(host, host.getModuleResolutionCache),
116351
+ createHash: maybeBind(host, host.createHash),
116417
116352
  resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives),
116418
116353
  useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect),
116419
116354
  getParsedCommandLine
@@ -146918,6 +146853,63 @@ ${options.prefix}` : "\n" : options.prefix
146918
146853
  }
146919
146854
  });
146920
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
+
146921
146913
  // src/deprecatedCompat/deprecations.ts
146922
146914
  function createOverload(name, overloads, binder2, deprecations) {
146923
146915
  Object.defineProperty(call, "name", { ...Object.getOwnPropertyDescriptor(call, "name"), value: name });
@@ -146925,7 +146917,7 @@ ${options.prefix}` : "\n" : options.prefix
146925
146917
  for (const key of Object.keys(deprecations)) {
146926
146918
  const index = +key;
146927
146919
  if (!isNaN(index) && hasProperty(overloads, `${index}`)) {
146928
- overloads[index] = Debug.deprecate(overloads[index], { ...deprecations[index], name });
146920
+ overloads[index] = deprecate(overloads[index], { ...deprecations[index], name });
146929
146921
  }
146930
146922
  }
146931
146923
  }
@@ -146966,6 +146958,7 @@ ${options.prefix}` : "\n" : options.prefix
146966
146958
  "src/deprecatedCompat/deprecations.ts"() {
146967
146959
  "use strict";
146968
146960
  init_ts5();
146961
+ init_deprecate();
146969
146962
  }
146970
146963
  });
146971
146964
 
@@ -146975,337 +146968,338 @@ ${options.prefix}` : "\n" : options.prefix
146975
146968
  "src/deprecatedCompat/4.0/nodeFactoryTopLevelExports.ts"() {
146976
146969
  "use strict";
146977
146970
  init_ts5();
146971
+ init_deprecate();
146978
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." };
146979
- createNodeArray = Debug.deprecate(factory.createNodeArray, factoryDeprecation);
146980
- createNumericLiteral = Debug.deprecate(factory.createNumericLiteral, factoryDeprecation);
146981
- createBigIntLiteral = Debug.deprecate(factory.createBigIntLiteral, factoryDeprecation);
146982
- createStringLiteral = Debug.deprecate(factory.createStringLiteral, factoryDeprecation);
146983
- createStringLiteralFromNode = Debug.deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
146984
- createRegularExpressionLiteral = Debug.deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
146985
- createLoopVariable = Debug.deprecate(factory.createLoopVariable, factoryDeprecation);
146986
- createUniqueName = Debug.deprecate(factory.createUniqueName, factoryDeprecation);
146987
- createPrivateIdentifier = Debug.deprecate(factory.createPrivateIdentifier, factoryDeprecation);
146988
- createSuper = Debug.deprecate(factory.createSuper, factoryDeprecation);
146989
- createThis = Debug.deprecate(factory.createThis, factoryDeprecation);
146990
- createNull = Debug.deprecate(factory.createNull, factoryDeprecation);
146991
- createTrue = Debug.deprecate(factory.createTrue, factoryDeprecation);
146992
- createFalse = Debug.deprecate(factory.createFalse, factoryDeprecation);
146993
- createModifier = Debug.deprecate(factory.createModifier, factoryDeprecation);
146994
- createModifiersFromModifierFlags = Debug.deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
146995
- createQualifiedName = Debug.deprecate(factory.createQualifiedName, factoryDeprecation);
146996
- updateQualifiedName = Debug.deprecate(factory.updateQualifiedName, factoryDeprecation);
146997
- createComputedPropertyName = Debug.deprecate(factory.createComputedPropertyName, factoryDeprecation);
146998
- updateComputedPropertyName = Debug.deprecate(factory.updateComputedPropertyName, factoryDeprecation);
146999
- createTypeParameterDeclaration = Debug.deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
147000
- updateTypeParameterDeclaration = Debug.deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
147001
- createParameter = Debug.deprecate(factory.createParameterDeclaration, factoryDeprecation);
147002
- updateParameter = Debug.deprecate(factory.updateParameterDeclaration, factoryDeprecation);
147003
- createDecorator = Debug.deprecate(factory.createDecorator, factoryDeprecation);
147004
- updateDecorator = Debug.deprecate(factory.updateDecorator, factoryDeprecation);
147005
- createProperty = Debug.deprecate(factory.createPropertyDeclaration, factoryDeprecation);
147006
- updateProperty = Debug.deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
147007
- createMethod = Debug.deprecate(factory.createMethodDeclaration, factoryDeprecation);
147008
- updateMethod = Debug.deprecate(factory.updateMethodDeclaration, factoryDeprecation);
147009
- createConstructor = Debug.deprecate(factory.createConstructorDeclaration, factoryDeprecation);
147010
- updateConstructor = Debug.deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
147011
- createGetAccessor = Debug.deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
147012
- updateGetAccessor = Debug.deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
147013
- createSetAccessor = Debug.deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
147014
- updateSetAccessor = Debug.deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
147015
- createCallSignature = Debug.deprecate(factory.createCallSignature, factoryDeprecation);
147016
- updateCallSignature = Debug.deprecate(factory.updateCallSignature, factoryDeprecation);
147017
- createConstructSignature = Debug.deprecate(factory.createConstructSignature, factoryDeprecation);
147018
- updateConstructSignature = Debug.deprecate(factory.updateConstructSignature, factoryDeprecation);
147019
- updateIndexSignature = Debug.deprecate(factory.updateIndexSignature, factoryDeprecation);
147020
- createKeywordTypeNode = Debug.deprecate(factory.createKeywordTypeNode, factoryDeprecation);
147021
- createTypePredicateNodeWithModifier = Debug.deprecate(factory.createTypePredicateNode, factoryDeprecation);
147022
- updateTypePredicateNodeWithModifier = Debug.deprecate(factory.updateTypePredicateNode, factoryDeprecation);
147023
- createTypeReferenceNode = Debug.deprecate(factory.createTypeReferenceNode, factoryDeprecation);
147024
- updateTypeReferenceNode = Debug.deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
147025
- createFunctionTypeNode = Debug.deprecate(factory.createFunctionTypeNode, factoryDeprecation);
147026
- updateFunctionTypeNode = Debug.deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
147027
- 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) => {
147028
147022
  return factory.createConstructorTypeNode(void 0, typeParameters, parameters, type);
147029
147023
  }, factoryDeprecation);
147030
- updateConstructorTypeNode = Debug.deprecate((node, typeParameters, parameters, type) => {
147024
+ updateConstructorTypeNode = deprecate((node, typeParameters, parameters, type) => {
147031
147025
  return factory.updateConstructorTypeNode(node, node.modifiers, typeParameters, parameters, type);
147032
147026
  }, factoryDeprecation);
147033
- createTypeQueryNode = Debug.deprecate(factory.createTypeQueryNode, factoryDeprecation);
147034
- updateTypeQueryNode = Debug.deprecate(factory.updateTypeQueryNode, factoryDeprecation);
147035
- createTypeLiteralNode = Debug.deprecate(factory.createTypeLiteralNode, factoryDeprecation);
147036
- updateTypeLiteralNode = Debug.deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
147037
- createArrayTypeNode = Debug.deprecate(factory.createArrayTypeNode, factoryDeprecation);
147038
- updateArrayTypeNode = Debug.deprecate(factory.updateArrayTypeNode, factoryDeprecation);
147039
- createTupleTypeNode = Debug.deprecate(factory.createTupleTypeNode, factoryDeprecation);
147040
- updateTupleTypeNode = Debug.deprecate(factory.updateTupleTypeNode, factoryDeprecation);
147041
- createOptionalTypeNode = Debug.deprecate(factory.createOptionalTypeNode, factoryDeprecation);
147042
- updateOptionalTypeNode = Debug.deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
147043
- createRestTypeNode = Debug.deprecate(factory.createRestTypeNode, factoryDeprecation);
147044
- updateRestTypeNode = Debug.deprecate(factory.updateRestTypeNode, factoryDeprecation);
147045
- createUnionTypeNode = Debug.deprecate(factory.createUnionTypeNode, factoryDeprecation);
147046
- updateUnionTypeNode = Debug.deprecate(factory.updateUnionTypeNode, factoryDeprecation);
147047
- createIntersectionTypeNode = Debug.deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
147048
- updateIntersectionTypeNode = Debug.deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
147049
- createConditionalTypeNode = Debug.deprecate(factory.createConditionalTypeNode, factoryDeprecation);
147050
- updateConditionalTypeNode = Debug.deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
147051
- createInferTypeNode = Debug.deprecate(factory.createInferTypeNode, factoryDeprecation);
147052
- updateInferTypeNode = Debug.deprecate(factory.updateInferTypeNode, factoryDeprecation);
147053
- createImportTypeNode = Debug.deprecate(factory.createImportTypeNode, factoryDeprecation);
147054
- updateImportTypeNode = Debug.deprecate(factory.updateImportTypeNode, factoryDeprecation);
147055
- createParenthesizedType = Debug.deprecate(factory.createParenthesizedType, factoryDeprecation);
147056
- updateParenthesizedType = Debug.deprecate(factory.updateParenthesizedType, factoryDeprecation);
147057
- createThisTypeNode = Debug.deprecate(factory.createThisTypeNode, factoryDeprecation);
147058
- updateTypeOperatorNode = Debug.deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
147059
- createIndexedAccessTypeNode = Debug.deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
147060
- updateIndexedAccessTypeNode = Debug.deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
147061
- createMappedTypeNode = Debug.deprecate(factory.createMappedTypeNode, factoryDeprecation);
147062
- updateMappedTypeNode = Debug.deprecate(factory.updateMappedTypeNode, factoryDeprecation);
147063
- createLiteralTypeNode = Debug.deprecate(factory.createLiteralTypeNode, factoryDeprecation);
147064
- updateLiteralTypeNode = Debug.deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
147065
- createObjectBindingPattern = Debug.deprecate(factory.createObjectBindingPattern, factoryDeprecation);
147066
- updateObjectBindingPattern = Debug.deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
147067
- createArrayBindingPattern = Debug.deprecate(factory.createArrayBindingPattern, factoryDeprecation);
147068
- updateArrayBindingPattern = Debug.deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
147069
- createBindingElement = Debug.deprecate(factory.createBindingElement, factoryDeprecation);
147070
- updateBindingElement = Debug.deprecate(factory.updateBindingElement, factoryDeprecation);
147071
- createArrayLiteral = Debug.deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
147072
- updateArrayLiteral = Debug.deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
147073
- createObjectLiteral = Debug.deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
147074
- updateObjectLiteral = Debug.deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
147075
- createPropertyAccess = Debug.deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
147076
- updatePropertyAccess = Debug.deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
147077
- createPropertyAccessChain = Debug.deprecate(factory.createPropertyAccessChain, factoryDeprecation);
147078
- updatePropertyAccessChain = Debug.deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
147079
- createElementAccess = Debug.deprecate(factory.createElementAccessExpression, factoryDeprecation);
147080
- updateElementAccess = Debug.deprecate(factory.updateElementAccessExpression, factoryDeprecation);
147081
- createElementAccessChain = Debug.deprecate(factory.createElementAccessChain, factoryDeprecation);
147082
- updateElementAccessChain = Debug.deprecate(factory.updateElementAccessChain, factoryDeprecation);
147083
- createCall = Debug.deprecate(factory.createCallExpression, factoryDeprecation);
147084
- updateCall = Debug.deprecate(factory.updateCallExpression, factoryDeprecation);
147085
- createCallChain = Debug.deprecate(factory.createCallChain, factoryDeprecation);
147086
- updateCallChain = Debug.deprecate(factory.updateCallChain, factoryDeprecation);
147087
- createNew = Debug.deprecate(factory.createNewExpression, factoryDeprecation);
147088
- updateNew = Debug.deprecate(factory.updateNewExpression, factoryDeprecation);
147089
- createTypeAssertion = Debug.deprecate(factory.createTypeAssertion, factoryDeprecation);
147090
- updateTypeAssertion = Debug.deprecate(factory.updateTypeAssertion, factoryDeprecation);
147091
- createParen = Debug.deprecate(factory.createParenthesizedExpression, factoryDeprecation);
147092
- updateParen = Debug.deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
147093
- createFunctionExpression = Debug.deprecate(factory.createFunctionExpression, factoryDeprecation);
147094
- updateFunctionExpression = Debug.deprecate(factory.updateFunctionExpression, factoryDeprecation);
147095
- createDelete = Debug.deprecate(factory.createDeleteExpression, factoryDeprecation);
147096
- updateDelete = Debug.deprecate(factory.updateDeleteExpression, factoryDeprecation);
147097
- createTypeOf = Debug.deprecate(factory.createTypeOfExpression, factoryDeprecation);
147098
- updateTypeOf = Debug.deprecate(factory.updateTypeOfExpression, factoryDeprecation);
147099
- createVoid = Debug.deprecate(factory.createVoidExpression, factoryDeprecation);
147100
- updateVoid = Debug.deprecate(factory.updateVoidExpression, factoryDeprecation);
147101
- createAwait = Debug.deprecate(factory.createAwaitExpression, factoryDeprecation);
147102
- updateAwait = Debug.deprecate(factory.updateAwaitExpression, factoryDeprecation);
147103
- createPrefix = Debug.deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
147104
- updatePrefix = Debug.deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
147105
- createPostfix = Debug.deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
147106
- updatePostfix = Debug.deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
147107
- createBinary = Debug.deprecate(factory.createBinaryExpression, factoryDeprecation);
147108
- updateConditional = Debug.deprecate(factory.updateConditionalExpression, factoryDeprecation);
147109
- createTemplateExpression = Debug.deprecate(factory.createTemplateExpression, factoryDeprecation);
147110
- updateTemplateExpression = Debug.deprecate(factory.updateTemplateExpression, factoryDeprecation);
147111
- createTemplateHead = Debug.deprecate(factory.createTemplateHead, factoryDeprecation);
147112
- createTemplateMiddle = Debug.deprecate(factory.createTemplateMiddle, factoryDeprecation);
147113
- createTemplateTail = Debug.deprecate(factory.createTemplateTail, factoryDeprecation);
147114
- createNoSubstitutionTemplateLiteral = Debug.deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
147115
- updateYield = Debug.deprecate(factory.updateYieldExpression, factoryDeprecation);
147116
- createSpread = Debug.deprecate(factory.createSpreadElement, factoryDeprecation);
147117
- updateSpread = Debug.deprecate(factory.updateSpreadElement, factoryDeprecation);
147118
- createOmittedExpression = Debug.deprecate(factory.createOmittedExpression, factoryDeprecation);
147119
- createAsExpression = Debug.deprecate(factory.createAsExpression, factoryDeprecation);
147120
- updateAsExpression = Debug.deprecate(factory.updateAsExpression, factoryDeprecation);
147121
- createNonNullExpression = Debug.deprecate(factory.createNonNullExpression, factoryDeprecation);
147122
- updateNonNullExpression = Debug.deprecate(factory.updateNonNullExpression, factoryDeprecation);
147123
- createNonNullChain = Debug.deprecate(factory.createNonNullChain, factoryDeprecation);
147124
- updateNonNullChain = Debug.deprecate(factory.updateNonNullChain, factoryDeprecation);
147125
- createMetaProperty = Debug.deprecate(factory.createMetaProperty, factoryDeprecation);
147126
- updateMetaProperty = Debug.deprecate(factory.updateMetaProperty, factoryDeprecation);
147127
- createTemplateSpan = Debug.deprecate(factory.createTemplateSpan, factoryDeprecation);
147128
- updateTemplateSpan = Debug.deprecate(factory.updateTemplateSpan, factoryDeprecation);
147129
- createSemicolonClassElement = Debug.deprecate(factory.createSemicolonClassElement, factoryDeprecation);
147130
- createBlock = Debug.deprecate(factory.createBlock, factoryDeprecation);
147131
- updateBlock = Debug.deprecate(factory.updateBlock, factoryDeprecation);
147132
- createVariableStatement = Debug.deprecate(factory.createVariableStatement, factoryDeprecation);
147133
- updateVariableStatement = Debug.deprecate(factory.updateVariableStatement, factoryDeprecation);
147134
- createEmptyStatement = Debug.deprecate(factory.createEmptyStatement, factoryDeprecation);
147135
- createExpressionStatement = Debug.deprecate(factory.createExpressionStatement, factoryDeprecation);
147136
- updateExpressionStatement = Debug.deprecate(factory.updateExpressionStatement, factoryDeprecation);
147137
- createStatement = Debug.deprecate(factory.createExpressionStatement, factoryDeprecation);
147138
- updateStatement = Debug.deprecate(factory.updateExpressionStatement, factoryDeprecation);
147139
- createIf = Debug.deprecate(factory.createIfStatement, factoryDeprecation);
147140
- updateIf = Debug.deprecate(factory.updateIfStatement, factoryDeprecation);
147141
- createDo = Debug.deprecate(factory.createDoStatement, factoryDeprecation);
147142
- updateDo = Debug.deprecate(factory.updateDoStatement, factoryDeprecation);
147143
- createWhile = Debug.deprecate(factory.createWhileStatement, factoryDeprecation);
147144
- updateWhile = Debug.deprecate(factory.updateWhileStatement, factoryDeprecation);
147145
- createFor = Debug.deprecate(factory.createForStatement, factoryDeprecation);
147146
- updateFor = Debug.deprecate(factory.updateForStatement, factoryDeprecation);
147147
- createForIn = Debug.deprecate(factory.createForInStatement, factoryDeprecation);
147148
- updateForIn = Debug.deprecate(factory.updateForInStatement, factoryDeprecation);
147149
- createForOf = Debug.deprecate(factory.createForOfStatement, factoryDeprecation);
147150
- updateForOf = Debug.deprecate(factory.updateForOfStatement, factoryDeprecation);
147151
- createContinue = Debug.deprecate(factory.createContinueStatement, factoryDeprecation);
147152
- updateContinue = Debug.deprecate(factory.updateContinueStatement, factoryDeprecation);
147153
- createBreak = Debug.deprecate(factory.createBreakStatement, factoryDeprecation);
147154
- updateBreak = Debug.deprecate(factory.updateBreakStatement, factoryDeprecation);
147155
- createReturn = Debug.deprecate(factory.createReturnStatement, factoryDeprecation);
147156
- updateReturn = Debug.deprecate(factory.updateReturnStatement, factoryDeprecation);
147157
- createWith = Debug.deprecate(factory.createWithStatement, factoryDeprecation);
147158
- updateWith = Debug.deprecate(factory.updateWithStatement, factoryDeprecation);
147159
- createSwitch = Debug.deprecate(factory.createSwitchStatement, factoryDeprecation);
147160
- updateSwitch = Debug.deprecate(factory.updateSwitchStatement, factoryDeprecation);
147161
- createLabel = Debug.deprecate(factory.createLabeledStatement, factoryDeprecation);
147162
- updateLabel = Debug.deprecate(factory.updateLabeledStatement, factoryDeprecation);
147163
- createThrow = Debug.deprecate(factory.createThrowStatement, factoryDeprecation);
147164
- updateThrow = Debug.deprecate(factory.updateThrowStatement, factoryDeprecation);
147165
- createTry = Debug.deprecate(factory.createTryStatement, factoryDeprecation);
147166
- updateTry = Debug.deprecate(factory.updateTryStatement, factoryDeprecation);
147167
- createDebuggerStatement = Debug.deprecate(factory.createDebuggerStatement, factoryDeprecation);
147168
- createVariableDeclarationList = Debug.deprecate(factory.createVariableDeclarationList, factoryDeprecation);
147169
- updateVariableDeclarationList = Debug.deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
147170
- createFunctionDeclaration = Debug.deprecate(factory.createFunctionDeclaration, factoryDeprecation);
147171
- updateFunctionDeclaration = Debug.deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
147172
- createClassDeclaration = Debug.deprecate(factory.createClassDeclaration, factoryDeprecation);
147173
- updateClassDeclaration = Debug.deprecate(factory.updateClassDeclaration, factoryDeprecation);
147174
- createInterfaceDeclaration = Debug.deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
147175
- updateInterfaceDeclaration = Debug.deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
147176
- createTypeAliasDeclaration = Debug.deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
147177
- updateTypeAliasDeclaration = Debug.deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
147178
- createEnumDeclaration = Debug.deprecate(factory.createEnumDeclaration, factoryDeprecation);
147179
- updateEnumDeclaration = Debug.deprecate(factory.updateEnumDeclaration, factoryDeprecation);
147180
- createModuleDeclaration = Debug.deprecate(factory.createModuleDeclaration, factoryDeprecation);
147181
- updateModuleDeclaration = Debug.deprecate(factory.updateModuleDeclaration, factoryDeprecation);
147182
- createModuleBlock = Debug.deprecate(factory.createModuleBlock, factoryDeprecation);
147183
- updateModuleBlock = Debug.deprecate(factory.updateModuleBlock, factoryDeprecation);
147184
- createCaseBlock = Debug.deprecate(factory.createCaseBlock, factoryDeprecation);
147185
- updateCaseBlock = Debug.deprecate(factory.updateCaseBlock, factoryDeprecation);
147186
- createNamespaceExportDeclaration = Debug.deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
147187
- updateNamespaceExportDeclaration = Debug.deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
147188
- createImportEqualsDeclaration = Debug.deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
147189
- updateImportEqualsDeclaration = Debug.deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
147190
- createImportDeclaration = Debug.deprecate(factory.createImportDeclaration, factoryDeprecation);
147191
- updateImportDeclaration = Debug.deprecate(factory.updateImportDeclaration, factoryDeprecation);
147192
- createNamespaceImport = Debug.deprecate(factory.createNamespaceImport, factoryDeprecation);
147193
- updateNamespaceImport = Debug.deprecate(factory.updateNamespaceImport, factoryDeprecation);
147194
- createNamedImports = Debug.deprecate(factory.createNamedImports, factoryDeprecation);
147195
- updateNamedImports = Debug.deprecate(factory.updateNamedImports, factoryDeprecation);
147196
- createImportSpecifier = Debug.deprecate(factory.createImportSpecifier, factoryDeprecation);
147197
- updateImportSpecifier = Debug.deprecate(factory.updateImportSpecifier, factoryDeprecation);
147198
- createExportAssignment2 = Debug.deprecate(factory.createExportAssignment, factoryDeprecation);
147199
- updateExportAssignment = Debug.deprecate(factory.updateExportAssignment, factoryDeprecation);
147200
- createNamedExports = Debug.deprecate(factory.createNamedExports, factoryDeprecation);
147201
- updateNamedExports = Debug.deprecate(factory.updateNamedExports, factoryDeprecation);
147202
- createExportSpecifier = Debug.deprecate(factory.createExportSpecifier, factoryDeprecation);
147203
- updateExportSpecifier = Debug.deprecate(factory.updateExportSpecifier, factoryDeprecation);
147204
- createExternalModuleReference = Debug.deprecate(factory.createExternalModuleReference, factoryDeprecation);
147205
- updateExternalModuleReference = Debug.deprecate(factory.updateExternalModuleReference, factoryDeprecation);
147206
- createJSDocTypeExpression = Debug.deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
147207
- createJSDocTypeTag = Debug.deprecate(factory.createJSDocTypeTag, factoryDeprecation);
147208
- createJSDocReturnTag = Debug.deprecate(factory.createJSDocReturnTag, factoryDeprecation);
147209
- createJSDocThisTag = Debug.deprecate(factory.createJSDocThisTag, factoryDeprecation);
147210
- createJSDocComment = Debug.deprecate(factory.createJSDocComment, factoryDeprecation);
147211
- createJSDocParameterTag = Debug.deprecate(factory.createJSDocParameterTag, factoryDeprecation);
147212
- createJSDocClassTag = Debug.deprecate(factory.createJSDocClassTag, factoryDeprecation);
147213
- createJSDocAugmentsTag = Debug.deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
147214
- createJSDocEnumTag = Debug.deprecate(factory.createJSDocEnumTag, factoryDeprecation);
147215
- createJSDocTemplateTag = Debug.deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
147216
- createJSDocTypedefTag = Debug.deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
147217
- createJSDocCallbackTag = Debug.deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
147218
- createJSDocSignature = Debug.deprecate(factory.createJSDocSignature, factoryDeprecation);
147219
- createJSDocPropertyTag = Debug.deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
147220
- createJSDocTypeLiteral = Debug.deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
147221
- createJSDocImplementsTag = Debug.deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
147222
- createJSDocAuthorTag = Debug.deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
147223
- createJSDocPublicTag = Debug.deprecate(factory.createJSDocPublicTag, factoryDeprecation);
147224
- createJSDocPrivateTag = Debug.deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
147225
- createJSDocProtectedTag = Debug.deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
147226
- createJSDocReadonlyTag = Debug.deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
147227
- createJSDocTag = Debug.deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
147228
- createJsxElement = Debug.deprecate(factory.createJsxElement, factoryDeprecation);
147229
- updateJsxElement = Debug.deprecate(factory.updateJsxElement, factoryDeprecation);
147230
- createJsxSelfClosingElement = Debug.deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
147231
- updateJsxSelfClosingElement = Debug.deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
147232
- createJsxOpeningElement = Debug.deprecate(factory.createJsxOpeningElement, factoryDeprecation);
147233
- updateJsxOpeningElement = Debug.deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
147234
- createJsxClosingElement = Debug.deprecate(factory.createJsxClosingElement, factoryDeprecation);
147235
- updateJsxClosingElement = Debug.deprecate(factory.updateJsxClosingElement, factoryDeprecation);
147236
- createJsxFragment = Debug.deprecate(factory.createJsxFragment, factoryDeprecation);
147237
- createJsxText = Debug.deprecate(factory.createJsxText, factoryDeprecation);
147238
- updateJsxText = Debug.deprecate(factory.updateJsxText, factoryDeprecation);
147239
- createJsxOpeningFragment = Debug.deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
147240
- createJsxJsxClosingFragment = Debug.deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
147241
- updateJsxFragment = Debug.deprecate(factory.updateJsxFragment, factoryDeprecation);
147242
- createJsxAttribute = Debug.deprecate(factory.createJsxAttribute, factoryDeprecation);
147243
- updateJsxAttribute = Debug.deprecate(factory.updateJsxAttribute, factoryDeprecation);
147244
- createJsxAttributes = Debug.deprecate(factory.createJsxAttributes, factoryDeprecation);
147245
- updateJsxAttributes = Debug.deprecate(factory.updateJsxAttributes, factoryDeprecation);
147246
- createJsxSpreadAttribute = Debug.deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
147247
- updateJsxSpreadAttribute = Debug.deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
147248
- createJsxExpression = Debug.deprecate(factory.createJsxExpression, factoryDeprecation);
147249
- updateJsxExpression = Debug.deprecate(factory.updateJsxExpression, factoryDeprecation);
147250
- createCaseClause = Debug.deprecate(factory.createCaseClause, factoryDeprecation);
147251
- updateCaseClause = Debug.deprecate(factory.updateCaseClause, factoryDeprecation);
147252
- createDefaultClause = Debug.deprecate(factory.createDefaultClause, factoryDeprecation);
147253
- updateDefaultClause = Debug.deprecate(factory.updateDefaultClause, factoryDeprecation);
147254
- createHeritageClause = Debug.deprecate(factory.createHeritageClause, factoryDeprecation);
147255
- updateHeritageClause = Debug.deprecate(factory.updateHeritageClause, factoryDeprecation);
147256
- createCatchClause = Debug.deprecate(factory.createCatchClause, factoryDeprecation);
147257
- updateCatchClause = Debug.deprecate(factory.updateCatchClause, factoryDeprecation);
147258
- createPropertyAssignment = Debug.deprecate(factory.createPropertyAssignment, factoryDeprecation);
147259
- updatePropertyAssignment = Debug.deprecate(factory.updatePropertyAssignment, factoryDeprecation);
147260
- createShorthandPropertyAssignment = Debug.deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
147261
- updateShorthandPropertyAssignment = Debug.deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
147262
- createSpreadAssignment = Debug.deprecate(factory.createSpreadAssignment, factoryDeprecation);
147263
- updateSpreadAssignment = Debug.deprecate(factory.updateSpreadAssignment, factoryDeprecation);
147264
- createEnumMember = Debug.deprecate(factory.createEnumMember, factoryDeprecation);
147265
- updateEnumMember = Debug.deprecate(factory.updateEnumMember, factoryDeprecation);
147266
- updateSourceFileNode = Debug.deprecate(factory.updateSourceFile, factoryDeprecation);
147267
- createNotEmittedStatement = Debug.deprecate(factory.createNotEmittedStatement, factoryDeprecation);
147268
- createPartiallyEmittedExpression = Debug.deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
147269
- updatePartiallyEmittedExpression = Debug.deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
147270
- createCommaList = Debug.deprecate(factory.createCommaListExpression, factoryDeprecation);
147271
- updateCommaList = Debug.deprecate(factory.updateCommaListExpression, factoryDeprecation);
147272
- createBundle = Debug.deprecate(factory.createBundle, factoryDeprecation);
147273
- updateBundle = Debug.deprecate(factory.updateBundle, factoryDeprecation);
147274
- createImmediatelyInvokedFunctionExpression = Debug.deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
147275
- createImmediatelyInvokedArrowFunction = Debug.deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
147276
- createVoidZero = Debug.deprecate(factory.createVoidZero, factoryDeprecation);
147277
- createExportDefault = Debug.deprecate(factory.createExportDefault, factoryDeprecation);
147278
- createExternalModuleExport = Debug.deprecate(factory.createExternalModuleExport, factoryDeprecation);
147279
- createNamespaceExport = Debug.deprecate(factory.createNamespaceExport, factoryDeprecation);
147280
- updateNamespaceExport = Debug.deprecate(factory.updateNamespaceExport, factoryDeprecation);
147281
- 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) {
147282
147276
  return factory.createToken(kind);
147283
147277
  }, factoryDeprecation);
147284
- createIdentifier = Debug.deprecate(function createIdentifier2(text) {
147278
+ createIdentifier = deprecate(function createIdentifier2(text) {
147285
147279
  return factory.createIdentifier(text, void 0, void 0);
147286
147280
  }, factoryDeprecation);
147287
- createTempVariable = Debug.deprecate(function createTempVariable2(recordTempVariable) {
147281
+ createTempVariable = deprecate(function createTempVariable2(recordTempVariable) {
147288
147282
  return factory.createTempVariable(recordTempVariable, void 0);
147289
147283
  }, factoryDeprecation);
147290
- getGeneratedNameForNode = Debug.deprecate(function getGeneratedNameForNode2(node) {
147284
+ getGeneratedNameForNode = deprecate(function getGeneratedNameForNode2(node) {
147291
147285
  return factory.getGeneratedNameForNode(node, void 0);
147292
147286
  }, factoryDeprecation);
147293
- createOptimisticUniqueName = Debug.deprecate(function createOptimisticUniqueName2(text) {
147287
+ createOptimisticUniqueName = deprecate(function createOptimisticUniqueName2(text) {
147294
147288
  return factory.createUniqueName(text, 16 /* Optimistic */);
147295
147289
  }, factoryDeprecation);
147296
- createFileLevelUniqueName = Debug.deprecate(function createFileLevelUniqueName2(text) {
147290
+ createFileLevelUniqueName = deprecate(function createFileLevelUniqueName2(text) {
147297
147291
  return factory.createUniqueName(text, 16 /* Optimistic */ | 32 /* FileLevel */);
147298
147292
  }, factoryDeprecation);
147299
- createIndexSignature = Debug.deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
147293
+ createIndexSignature = deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
147300
147294
  return factory.createIndexSignature(decorators, modifiers, parameters, type);
147301
147295
  }, factoryDeprecation);
147302
- createTypePredicateNode = Debug.deprecate(function createTypePredicateNode2(parameterName, type) {
147296
+ createTypePredicateNode = deprecate(function createTypePredicateNode2(parameterName, type) {
147303
147297
  return factory.createTypePredicateNode(void 0, parameterName, type);
147304
147298
  }, factoryDeprecation);
147305
- updateTypePredicateNode = Debug.deprecate(function updateTypePredicateNode2(node, parameterName, type) {
147299
+ updateTypePredicateNode = deprecate(function updateTypePredicateNode2(node, parameterName, type) {
147306
147300
  return factory.updateTypePredicateNode(node, void 0, parameterName, type);
147307
147301
  }, factoryDeprecation);
147308
- createLiteral = Debug.deprecate(function createLiteral2(value) {
147302
+ createLiteral = deprecate(function createLiteral2(value) {
147309
147303
  if (typeof value === "number") {
147310
147304
  return factory.createNumericLiteral(value);
147311
147305
  }
@@ -147320,13 +147314,13 @@ ${options.prefix}` : "\n" : options.prefix
147320
147314
  }
147321
147315
  return factory.createStringLiteralFromNode(value);
147322
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." });
147323
- createMethodSignature = Debug.deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
147317
+ createMethodSignature = deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
147324
147318
  return factory.createMethodSignature(void 0, name, questionToken, typeParameters, parameters, type);
147325
147319
  }, factoryDeprecation);
147326
- updateMethodSignature = Debug.deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
147320
+ updateMethodSignature = deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
147327
147321
  return factory.updateMethodSignature(node, node.modifiers, name, questionToken, typeParameters, parameters, type);
147328
147322
  }, factoryDeprecation);
147329
- createTypeOperatorNode = Debug.deprecate(function createTypeOperatorNode2(operatorOrType, type) {
147323
+ createTypeOperatorNode = deprecate(function createTypeOperatorNode2(operatorOrType, type) {
147330
147324
  let operator;
147331
147325
  if (type) {
147332
147326
  operator = operatorOrType;
@@ -147336,7 +147330,7 @@ ${options.prefix}` : "\n" : options.prefix
147336
147330
  }
147337
147331
  return factory.createTypeOperatorNode(operator, type);
147338
147332
  }, factoryDeprecation);
147339
- createTaggedTemplate = Debug.deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
147333
+ createTaggedTemplate = deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
147340
147334
  let typeArguments;
147341
147335
  if (template) {
147342
147336
  typeArguments = typeArgumentsOrTemplate;
@@ -147345,7 +147339,7 @@ ${options.prefix}` : "\n" : options.prefix
147345
147339
  }
147346
147340
  return factory.createTaggedTemplateExpression(tag, typeArguments, template);
147347
147341
  }, factoryDeprecation);
147348
- updateTaggedTemplate = Debug.deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
147342
+ updateTaggedTemplate = deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
147349
147343
  let typeArguments;
147350
147344
  if (template) {
147351
147345
  typeArguments = typeArgumentsOrTemplate;
@@ -147354,16 +147348,16 @@ ${options.prefix}` : "\n" : options.prefix
147354
147348
  }
147355
147349
  return factory.updateTaggedTemplateExpression(node, tag, typeArguments, template);
147356
147350
  }, factoryDeprecation);
147357
- updateBinary = Debug.deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
147351
+ updateBinary = deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
147358
147352
  if (typeof operator === "number") {
147359
147353
  operator = operator === node.operatorToken.kind ? node.operatorToken : factory.createToken(operator);
147360
147354
  }
147361
147355
  return factory.updateBinaryExpression(node, left, operator, right);
147362
147356
  }, factoryDeprecation);
147363
- createConditional = Debug.deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
147357
+ createConditional = deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
147364
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");
147365
147359
  }, factoryDeprecation);
147366
- createYield = Debug.deprecate(function createYield2(asteriskTokenOrExpression, expression) {
147360
+ createYield = deprecate(function createYield2(asteriskTokenOrExpression, expression) {
147367
147361
  let asteriskToken;
147368
147362
  if (expression) {
147369
147363
  asteriskToken = asteriskTokenOrExpression;
@@ -147372,18 +147366,18 @@ ${options.prefix}` : "\n" : options.prefix
147372
147366
  }
147373
147367
  return factory.createYieldExpression(asteriskToken, expression);
147374
147368
  }, factoryDeprecation);
147375
- createClassExpression = Debug.deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
147369
+ createClassExpression = deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
147376
147370
  return factory.createClassExpression(void 0, modifiers, name, typeParameters, heritageClauses, members);
147377
147371
  }, factoryDeprecation);
147378
- updateClassExpression = Debug.deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
147372
+ updateClassExpression = deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
147379
147373
  return factory.updateClassExpression(node, void 0, modifiers, name, typeParameters, heritageClauses, members);
147380
147374
  }, factoryDeprecation);
147381
- createPropertySignature = Debug.deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
147375
+ createPropertySignature = deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
147382
147376
  const node = factory.createPropertySignature(modifiers, name, questionToken, type);
147383
147377
  node.initializer = initializer;
147384
147378
  return node;
147385
147379
  }, factoryDeprecation);
147386
- updatePropertySignature = Debug.deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
147380
+ updatePropertySignature = deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
147387
147381
  let updated = factory.updatePropertySignature(node, modifiers, name, questionToken, type);
147388
147382
  if (node.initializer !== initializer) {
147389
147383
  if (updated === node) {
@@ -147393,80 +147387,80 @@ ${options.prefix}` : "\n" : options.prefix
147393
147387
  }
147394
147388
  return updated;
147395
147389
  }, factoryDeprecation);
147396
- createExpressionWithTypeArguments = Debug.deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
147390
+ createExpressionWithTypeArguments = deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
147397
147391
  return factory.createExpressionWithTypeArguments(expression, typeArguments);
147398
147392
  }, factoryDeprecation);
147399
- updateExpressionWithTypeArguments = Debug.deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
147393
+ updateExpressionWithTypeArguments = deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
147400
147394
  return factory.updateExpressionWithTypeArguments(node, expression, typeArguments);
147401
147395
  }, factoryDeprecation);
147402
- createArrowFunction = Debug.deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
147396
+ createArrowFunction = deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
147403
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");
147404
147398
  }, factoryDeprecation);
147405
- updateArrowFunction = Debug.deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
147399
+ updateArrowFunction = deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
147406
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");
147407
147401
  }, factoryDeprecation);
147408
- createVariableDeclaration = Debug.deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
147402
+ createVariableDeclaration = deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
147409
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");
147410
147404
  }, factoryDeprecation);
147411
- updateVariableDeclaration = Debug.deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
147405
+ updateVariableDeclaration = deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
147412
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");
147413
147407
  }, factoryDeprecation);
147414
- createImportClause = Debug.deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
147408
+ createImportClause = deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
147415
147409
  return factory.createImportClause(isTypeOnly, name, namedBindings);
147416
147410
  }, factoryDeprecation);
147417
- updateImportClause = Debug.deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
147411
+ updateImportClause = deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
147418
147412
  return factory.updateImportClause(node, isTypeOnly, name, namedBindings);
147419
147413
  }, factoryDeprecation);
147420
- createExportDeclaration = Debug.deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
147414
+ createExportDeclaration = deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
147421
147415
  return factory.createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);
147422
147416
  }, factoryDeprecation);
147423
- updateExportDeclaration = Debug.deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
147417
+ updateExportDeclaration = deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
147424
147418
  return factory.updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, node.assertClause);
147425
147419
  }, factoryDeprecation);
147426
- createJSDocParamTag = Debug.deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
147420
+ createJSDocParamTag = deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
147427
147421
  return factory.createJSDocParameterTag(void 0, name, isBracketed, typeExpression, false, comment ? factory.createNodeArray([factory.createJSDocText(comment)]) : void 0);
147428
147422
  }, factoryDeprecation);
147429
- createComma = Debug.deprecate(function createComma2(left, right) {
147423
+ createComma = deprecate(function createComma2(left, right) {
147430
147424
  return factory.createComma(left, right);
147431
147425
  }, factoryDeprecation);
147432
- createLessThan = Debug.deprecate(function createLessThan2(left, right) {
147426
+ createLessThan = deprecate(function createLessThan2(left, right) {
147433
147427
  return factory.createLessThan(left, right);
147434
147428
  }, factoryDeprecation);
147435
- createAssignment = Debug.deprecate(function createAssignment2(left, right) {
147429
+ createAssignment = deprecate(function createAssignment2(left, right) {
147436
147430
  return factory.createAssignment(left, right);
147437
147431
  }, factoryDeprecation);
147438
- createStrictEquality = Debug.deprecate(function createStrictEquality2(left, right) {
147432
+ createStrictEquality = deprecate(function createStrictEquality2(left, right) {
147439
147433
  return factory.createStrictEquality(left, right);
147440
147434
  }, factoryDeprecation);
147441
- createStrictInequality = Debug.deprecate(function createStrictInequality2(left, right) {
147435
+ createStrictInequality = deprecate(function createStrictInequality2(left, right) {
147442
147436
  return factory.createStrictInequality(left, right);
147443
147437
  }, factoryDeprecation);
147444
- createAdd = Debug.deprecate(function createAdd2(left, right) {
147438
+ createAdd = deprecate(function createAdd2(left, right) {
147445
147439
  return factory.createAdd(left, right);
147446
147440
  }, factoryDeprecation);
147447
- createSubtract = Debug.deprecate(function createSubtract2(left, right) {
147441
+ createSubtract = deprecate(function createSubtract2(left, right) {
147448
147442
  return factory.createSubtract(left, right);
147449
147443
  }, factoryDeprecation);
147450
- createLogicalAnd = Debug.deprecate(function createLogicalAnd2(left, right) {
147444
+ createLogicalAnd = deprecate(function createLogicalAnd2(left, right) {
147451
147445
  return factory.createLogicalAnd(left, right);
147452
147446
  }, factoryDeprecation);
147453
- createLogicalOr = Debug.deprecate(function createLogicalOr2(left, right) {
147447
+ createLogicalOr = deprecate(function createLogicalOr2(left, right) {
147454
147448
  return factory.createLogicalOr(left, right);
147455
147449
  }, factoryDeprecation);
147456
- createPostfixIncrement = Debug.deprecate(function createPostfixIncrement2(operand) {
147450
+ createPostfixIncrement = deprecate(function createPostfixIncrement2(operand) {
147457
147451
  return factory.createPostfixIncrement(operand);
147458
147452
  }, factoryDeprecation);
147459
- createLogicalNot = Debug.deprecate(function createLogicalNot2(operand) {
147453
+ createLogicalNot = deprecate(function createLogicalNot2(operand) {
147460
147454
  return factory.createLogicalNot(operand);
147461
147455
  }, factoryDeprecation);
147462
- createNode2 = Debug.deprecate(function createNode3(kind, pos = 0, end = 0) {
147456
+ createNode2 = deprecate(function createNode3(kind, pos = 0, end = 0) {
147463
147457
  return setTextRangePosEnd(
147464
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),
147465
147459
  pos,
147466
147460
  end
147467
147461
  );
147468
147462
  }, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory` method instead." });
147469
- getMutableClone = Debug.deprecate(function getMutableClone2(node) {
147463
+ getMutableClone = deprecate(function getMutableClone2(node) {
147470
147464
  const clone2 = factory.cloneNode(node);
147471
147465
  setTextRange(clone2, node);
147472
147466
  setParent(clone2, node.parent);
@@ -147481,7 +147475,8 @@ ${options.prefix}` : "\n" : options.prefix
147481
147475
  "src/deprecatedCompat/4.0/renamedNodeTests.ts"() {
147482
147476
  "use strict";
147483
147477
  init_ts5();
147484
- isTypeAssertion = Debug.deprecate(function isTypeAssertion2(node) {
147478
+ init_deprecate();
147479
+ isTypeAssertion = deprecate(function isTypeAssertion2(node) {
147485
147480
  return node.kind === 213 /* TypeAssertionExpression */;
147486
147481
  }, {
147487
147482
  since: "4.0",
@@ -147497,7 +147492,8 @@ ${options.prefix}` : "\n" : options.prefix
147497
147492
  "src/deprecatedCompat/4.2/renamedNodeTests.ts"() {
147498
147493
  "use strict";
147499
147494
  init_ts5();
147500
- isIdentifierOrPrivateIdentifier = Debug.deprecate(function isIdentifierOrPrivateIdentifier2(node) {
147495
+ init_deprecate();
147496
+ isIdentifierOrPrivateIdentifier = deprecate(function isIdentifierOrPrivateIdentifier2(node) {
147501
147497
  return isMemberName(node);
147502
147498
  }, {
147503
147499
  since: "4.2",
@@ -150415,6 +150411,7 @@ ${options.prefix}` : "\n" : options.prefix
150415
150411
  supportedLocaleDirectories: () => supportedLocaleDirectories,
150416
150412
  supportedTSExtensions: () => supportedTSExtensions,
150417
150413
  supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
150414
+ supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
150418
150415
  suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
150419
150416
  suppressLeadingTrivia: () => suppressLeadingTrivia,
150420
150417
  suppressTrailingTrivia: () => suppressTrailingTrivia,