typescript 5.0.0-dev.20221115 → 5.0.0-dev.20221117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tsserver.js CHANGED
@@ -2257,6 +2257,7 @@ var ts = (() => {
2257
2257
  supportedLocaleDirectories: () => supportedLocaleDirectories,
2258
2258
  supportedTSExtensions: () => supportedTSExtensions,
2259
2259
  supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
2260
+ supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
2260
2261
  suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
2261
2262
  suppressLeadingTrivia: () => suppressLeadingTrivia,
2262
2263
  suppressTrailingTrivia: () => suppressTrailingTrivia,
@@ -2647,7 +2648,7 @@ var ts = (() => {
2647
2648
 
2648
2649
  // src/compiler/corePublic.ts
2649
2650
  var versionMajorMinor = "5.0";
2650
- var version = `${versionMajorMinor}.0-dev.20221115`;
2651
+ var version = `${versionMajorMinor}.0-dev.20221117`;
2651
2652
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2652
2653
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2653
2654
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -4382,15 +4383,9 @@ var ts = (() => {
4382
4383
  })(LogLevel || {});
4383
4384
  var Debug;
4384
4385
  ((Debug2) => {
4385
- let typeScriptVersion2;
4386
4386
  let currentAssertionLevel = 0 /* None */;
4387
4387
  Debug2.currentLogLevel = 2 /* Warning */;
4388
4388
  Debug2.isDebugging = false;
4389
- Debug2.enableDeprecationWarnings = true;
4390
- function getTypeScriptVersion() {
4391
- return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
4392
- }
4393
- Debug2.getTypeScriptVersion = getTypeScriptVersion;
4394
4389
  function shouldLog(level) {
4395
4390
  return Debug2.currentLogLevel <= level;
4396
4391
  }
@@ -4906,52 +4901,6 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
4906
4901
  isDebugInfoEnabled = true;
4907
4902
  }
4908
4903
  Debug2.enableDebugInfo = enableDebugInfo;
4909
- function formatDeprecationMessage(name, error, errorAfter, since, message) {
4910
- let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
4911
- deprecationMessage += `'${name}' `;
4912
- deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
4913
- deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
4914
- deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
4915
- return deprecationMessage;
4916
- }
4917
- function createErrorDeprecation(name, errorAfter, since, message) {
4918
- const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
4919
- return () => {
4920
- throw new TypeError(deprecationMessage);
4921
- };
4922
- }
4923
- function createWarningDeprecation(name, errorAfter, since, message) {
4924
- let hasWrittenDeprecation = false;
4925
- return () => {
4926
- if (Debug2.enableDeprecationWarnings && !hasWrittenDeprecation) {
4927
- log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
4928
- hasWrittenDeprecation = true;
4929
- }
4930
- };
4931
- }
4932
- function createDeprecation(name, options = {}) {
4933
- var _a2, _b;
4934
- const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
4935
- const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
4936
- const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
4937
- const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
4938
- const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
4939
- const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
4940
- return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
4941
- }
4942
- Debug2.createDeprecation = createDeprecation;
4943
- function wrapFunction(deprecation, func) {
4944
- return function() {
4945
- deprecation();
4946
- return func.apply(this, arguments);
4947
- };
4948
- }
4949
- function deprecate(func, options) {
4950
- var _a2;
4951
- const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : getFunctionName(func), options);
4952
- return wrapFunction(deprecation, func);
4953
- }
4954
- Debug2.deprecate = deprecate;
4955
4904
  function formatVariance(varianceFlags) {
4956
4905
  const variance = varianceFlags & 7 /* VarianceMask */;
4957
4906
  let result = variance === 0 /* Invariant */ ? "in out" : variance === 3 /* Bivariant */ ? "[bivariant]" : variance === 2 /* Contravariant */ ? "in" : variance === 1 /* Covariant */ ? "out" : variance === 4 /* Independent */ ? "[independent]" : "";
@@ -6919,6 +6868,7 @@ ${lanes.join("\n")}
6919
6868
  return EnumKind2;
6920
6869
  })(EnumKind || {});
6921
6870
  var CheckFlags = /* @__PURE__ */ ((CheckFlags2) => {
6871
+ CheckFlags2[CheckFlags2["None"] = 0] = "None";
6922
6872
  CheckFlags2[CheckFlags2["Instantiated"] = 1] = "Instantiated";
6923
6873
  CheckFlags2[CheckFlags2["SyntheticProperty"] = 2] = "SyntheticProperty";
6924
6874
  CheckFlags2[CheckFlags2["SyntheticMethod"] = 4] = "SyntheticMethod";
@@ -6966,31 +6916,32 @@ ${lanes.join("\n")}
6966
6916
  return InternalSymbolName2;
6967
6917
  })(InternalSymbolName || {});
6968
6918
  var NodeCheckFlags = /* @__PURE__ */ ((NodeCheckFlags2) => {
6919
+ NodeCheckFlags2[NodeCheckFlags2["None"] = 0] = "None";
6969
6920
  NodeCheckFlags2[NodeCheckFlags2["TypeChecked"] = 1] = "TypeChecked";
6970
6921
  NodeCheckFlags2[NodeCheckFlags2["LexicalThis"] = 2] = "LexicalThis";
6971
6922
  NodeCheckFlags2[NodeCheckFlags2["CaptureThis"] = 4] = "CaptureThis";
6972
6923
  NodeCheckFlags2[NodeCheckFlags2["CaptureNewTarget"] = 8] = "CaptureNewTarget";
6973
- NodeCheckFlags2[NodeCheckFlags2["SuperInstance"] = 256] = "SuperInstance";
6974
- NodeCheckFlags2[NodeCheckFlags2["SuperStatic"] = 512] = "SuperStatic";
6975
- NodeCheckFlags2[NodeCheckFlags2["ContextChecked"] = 1024] = "ContextChecked";
6976
- NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAccessInAsync"] = 2048] = "MethodWithSuperPropertyAccessInAsync";
6977
- NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAssignmentInAsync"] = 4096] = "MethodWithSuperPropertyAssignmentInAsync";
6978
- NodeCheckFlags2[NodeCheckFlags2["CaptureArguments"] = 8192] = "CaptureArguments";
6979
- NodeCheckFlags2[NodeCheckFlags2["EnumValuesComputed"] = 16384] = "EnumValuesComputed";
6980
- NodeCheckFlags2[NodeCheckFlags2["LexicalModuleMergesWithClass"] = 32768] = "LexicalModuleMergesWithClass";
6981
- NodeCheckFlags2[NodeCheckFlags2["LoopWithCapturedBlockScopedBinding"] = 65536] = "LoopWithCapturedBlockScopedBinding";
6982
- NodeCheckFlags2[NodeCheckFlags2["ContainsCapturedBlockScopeBinding"] = 131072] = "ContainsCapturedBlockScopeBinding";
6983
- NodeCheckFlags2[NodeCheckFlags2["CapturedBlockScopedBinding"] = 262144] = "CapturedBlockScopedBinding";
6984
- NodeCheckFlags2[NodeCheckFlags2["BlockScopedBindingInLoop"] = 524288] = "BlockScopedBindingInLoop";
6985
- NodeCheckFlags2[NodeCheckFlags2["ClassWithBodyScopedClassBinding"] = 1048576] = "ClassWithBodyScopedClassBinding";
6986
- NodeCheckFlags2[NodeCheckFlags2["BodyScopedClassBinding"] = 2097152] = "BodyScopedClassBinding";
6987
- NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 4194304] = "NeedsLoopOutParameter";
6988
- NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 8388608] = "AssignmentsMarked";
6989
- NodeCheckFlags2[NodeCheckFlags2["ClassWithConstructorReference"] = 16777216] = "ClassWithConstructorReference";
6990
- NodeCheckFlags2[NodeCheckFlags2["ConstructorReferenceInClass"] = 33554432] = "ConstructorReferenceInClass";
6991
- NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 67108864] = "ContainsClassWithPrivateIdentifiers";
6992
- NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 134217728] = "ContainsSuperPropertyInStaticInitializer";
6993
- NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 268435456] = "InCheckIdentifier";
6924
+ NodeCheckFlags2[NodeCheckFlags2["SuperInstance"] = 16] = "SuperInstance";
6925
+ NodeCheckFlags2[NodeCheckFlags2["SuperStatic"] = 32] = "SuperStatic";
6926
+ NodeCheckFlags2[NodeCheckFlags2["ContextChecked"] = 64] = "ContextChecked";
6927
+ NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAccessInAsync"] = 128] = "MethodWithSuperPropertyAccessInAsync";
6928
+ NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAssignmentInAsync"] = 256] = "MethodWithSuperPropertyAssignmentInAsync";
6929
+ NodeCheckFlags2[NodeCheckFlags2["CaptureArguments"] = 512] = "CaptureArguments";
6930
+ NodeCheckFlags2[NodeCheckFlags2["EnumValuesComputed"] = 1024] = "EnumValuesComputed";
6931
+ NodeCheckFlags2[NodeCheckFlags2["LexicalModuleMergesWithClass"] = 2048] = "LexicalModuleMergesWithClass";
6932
+ NodeCheckFlags2[NodeCheckFlags2["LoopWithCapturedBlockScopedBinding"] = 4096] = "LoopWithCapturedBlockScopedBinding";
6933
+ NodeCheckFlags2[NodeCheckFlags2["ContainsCapturedBlockScopeBinding"] = 8192] = "ContainsCapturedBlockScopeBinding";
6934
+ NodeCheckFlags2[NodeCheckFlags2["CapturedBlockScopedBinding"] = 16384] = "CapturedBlockScopedBinding";
6935
+ NodeCheckFlags2[NodeCheckFlags2["BlockScopedBindingInLoop"] = 32768] = "BlockScopedBindingInLoop";
6936
+ NodeCheckFlags2[NodeCheckFlags2["ClassWithBodyScopedClassBinding"] = 65536] = "ClassWithBodyScopedClassBinding";
6937
+ NodeCheckFlags2[NodeCheckFlags2["BodyScopedClassBinding"] = 131072] = "BodyScopedClassBinding";
6938
+ NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 262144] = "NeedsLoopOutParameter";
6939
+ NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 524288] = "AssignmentsMarked";
6940
+ NodeCheckFlags2[NodeCheckFlags2["ClassWithConstructorReference"] = 1048576] = "ClassWithConstructorReference";
6941
+ NodeCheckFlags2[NodeCheckFlags2["ConstructorReferenceInClass"] = 2097152] = "ConstructorReferenceInClass";
6942
+ NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 4194304] = "ContainsClassWithPrivateIdentifiers";
6943
+ NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 8388608] = "ContainsSuperPropertyInStaticInitializer";
6944
+ NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 16777216] = "InCheckIdentifier";
6994
6945
  return NodeCheckFlags2;
6995
6946
  })(NodeCheckFlags || {});
6996
6947
  var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
@@ -7063,6 +7014,7 @@ ${lanes.join("\n")}
7063
7014
  return TypeFlags2;
7064
7015
  })(TypeFlags || {});
7065
7016
  var ObjectFlags = /* @__PURE__ */ ((ObjectFlags3) => {
7017
+ ObjectFlags3[ObjectFlags3["None"] = 0] = "None";
7066
7018
  ObjectFlags3[ObjectFlags3["Class"] = 1] = "Class";
7067
7019
  ObjectFlags3[ObjectFlags3["Interface"] = 2] = "Interface";
7068
7020
  ObjectFlags3[ObjectFlags3["Reference"] = 4] = "Reference";
@@ -7180,6 +7132,7 @@ ${lanes.join("\n")}
7180
7132
  return TypeMapKind2;
7181
7133
  })(TypeMapKind || {});
7182
7134
  var InferencePriority = /* @__PURE__ */ ((InferencePriority2) => {
7135
+ InferencePriority2[InferencePriority2["None"] = 0] = "None";
7183
7136
  InferencePriority2[InferencePriority2["NakedTypeVariable"] = 1] = "NakedTypeVariable";
7184
7137
  InferencePriority2[InferencePriority2["SpeculativeTuple"] = 2] = "SpeculativeTuple";
7185
7138
  InferencePriority2[InferencePriority2["SubstituteSource"] = 4] = "SubstituteSource";
@@ -10642,10 +10595,10 @@ ${lanes.join("\n")}
10642
10595
  Module_name_0_matched_pattern_1: diag(6092, 3 /* Message */, "Module_name_0_matched_pattern_1_6092", "Module name '{0}', matched pattern '{1}'."),
10643
10596
  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}'."),
10644
10597
  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}'."),
10645
- 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}'."),
10598
+ 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}."),
10646
10599
  File_0_does_not_exist: diag(6096, 3 /* Message */, "File_0_does_not_exist_6096", "File '{0}' does not exist."),
10647
10600
  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."),
10648
- 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}'."),
10601
+ 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}."),
10649
10602
  Found_package_json_at_0: diag(6099, 3 /* Message */, "Found_package_json_at_0_6099", "Found 'package.json' at '{0}'."),
10650
10603
  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."),
10651
10604
  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}'."),
@@ -19582,6 +19535,7 @@ ${lanes.join("\n")}
19582
19535
  var allSupportedExtensions = [[".ts" /* Ts */, ".tsx" /* Tsx */, ".d.ts" /* Dts */, ".js" /* Js */, ".jsx" /* Jsx */], [".cts" /* Cts */, ".d.cts" /* Dcts */, ".cjs" /* Cjs */], [".mts" /* Mts */, ".d.mts" /* Dmts */, ".mjs" /* Mjs */]];
19583
19536
  var allSupportedExtensionsWithJson = [...allSupportedExtensions, [".json" /* Json */]];
19584
19537
  var supportedDeclarationExtensions = [".d.ts" /* Dts */, ".d.cts" /* Dcts */, ".d.mts" /* Dmts */];
19538
+ var supportedTSImplementationExtensions = [".ts" /* Ts */, ".cts" /* Cts */, ".mts" /* Mts */, ".tsx" /* Tsx */];
19585
19539
  function getSupportedExtensions(options, extraFileExtensions) {
19586
19540
  const needJsExtensions = options && getAllowJSCompilerOption(options);
19587
19541
  if (!extraFileExtensions || extraFileExtensions.length === 0) {
@@ -25634,7 +25588,7 @@ ${lanes.join("\n")}
25634
25588
  var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
25635
25589
  var i, p;
25636
25590
  return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
25637
- 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; }
25591
+ 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; }
25638
25592
  };`
25639
25593
  };
25640
25594
  var asyncValues = {
@@ -37420,15 +37374,18 @@ ${lanes.join("\n")}
37420
37374
  return { path: r.path, ext: r.extension };
37421
37375
  }
37422
37376
  }
37423
- var Extensions = /* @__PURE__ */ ((Extensions2) => {
37424
- Extensions2[Extensions2["TypeScript"] = 0] = "TypeScript";
37425
- Extensions2[Extensions2["JavaScript"] = 1] = "JavaScript";
37426
- Extensions2[Extensions2["Json"] = 2] = "Json";
37427
- Extensions2[Extensions2["TSConfig"] = 3] = "TSConfig";
37428
- Extensions2[Extensions2["DtsOnly"] = 4] = "DtsOnly";
37429
- Extensions2[Extensions2["TsOnly"] = 5] = "TsOnly";
37430
- return Extensions2;
37431
- })(Extensions || {});
37377
+ function formatExtensions(extensions) {
37378
+ const result = [];
37379
+ if (extensions & 1 /* TypeScript */)
37380
+ result.push("TypeScript");
37381
+ if (extensions & 2 /* JavaScript */)
37382
+ result.push("JavaScript");
37383
+ if (extensions & 4 /* Declaration */)
37384
+ result.push("Declaration");
37385
+ if (extensions & 8 /* Json */)
37386
+ result.push("JSON");
37387
+ return result.join(", ");
37388
+ }
37432
37389
  function resolvedTypeScriptOnly(resolved) {
37433
37390
  if (!resolved) {
37434
37391
  return void 0;
@@ -37632,7 +37589,8 @@ ${lanes.join("\n")}
37632
37589
  features,
37633
37590
  conditions,
37634
37591
  requestContainingDirectory: containingDirectory,
37635
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
37592
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
37593
+ isConfigLookup: false
37636
37594
  };
37637
37595
  let resolved = primaryLookup();
37638
37596
  let primary = true;
@@ -37682,7 +37640,7 @@ ${lanes.join("\n")}
37682
37640
  }
37683
37641
  return resolvedTypeScriptOnly(
37684
37642
  loadNodeModuleFromDirectory(
37685
- 4 /* DtsOnly */,
37643
+ 4 /* Declaration */,
37686
37644
  candidate,
37687
37645
  !directoryExists,
37688
37646
  moduleResolutionState
@@ -37703,11 +37661,11 @@ ${lanes.join("\n")}
37703
37661
  }
37704
37662
  let result2;
37705
37663
  if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) {
37706
- const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /* DtsOnly */, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);
37664
+ const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /* Declaration */, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);
37707
37665
  result2 = searchResult && searchResult.value;
37708
37666
  } else {
37709
37667
  const { path: candidate } = normalizePathForCJSResolution(initialLocationForSecondaryLookup, typeReferenceDirectiveName);
37710
- result2 = nodeLoadModuleByRelativeName(4 /* DtsOnly */, candidate, false, moduleResolutionState, true);
37668
+ result2 = nodeLoadModuleByRelativeName(4 /* Declaration */, candidate, false, moduleResolutionState, true);
37711
37669
  }
37712
37670
  return resolvedTypeScriptOnly(result2);
37713
37671
  } else {
@@ -38233,38 +38191,42 @@ ${lanes.join("\n")}
38233
38191
  resolutionMode
38234
38192
  );
38235
38193
  }
38236
- var jsOnlyExtensions = [1 /* JavaScript */];
38237
- var tsExtensions = [0 /* TypeScript */, 1 /* JavaScript */];
38238
- var tsPlusJsonExtensions = [...tsExtensions, 2 /* Json */];
38239
- var tsconfigExtensions = [3 /* TSConfig */];
38240
38194
  function nodeNextModuleNameResolverWorker(features, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {
38241
38195
  const containingDirectory = getDirectoryPath(containingFile);
38242
38196
  const esmMode = resolutionMode === 99 /* ESNext */ ? 32 /* EsmMode */ : 0;
38243
- let extensions = compilerOptions.noDtsResolution ? [5 /* TsOnly */, 1 /* JavaScript */] : tsExtensions;
38197
+ let extensions = compilerOptions.noDtsResolution ? 3 /* ImplementationFiles */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
38244
38198
  if (compilerOptions.resolveJsonModule) {
38245
- extensions = [...extensions, 2 /* Json */];
38199
+ extensions |= 8 /* Json */;
38246
38200
  }
38247
- return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference);
38201
+ return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, false, redirectedReference);
38248
38202
  }
38249
38203
  function tryResolveJSModuleWorker(moduleName, initialDir, host) {
38250
- return nodeModuleNameResolverWorker(0 /* None */, moduleName, initialDir, { moduleResolution: 2 /* NodeJs */, allowJs: true }, host, void 0, jsOnlyExtensions, void 0);
38204
+ return nodeModuleNameResolverWorker(
38205
+ 0 /* None */,
38206
+ moduleName,
38207
+ initialDir,
38208
+ { moduleResolution: 2 /* NodeJs */, allowJs: true },
38209
+ host,
38210
+ void 0,
38211
+ 2 /* JavaScript */,
38212
+ false,
38213
+ void 0
38214
+ );
38251
38215
  }
38252
- function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, lookupConfig) {
38216
+ function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, isConfigLookup) {
38253
38217
  let extensions;
38254
- if (lookupConfig) {
38255
- extensions = tsconfigExtensions;
38218
+ if (isConfigLookup) {
38219
+ extensions = 8 /* Json */;
38256
38220
  } else if (compilerOptions.noDtsResolution) {
38257
- extensions = [5 /* TsOnly */];
38258
- if (compilerOptions.allowJs)
38259
- extensions.push(1 /* JavaScript */);
38221
+ extensions = 3 /* ImplementationFiles */;
38260
38222
  if (compilerOptions.resolveJsonModule)
38261
- extensions.push(2 /* Json */);
38223
+ extensions |= 8 /* Json */;
38262
38224
  } else {
38263
- extensions = compilerOptions.resolveJsonModule ? tsPlusJsonExtensions : tsExtensions;
38225
+ extensions = compilerOptions.resolveJsonModule ? 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */ | 8 /* Json */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
38264
38226
  }
38265
- return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, redirectedReference);
38227
+ return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, !!isConfigLookup, redirectedReference);
38266
38228
  }
38267
- function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference) {
38229
+ function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, isConfigLookup, redirectedReference) {
38268
38230
  var _a2, _b;
38269
38231
  const traceEnabled = isTraceEnabled(compilerOptions, host);
38270
38232
  const failedLookupLocations = [];
@@ -38284,12 +38246,20 @@ ${lanes.join("\n")}
38284
38246
  features,
38285
38247
  conditions,
38286
38248
  requestContainingDirectory: containingDirectory,
38287
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
38249
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
38250
+ isConfigLookup
38288
38251
  };
38289
38252
  if (traceEnabled && getEmitModuleResolutionKind(compilerOptions) >= 3 /* Node16 */ && getEmitModuleResolutionKind(compilerOptions) <= 99 /* NodeNext */) {
38290
38253
  trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & 32 /* EsmMode */ ? "ESM" : "CJS", conditions.map((c) => `'${c}'`).join(", "));
38291
38254
  }
38292
- const result = forEach(extensions, (ext) => tryResolve(ext));
38255
+ let result;
38256
+ if (getEmitModuleResolutionKind(compilerOptions) === 2 /* NodeJs */) {
38257
+ const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
38258
+ const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
38259
+ result = priorityExtensions && tryResolve(priorityExtensions) || secondaryExtensions && tryResolve(secondaryExtensions) || void 0;
38260
+ } else {
38261
+ result = tryResolve(extensions);
38262
+ }
38293
38263
  return createResolvedModuleWithFailedLookupLocations(
38294
38264
  (_a2 = result == null ? void 0 : result.value) == null ? void 0 : _a2.resolved,
38295
38265
  (_b = result == null ? void 0 : result.value) == null ? void 0 : _b.isExternalLibraryImport,
@@ -38314,7 +38284,7 @@ ${lanes.join("\n")}
38314
38284
  }
38315
38285
  if (!resolved2) {
38316
38286
  if (traceEnabled) {
38317
- trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1, moduleName, Extensions[extensions2]);
38287
+ trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions2));
38318
38288
  }
38319
38289
  resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state, cache, redirectedReference);
38320
38290
  }
@@ -38355,7 +38325,7 @@ ${lanes.join("\n")}
38355
38325
  }
38356
38326
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
38357
38327
  if (state.traceEnabled) {
38358
- trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1, candidate, Extensions[extensions]);
38328
+ trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1, candidate, formatExtensions(extensions));
38359
38329
  }
38360
38330
  if (!hasTrailingDirectorySeparator(candidate)) {
38361
38331
  if (!onlyRecordFailures) {
@@ -38413,10 +38383,9 @@ ${lanes.join("\n")}
38413
38383
  return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state));
38414
38384
  }
38415
38385
  function loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) {
38416
- if (extensions === 2 /* Json */ || extensions === 3 /* TSConfig */) {
38417
- const extensionLess = tryRemoveExtension(candidate, ".json" /* Json */);
38418
- const extension = extensionLess ? candidate.substring(extensionLess.length) : "";
38419
- return extensionLess === void 0 && extensions === 2 /* Json */ ? void 0 : tryAddingExtensions(extensionLess || candidate, extensions, extension, onlyRecordFailures, state);
38386
+ const resolvedByReplacingExtension = loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
38387
+ if (resolvedByReplacingExtension) {
38388
+ return resolvedByReplacingExtension;
38420
38389
  }
38421
38390
  if (!(state.features & 32 /* EsmMode */)) {
38422
38391
  const resolvedByAddingExtension = tryAddingExtensions(candidate, extensions, "", onlyRecordFailures, state);
@@ -38424,10 +38393,9 @@ ${lanes.join("\n")}
38424
38393
  return resolvedByAddingExtension;
38425
38394
  }
38426
38395
  }
38427
- return loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
38428
38396
  }
38429
38397
  function loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state) {
38430
- if (hasJSFileExtension(candidate) || fileExtensionIs(candidate, ".json" /* Json */) && state.compilerOptions.resolveJsonModule) {
38398
+ if (hasJSFileExtension(candidate) || extensions & 8 /* Json */ && fileExtensionIs(candidate, ".json" /* Json */)) {
38431
38399
  const extensionless = removeFileExtension(candidate);
38432
38400
  const extension = candidate.substring(extensionless.length);
38433
38401
  if (state.traceEnabled) {
@@ -38437,7 +38405,7 @@ ${lanes.join("\n")}
38437
38405
  }
38438
38406
  }
38439
38407
  function loadJSOrExactTSFileName(extensions, candidate, onlyRecordFailures, state) {
38440
- if ((extensions === 0 /* TypeScript */ || extensions === 4 /* DtsOnly */) && fileExtensionIsOneOf(candidate, supportedTSExtensionsFlat)) {
38408
+ if (extensions & 1 /* TypeScript */ && fileExtensionIsOneOf(candidate, supportedTSImplementationExtensions) || extensions & 4 /* Declaration */ && fileExtensionIsOneOf(candidate, supportedDeclarationExtensions)) {
38441
38409
  const result = tryFile(candidate, onlyRecordFailures, state);
38442
38410
  return result !== void 0 ? { path: candidate, ext: tryExtractTSExtension(candidate) } : void 0;
38443
38411
  }
@@ -38450,59 +38418,32 @@ ${lanes.join("\n")}
38450
38418
  onlyRecordFailures = !directoryProbablyExists(directory, state.host);
38451
38419
  }
38452
38420
  }
38453
- switch (extensions) {
38454
- case 4 /* DtsOnly */:
38455
- switch (originalExtension) {
38456
- case ".mjs" /* Mjs */:
38457
- case ".mts" /* Mts */:
38458
- case ".d.mts" /* Dmts */:
38459
- return tryExtension(".d.mts" /* Dmts */);
38460
- case ".cjs" /* Cjs */:
38461
- case ".cts" /* Cts */:
38462
- case ".d.cts" /* Dcts */:
38463
- return tryExtension(".d.cts" /* Dcts */);
38464
- case ".json" /* Json */:
38465
- candidate += ".json" /* Json */;
38466
- return tryExtension(".d.ts" /* Dts */);
38467
- default:
38468
- return tryExtension(".d.ts" /* Dts */);
38469
- }
38470
- case 0 /* TypeScript */:
38471
- case 5 /* TsOnly */:
38472
- const useDts = extensions === 0 /* TypeScript */;
38473
- switch (originalExtension) {
38474
- case ".mjs" /* Mjs */:
38475
- case ".mts" /* Mts */:
38476
- case ".d.mts" /* Dmts */:
38477
- return tryExtension(".mts" /* Mts */) || (useDts ? tryExtension(".d.mts" /* Dmts */) : void 0);
38478
- case ".cjs" /* Cjs */:
38479
- case ".cts" /* Cts */:
38480
- case ".d.cts" /* Dcts */:
38481
- return tryExtension(".cts" /* Cts */) || (useDts ? tryExtension(".d.cts" /* Dcts */) : void 0);
38482
- case ".json" /* Json */:
38483
- candidate += ".json" /* Json */;
38484
- return useDts ? tryExtension(".d.ts" /* Dts */) : void 0;
38485
- default:
38486
- return tryExtension(".ts" /* Ts */) || tryExtension(".tsx" /* Tsx */) || (useDts ? tryExtension(".d.ts" /* Dts */) : void 0);
38487
- }
38488
- case 1 /* JavaScript */:
38489
- switch (originalExtension) {
38490
- case ".mjs" /* Mjs */:
38491
- case ".mts" /* Mts */:
38492
- case ".d.mts" /* Dmts */:
38493
- return tryExtension(".mjs" /* Mjs */);
38494
- case ".cjs" /* Cjs */:
38495
- case ".cts" /* Cts */:
38496
- case ".d.cts" /* Dcts */:
38497
- return tryExtension(".cjs" /* Cjs */);
38498
- case ".json" /* Json */:
38499
- return tryExtension(".json" /* Json */);
38500
- default:
38501
- return tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */);
38421
+ switch (originalExtension) {
38422
+ case ".mjs" /* Mjs */:
38423
+ case ".mts" /* Mts */:
38424
+ case ".d.mts" /* Dmts */:
38425
+ return extensions & 1 /* TypeScript */ && tryExtension(".mts" /* Mts */) || extensions & 4 /* Declaration */ && tryExtension(".d.mts" /* Dmts */) || extensions & 2 /* JavaScript */ && tryExtension(".mjs" /* Mjs */) || void 0;
38426
+ case ".cjs" /* Cjs */:
38427
+ case ".cts" /* Cts */:
38428
+ case ".d.cts" /* Dcts */:
38429
+ return extensions & 1 /* TypeScript */ && tryExtension(".cts" /* Cts */) || extensions & 4 /* Declaration */ && tryExtension(".d.cts" /* Dcts */) || extensions & 2 /* JavaScript */ && tryExtension(".cjs" /* Cjs */) || void 0;
38430
+ case ".json" /* Json */:
38431
+ const originalCandidate = candidate;
38432
+ if (extensions & 4 /* Declaration */) {
38433
+ candidate += ".json" /* Json */;
38434
+ const result = tryExtension(".d.ts" /* Dts */);
38435
+ if (result)
38436
+ return result;
38437
+ }
38438
+ if (extensions & 8 /* Json */) {
38439
+ candidate = originalCandidate;
38440
+ const result = tryExtension(".json" /* Json */);
38441
+ if (result)
38442
+ return result;
38502
38443
  }
38503
- case 3 /* TSConfig */:
38504
- case 2 /* Json */:
38505
- return tryExtension(".json" /* Json */);
38444
+ return void 0;
38445
+ default:
38446
+ 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;
38506
38447
  }
38507
38448
  function tryExtension(ext) {
38508
38449
  const path = tryFile(candidate + ext, onlyRecordFailures, state);
@@ -38545,7 +38486,7 @@ ${lanes.join("\n")}
38545
38486
  return packageJsonInfo.contents.resolvedEntrypoints;
38546
38487
  }
38547
38488
  let entrypoints;
38548
- const extensions = resolveJs ? 1 /* JavaScript */ : 0 /* TypeScript */;
38489
+ const extensions = 1 /* TypeScript */ | 4 /* Declaration */ | (resolveJs ? 2 /* JavaScript */ : 0);
38549
38490
  const features = getDefaultNodeResolutionFeatures(options);
38550
38491
  const requireState = getTemporaryModuleResolutionState(cache == null ? void 0 : cache.getPackageJsonInfoCache(), host, options);
38551
38492
  requireState.conditions = ["node", "require", "types"];
@@ -38633,7 +38574,8 @@ ${lanes.join("\n")}
38633
38574
  features: 0 /* None */,
38634
38575
  conditions: emptyArray,
38635
38576
  requestContainingDirectory: void 0,
38636
- reportDiagnostic: noop
38577
+ reportDiagnostic: noop,
38578
+ isConfigLookup: false
38637
38579
  };
38638
38580
  }
38639
38581
  function getPackageScopeForPath(fileName, state) {
@@ -38692,23 +38634,10 @@ ${lanes.join("\n")}
38692
38634
  function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) {
38693
38635
  let packageFile;
38694
38636
  if (jsonContent) {
38695
- switch (extensions) {
38696
- case 1 /* JavaScript */:
38697
- case 2 /* Json */:
38698
- case 5 /* TsOnly */:
38699
- packageFile = readPackageJsonMainField(jsonContent, candidate, state);
38700
- break;
38701
- case 0 /* TypeScript */:
38702
- packageFile = readPackageJsonTypesFields(jsonContent, candidate, state) || readPackageJsonMainField(jsonContent, candidate, state);
38703
- break;
38704
- case 4 /* DtsOnly */:
38705
- packageFile = readPackageJsonTypesFields(jsonContent, candidate, state);
38706
- break;
38707
- case 3 /* TSConfig */:
38708
- packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
38709
- break;
38710
- default:
38711
- return Debug.assertNever(extensions);
38637
+ if (state.isConfigLookup) {
38638
+ packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
38639
+ } else {
38640
+ packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(jsonContent, candidate, state) || void 0;
38712
38641
  }
38713
38642
  }
38714
38643
  const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
@@ -38722,18 +38651,18 @@ ${lanes.join("\n")}
38722
38651
  trace(state2.host, Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromFile);
38723
38652
  }
38724
38653
  }
38725
- const nextExtensions = extensions2 === 4 /* DtsOnly */ ? 0 /* TypeScript */ : extensions2;
38654
+ const expandedExtensions = extensions2 === 4 /* Declaration */ ? 1 /* TypeScript */ | 4 /* Declaration */ : extensions2;
38726
38655
  const features = state2.features;
38727
38656
  if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") {
38728
38657
  state2.features &= ~32 /* EsmMode */;
38729
38658
  }
38730
- const result = nodeLoadModuleByRelativeName(nextExtensions, candidate2, onlyRecordFailures2, state2, false);
38659
+ const result = nodeLoadModuleByRelativeName(expandedExtensions, candidate2, onlyRecordFailures2, state2, false);
38731
38660
  state2.features = features;
38732
38661
  return result;
38733
38662
  };
38734
38663
  const onlyRecordFailuresForPackageFile = packageFile ? !directoryProbablyExists(getDirectoryPath(packageFile), state.host) : void 0;
38735
38664
  const onlyRecordFailuresForIndex = onlyRecordFailures || !directoryProbablyExists(candidate, state.host);
38736
- const indexPath = combinePaths(candidate, extensions === 3 /* TSConfig */ ? "tsconfig" : "index");
38665
+ const indexPath = combinePaths(candidate, state.isConfigLookup ? "tsconfig" : "index");
38737
38666
  if (versionPaths && (!packageFile || containsPath(candidate, packageFile))) {
38738
38667
  const moduleName = getRelativePathFromDirectory(candidate, packageFile || indexPath, false);
38739
38668
  if (state.traceEnabled) {
@@ -38756,19 +38685,7 @@ ${lanes.join("\n")}
38756
38685
  return ext !== void 0 && extensionIsOk(extensions, ext) ? { path, ext } : void 0;
38757
38686
  }
38758
38687
  function extensionIsOk(extensions, extension) {
38759
- switch (extensions) {
38760
- case 1 /* JavaScript */:
38761
- return extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */;
38762
- case 3 /* TSConfig */:
38763
- case 2 /* Json */:
38764
- return extension === ".json" /* Json */;
38765
- case 0 /* TypeScript */:
38766
- 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 */;
38767
- case 5 /* TsOnly */:
38768
- return extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */;
38769
- case 4 /* DtsOnly */:
38770
- return extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */;
38771
- }
38688
+ 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;
38772
38689
  }
38773
38690
  function parsePackageName(moduleName) {
38774
38691
  let idx = moduleName.indexOf(directorySeparator);
@@ -38930,7 +38847,7 @@ ${lanes.join("\n")}
38930
38847
  const combinedLookup = pattern ? target.replace(/\*/g, subpath) : target + subpath;
38931
38848
  traceIfEnabled(state, Diagnostics.Using_0_subpath_1_with_target_2, "imports", key, combinedLookup);
38932
38849
  traceIfEnabled(state, Diagnostics.Resolving_module_0_from_1, combinedLookup, scope.packageDirectory + "/");
38933
- const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache, [extensions], redirectedReference);
38850
+ const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache, extensions, false, redirectedReference);
38934
38851
  return toSearchResult(result.resolvedModule ? { path: result.resolvedModule.resolvedFileName, extension: result.resolvedModule.extension, packageId: result.resolvedModule.packageId, originalPath: result.resolvedModule.originalPath } : void 0);
38935
38852
  }
38936
38853
  if (state.traceEnabled) {
@@ -39021,7 +38938,7 @@ ${lanes.join("\n")}
39021
38938
  }
39022
38939
  function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
39023
38940
  var _a2, _b, _c, _d;
39024
- 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)) {
38941
+ 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)) {
39025
38942
  const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames });
39026
38943
  const commonSourceDirGuesses = [];
39027
38944
  if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
@@ -39058,10 +38975,9 @@ ${lanes.join("\n")}
39058
38975
  if (fileExtensionIs(possibleInputBase, ext)) {
39059
38976
  const inputExts = getPossibleOriginalInputExtensionForExtension(possibleInputBase);
39060
38977
  for (const possibleExt of inputExts) {
39061
- const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
39062
- if (extensions === 0 /* TypeScript */ && hasJSFileExtension(possibleInputWithInputExtension) || extensions === 1 /* JavaScript */ && hasTSFileExtension(possibleInputWithInputExtension)) {
38978
+ if (!extensionIsOk(extensions, possibleExt))
39063
38979
  continue;
39064
- }
38980
+ const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
39065
38981
  if (state.host.fileExists(possibleInputWithInputExtension)) {
39066
38982
  return toSearchResult(withPackageId(scope, loadJSOrExactTSFileName(extensions, possibleInputWithInputExtension, false, state)));
39067
38983
  }
@@ -39102,19 +39018,31 @@ ${lanes.join("\n")}
39102
39018
  return loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, false, cache, redirectedReference);
39103
39019
  }
39104
39020
  function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directory, state) {
39105
- return loadModuleFromNearestNodeModulesDirectoryWorker(4 /* DtsOnly */, moduleName, directory, state, true, void 0, void 0);
39021
+ return loadModuleFromNearestNodeModulesDirectoryWorker(4 /* Declaration */, moduleName, directory, state, true, void 0, void 0);
39106
39022
  }
39107
39023
  function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
39108
39024
  const perModuleNameCache = cache && cache.getOrCreateCacheForModuleName(moduleName, state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ ? 99 /* ESNext */ : 1 /* CommonJS */, redirectedReference);
39109
- return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => {
39110
- if (getBaseFileName(ancestorDirectory) !== "node_modules") {
39111
- const resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, ancestorDirectory, state);
39112
- if (resolutionFromCache) {
39113
- return resolutionFromCache;
39025
+ const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
39026
+ const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
39027
+ if (priorityExtensions) {
39028
+ const result = lookup(priorityExtensions);
39029
+ if (result)
39030
+ return result;
39031
+ }
39032
+ if (secondaryExtensions && !typesScopeOnly) {
39033
+ return lookup(secondaryExtensions);
39034
+ }
39035
+ function lookup(extensions2) {
39036
+ return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => {
39037
+ if (getBaseFileName(ancestorDirectory) !== "node_modules") {
39038
+ const resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, ancestorDirectory, state);
39039
+ if (resolutionFromCache) {
39040
+ return resolutionFromCache;
39041
+ }
39042
+ return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions2, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));
39114
39043
  }
39115
- return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));
39116
- }
39117
- });
39044
+ });
39045
+ }
39118
39046
  }
39119
39047
  function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
39120
39048
  const nodeModulesFolder = combinePaths(directory, "node_modules");
@@ -39122,11 +39050,13 @@ ${lanes.join("\n")}
39122
39050
  if (!nodeModulesFolderExists && state.traceEnabled) {
39123
39051
  trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesFolder);
39124
39052
  }
39125
- const packageResult = typesScopeOnly ? void 0 : loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);
39126
- if (packageResult) {
39127
- return packageResult;
39053
+ if (!typesScopeOnly) {
39054
+ const packageResult = loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);
39055
+ if (packageResult) {
39056
+ return packageResult;
39057
+ }
39128
39058
  }
39129
- if (extensions === 0 /* TypeScript */ || extensions === 4 /* DtsOnly */) {
39059
+ if (extensions & 4 /* Declaration */) {
39130
39060
  const nodeModulesAtTypes2 = combinePaths(nodeModulesFolder, "@types");
39131
39061
  let nodeModulesAtTypesExists = nodeModulesFolderExists;
39132
39062
  if (nodeModulesFolderExists && !directoryProbablyExists(nodeModulesAtTypes2, state.host)) {
@@ -39135,7 +39065,7 @@ ${lanes.join("\n")}
39135
39065
  }
39136
39066
  nodeModulesAtTypesExists = false;
39137
39067
  }
39138
- return loadModuleFromSpecificNodeModulesDirectory(4 /* DtsOnly */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);
39068
+ return loadModuleFromSpecificNodeModulesDirectory(4 /* Declaration */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);
39139
39069
  }
39140
39070
  }
39141
39071
  function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {
@@ -39276,9 +39206,10 @@ ${lanes.join("\n")}
39276
39206
  features: 0 /* None */,
39277
39207
  conditions: [],
39278
39208
  requestContainingDirectory: containingDirectory,
39279
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
39209
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
39210
+ isConfigLookup: false
39280
39211
  };
39281
- const resolved = tryResolve(0 /* TypeScript */) || tryResolve(1 /* JavaScript */);
39212
+ const resolved = tryResolve(1 /* TypeScript */ | 4 /* Declaration */) || tryResolve(2 /* JavaScript */ | (compilerOptions.resolveJsonModule ? 8 /* Json */ : 0));
39282
39213
  return createResolvedModuleWithFailedLookupLocations(
39283
39214
  resolved && resolved.value,
39284
39215
  false,
@@ -39305,7 +39236,7 @@ ${lanes.join("\n")}
39305
39236
  if (resolved2) {
39306
39237
  return resolved2;
39307
39238
  }
39308
- if (extensions === 0 /* TypeScript */) {
39239
+ if (extensions & (1 /* TypeScript */ | 4 /* Declaration */)) {
39309
39240
  return loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state);
39310
39241
  }
39311
39242
  } else {
@@ -39332,9 +39263,10 @@ ${lanes.join("\n")}
39332
39263
  features: 0 /* None */,
39333
39264
  conditions: [],
39334
39265
  requestContainingDirectory: void 0,
39335
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
39266
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
39267
+ isConfigLookup: false
39336
39268
  };
39337
- const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /* DtsOnly */, moduleName, globalCache, state, false, void 0, void 0);
39269
+ const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /* Declaration */, moduleName, globalCache, state, false, void 0, void 0);
39338
39270
  return createResolvedModuleWithFailedLookupLocations(
39339
39271
  resolved,
39340
39272
  true,
@@ -42333,6 +42265,7 @@ ${lanes.join("\n")}
42333
42265
  const importedFileIsInNodeModules = some(modulePaths, (p) => p.isInNodeModules);
42334
42266
  let nodeModulesSpecifiers;
42335
42267
  let pathsSpecifiers;
42268
+ let redirectPathsSpecifiers;
42336
42269
  let relativeSpecifiers;
42337
42270
  for (const modulePath of modulePaths) {
42338
42271
  const specifier = tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, void 0, options.overrideImportMode);
@@ -42340,60 +42273,77 @@ ${lanes.join("\n")}
42340
42273
  if (specifier && modulePath.isRedirect) {
42341
42274
  return nodeModulesSpecifiers;
42342
42275
  }
42343
- if (!specifier && !modulePath.isRedirect) {
42344
- const local = getLocalModuleSpecifier(modulePath.path, info, compilerOptions, host, options.overrideImportMode || importingSourceFile.impliedNodeFormat, preferences);
42345
- if (pathIsBareSpecifier(local)) {
42276
+ if (!specifier) {
42277
+ const local = getLocalModuleSpecifier(
42278
+ modulePath.path,
42279
+ info,
42280
+ compilerOptions,
42281
+ host,
42282
+ options.overrideImportMode || importingSourceFile.impliedNodeFormat,
42283
+ preferences,
42284
+ modulePath.isRedirect
42285
+ );
42286
+ if (!local) {
42287
+ continue;
42288
+ }
42289
+ if (modulePath.isRedirect) {
42290
+ redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
42291
+ } else if (pathIsBareSpecifier(local)) {
42346
42292
  pathsSpecifiers = append(pathsSpecifiers, local);
42347
42293
  } else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
42348
42294
  relativeSpecifiers = append(relativeSpecifiers, local);
42349
42295
  }
42350
42296
  }
42351
42297
  }
42352
- return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers : Debug.checkDefined(relativeSpecifiers);
42298
+ 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);
42353
42299
  }
42354
42300
  function getInfo(importingSourceFileName, host) {
42355
42301
  const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : true);
42356
42302
  const sourceDirectory = getDirectoryPath(importingSourceFileName);
42357
42303
  return { getCanonicalFileName, importingSourceFileName, sourceDirectory };
42358
42304
  }
42359
- function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }) {
42305
+ function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }, pathsOnly) {
42360
42306
  const { baseUrl, paths, rootDirs } = compilerOptions;
42307
+ if (pathsOnly && !paths) {
42308
+ return void 0;
42309
+ }
42361
42310
  const { sourceDirectory, getCanonicalFileName } = info;
42362
42311
  const relativePath = rootDirs && tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, ending, compilerOptions) || removeExtensionAndIndexPostFix(ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceDirectory, moduleFileName, getCanonicalFileName)), ending, compilerOptions);
42363
42312
  if (!baseUrl && !paths || relativePreference === 0 /* Relative */) {
42364
- return relativePath;
42313
+ return pathsOnly ? void 0 : relativePath;
42365
42314
  }
42366
42315
  const baseDirectory = getNormalizedAbsolutePath(getPathsBasePath(compilerOptions, host) || baseUrl, host.getCurrentDirectory());
42367
42316
  const relativeToBaseUrl = getRelativePathIfInDirectory(moduleFileName, baseDirectory, getCanonicalFileName);
42368
42317
  if (!relativeToBaseUrl) {
42369
- return relativePath;
42318
+ return pathsOnly ? void 0 : relativePath;
42370
42319
  }
42371
42320
  const fromPaths = paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, getAllowedEndings(ending, compilerOptions, importMode), host, compilerOptions);
42372
- const nonRelative = fromPaths === void 0 && baseUrl !== void 0 ? removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) : fromPaths;
42373
- if (!nonRelative) {
42321
+ if (pathsOnly) {
42322
+ return fromPaths;
42323
+ }
42324
+ const maybeNonRelative = fromPaths === void 0 && baseUrl !== void 0 ? removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) : fromPaths;
42325
+ if (!maybeNonRelative) {
42374
42326
  return relativePath;
42375
42327
  }
42376
- if (relativePreference === 1 /* NonRelative */) {
42377
- return nonRelative;
42328
+ if (relativePreference === 1 /* NonRelative */ && !pathIsRelative(maybeNonRelative)) {
42329
+ return maybeNonRelative;
42378
42330
  }
42379
- if (relativePreference === 3 /* ExternalNonRelative */) {
42331
+ if (relativePreference === 3 /* ExternalNonRelative */ && !pathIsRelative(maybeNonRelative)) {
42380
42332
  const projectDirectory = compilerOptions.configFilePath ? toPath(getDirectoryPath(compilerOptions.configFilePath), host.getCurrentDirectory(), info.getCanonicalFileName) : info.getCanonicalFileName(host.getCurrentDirectory());
42381
42333
  const modulePath = toPath(moduleFileName, projectDirectory, getCanonicalFileName);
42382
42334
  const sourceIsInternal = startsWith(sourceDirectory, projectDirectory);
42383
42335
  const targetIsInternal = startsWith(modulePath, projectDirectory);
42384
42336
  if (sourceIsInternal && !targetIsInternal || !sourceIsInternal && targetIsInternal) {
42385
- return nonRelative;
42337
+ return maybeNonRelative;
42386
42338
  }
42387
42339
  const nearestTargetPackageJson = getNearestAncestorDirectoryWithPackageJson(host, getDirectoryPath(modulePath));
42388
42340
  const nearestSourcePackageJson = getNearestAncestorDirectoryWithPackageJson(host, sourceDirectory);
42389
42341
  if (nearestSourcePackageJson !== nearestTargetPackageJson) {
42390
- return nonRelative;
42342
+ return maybeNonRelative;
42391
42343
  }
42392
42344
  return relativePath;
42393
42345
  }
42394
- if (relativePreference !== 2 /* Shortest */)
42395
- Debug.assertNever(relativePreference);
42396
- return isPathRelativeToParent(nonRelative) || countPathComponents(relativePath) < countPathComponents(nonRelative) ? relativePath : nonRelative;
42346
+ return isPathRelativeToParent(maybeNonRelative) || countPathComponents(relativePath) < countPathComponents(maybeNonRelative) ? relativePath : maybeNonRelative;
42397
42347
  }
42398
42348
  function countPathComponents(path) {
42399
42349
  let count = 0;
@@ -42954,6 +42904,7 @@ ${lanes.join("\n")}
42954
42904
  return CheckMode3;
42955
42905
  })(CheckMode || {});
42956
42906
  var SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => {
42907
+ SignatureCheckMode3[SignatureCheckMode3["None"] = 0] = "None";
42957
42908
  SignatureCheckMode3[SignatureCheckMode3["BivariantCallback"] = 1] = "BivariantCallback";
42958
42909
  SignatureCheckMode3[SignatureCheckMode3["StrictCallback"] = 2] = "StrictCallback";
42959
42910
  SignatureCheckMode3[SignatureCheckMode3["IgnoreReturnTypes"] = 4] = "IgnoreReturnTypes";
@@ -42971,7 +42922,7 @@ ${lanes.join("\n")}
42971
42922
  function SymbolLinks() {
42972
42923
  }
42973
42924
  function NodeLinks() {
42974
- this.flags = 0;
42925
+ this.flags = 0 /* None */;
42975
42926
  }
42976
42927
  function getNodeId(node) {
42977
42928
  if (!node.id) {
@@ -43816,7 +43767,7 @@ ${lanes.join("\n")}
43816
43767
  function createSymbol(flags, name, checkFlags) {
43817
43768
  symbolCount++;
43818
43769
  const symbol = new Symbol46(flags | 33554432 /* Transient */, name);
43819
- symbol.checkFlags = checkFlags || 0;
43770
+ symbol.checkFlags = checkFlags || 0 /* None */;
43820
43771
  return symbol;
43821
43772
  }
43822
43773
  function getExcludedSymbolFlags(flags) {
@@ -46127,7 +46078,7 @@ ${lanes.join("\n")}
46127
46078
  function createOriginType(flags) {
46128
46079
  return new Type27(checker, flags);
46129
46080
  }
46130
- function createIntrinsicType(kind, intrinsicName, objectFlags = 0) {
46081
+ function createIntrinsicType(kind, intrinsicName, objectFlags = 0 /* None */) {
46131
46082
  const type = createType(kind);
46132
46083
  type.intrinsicName = intrinsicName;
46133
46084
  type.objectFlags = objectFlags;
@@ -52968,7 +52919,7 @@ ${lanes.join("\n")}
52968
52919
  function containsArgumentsReference(declaration) {
52969
52920
  const links = getNodeLinks(declaration);
52970
52921
  if (links.containsArgumentsReference === void 0) {
52971
- if (links.flags & 8192 /* CaptureArguments */) {
52922
+ if (links.flags & 512 /* CaptureArguments */) {
52972
52923
  links.containsArgumentsReference = true;
52973
52924
  } else {
52974
52925
  links.containsArgumentsReference = traverse(declaration.body);
@@ -56868,7 +56819,7 @@ ${lanes.join("\n")}
56868
56819
  return compareSignaturesRelated(
56869
56820
  source,
56870
56821
  target,
56871
- ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0,
56822
+ ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0 /* None */,
56872
56823
  false,
56873
56824
  void 0,
56874
56825
  void 0,
@@ -57102,7 +57053,9 @@ ${lanes.join("\n")}
57102
57053
  if (relation === assignableRelation || relation === comparableRelation) {
57103
57054
  if (s & 1 /* Any */)
57104
57055
  return true;
57105
- if (s & (8 /* Number */ | 256 /* NumberLiteral */) && !(s & 1024 /* EnumLiteral */) && (t & 32 /* Enum */ || relation === assignableRelation && t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */))
57056
+ if (s & 8 /* Number */ && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */))
57057
+ return true;
57058
+ if (s & 256 /* NumberLiteral */ && !(s & 1024 /* EnumLiteral */) && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */ && source.value === target.value))
57106
57059
  return true;
57107
57060
  if (isUnknownLikeUnionType(target))
57108
57061
  return true;
@@ -60165,7 +60118,7 @@ ${lanes.join("\n")}
60165
60118
  pos = p;
60166
60119
  }
60167
60120
  }
60168
- function inferTypes(inferences, originalSource, originalTarget, priority = 0, contravariant = false) {
60121
+ function inferTypes(inferences, originalSource, originalTarget, priority = 0 /* None */, contravariant = false) {
60169
60122
  let bivariant = false;
60170
60123
  let propagationType;
60171
60124
  let inferencePriority = 2048 /* MaxValue */;
@@ -62607,8 +62560,8 @@ ${lanes.join("\n")}
62607
62560
  }
62608
62561
  const parent2 = getRootDeclaration(symbol.valueDeclaration).parent;
62609
62562
  const links = getNodeLinks(parent2);
62610
- if (!(links.flags & 8388608 /* AssignmentsMarked */)) {
62611
- links.flags |= 8388608 /* AssignmentsMarked */;
62563
+ if (!(links.flags & 524288 /* AssignmentsMarked */)) {
62564
+ links.flags |= 524288 /* AssignmentsMarked */;
62612
62565
  if (!hasParentWithAssignmentsMarked(parent2)) {
62613
62566
  markNodeAssignments(parent2);
62614
62567
  }
@@ -62616,7 +62569,7 @@ ${lanes.join("\n")}
62616
62569
  return symbol.isAssigned || false;
62617
62570
  }
62618
62571
  function hasParentWithAssignmentsMarked(node) {
62619
- return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 8388608 /* AssignmentsMarked */));
62572
+ return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 524288 /* AssignmentsMarked */));
62620
62573
  }
62621
62574
  function markNodeAssignments(node) {
62622
62575
  if (node.kind === 79 /* Identifier */) {
@@ -62695,11 +62648,11 @@ ${lanes.join("\n")}
62695
62648
  const parent2 = declaration.parent.parent;
62696
62649
  if (parent2.kind === 257 /* VariableDeclaration */ && getCombinedNodeFlags(declaration) & 2 /* Const */ || parent2.kind === 166 /* Parameter */) {
62697
62650
  const links = getNodeLinks(parent2);
62698
- if (!(links.flags & 268435456 /* InCheckIdentifier */)) {
62699
- links.flags |= 268435456 /* InCheckIdentifier */;
62651
+ if (!(links.flags & 16777216 /* InCheckIdentifier */)) {
62652
+ links.flags |= 16777216 /* InCheckIdentifier */;
62700
62653
  const parentType = getTypeForBindingElementParent(parent2, 0 /* Normal */);
62701
62654
  const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
62702
- links.flags &= ~268435456 /* InCheckIdentifier */;
62655
+ links.flags &= ~16777216 /* InCheckIdentifier */;
62703
62656
  if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent2.kind === 166 /* Parameter */ && isSymbolAssigned(symbol))) {
62704
62657
  const pattern = declaration.parent;
62705
62658
  const narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, void 0, location2.flowNode);
@@ -62749,7 +62702,7 @@ ${lanes.join("\n")}
62749
62702
  error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method);
62750
62703
  }
62751
62704
  }
62752
- getNodeLinks(container).flags |= 8192 /* CaptureArguments */;
62705
+ getNodeLinks(container).flags |= 512 /* CaptureArguments */;
62753
62706
  return getTypeOfSymbol(symbol);
62754
62707
  }
62755
62708
  if (shouldMarkIdentifierAliasReferenced(node)) {
@@ -62766,8 +62719,8 @@ ${lanes.join("\n")}
62766
62719
  let container = getContainingClass(node);
62767
62720
  while (container !== void 0) {
62768
62721
  if (container === declaration && container.name !== node) {
62769
- getNodeLinks(declaration).flags |= 16777216 /* ClassWithConstructorReference */;
62770
- getNodeLinks(node).flags |= 33554432 /* ConstructorReferenceInClass */;
62722
+ getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */;
62723
+ getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */;
62771
62724
  break;
62772
62725
  }
62773
62726
  container = getContainingClass(container);
@@ -62777,8 +62730,8 @@ ${lanes.join("\n")}
62777
62730
  while (container.kind !== 308 /* SourceFile */) {
62778
62731
  if (container.parent === declaration) {
62779
62732
  if (isPropertyDeclaration(container) && isStatic(container) || isClassStaticBlockDeclaration(container)) {
62780
- getNodeLinks(declaration).flags |= 16777216 /* ClassWithConstructorReference */;
62781
- getNodeLinks(node).flags |= 33554432 /* ConstructorReferenceInClass */;
62733
+ getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */;
62734
+ getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */;
62782
62735
  }
62783
62736
  break;
62784
62737
  }
@@ -62892,7 +62845,7 @@ ${lanes.join("\n")}
62892
62845
  const part = getPartOfForStatementContainingNode(node.parent, container);
62893
62846
  if (part) {
62894
62847
  const links = getNodeLinks(part);
62895
- links.flags |= 131072 /* ContainsCapturedBlockScopeBinding */;
62848
+ links.flags |= 8192 /* ContainsCapturedBlockScopeBinding */;
62896
62849
  const capturedBindings = links.capturedBlockScopeBindings || (links.capturedBlockScopeBindings = []);
62897
62850
  pushIfUnique(capturedBindings, symbol);
62898
62851
  if (part === container.initializer) {
@@ -62902,19 +62855,19 @@ ${lanes.join("\n")}
62902
62855
  }
62903
62856
  }
62904
62857
  if (capturesBlockScopeBindingInLoopBody) {
62905
- getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;
62858
+ getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
62906
62859
  }
62907
62860
  }
62908
62861
  if (isForStatement(container)) {
62909
62862
  const varDeclList = getAncestor(symbol.valueDeclaration, 258 /* VariableDeclarationList */);
62910
62863
  if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) {
62911
- getNodeLinks(symbol.valueDeclaration).flags |= 4194304 /* NeedsLoopOutParameter */;
62864
+ getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* NeedsLoopOutParameter */;
62912
62865
  }
62913
62866
  }
62914
- getNodeLinks(symbol.valueDeclaration).flags |= 524288 /* BlockScopedBindingInLoop */;
62867
+ getNodeLinks(symbol.valueDeclaration).flags |= 32768 /* BlockScopedBindingInLoop */;
62915
62868
  }
62916
62869
  if (isCaptured) {
62917
- getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* CapturedBlockScopedBinding */;
62870
+ getNodeLinks(symbol.valueDeclaration).flags |= 16384 /* CapturedBlockScopedBinding */;
62918
62871
  }
62919
62872
  }
62920
62873
  function isBindingCapturedByNode(node, decl) {
@@ -63131,23 +63084,23 @@ ${lanes.join("\n")}
63131
63084
  checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class);
63132
63085
  }
63133
63086
  if (isStatic(container) || isCallExpression2) {
63134
- nodeCheckFlag = 512 /* SuperStatic */;
63087
+ nodeCheckFlag = 32 /* SuperStatic */;
63135
63088
  if (!isCallExpression2 && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && (isPropertyDeclaration(container) || isClassStaticBlockDeclaration(container))) {
63136
63089
  forEachEnclosingBlockScopeContainer(node.parent, (current) => {
63137
63090
  if (!isSourceFile(current) || isExternalOrCommonJsModule(current)) {
63138
- getNodeLinks(current).flags |= 134217728 /* ContainsSuperPropertyInStaticInitializer */;
63091
+ getNodeLinks(current).flags |= 8388608 /* ContainsSuperPropertyInStaticInitializer */;
63139
63092
  }
63140
63093
  });
63141
63094
  }
63142
63095
  } else {
63143
- nodeCheckFlag = 256 /* SuperInstance */;
63096
+ nodeCheckFlag = 16 /* SuperInstance */;
63144
63097
  }
63145
63098
  getNodeLinks(node).flags |= nodeCheckFlag;
63146
63099
  if (container.kind === 171 /* MethodDeclaration */ && inAsyncFunction) {
63147
63100
  if (isSuperProperty(node.parent) && isAssignmentTarget(node.parent)) {
63148
- getNodeLinks(container).flags |= 4096 /* MethodWithSuperPropertyAssignmentInAsync */;
63101
+ getNodeLinks(container).flags |= 256 /* MethodWithSuperPropertyAssignmentInAsync */;
63149
63102
  } else {
63150
- getNodeLinks(container).flags |= 2048 /* MethodWithSuperPropertyAccessInAsync */;
63103
+ getNodeLinks(container).flags |= 128 /* MethodWithSuperPropertyAccessInAsync */;
63151
63104
  }
63152
63105
  }
63153
63106
  if (needToCaptureLexicalThis) {
@@ -63175,7 +63128,7 @@ ${lanes.join("\n")}
63175
63128
  error(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments);
63176
63129
  return errorType;
63177
63130
  }
63178
- return nodeCheckFlag === 512 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType);
63131
+ return nodeCheckFlag === 32 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType);
63179
63132
  function isLegalUsageOfSuperExpression(container2) {
63180
63133
  if (!container2) {
63181
63134
  return false;
@@ -64190,9 +64143,9 @@ ${lanes.join("\n")}
64190
64143
  const container = getEnclosingBlockScopeContainer(node.parent.parent);
64191
64144
  const enclosingIterationStatement = getEnclosingIterationStatement(container);
64192
64145
  if (enclosingIterationStatement) {
64193
- getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;
64194
- getNodeLinks(node).flags |= 524288 /* BlockScopedBindingInLoop */;
64195
- getNodeLinks(node.parent.parent).flags |= 524288 /* BlockScopedBindingInLoop */;
64146
+ getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
64147
+ getNodeLinks(node).flags |= 32768 /* BlockScopedBindingInLoop */;
64148
+ getNodeLinks(node.parent.parent).flags |= 32768 /* BlockScopedBindingInLoop */;
64196
64149
  }
64197
64150
  }
64198
64151
  if (links.resolvedType.flags & 98304 /* Nullable */ || !isTypeAssignableToKind(links.resolvedType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */) && !isTypeAssignableTo(links.resolvedType, stringNumberSymbolType)) {
@@ -68179,10 +68132,10 @@ ${lanes.join("\n")}
68179
68132
  }
68180
68133
  function contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode) {
68181
68134
  const links = getNodeLinks(node);
68182
- if (!(links.flags & 1024 /* ContextChecked */)) {
68135
+ if (!(links.flags & 64 /* ContextChecked */)) {
68183
68136
  const contextualSignature = getContextualSignature(node);
68184
- if (!(links.flags & 1024 /* ContextChecked */)) {
68185
- links.flags |= 1024 /* ContextChecked */;
68137
+ if (!(links.flags & 64 /* ContextChecked */)) {
68138
+ links.flags |= 64 /* ContextChecked */;
68186
68139
  const signature = firstOrUndefined(getSignaturesOfType(getTypeOfSymbol(getSymbolOfNode(node)), 0 /* Call */));
68187
68140
  if (!signature) {
68188
68141
  return;
@@ -70172,13 +70125,13 @@ ${lanes.join("\n")}
70172
70125
  function setNodeLinksForPrivateIdentifierScope(node) {
70173
70126
  if (isPrivateIdentifier(node.name) && languageVersion < 99 /* ESNext */) {
70174
70127
  for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) {
70175
- getNodeLinks(lexicalScope).flags |= 67108864 /* ContainsClassWithPrivateIdentifiers */;
70128
+ getNodeLinks(lexicalScope).flags |= 4194304 /* ContainsClassWithPrivateIdentifiers */;
70176
70129
  }
70177
70130
  if (isClassExpression(node.parent)) {
70178
70131
  const enclosingIterationStatement = getEnclosingIterationStatement(node.parent);
70179
70132
  if (enclosingIterationStatement) {
70180
- getNodeLinks(node.name).flags |= 524288 /* BlockScopedBindingInLoop */;
70181
- getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;
70133
+ getNodeLinks(node.name).flags |= 32768 /* BlockScopedBindingInLoop */;
70134
+ getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
70182
70135
  }
70183
70136
  }
70184
70137
  }
@@ -71773,7 +71726,7 @@ ${lanes.join("\n")}
71773
71726
  }
71774
71727
  function checkWeakMapSetCollision(node) {
71775
71728
  const enclosingBlockScope = getEnclosingBlockScopeContainer(node);
71776
- if (getNodeCheckFlags(enclosingBlockScope) & 67108864 /* ContainsClassWithPrivateIdentifiers */) {
71729
+ if (getNodeCheckFlags(enclosingBlockScope) & 4194304 /* ContainsClassWithPrivateIdentifiers */) {
71777
71730
  Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name) && typeof node.name.escapedText === "string", "The target of a WeakMap/WeakSet collision check should be an identifier");
71778
71731
  errorSkippedOn("noEmit", node, Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText);
71779
71732
  }
@@ -71787,18 +71740,18 @@ ${lanes.join("\n")}
71787
71740
  let hasCollision = false;
71788
71741
  if (isClassExpression(node)) {
71789
71742
  for (const member of node.members) {
71790
- if (getNodeCheckFlags(member) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {
71743
+ if (getNodeCheckFlags(member) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
71791
71744
  hasCollision = true;
71792
71745
  break;
71793
71746
  }
71794
71747
  }
71795
71748
  } else if (isFunctionExpression(node)) {
71796
- if (getNodeCheckFlags(node) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {
71749
+ if (getNodeCheckFlags(node) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
71797
71750
  hasCollision = true;
71798
71751
  }
71799
71752
  } else {
71800
71753
  const container = getEnclosingBlockScopeContainer(node);
71801
- if (container && getNodeCheckFlags(container) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {
71754
+ if (container && getNodeCheckFlags(container) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
71802
71755
  hasCollision = true;
71803
71756
  }
71804
71757
  }
@@ -73683,8 +73636,8 @@ ${lanes.join("\n")}
73683
73636
  }
73684
73637
  function computeEnumMemberValues(node) {
73685
73638
  const nodeLinks2 = getNodeLinks(node);
73686
- if (!(nodeLinks2.flags & 16384 /* EnumValuesComputed */)) {
73687
- nodeLinks2.flags |= 16384 /* EnumValuesComputed */;
73639
+ if (!(nodeLinks2.flags & 1024 /* EnumValuesComputed */)) {
73640
+ nodeLinks2.flags |= 1024 /* EnumValuesComputed */;
73688
73641
  let autoValue = 0;
73689
73642
  for (const member of node.members) {
73690
73643
  const value = computeMemberValue(member, autoValue);
@@ -73960,7 +73913,7 @@ ${lanes.join("\n")}
73960
73913
  }
73961
73914
  const mergedClass = getDeclarationOfKind(symbol, 260 /* ClassDeclaration */);
73962
73915
  if (mergedClass && inSameLexicalScope(node, mergedClass)) {
73963
- getNodeLinks(node).flags |= 32768 /* LexicalModuleMergesWithClass */;
73916
+ getNodeLinks(node).flags |= 2048 /* LexicalModuleMergesWithClass */;
73964
73917
  }
73965
73918
  }
73966
73919
  if (isAmbientExternalModule) {
@@ -75591,8 +75544,8 @@ ${lanes.join("\n")}
75591
75544
  const nodeLinks2 = getNodeLinks(symbol.valueDeclaration);
75592
75545
  if (resolveName(container.parent, symbol.escapedName, 111551 /* Value */, void 0, void 0, false)) {
75593
75546
  links.isDeclarationWithCollidingName = true;
75594
- } else if (nodeLinks2.flags & 262144 /* CapturedBlockScopedBinding */) {
75595
- const isDeclaredInLoop = nodeLinks2.flags & 524288 /* BlockScopedBindingInLoop */;
75547
+ } else if (nodeLinks2.flags & 16384 /* CapturedBlockScopedBinding */) {
75548
+ const isDeclaredInLoop = nodeLinks2.flags & 32768 /* BlockScopedBindingInLoop */;
75596
75549
  const inLoopInitializer = isIterationStatement(container, false);
75597
75550
  const inLoopBodyBlock = container.kind === 238 /* Block */ && isIterationStatement(container.parent, false);
75598
75551
  links.isDeclarationWithCollidingName = !isBlockScopedContainerTopLevel(container) && (!isDeclaredInLoop || !inLoopInitializer && !inLoopBodyBlock);
@@ -79028,10 +78981,10 @@ ${lanes.join("\n")}
79028
78981
  nodeVisitor(node.initializer, visitor, isExpression)
79029
78982
  );
79030
78983
  },
79031
- [308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
78984
+ [308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
79032
78985
  return context.factory.updateSourceFile(
79033
78986
  node,
79034
- visitLexicalEnvironment(node.statements, visitor, context, void 0, void 0, nodesVisitor)
78987
+ visitLexicalEnvironment(node.statements, visitor, context)
79035
78988
  );
79036
78989
  },
79037
78990
  [353 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
@@ -82732,12 +82685,12 @@ ${lanes.join("\n")}
82732
82685
  function visitClassExpressionInNewClassLexicalEnvironment(node, facts) {
82733
82686
  const isDecoratedClassDeclaration = !!(facts & 1 /* ClassWasDecorated */);
82734
82687
  const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node);
82735
- const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 16777216 /* ClassWithConstructorReference */;
82688
+ const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */;
82736
82689
  let temp;
82737
82690
  function createClassTempVar() {
82738
82691
  const classCheckFlags = resolver.getNodeCheckFlags(node);
82739
- const isClassWithConstructorReference2 = classCheckFlags & 16777216 /* ClassWithConstructorReference */;
82740
- const requiresBlockScopedVar = classCheckFlags & 524288 /* BlockScopedBindingInLoop */;
82692
+ const isClassWithConstructorReference2 = classCheckFlags & 1048576 /* ClassWithConstructorReference */;
82693
+ const requiresBlockScopedVar = classCheckFlags & 32768 /* BlockScopedBindingInLoop */;
82741
82694
  return factory2.createTempVariable(requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, !!isClassWithConstructorReference2);
82742
82695
  }
82743
82696
  if (facts & 2 /* NeedsClassConstructorReference */) {
@@ -83250,7 +83203,7 @@ ${lanes.join("\n")}
83250
83203
  }
83251
83204
  function trySubstituteClassAlias(node) {
83252
83205
  if (enabledSubstitutions & 1 /* ClassAliases */) {
83253
- if (resolver.getNodeCheckFlags(node) & 33554432 /* ConstructorReferenceInClass */) {
83206
+ if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) {
83254
83207
  const declaration = resolver.getReferencedValueDeclaration(node);
83255
83208
  if (declaration) {
83256
83209
  const classAlias = classAliases[declaration.id];
@@ -83273,7 +83226,7 @@ ${lanes.join("\n")}
83273
83226
  const alreadyTransformed = isAssignmentExpression(innerExpression) && isGeneratedIdentifier(innerExpression.left);
83274
83227
  if (!alreadyTransformed && !inlinable && shouldHoist) {
83275
83228
  const generatedName = factory2.getGeneratedNameForNode(name);
83276
- if (resolver.getNodeCheckFlags(name) & 524288 /* BlockScopedBindingInLoop */) {
83229
+ if (resolver.getNodeCheckFlags(name) & 32768 /* BlockScopedBindingInLoop */) {
83277
83230
  addBlockScopedVariable(generatedName);
83278
83231
  } else {
83279
83232
  hoistVariableDeclaration(generatedName);
@@ -83422,7 +83375,7 @@ ${lanes.join("\n")}
83422
83375
  const { className } = getPrivateIdentifierEnvironment();
83423
83376
  const prefix = className ? { prefix: "_", node: className, suffix: "_" } : "_";
83424
83377
  const identifier = typeof name === "object" ? factory2.getGeneratedNameForNode(name, 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */, prefix, suffix) : typeof name === "string" ? factory2.createUniqueName(name, 16 /* Optimistic */, prefix, suffix) : factory2.createTempVariable(void 0, true, prefix, suffix);
83425
- if (resolver.getNodeCheckFlags(node) & 524288 /* BlockScopedBindingInLoop */) {
83378
+ if (resolver.getNodeCheckFlags(node) & 32768 /* BlockScopedBindingInLoop */) {
83426
83379
  addBlockScopedVariable(identifier);
83427
83380
  } else {
83428
83381
  hoistVariableDeclaration(identifier);
@@ -84287,7 +84240,7 @@ ${lanes.join("\n")}
84287
84240
  }
84288
84241
  }
84289
84242
  function getClassAliasIfNeeded(node) {
84290
- if (resolver.getNodeCheckFlags(node) & 16777216 /* ClassWithConstructorReference */) {
84243
+ if (resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */) {
84291
84244
  enableSubstitutionForClassAliases();
84292
84245
  const classAlias = factory2.createUniqueName(node.name && !isGeneratedIdentifier(node.name) ? idText(node.name) : "default");
84293
84246
  classAliases[getOriginalNodeId(node)] = classAlias;
@@ -84321,7 +84274,7 @@ ${lanes.join("\n")}
84321
84274
  }
84322
84275
  function trySubstituteClassAlias(node) {
84323
84276
  if (classAliases) {
84324
- if (resolver.getNodeCheckFlags(node) & 33554432 /* ConstructorReferenceInClass */) {
84277
+ if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) {
84325
84278
  const declaration = resolver.getReferencedValueDeclaration(node);
84326
84279
  if (declaration) {
84327
84280
  const classAlias = classAliases[declaration.id];
@@ -84356,7 +84309,7 @@ ${lanes.join("\n")}
84356
84309
  let capturedSuperProperties;
84357
84310
  let hasSuperElementAccess;
84358
84311
  const substitutedSuperAccessors = [];
84359
- let contextFlags = 0;
84312
+ let contextFlags = 0 /* None */;
84360
84313
  const previousOnEmitNode = context.onEmitNode;
84361
84314
  const previousOnSubstituteNode = context.onSubstituteNode;
84362
84315
  context.onEmitNode = onEmitNode;
@@ -84683,7 +84636,7 @@ ${lanes.join("\n")}
84683
84636
  hasSuperElementAccess = false;
84684
84637
  let updated = visitFunctionBody(node.body, visitor, context);
84685
84638
  const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration);
84686
- const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* MethodWithSuperPropertyAssignmentInAsync */ | 2048 /* MethodWithSuperPropertyAccessInAsync */) && (getFunctionFlags(originalMethod) & 3 /* AsyncGenerator */) !== 3 /* AsyncGenerator */;
84639
+ const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */) && (getFunctionFlags(originalMethod) & 3 /* AsyncGenerator */) !== 3 /* AsyncGenerator */;
84687
84640
  if (emitSuperHelpers) {
84688
84641
  enableSubstitutionForAsyncMethodsWithSuper();
84689
84642
  if (capturedSuperProperties.size) {
@@ -84694,9 +84647,9 @@ ${lanes.join("\n")}
84694
84647
  updated = factory2.updateBlock(updated, statements);
84695
84648
  }
84696
84649
  if (hasSuperElementAccess) {
84697
- if (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
84650
+ if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
84698
84651
  addEmitHelper(updated, advancedAsyncSuperHelper);
84699
- } else if (resolver.getNodeCheckFlags(node) & 2048 /* MethodWithSuperPropertyAccessInAsync */) {
84652
+ } else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
84700
84653
  addEmitHelper(updated, asyncSuperHelper);
84701
84654
  }
84702
84655
  }
@@ -84711,7 +84664,7 @@ ${lanes.join("\n")}
84711
84664
  const nodeType = original.type;
84712
84665
  const promiseConstructor = languageVersion < 2 /* ES2015 */ ? getPromiseConstructor(nodeType) : void 0;
84713
84666
  const isArrowFunction2 = node.kind === 216 /* ArrowFunction */;
84714
- const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 8192 /* CaptureArguments */) !== 0;
84667
+ const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 512 /* CaptureArguments */) !== 0;
84715
84668
  const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;
84716
84669
  enclosingFunctionParameterNames = /* @__PURE__ */ new Set();
84717
84670
  for (const parameter of node.parameters) {
@@ -84738,7 +84691,7 @@ ${lanes.join("\n")}
84738
84691
  )
84739
84692
  );
84740
84693
  insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
84741
- const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* MethodWithSuperPropertyAssignmentInAsync */ | 2048 /* MethodWithSuperPropertyAccessInAsync */);
84694
+ const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */);
84742
84695
  if (emitSuperHelpers) {
84743
84696
  enableSubstitutionForAsyncMethodsWithSuper();
84744
84697
  if (capturedSuperProperties.size) {
@@ -84750,9 +84703,9 @@ ${lanes.join("\n")}
84750
84703
  const block = factory2.createBlock(statements, true);
84751
84704
  setTextRange(block, node.body);
84752
84705
  if (emitSuperHelpers && hasSuperElementAccess) {
84753
- if (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
84706
+ if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
84754
84707
  addEmitHelper(block, advancedAsyncSuperHelper);
84755
- } else if (resolver.getNodeCheckFlags(node) & 2048 /* MethodWithSuperPropertyAccessInAsync */) {
84708
+ } else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
84756
84709
  addEmitHelper(block, asyncSuperHelper);
84757
84710
  }
84758
84711
  }
@@ -84812,7 +84765,7 @@ ${lanes.join("\n")}
84812
84765
  }
84813
84766
  function onEmitNode(hint, node, emitCallback) {
84814
84767
  if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {
84815
- const superContainerFlags = resolver.getNodeCheckFlags(node) & (2048 /* MethodWithSuperPropertyAccessInAsync */ | 4096 /* MethodWithSuperPropertyAssignmentInAsync */);
84768
+ const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */);
84816
84769
  if (superContainerFlags !== enclosingSuperContainerFlags) {
84817
84770
  const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;
84818
84771
  enclosingSuperContainerFlags = superContainerFlags;
@@ -84888,7 +84841,7 @@ ${lanes.join("\n")}
84888
84841
  return kind === 260 /* ClassDeclaration */ || kind === 173 /* Constructor */ || kind === 171 /* MethodDeclaration */ || kind === 174 /* GetAccessor */ || kind === 175 /* SetAccessor */;
84889
84842
  }
84890
84843
  function createSuperElementAccessInAsyncMethod(argumentExpression, location2) {
84891
- if (enclosingSuperContainerFlags & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
84844
+ if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
84892
84845
  return setTextRange(
84893
84846
  factory2.createPropertyAccessExpression(
84894
84847
  factory2.createCallExpression(
@@ -84913,7 +84866,7 @@ ${lanes.join("\n")}
84913
84866
  }
84914
84867
  }
84915
84868
  function createSuperAccessVariableStatement(factory2, resolver, node, names) {
84916
- const hasBinding = (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) !== 0;
84869
+ const hasBinding = (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) !== 0;
84917
84870
  const accessors = [];
84918
84871
  names.forEach((_, key) => {
84919
84872
  const name = unescapeLeadingUnderscores(key);
@@ -85851,7 +85804,7 @@ ${lanes.join("\n")}
85851
85804
  !!(hierarchyFacts & 1 /* HasLexicalThis */)
85852
85805
  )
85853
85806
  );
85854
- const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* MethodWithSuperPropertyAssignmentInAsync */ | 2048 /* MethodWithSuperPropertyAccessInAsync */);
85807
+ const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */);
85855
85808
  if (emitSuperHelpers) {
85856
85809
  enableSubstitutionForAsyncMethodsWithSuper();
85857
85810
  const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties);
@@ -85862,9 +85815,9 @@ ${lanes.join("\n")}
85862
85815
  insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
85863
85816
  const block = factory2.updateBlock(node.body, statements);
85864
85817
  if (emitSuperHelpers && hasSuperElementAccess) {
85865
- if (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
85818
+ if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
85866
85819
  addEmitHelper(block, advancedAsyncSuperHelper);
85867
- } else if (resolver.getNodeCheckFlags(node) & 2048 /* MethodWithSuperPropertyAccessInAsync */) {
85820
+ } else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
85868
85821
  addEmitHelper(block, asyncSuperHelper);
85869
85822
  }
85870
85823
  }
@@ -85974,7 +85927,7 @@ ${lanes.join("\n")}
85974
85927
  }
85975
85928
  function onEmitNode(hint, node, emitCallback) {
85976
85929
  if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {
85977
- const superContainerFlags = resolver.getNodeCheckFlags(node) & (2048 /* MethodWithSuperPropertyAccessInAsync */ | 4096 /* MethodWithSuperPropertyAssignmentInAsync */);
85930
+ const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */);
85978
85931
  if (superContainerFlags !== enclosingSuperContainerFlags) {
85979
85932
  const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;
85980
85933
  enclosingSuperContainerFlags = superContainerFlags;
@@ -86050,7 +86003,7 @@ ${lanes.join("\n")}
86050
86003
  return kind === 260 /* ClassDeclaration */ || kind === 173 /* Constructor */ || kind === 171 /* MethodDeclaration */ || kind === 174 /* GetAccessor */ || kind === 175 /* SetAccessor */;
86051
86004
  }
86052
86005
  function createSuperElementAccessInAsyncMethod(argumentExpression, location2) {
86053
- if (enclosingSuperContainerFlags & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
86006
+ if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
86054
86007
  return setTextRange(
86055
86008
  factory2.createPropertyAccessExpression(
86056
86009
  factory2.createCallExpression(
@@ -88406,8 +88359,8 @@ ${lanes.join("\n")}
88406
88359
  }
88407
88360
  function shouldEmitExplicitInitializerForLetDeclaration(node) {
88408
88361
  const flags = resolver.getNodeCheckFlags(node);
88409
- const isCapturedInFunction = flags & 262144 /* CapturedBlockScopedBinding */;
88410
- const isDeclaredInLoop = flags & 524288 /* BlockScopedBindingInLoop */;
88362
+ const isCapturedInFunction = flags & 16384 /* CapturedBlockScopedBinding */;
88363
+ const isDeclaredInLoop = flags & 32768 /* BlockScopedBindingInLoop */;
88411
88364
  const emittedAsTopLevel = (hierarchyFacts & 64 /* TopLevel */) !== 0 || isCapturedInFunction && isDeclaredInLoop && (hierarchyFacts & 512 /* IterationStatementBlock */) !== 0;
88412
88365
  const emitExplicitInitializer = !emittedAsTopLevel && (hierarchyFacts & 4096 /* ForInOrForOfStatement */) === 0 && (!resolver.isDeclarationWithCollidingName(node) || isDeclaredInLoop && !isCapturedInFunction && (hierarchyFacts & (2048 /* ForStatement */ | 4096 /* ForInOrForOfStatement */)) === 0);
88413
88366
  return emitExplicitInitializer;
@@ -88768,7 +88721,7 @@ ${lanes.join("\n")}
88768
88721
  return factory2.inlineExpressions(expressions);
88769
88722
  }
88770
88723
  function shouldConvertPartOfIterationStatement(node) {
88771
- return (resolver.getNodeCheckFlags(node) & 131072 /* ContainsCapturedBlockScopeBinding */) !== 0;
88724
+ return (resolver.getNodeCheckFlags(node) & 8192 /* ContainsCapturedBlockScopeBinding */) !== 0;
88772
88725
  }
88773
88726
  function shouldConvertInitializerOfForStatement(node) {
88774
88727
  return isForStatement(node) && !!node.initializer && shouldConvertPartOfIterationStatement(node.initializer);
@@ -88783,7 +88736,7 @@ ${lanes.join("\n")}
88783
88736
  return shouldConvertBodyOfIterationStatement(node) || shouldConvertInitializerOfForStatement(node);
88784
88737
  }
88785
88738
  function shouldConvertBodyOfIterationStatement(node) {
88786
- return (resolver.getNodeCheckFlags(node) & 65536 /* LoopWithCapturedBlockScopedBinding */) !== 0;
88739
+ return (resolver.getNodeCheckFlags(node) & 4096 /* LoopWithCapturedBlockScopedBinding */) !== 0;
88787
88740
  }
88788
88741
  function hoistVariableDeclarationDeclaredInConvertedLoop(state, node) {
88789
88742
  if (!state.hoistedLocalVariables) {
@@ -89244,10 +89197,10 @@ ${lanes.join("\n")}
89244
89197
  } else {
89245
89198
  loopParameters.push(factory2.createParameterDeclaration(void 0, void 0, name));
89246
89199
  const checkFlags = resolver.getNodeCheckFlags(decl);
89247
- if (checkFlags & 4194304 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) {
89200
+ if (checkFlags & 262144 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) {
89248
89201
  const outParamName = factory2.createUniqueName("out_" + idText(name));
89249
- let flags = 0;
89250
- if (checkFlags & 4194304 /* NeedsLoopOutParameter */) {
89202
+ let flags = 0 /* None */;
89203
+ if (checkFlags & 262144 /* NeedsLoopOutParameter */) {
89251
89204
  flags |= 1 /* Body */;
89252
89205
  }
89253
89206
  if (isForStatement(container)) {
@@ -97175,7 +97128,7 @@ ${lanes.join("\n")}
97175
97128
  const sourceMap = sourceMapGenerator.toString();
97176
97129
  writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap, false, sourceFiles);
97177
97130
  if (printer.bundleFileInfo)
97178
- printer.bundleFileInfo.mapHash = computeSignature(sourceMap, maybeBind(host, host.createHash));
97131
+ printer.bundleFileInfo.mapHash = computeSignature(sourceMap, host);
97179
97132
  }
97180
97133
  } else {
97181
97134
  writer.writeLine();
@@ -97183,7 +97136,7 @@ ${lanes.join("\n")}
97183
97136
  const text = writer.getText();
97184
97137
  writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform2.diagnostics });
97185
97138
  if (printer.bundleFileInfo)
97186
- printer.bundleFileInfo.hash = computeSignature(text, maybeBind(host, host.createHash));
97139
+ printer.bundleFileInfo.hash = computeSignature(text, host);
97187
97140
  writer.clear();
97188
97141
  }
97189
97142
  function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) {
@@ -97329,7 +97282,6 @@ ${lanes.join("\n")}
97329
97282
  return result;
97330
97283
  }
97331
97284
  function emitUsingBuildInfoWorker(config, host, getCommandLine, customTransformers) {
97332
- const createHash = maybeBind(host, host.createHash);
97333
97285
  const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle(config.options, false);
97334
97286
  const buildInfo = host.getBuildInfo(buildInfoPath, config.options.configFilePath);
97335
97287
  if (!buildInfo)
@@ -97339,22 +97291,22 @@ ${lanes.join("\n")}
97339
97291
  const jsFileText = host.readFile(Debug.checkDefined(jsFilePath));
97340
97292
  if (!jsFileText)
97341
97293
  return jsFilePath;
97342
- if (computeSignature(jsFileText, createHash) !== buildInfo.bundle.js.hash)
97294
+ if (computeSignature(jsFileText, host) !== buildInfo.bundle.js.hash)
97343
97295
  return jsFilePath;
97344
97296
  const sourceMapText = sourceMapFilePath && host.readFile(sourceMapFilePath);
97345
97297
  if (sourceMapFilePath && !sourceMapText || config.options.inlineSourceMap)
97346
97298
  return sourceMapFilePath || "inline sourcemap decoding";
97347
- if (sourceMapFilePath && computeSignature(sourceMapText, createHash) !== buildInfo.bundle.js.mapHash)
97299
+ if (sourceMapFilePath && computeSignature(sourceMapText, host) !== buildInfo.bundle.js.mapHash)
97348
97300
  return sourceMapFilePath;
97349
97301
  const declarationText = declarationFilePath && host.readFile(declarationFilePath);
97350
97302
  if (declarationFilePath && !declarationText)
97351
97303
  return declarationFilePath;
97352
- if (declarationFilePath && computeSignature(declarationText, createHash) !== buildInfo.bundle.dts.hash)
97304
+ if (declarationFilePath && computeSignature(declarationText, host) !== buildInfo.bundle.dts.hash)
97353
97305
  return declarationFilePath;
97354
97306
  const declarationMapText = declarationMapPath && host.readFile(declarationMapPath);
97355
97307
  if (declarationMapPath && !declarationMapText || config.options.inlineSourceMap)
97356
97308
  return declarationMapPath || "inline sourcemap decoding";
97357
- if (declarationMapPath && computeSignature(declarationMapText, createHash) !== buildInfo.bundle.dts.mapHash)
97309
+ if (declarationMapPath && computeSignature(declarationMapText, host) !== buildInfo.bundle.dts.mapHash)
97358
97310
  return declarationMapPath;
97359
97311
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
97360
97312
  const ownPrependInput = createInputFilesWithFileTexts(
@@ -97424,7 +97376,7 @@ ${lanes.join("\n")}
97424
97376
  getBuildInfo: (bundle) => {
97425
97377
  const program = buildInfo.program;
97426
97378
  if (program && changedDtsText !== void 0 && config.options.composite) {
97427
- program.outSignature = computeSignature(changedDtsText, createHash, changedDtsData);
97379
+ program.outSignature = computeSignature(changedDtsText, host, changedDtsData);
97428
97380
  }
97429
97381
  const { js, dts, sourceFiles } = buildInfo.bundle;
97430
97382
  bundle.js.sources = js.sources;
@@ -97437,7 +97389,7 @@ ${lanes.join("\n")}
97437
97389
  getSourceFileFromReference: returnUndefined,
97438
97390
  redirectTargetsMap: createMultiMap(),
97439
97391
  getFileIncludeReasons: notImplemented,
97440
- createHash
97392
+ createHash: maybeBind(host, host.createHash)
97441
97393
  };
97442
97394
  emitFiles(
97443
97395
  notImplementedResolver,
@@ -105552,7 +105504,7 @@ ${lanes.join("\n")}
105552
105504
  return oldState && !oldState.referencedMap === !newReferencedMap;
105553
105505
  }
105554
105506
  BuilderState2.canReuseOldState = canReuseOldState;
105555
- function create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
105507
+ function create(newProgram, oldState, disableUseFileVersionAsSignature) {
105556
105508
  var _a2, _b, _c;
105557
105509
  const fileInfos = /* @__PURE__ */ new Map();
105558
105510
  const options = newProgram.getCompilerOptions();
@@ -105560,6 +105512,7 @@ ${lanes.join("\n")}
105560
105512
  const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
105561
105513
  const exportedModulesMap = referencedMap ? createManyToManyPathMap() : void 0;
105562
105514
  const useOldState = canReuseOldState(referencedMap, oldState);
105515
+ const getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames());
105563
105516
  newProgram.getTypeChecker();
105564
105517
  for (const sourceFile of newProgram.getSourceFiles()) {
105565
105518
  const version2 = Debug.checkDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set");
@@ -105598,30 +105551,29 @@ ${lanes.join("\n")}
105598
105551
  state.allFileNames = void 0;
105599
105552
  }
105600
105553
  BuilderState2.releaseCache = releaseCache2;
105601
- function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, computeHash, getCanonicalFileName) {
105554
+ function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, host) {
105602
105555
  var _a2, _b;
105603
105556
  const result = getFilesAffectedByWithOldState(
105604
105557
  state,
105605
105558
  programOfThisState,
105606
105559
  path,
105607
105560
  cancellationToken,
105608
- computeHash,
105609
- getCanonicalFileName
105561
+ host
105610
105562
  );
105611
105563
  (_a2 = state.oldSignatures) == null ? void 0 : _a2.clear();
105612
105564
  (_b = state.oldExportedModulesMap) == null ? void 0 : _b.clear();
105613
105565
  return result;
105614
105566
  }
105615
105567
  BuilderState2.getFilesAffectedBy = getFilesAffectedBy;
105616
- function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, computeHash, getCanonicalFileName) {
105568
+ function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host) {
105617
105569
  const sourceFile = programOfThisState.getSourceFileByPath(path);
105618
105570
  if (!sourceFile) {
105619
105571
  return emptyArray;
105620
105572
  }
105621
- if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName)) {
105573
+ if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host)) {
105622
105574
  return [sourceFile];
105623
105575
  }
105624
- return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName);
105576
+ return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host);
105625
105577
  }
105626
105578
  BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
105627
105579
  function updateSignatureOfFile(state, signature, path) {
@@ -105629,7 +105581,7 @@ ${lanes.join("\n")}
105629
105581
  (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
105630
105582
  }
105631
105583
  BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
105632
- function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName, useFileVersionAsSignature = state.useFileVersionAsSignature) {
105584
+ function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) {
105633
105585
  var _a2;
105634
105586
  if ((_a2 = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a2.has(sourceFile.resolvedPath))
105635
105587
  return false;
@@ -105642,10 +105594,10 @@ ${lanes.join("\n")}
105642
105594
  (fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => {
105643
105595
  Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`);
105644
105596
  latestSignature = computeSignatureWithDiagnostics(
105597
+ programOfThisState,
105645
105598
  sourceFile,
105646
105599
  text,
105647
- computeHash,
105648
- getCanonicalFileName,
105600
+ host,
105649
105601
  data
105650
105602
  );
105651
105603
  if (latestSignature !== prevSignature) {
@@ -105784,7 +105736,7 @@ ${lanes.join("\n")}
105784
105736
  }
105785
105737
  return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
105786
105738
  }
105787
- function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, computeHash, getCanonicalFileName) {
105739
+ function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, host) {
105788
105740
  if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) {
105789
105741
  return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
105790
105742
  }
@@ -105800,7 +105752,7 @@ ${lanes.join("\n")}
105800
105752
  if (!seenFileNamesMap.has(currentPath)) {
105801
105753
  const currentSourceFile = programOfThisState.getSourceFileByPath(currentPath);
105802
105754
  seenFileNamesMap.set(currentPath, currentSourceFile);
105803
- if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, computeHash, getCanonicalFileName)) {
105755
+ if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, host)) {
105804
105756
  queue.push(...getReferencedByPaths(state, currentSourceFile.resolvedPath));
105805
105757
  }
105806
105758
  }
@@ -105854,9 +105806,9 @@ ${lanes.join("\n")}
105854
105806
  function hasSameKeys(map1, map2) {
105855
105807
  return map1 === map2 || map1 !== void 0 && map2 !== void 0 && map1.size === map2.size && !forEachKey(map1, (key) => !map2.has(key));
105856
105808
  }
105857
- function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
105809
+ function createBuilderProgramState(newProgram, oldState, disableUseFileVersionAsSignature) {
105858
105810
  var _a2, _b;
105859
- const state = BuilderState.create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature);
105811
+ const state = BuilderState.create(newProgram, oldState, disableUseFileVersionAsSignature);
105860
105812
  state.program = newProgram;
105861
105813
  const compilerOptions = newProgram.getCompilerOptions();
105862
105814
  state.compilerOptions = compilerOptions;
@@ -105900,7 +105852,7 @@ ${lanes.join("\n")}
105900
105852
  return;
105901
105853
  const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);
105902
105854
  if (diagnostics) {
105903
- state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) : diagnostics);
105855
+ state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram) : diagnostics);
105904
105856
  if (!state.semanticDiagnosticsFromOldState) {
105905
105857
  state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
105906
105858
  }
@@ -105960,10 +105912,11 @@ ${lanes.join("\n")}
105960
105912
  function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) {
105961
105913
  return !!options.declarationMap === !!oldOptions.declarationMap ? oldEmitSignature : isString(oldEmitSignature) ? [oldEmitSignature] : oldEmitSignature[0];
105962
105914
  }
105963
- function convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) {
105915
+ function convertToDiagnostics(diagnostics, newProgram) {
105964
105916
  if (!diagnostics.length)
105965
105917
  return emptyArray;
105966
- const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
105918
+ let buildInfoDirectory;
105919
+ let getCanonicalFileName;
105967
105920
  return diagnostics.map((diagnostic) => {
105968
105921
  const result = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3);
105969
105922
  result.reportsUnnecessary = diagnostic.reportsUnnecessary;
@@ -105975,7 +105928,8 @@ ${lanes.join("\n")}
105975
105928
  return result;
105976
105929
  });
105977
105930
  function toPath3(path) {
105978
- return toPath(path, buildInfoDirectory, getCanonicalFileName);
105931
+ buildInfoDirectory != null ? buildInfoDirectory : buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
105932
+ return toPath(path, buildInfoDirectory, getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames()));
105979
105933
  }
105980
105934
  }
105981
105935
  function convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3) {
@@ -106017,7 +105971,7 @@ ${lanes.join("\n")}
106017
105971
  function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) {
106018
105972
  Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath));
106019
105973
  }
106020
- function getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host) {
105974
+ function getNextAffectedFile(state, cancellationToken, host) {
106021
105975
  var _a2, _b;
106022
105976
  while (true) {
106023
105977
  const { affectedFiles } = state;
@@ -106033,8 +105987,6 @@ ${lanes.join("\n")}
106033
105987
  state,
106034
105988
  affectedFile,
106035
105989
  cancellationToken,
106036
- computeHash,
106037
- getCanonicalFileName,
106038
105990
  host
106039
105991
  );
106040
105992
  return affectedFile;
@@ -106062,8 +106014,7 @@ ${lanes.join("\n")}
106062
106014
  program,
106063
106015
  nextKey.value,
106064
106016
  cancellationToken,
106065
- computeHash,
106066
- getCanonicalFileName
106017
+ host
106067
106018
  );
106068
106019
  state.currentChangedFilePath = nextKey.value;
106069
106020
  state.affectedFilesIndex = 0;
@@ -106115,7 +106066,7 @@ ${lanes.join("\n")}
106115
106066
  );
106116
106067
  }
106117
106068
  }
106118
- function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, computeHash, getCanonicalFileName, host) {
106069
+ function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) {
106119
106070
  removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath);
106120
106071
  if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) {
106121
106072
  removeDiagnosticsOfLibraryFiles(state);
@@ -106124,8 +106075,7 @@ ${lanes.join("\n")}
106124
106075
  Debug.checkDefined(state.program),
106125
106076
  affectedFile,
106126
106077
  cancellationToken,
106127
- computeHash,
106128
- getCanonicalFileName
106078
+ host
106129
106079
  );
106130
106080
  return;
106131
106081
  }
@@ -106135,12 +106085,10 @@ ${lanes.join("\n")}
106135
106085
  state,
106136
106086
  affectedFile,
106137
106087
  cancellationToken,
106138
- computeHash,
106139
- getCanonicalFileName,
106140
106088
  host
106141
106089
  );
106142
106090
  }
106143
- function handleDtsMayChangeOf(state, path, cancellationToken, computeHash, getCanonicalFileName, host) {
106091
+ function handleDtsMayChangeOf(state, path, cancellationToken, host) {
106144
106092
  removeSemanticDiagnosticsOf(state, path);
106145
106093
  if (!state.changedFilesSet.has(path)) {
106146
106094
  const program = Debug.checkDefined(state.program);
@@ -106151,8 +106099,7 @@ ${lanes.join("\n")}
106151
106099
  program,
106152
106100
  sourceFile,
106153
106101
  cancellationToken,
106154
- computeHash,
106155
- getCanonicalFileName,
106102
+ host,
106156
106103
  !host.disableUseFileVersionAsSignature
106157
106104
  );
106158
106105
  if (getEmitDeclarations(state.compilerOptions)) {
@@ -106174,7 +106121,7 @@ ${lanes.join("\n")}
106174
106121
  const newSignature = Debug.checkDefined(state.fileInfos.get(path)).signature;
106175
106122
  return newSignature !== oldSignature;
106176
106123
  }
106177
- function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host) {
106124
+ function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host) {
106178
106125
  var _a2;
106179
106126
  if (!((_a2 = state.fileInfos.get(filePath)) == null ? void 0 : _a2.affectsGlobalScope))
106180
106127
  return false;
@@ -106182,14 +106129,12 @@ ${lanes.join("\n")}
106182
106129
  state,
106183
106130
  file.resolvedPath,
106184
106131
  cancellationToken,
106185
- computeHash,
106186
- getCanonicalFileName,
106187
106132
  host
106188
106133
  ));
106189
106134
  removeDiagnosticsOfLibraryFiles(state);
106190
106135
  return true;
106191
106136
  }
106192
- function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, computeHash, getCanonicalFileName, host) {
106137
+ function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host) {
106193
106138
  var _a2;
106194
106139
  if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.resolvedPath))
106195
106140
  return;
@@ -106203,9 +106148,9 @@ ${lanes.join("\n")}
106203
106148
  const currentPath = queue.pop();
106204
106149
  if (!seenFileNamesMap.has(currentPath)) {
106205
106150
  seenFileNamesMap.set(currentPath, true);
106206
- if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, computeHash, getCanonicalFileName, host))
106151
+ if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, host))
106207
106152
  return;
106208
- handleDtsMayChangeOf(state, currentPath, cancellationToken, computeHash, getCanonicalFileName, host);
106153
+ handleDtsMayChangeOf(state, currentPath, cancellationToken, host);
106209
106154
  if (isChangedSignature(state, currentPath)) {
106210
106155
  const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath);
106211
106156
  queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath));
@@ -106215,7 +106160,7 @@ ${lanes.join("\n")}
106215
106160
  }
106216
106161
  const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
106217
106162
  (_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
106218
- if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, computeHash, getCanonicalFileName, host))
106163
+ if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, host))
106219
106164
  return true;
106220
106165
  const references = state.referencedMap.getKeys(exportedFromPath);
106221
106166
  return references && forEachKey(
@@ -106225,28 +106170,24 @@ ${lanes.join("\n")}
106225
106170
  filePath,
106226
106171
  seenFileAndExportsOfFile,
106227
106172
  cancellationToken,
106228
- computeHash,
106229
- getCanonicalFileName,
106230
106173
  host
106231
106174
  )
106232
106175
  );
106233
106176
  });
106234
106177
  }
106235
- function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, computeHash, getCanonicalFileName, host) {
106178
+ function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, host) {
106236
106179
  var _a2, _b;
106237
106180
  if (!tryAddToSet(seenFileAndExportsOfFile, filePath))
106238
106181
  return void 0;
106239
- if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host))
106182
+ if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host))
106240
106183
  return true;
106241
- handleDtsMayChangeOf(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host);
106184
+ handleDtsMayChangeOf(state, filePath, cancellationToken, host);
106242
106185
  (_a2 = state.exportedModulesMap.getKeys(filePath)) == null ? void 0 : _a2.forEach(
106243
106186
  (exportedFromPath) => handleDtsMayChangeOfFileAndExportsOfFile(
106244
106187
  state,
106245
106188
  exportedFromPath,
106246
106189
  seenFileAndExportsOfFile,
106247
106190
  cancellationToken,
106248
- computeHash,
106249
- getCanonicalFileName,
106250
106191
  host
106251
106192
  )
106252
106193
  );
@@ -106255,8 +106196,6 @@ ${lanes.join("\n")}
106255
106196
  state,
106256
106197
  referencingFilePath,
106257
106198
  cancellationToken,
106258
- computeHash,
106259
- getCanonicalFileName,
106260
106199
  host
106261
106200
  )
106262
106201
  );
@@ -106285,9 +106224,10 @@ ${lanes.join("\n")}
106285
106224
  function isProgramBundleEmitBuildInfo(info) {
106286
106225
  return !!outFile(info.options || {});
106287
106226
  }
106288
- function getBuildInfo2(state, getCanonicalFileName, bundle) {
106227
+ function getBuildInfo2(state, bundle) {
106289
106228
  var _a2, _b, _c;
106290
106229
  const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory();
106230
+ const getCanonicalFileName = createGetCanonicalFileName(state.program.useCaseSensitiveFileNames());
106291
106231
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
106292
106232
  const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
106293
106233
  const fileNames = [];
@@ -106511,8 +106451,9 @@ ${lanes.join("\n")}
106511
106451
  function getTextHandlingSourceMapForSignature(text, data) {
106512
106452
  return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text;
106513
106453
  }
106514
- function computeSignatureWithDiagnostics(sourceFile, text, computeHash, getCanonicalFileName, data) {
106515
- var _a2;
106454
+ function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) {
106455
+ var _a2, _b;
106456
+ let getCanonicalFileName;
106516
106457
  text = getTextHandlingSourceMapForSignature(text, data);
106517
106458
  let sourceFileDirectory;
106518
106459
  if ((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length) {
@@ -106520,7 +106461,7 @@ ${lanes.join("\n")}
106520
106461
  (diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`
106521
106462
  ).join("\n");
106522
106463
  }
106523
- return (computeHash != null ? computeHash : generateDjb2Hash)(text);
106464
+ return ((_b = host.createHash) != null ? _b : generateDjb2Hash)(text);
106524
106465
  function flattenDiagnosticMessageText2(diagnostic) {
106525
106466
  return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? "" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText2).join("\n");
106526
106467
  }
@@ -106529,11 +106470,16 @@ ${lanes.join("\n")}
106529
106470
  return `(${diagnostic.start},${diagnostic.length})`;
106530
106471
  if (sourceFileDirectory === void 0)
106531
106472
  sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath);
106532
- return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceFileDirectory, diagnostic.file.resolvedPath, getCanonicalFileName))}(${diagnostic.start},${diagnostic.length})`;
106473
+ return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(
106474
+ sourceFileDirectory,
106475
+ diagnostic.file.resolvedPath,
106476
+ getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(program.useCaseSensitiveFileNames())
106477
+ ))}(${diagnostic.start},${diagnostic.length})`;
106533
106478
  }
106534
106479
  }
106535
- function computeSignature(text, computeHash, data) {
106536
- return (computeHash != null ? computeHash : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
106480
+ function computeSignature(text, host, data) {
106481
+ var _a2;
106482
+ return ((_a2 = host.createHash) != null ? _a2 : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
106537
106483
  }
106538
106484
  function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) {
106539
106485
  let oldState = oldProgram && oldProgram.getState();
@@ -106542,10 +106488,8 @@ ${lanes.join("\n")}
106542
106488
  oldState = void 0;
106543
106489
  return oldProgram;
106544
106490
  }
106545
- const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
106546
- const computeHash = maybeBind(host, host.createHash);
106547
- const state = createBuilderProgramState(newProgram, getCanonicalFileName, oldState, host.disableUseFileVersionAsSignature);
106548
- newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, getCanonicalFileName, bundle);
106491
+ const state = createBuilderProgramState(newProgram, oldState, host.disableUseFileVersionAsSignature);
106492
+ newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, bundle);
106549
106493
  newProgram = void 0;
106550
106494
  oldProgram = void 0;
106551
106495
  oldState = void 0;
@@ -106579,7 +106523,7 @@ ${lanes.join("\n")}
106579
106523
  }
106580
106524
  function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
106581
106525
  var _a2, _b, _c, _d, _e;
106582
- let affected = getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host);
106526
+ let affected = getNextAffectedFile(state, cancellationToken, host);
106583
106527
  const programEmitKind = getBuilderFileEmit(state.compilerOptions);
106584
106528
  let emitKind = emitOnlyDtsFiles ? programEmitKind & 24 /* AllDts */ : programEmitKind;
106585
106529
  if (!affected) {
@@ -106653,10 +106597,10 @@ ${lanes.join("\n")}
106653
106597
  const info = state.fileInfos.get(file.resolvedPath);
106654
106598
  if (info.signature === file.version) {
106655
106599
  const signature = computeSignatureWithDiagnostics(
106600
+ state.program,
106656
106601
  file,
106657
106602
  text,
106658
- computeHash,
106659
- getCanonicalFileName,
106603
+ host,
106660
106604
  data
106661
106605
  );
106662
106606
  if (!((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length))
@@ -106700,7 +106644,7 @@ ${lanes.join("\n")}
106700
106644
  state.program.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
106701
106645
  function handleNewSignature(oldSignatureFormat, newSignature) {
106702
106646
  const oldSignature = !oldSignatureFormat || isString(oldSignatureFormat) ? oldSignatureFormat : oldSignatureFormat[0];
106703
- newSignature != null ? newSignature : newSignature = computeSignature(text, computeHash, data);
106647
+ newSignature != null ? newSignature : newSignature = computeSignature(text, host, data);
106704
106648
  if (newSignature === oldSignature) {
106705
106649
  if (oldSignatureFormat === oldSignature)
106706
106650
  return void 0;
@@ -106756,7 +106700,7 @@ ${lanes.join("\n")}
106756
106700
  }
106757
106701
  function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) {
106758
106702
  while (true) {
106759
- const affected = getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host);
106703
+ const affected = getNextAffectedFile(state, cancellationToken, host);
106760
106704
  let result;
106761
106705
  if (!affected)
106762
106706
  return void 0;
@@ -113591,6 +113535,7 @@ ${lanes.join("\n")}
113591
113535
  supportedLocaleDirectories: () => supportedLocaleDirectories,
113592
113536
  supportedTSExtensions: () => supportedTSExtensions,
113593
113537
  supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
113538
+ supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
113594
113539
  suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
113595
113540
  suppressLeadingTrivia: () => suppressLeadingTrivia,
113596
113541
  suppressTrailingTrivia: () => suppressTrailingTrivia,
@@ -121568,6 +121513,7 @@ ${lanes.join("\n")}
121568
121513
  trace: maybeBind(host, host.trace),
121569
121514
  resolveModuleNames: maybeBind(host, host.resolveModuleNames),
121570
121515
  getModuleResolutionCache: maybeBind(host, host.getModuleResolutionCache),
121516
+ createHash: maybeBind(host, host.createHash),
121571
121517
  resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives),
121572
121518
  useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect),
121573
121519
  getParsedCommandLine
@@ -148132,6 +148078,7 @@ ${options.prefix}` : "\n" : options.prefix
148132
148078
  // src/services/formatting/rule.ts
148133
148079
  var anyContext = emptyArray;
148134
148080
  var RuleAction = /* @__PURE__ */ ((RuleAction2) => {
148081
+ RuleAction2[RuleAction2["None"] = 0] = "None";
148135
148082
  RuleAction2[RuleAction2["StopProcessingSpaceActions"] = 1] = "StopProcessingSpaceActions";
148136
148083
  RuleAction2[RuleAction2["StopProcessingTokenActions"] = 2] = "StopProcessingTokenActions";
148137
148084
  RuleAction2[RuleAction2["InsertSpace"] = 4] = "InsertSpace";
@@ -148779,7 +148726,7 @@ ${options.prefix}` : "\n" : options.prefix
148779
148726
  return rulesMapCache;
148780
148727
  }
148781
148728
  function getRuleActionExclusion(ruleAction) {
148782
- let mask2 = 0;
148729
+ let mask2 = 0 /* None */;
148783
148730
  if (ruleAction & 1 /* StopProcessingSpaceActions */) {
148784
148731
  mask2 |= 28 /* ModifySpaceAction */;
148785
148732
  }
@@ -150268,6 +150215,57 @@ ${options.prefix}` : "\n" : options.prefix
150268
150215
  }
150269
150216
  })(SmartIndenter || (SmartIndenter = {}));
150270
150217
 
150218
+ // src/deprecatedCompat/deprecate.ts
150219
+ var enableDeprecationWarnings = true;
150220
+ var typeScriptVersion2;
150221
+ function getTypeScriptVersion() {
150222
+ return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
150223
+ }
150224
+ function formatDeprecationMessage(name, error, errorAfter, since, message) {
150225
+ let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
150226
+ deprecationMessage += `'${name}' `;
150227
+ deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
150228
+ deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
150229
+ deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
150230
+ return deprecationMessage;
150231
+ }
150232
+ function createErrorDeprecation(name, errorAfter, since, message) {
150233
+ const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
150234
+ return () => {
150235
+ throw new TypeError(deprecationMessage);
150236
+ };
150237
+ }
150238
+ function createWarningDeprecation(name, errorAfter, since, message) {
150239
+ let hasWrittenDeprecation = false;
150240
+ return () => {
150241
+ if (enableDeprecationWarnings && !hasWrittenDeprecation) {
150242
+ Debug.log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
150243
+ hasWrittenDeprecation = true;
150244
+ }
150245
+ };
150246
+ }
150247
+ function createDeprecation(name, options = {}) {
150248
+ var _a2, _b;
150249
+ const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
150250
+ const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
150251
+ const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
150252
+ const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
150253
+ const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
150254
+ const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
150255
+ return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
150256
+ }
150257
+ function wrapFunction(deprecation, func) {
150258
+ return function() {
150259
+ deprecation();
150260
+ return func.apply(this, arguments);
150261
+ };
150262
+ }
150263
+ function deprecate(func, options) {
150264
+ var _a2;
150265
+ const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : Debug.getFunctionName(func), options);
150266
+ return wrapFunction(deprecation, func);
150267
+ }
150268
+
150271
150269
  // src/deprecatedCompat/deprecations.ts
150272
150270
  function createOverload(name, overloads, binder2, deprecations) {
150273
150271
  Object.defineProperty(call, "name", { ...Object.getOwnPropertyDescriptor(call, "name"), value: name });
@@ -150275,7 +150273,7 @@ ${options.prefix}` : "\n" : options.prefix
150275
150273
  for (const key of Object.keys(deprecations)) {
150276
150274
  const index = +key;
150277
150275
  if (!isNaN(index) && hasProperty(overloads, `${index}`)) {
150278
- overloads[index] = Debug.deprecate(overloads[index], { ...deprecations[index], name });
150276
+ overloads[index] = deprecate(overloads[index], { ...deprecations[index], name });
150279
150277
  }
150280
150278
  }
150281
150279
  }
@@ -150315,336 +150313,336 @@ ${options.prefix}` : "\n" : options.prefix
150315
150313
 
150316
150314
  // src/deprecatedCompat/4.0/nodeFactoryTopLevelExports.ts
150317
150315
  var factoryDeprecation = { since: "4.0", warnAfter: "4.1", message: "Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead." };
150318
- var createNodeArray = Debug.deprecate(factory.createNodeArray, factoryDeprecation);
150319
- var createNumericLiteral = Debug.deprecate(factory.createNumericLiteral, factoryDeprecation);
150320
- var createBigIntLiteral = Debug.deprecate(factory.createBigIntLiteral, factoryDeprecation);
150321
- var createStringLiteral = Debug.deprecate(factory.createStringLiteral, factoryDeprecation);
150322
- var createStringLiteralFromNode = Debug.deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
150323
- var createRegularExpressionLiteral = Debug.deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
150324
- var createLoopVariable = Debug.deprecate(factory.createLoopVariable, factoryDeprecation);
150325
- var createUniqueName = Debug.deprecate(factory.createUniqueName, factoryDeprecation);
150326
- var createPrivateIdentifier = Debug.deprecate(factory.createPrivateIdentifier, factoryDeprecation);
150327
- var createSuper = Debug.deprecate(factory.createSuper, factoryDeprecation);
150328
- var createThis = Debug.deprecate(factory.createThis, factoryDeprecation);
150329
- var createNull = Debug.deprecate(factory.createNull, factoryDeprecation);
150330
- var createTrue = Debug.deprecate(factory.createTrue, factoryDeprecation);
150331
- var createFalse = Debug.deprecate(factory.createFalse, factoryDeprecation);
150332
- var createModifier = Debug.deprecate(factory.createModifier, factoryDeprecation);
150333
- var createModifiersFromModifierFlags = Debug.deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
150334
- var createQualifiedName = Debug.deprecate(factory.createQualifiedName, factoryDeprecation);
150335
- var updateQualifiedName = Debug.deprecate(factory.updateQualifiedName, factoryDeprecation);
150336
- var createComputedPropertyName = Debug.deprecate(factory.createComputedPropertyName, factoryDeprecation);
150337
- var updateComputedPropertyName = Debug.deprecate(factory.updateComputedPropertyName, factoryDeprecation);
150338
- var createTypeParameterDeclaration = Debug.deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
150339
- var updateTypeParameterDeclaration = Debug.deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
150340
- var createParameter = Debug.deprecate(factory.createParameterDeclaration, factoryDeprecation);
150341
- var updateParameter = Debug.deprecate(factory.updateParameterDeclaration, factoryDeprecation);
150342
- var createDecorator = Debug.deprecate(factory.createDecorator, factoryDeprecation);
150343
- var updateDecorator = Debug.deprecate(factory.updateDecorator, factoryDeprecation);
150344
- var createProperty = Debug.deprecate(factory.createPropertyDeclaration, factoryDeprecation);
150345
- var updateProperty = Debug.deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
150346
- var createMethod = Debug.deprecate(factory.createMethodDeclaration, factoryDeprecation);
150347
- var updateMethod = Debug.deprecate(factory.updateMethodDeclaration, factoryDeprecation);
150348
- var createConstructor = Debug.deprecate(factory.createConstructorDeclaration, factoryDeprecation);
150349
- var updateConstructor = Debug.deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
150350
- var createGetAccessor = Debug.deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
150351
- var updateGetAccessor = Debug.deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
150352
- var createSetAccessor = Debug.deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
150353
- var updateSetAccessor = Debug.deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
150354
- var createCallSignature = Debug.deprecate(factory.createCallSignature, factoryDeprecation);
150355
- var updateCallSignature = Debug.deprecate(factory.updateCallSignature, factoryDeprecation);
150356
- var createConstructSignature = Debug.deprecate(factory.createConstructSignature, factoryDeprecation);
150357
- var updateConstructSignature = Debug.deprecate(factory.updateConstructSignature, factoryDeprecation);
150358
- var updateIndexSignature = Debug.deprecate(factory.updateIndexSignature, factoryDeprecation);
150359
- var createKeywordTypeNode = Debug.deprecate(factory.createKeywordTypeNode, factoryDeprecation);
150360
- var createTypePredicateNodeWithModifier = Debug.deprecate(factory.createTypePredicateNode, factoryDeprecation);
150361
- var updateTypePredicateNodeWithModifier = Debug.deprecate(factory.updateTypePredicateNode, factoryDeprecation);
150362
- var createTypeReferenceNode = Debug.deprecate(factory.createTypeReferenceNode, factoryDeprecation);
150363
- var updateTypeReferenceNode = Debug.deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
150364
- var createFunctionTypeNode = Debug.deprecate(factory.createFunctionTypeNode, factoryDeprecation);
150365
- var updateFunctionTypeNode = Debug.deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
150366
- var createConstructorTypeNode = Debug.deprecate((typeParameters, parameters, type) => {
150316
+ var createNodeArray = deprecate(factory.createNodeArray, factoryDeprecation);
150317
+ var createNumericLiteral = deprecate(factory.createNumericLiteral, factoryDeprecation);
150318
+ var createBigIntLiteral = deprecate(factory.createBigIntLiteral, factoryDeprecation);
150319
+ var createStringLiteral = deprecate(factory.createStringLiteral, factoryDeprecation);
150320
+ var createStringLiteralFromNode = deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
150321
+ var createRegularExpressionLiteral = deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
150322
+ var createLoopVariable = deprecate(factory.createLoopVariable, factoryDeprecation);
150323
+ var createUniqueName = deprecate(factory.createUniqueName, factoryDeprecation);
150324
+ var createPrivateIdentifier = deprecate(factory.createPrivateIdentifier, factoryDeprecation);
150325
+ var createSuper = deprecate(factory.createSuper, factoryDeprecation);
150326
+ var createThis = deprecate(factory.createThis, factoryDeprecation);
150327
+ var createNull = deprecate(factory.createNull, factoryDeprecation);
150328
+ var createTrue = deprecate(factory.createTrue, factoryDeprecation);
150329
+ var createFalse = deprecate(factory.createFalse, factoryDeprecation);
150330
+ var createModifier = deprecate(factory.createModifier, factoryDeprecation);
150331
+ var createModifiersFromModifierFlags = deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
150332
+ var createQualifiedName = deprecate(factory.createQualifiedName, factoryDeprecation);
150333
+ var updateQualifiedName = deprecate(factory.updateQualifiedName, factoryDeprecation);
150334
+ var createComputedPropertyName = deprecate(factory.createComputedPropertyName, factoryDeprecation);
150335
+ var updateComputedPropertyName = deprecate(factory.updateComputedPropertyName, factoryDeprecation);
150336
+ var createTypeParameterDeclaration = deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
150337
+ var updateTypeParameterDeclaration = deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
150338
+ var createParameter = deprecate(factory.createParameterDeclaration, factoryDeprecation);
150339
+ var updateParameter = deprecate(factory.updateParameterDeclaration, factoryDeprecation);
150340
+ var createDecorator = deprecate(factory.createDecorator, factoryDeprecation);
150341
+ var updateDecorator = deprecate(factory.updateDecorator, factoryDeprecation);
150342
+ var createProperty = deprecate(factory.createPropertyDeclaration, factoryDeprecation);
150343
+ var updateProperty = deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
150344
+ var createMethod = deprecate(factory.createMethodDeclaration, factoryDeprecation);
150345
+ var updateMethod = deprecate(factory.updateMethodDeclaration, factoryDeprecation);
150346
+ var createConstructor = deprecate(factory.createConstructorDeclaration, factoryDeprecation);
150347
+ var updateConstructor = deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
150348
+ var createGetAccessor = deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
150349
+ var updateGetAccessor = deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
150350
+ var createSetAccessor = deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
150351
+ var updateSetAccessor = deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
150352
+ var createCallSignature = deprecate(factory.createCallSignature, factoryDeprecation);
150353
+ var updateCallSignature = deprecate(factory.updateCallSignature, factoryDeprecation);
150354
+ var createConstructSignature = deprecate(factory.createConstructSignature, factoryDeprecation);
150355
+ var updateConstructSignature = deprecate(factory.updateConstructSignature, factoryDeprecation);
150356
+ var updateIndexSignature = deprecate(factory.updateIndexSignature, factoryDeprecation);
150357
+ var createKeywordTypeNode = deprecate(factory.createKeywordTypeNode, factoryDeprecation);
150358
+ var createTypePredicateNodeWithModifier = deprecate(factory.createTypePredicateNode, factoryDeprecation);
150359
+ var updateTypePredicateNodeWithModifier = deprecate(factory.updateTypePredicateNode, factoryDeprecation);
150360
+ var createTypeReferenceNode = deprecate(factory.createTypeReferenceNode, factoryDeprecation);
150361
+ var updateTypeReferenceNode = deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
150362
+ var createFunctionTypeNode = deprecate(factory.createFunctionTypeNode, factoryDeprecation);
150363
+ var updateFunctionTypeNode = deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
150364
+ var createConstructorTypeNode = deprecate((typeParameters, parameters, type) => {
150367
150365
  return factory.createConstructorTypeNode(void 0, typeParameters, parameters, type);
150368
150366
  }, factoryDeprecation);
150369
- var updateConstructorTypeNode = Debug.deprecate((node, typeParameters, parameters, type) => {
150367
+ var updateConstructorTypeNode = deprecate((node, typeParameters, parameters, type) => {
150370
150368
  return factory.updateConstructorTypeNode(node, node.modifiers, typeParameters, parameters, type);
150371
150369
  }, factoryDeprecation);
150372
- var createTypeQueryNode = Debug.deprecate(factory.createTypeQueryNode, factoryDeprecation);
150373
- var updateTypeQueryNode = Debug.deprecate(factory.updateTypeQueryNode, factoryDeprecation);
150374
- var createTypeLiteralNode = Debug.deprecate(factory.createTypeLiteralNode, factoryDeprecation);
150375
- var updateTypeLiteralNode = Debug.deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
150376
- var createArrayTypeNode = Debug.deprecate(factory.createArrayTypeNode, factoryDeprecation);
150377
- var updateArrayTypeNode = Debug.deprecate(factory.updateArrayTypeNode, factoryDeprecation);
150378
- var createTupleTypeNode = Debug.deprecate(factory.createTupleTypeNode, factoryDeprecation);
150379
- var updateTupleTypeNode = Debug.deprecate(factory.updateTupleTypeNode, factoryDeprecation);
150380
- var createOptionalTypeNode = Debug.deprecate(factory.createOptionalTypeNode, factoryDeprecation);
150381
- var updateOptionalTypeNode = Debug.deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
150382
- var createRestTypeNode = Debug.deprecate(factory.createRestTypeNode, factoryDeprecation);
150383
- var updateRestTypeNode = Debug.deprecate(factory.updateRestTypeNode, factoryDeprecation);
150384
- var createUnionTypeNode = Debug.deprecate(factory.createUnionTypeNode, factoryDeprecation);
150385
- var updateUnionTypeNode = Debug.deprecate(factory.updateUnionTypeNode, factoryDeprecation);
150386
- var createIntersectionTypeNode = Debug.deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
150387
- var updateIntersectionTypeNode = Debug.deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
150388
- var createConditionalTypeNode = Debug.deprecate(factory.createConditionalTypeNode, factoryDeprecation);
150389
- var updateConditionalTypeNode = Debug.deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
150390
- var createInferTypeNode = Debug.deprecate(factory.createInferTypeNode, factoryDeprecation);
150391
- var updateInferTypeNode = Debug.deprecate(factory.updateInferTypeNode, factoryDeprecation);
150392
- var createImportTypeNode = Debug.deprecate(factory.createImportTypeNode, factoryDeprecation);
150393
- var updateImportTypeNode = Debug.deprecate(factory.updateImportTypeNode, factoryDeprecation);
150394
- var createParenthesizedType = Debug.deprecate(factory.createParenthesizedType, factoryDeprecation);
150395
- var updateParenthesizedType = Debug.deprecate(factory.updateParenthesizedType, factoryDeprecation);
150396
- var createThisTypeNode = Debug.deprecate(factory.createThisTypeNode, factoryDeprecation);
150397
- var updateTypeOperatorNode = Debug.deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
150398
- var createIndexedAccessTypeNode = Debug.deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
150399
- var updateIndexedAccessTypeNode = Debug.deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
150400
- var createMappedTypeNode = Debug.deprecate(factory.createMappedTypeNode, factoryDeprecation);
150401
- var updateMappedTypeNode = Debug.deprecate(factory.updateMappedTypeNode, factoryDeprecation);
150402
- var createLiteralTypeNode = Debug.deprecate(factory.createLiteralTypeNode, factoryDeprecation);
150403
- var updateLiteralTypeNode = Debug.deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
150404
- var createObjectBindingPattern = Debug.deprecate(factory.createObjectBindingPattern, factoryDeprecation);
150405
- var updateObjectBindingPattern = Debug.deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
150406
- var createArrayBindingPattern = Debug.deprecate(factory.createArrayBindingPattern, factoryDeprecation);
150407
- var updateArrayBindingPattern = Debug.deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
150408
- var createBindingElement = Debug.deprecate(factory.createBindingElement, factoryDeprecation);
150409
- var updateBindingElement = Debug.deprecate(factory.updateBindingElement, factoryDeprecation);
150410
- var createArrayLiteral = Debug.deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
150411
- var updateArrayLiteral = Debug.deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
150412
- var createObjectLiteral = Debug.deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
150413
- var updateObjectLiteral = Debug.deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
150414
- var createPropertyAccess = Debug.deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
150415
- var updatePropertyAccess = Debug.deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
150416
- var createPropertyAccessChain = Debug.deprecate(factory.createPropertyAccessChain, factoryDeprecation);
150417
- var updatePropertyAccessChain = Debug.deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
150418
- var createElementAccess = Debug.deprecate(factory.createElementAccessExpression, factoryDeprecation);
150419
- var updateElementAccess = Debug.deprecate(factory.updateElementAccessExpression, factoryDeprecation);
150420
- var createElementAccessChain = Debug.deprecate(factory.createElementAccessChain, factoryDeprecation);
150421
- var updateElementAccessChain = Debug.deprecate(factory.updateElementAccessChain, factoryDeprecation);
150422
- var createCall = Debug.deprecate(factory.createCallExpression, factoryDeprecation);
150423
- var updateCall = Debug.deprecate(factory.updateCallExpression, factoryDeprecation);
150424
- var createCallChain = Debug.deprecate(factory.createCallChain, factoryDeprecation);
150425
- var updateCallChain = Debug.deprecate(factory.updateCallChain, factoryDeprecation);
150426
- var createNew = Debug.deprecate(factory.createNewExpression, factoryDeprecation);
150427
- var updateNew = Debug.deprecate(factory.updateNewExpression, factoryDeprecation);
150428
- var createTypeAssertion = Debug.deprecate(factory.createTypeAssertion, factoryDeprecation);
150429
- var updateTypeAssertion = Debug.deprecate(factory.updateTypeAssertion, factoryDeprecation);
150430
- var createParen = Debug.deprecate(factory.createParenthesizedExpression, factoryDeprecation);
150431
- var updateParen = Debug.deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
150432
- var createFunctionExpression = Debug.deprecate(factory.createFunctionExpression, factoryDeprecation);
150433
- var updateFunctionExpression = Debug.deprecate(factory.updateFunctionExpression, factoryDeprecation);
150434
- var createDelete = Debug.deprecate(factory.createDeleteExpression, factoryDeprecation);
150435
- var updateDelete = Debug.deprecate(factory.updateDeleteExpression, factoryDeprecation);
150436
- var createTypeOf = Debug.deprecate(factory.createTypeOfExpression, factoryDeprecation);
150437
- var updateTypeOf = Debug.deprecate(factory.updateTypeOfExpression, factoryDeprecation);
150438
- var createVoid = Debug.deprecate(factory.createVoidExpression, factoryDeprecation);
150439
- var updateVoid = Debug.deprecate(factory.updateVoidExpression, factoryDeprecation);
150440
- var createAwait = Debug.deprecate(factory.createAwaitExpression, factoryDeprecation);
150441
- var updateAwait = Debug.deprecate(factory.updateAwaitExpression, factoryDeprecation);
150442
- var createPrefix = Debug.deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
150443
- var updatePrefix = Debug.deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
150444
- var createPostfix = Debug.deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
150445
- var updatePostfix = Debug.deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
150446
- var createBinary = Debug.deprecate(factory.createBinaryExpression, factoryDeprecation);
150447
- var updateConditional = Debug.deprecate(factory.updateConditionalExpression, factoryDeprecation);
150448
- var createTemplateExpression = Debug.deprecate(factory.createTemplateExpression, factoryDeprecation);
150449
- var updateTemplateExpression = Debug.deprecate(factory.updateTemplateExpression, factoryDeprecation);
150450
- var createTemplateHead = Debug.deprecate(factory.createTemplateHead, factoryDeprecation);
150451
- var createTemplateMiddle = Debug.deprecate(factory.createTemplateMiddle, factoryDeprecation);
150452
- var createTemplateTail = Debug.deprecate(factory.createTemplateTail, factoryDeprecation);
150453
- var createNoSubstitutionTemplateLiteral = Debug.deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
150454
- var updateYield = Debug.deprecate(factory.updateYieldExpression, factoryDeprecation);
150455
- var createSpread = Debug.deprecate(factory.createSpreadElement, factoryDeprecation);
150456
- var updateSpread = Debug.deprecate(factory.updateSpreadElement, factoryDeprecation);
150457
- var createOmittedExpression = Debug.deprecate(factory.createOmittedExpression, factoryDeprecation);
150458
- var createAsExpression = Debug.deprecate(factory.createAsExpression, factoryDeprecation);
150459
- var updateAsExpression = Debug.deprecate(factory.updateAsExpression, factoryDeprecation);
150460
- var createNonNullExpression = Debug.deprecate(factory.createNonNullExpression, factoryDeprecation);
150461
- var updateNonNullExpression = Debug.deprecate(factory.updateNonNullExpression, factoryDeprecation);
150462
- var createNonNullChain = Debug.deprecate(factory.createNonNullChain, factoryDeprecation);
150463
- var updateNonNullChain = Debug.deprecate(factory.updateNonNullChain, factoryDeprecation);
150464
- var createMetaProperty = Debug.deprecate(factory.createMetaProperty, factoryDeprecation);
150465
- var updateMetaProperty = Debug.deprecate(factory.updateMetaProperty, factoryDeprecation);
150466
- var createTemplateSpan = Debug.deprecate(factory.createTemplateSpan, factoryDeprecation);
150467
- var updateTemplateSpan = Debug.deprecate(factory.updateTemplateSpan, factoryDeprecation);
150468
- var createSemicolonClassElement = Debug.deprecate(factory.createSemicolonClassElement, factoryDeprecation);
150469
- var createBlock = Debug.deprecate(factory.createBlock, factoryDeprecation);
150470
- var updateBlock = Debug.deprecate(factory.updateBlock, factoryDeprecation);
150471
- var createVariableStatement = Debug.deprecate(factory.createVariableStatement, factoryDeprecation);
150472
- var updateVariableStatement = Debug.deprecate(factory.updateVariableStatement, factoryDeprecation);
150473
- var createEmptyStatement = Debug.deprecate(factory.createEmptyStatement, factoryDeprecation);
150474
- var createExpressionStatement = Debug.deprecate(factory.createExpressionStatement, factoryDeprecation);
150475
- var updateExpressionStatement = Debug.deprecate(factory.updateExpressionStatement, factoryDeprecation);
150476
- var createStatement = Debug.deprecate(factory.createExpressionStatement, factoryDeprecation);
150477
- var updateStatement = Debug.deprecate(factory.updateExpressionStatement, factoryDeprecation);
150478
- var createIf = Debug.deprecate(factory.createIfStatement, factoryDeprecation);
150479
- var updateIf = Debug.deprecate(factory.updateIfStatement, factoryDeprecation);
150480
- var createDo = Debug.deprecate(factory.createDoStatement, factoryDeprecation);
150481
- var updateDo = Debug.deprecate(factory.updateDoStatement, factoryDeprecation);
150482
- var createWhile = Debug.deprecate(factory.createWhileStatement, factoryDeprecation);
150483
- var updateWhile = Debug.deprecate(factory.updateWhileStatement, factoryDeprecation);
150484
- var createFor = Debug.deprecate(factory.createForStatement, factoryDeprecation);
150485
- var updateFor = Debug.deprecate(factory.updateForStatement, factoryDeprecation);
150486
- var createForIn = Debug.deprecate(factory.createForInStatement, factoryDeprecation);
150487
- var updateForIn = Debug.deprecate(factory.updateForInStatement, factoryDeprecation);
150488
- var createForOf = Debug.deprecate(factory.createForOfStatement, factoryDeprecation);
150489
- var updateForOf = Debug.deprecate(factory.updateForOfStatement, factoryDeprecation);
150490
- var createContinue = Debug.deprecate(factory.createContinueStatement, factoryDeprecation);
150491
- var updateContinue = Debug.deprecate(factory.updateContinueStatement, factoryDeprecation);
150492
- var createBreak = Debug.deprecate(factory.createBreakStatement, factoryDeprecation);
150493
- var updateBreak = Debug.deprecate(factory.updateBreakStatement, factoryDeprecation);
150494
- var createReturn = Debug.deprecate(factory.createReturnStatement, factoryDeprecation);
150495
- var updateReturn = Debug.deprecate(factory.updateReturnStatement, factoryDeprecation);
150496
- var createWith = Debug.deprecate(factory.createWithStatement, factoryDeprecation);
150497
- var updateWith = Debug.deprecate(factory.updateWithStatement, factoryDeprecation);
150498
- var createSwitch = Debug.deprecate(factory.createSwitchStatement, factoryDeprecation);
150499
- var updateSwitch = Debug.deprecate(factory.updateSwitchStatement, factoryDeprecation);
150500
- var createLabel = Debug.deprecate(factory.createLabeledStatement, factoryDeprecation);
150501
- var updateLabel = Debug.deprecate(factory.updateLabeledStatement, factoryDeprecation);
150502
- var createThrow = Debug.deprecate(factory.createThrowStatement, factoryDeprecation);
150503
- var updateThrow = Debug.deprecate(factory.updateThrowStatement, factoryDeprecation);
150504
- var createTry = Debug.deprecate(factory.createTryStatement, factoryDeprecation);
150505
- var updateTry = Debug.deprecate(factory.updateTryStatement, factoryDeprecation);
150506
- var createDebuggerStatement = Debug.deprecate(factory.createDebuggerStatement, factoryDeprecation);
150507
- var createVariableDeclarationList = Debug.deprecate(factory.createVariableDeclarationList, factoryDeprecation);
150508
- var updateVariableDeclarationList = Debug.deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
150509
- var createFunctionDeclaration = Debug.deprecate(factory.createFunctionDeclaration, factoryDeprecation);
150510
- var updateFunctionDeclaration = Debug.deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
150511
- var createClassDeclaration = Debug.deprecate(factory.createClassDeclaration, factoryDeprecation);
150512
- var updateClassDeclaration = Debug.deprecate(factory.updateClassDeclaration, factoryDeprecation);
150513
- var createInterfaceDeclaration = Debug.deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
150514
- var updateInterfaceDeclaration = Debug.deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
150515
- var createTypeAliasDeclaration = Debug.deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
150516
- var updateTypeAliasDeclaration = Debug.deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
150517
- var createEnumDeclaration = Debug.deprecate(factory.createEnumDeclaration, factoryDeprecation);
150518
- var updateEnumDeclaration = Debug.deprecate(factory.updateEnumDeclaration, factoryDeprecation);
150519
- var createModuleDeclaration = Debug.deprecate(factory.createModuleDeclaration, factoryDeprecation);
150520
- var updateModuleDeclaration = Debug.deprecate(factory.updateModuleDeclaration, factoryDeprecation);
150521
- var createModuleBlock = Debug.deprecate(factory.createModuleBlock, factoryDeprecation);
150522
- var updateModuleBlock = Debug.deprecate(factory.updateModuleBlock, factoryDeprecation);
150523
- var createCaseBlock = Debug.deprecate(factory.createCaseBlock, factoryDeprecation);
150524
- var updateCaseBlock = Debug.deprecate(factory.updateCaseBlock, factoryDeprecation);
150525
- var createNamespaceExportDeclaration = Debug.deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
150526
- var updateNamespaceExportDeclaration = Debug.deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
150527
- var createImportEqualsDeclaration = Debug.deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
150528
- var updateImportEqualsDeclaration = Debug.deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
150529
- var createImportDeclaration = Debug.deprecate(factory.createImportDeclaration, factoryDeprecation);
150530
- var updateImportDeclaration = Debug.deprecate(factory.updateImportDeclaration, factoryDeprecation);
150531
- var createNamespaceImport = Debug.deprecate(factory.createNamespaceImport, factoryDeprecation);
150532
- var updateNamespaceImport = Debug.deprecate(factory.updateNamespaceImport, factoryDeprecation);
150533
- var createNamedImports = Debug.deprecate(factory.createNamedImports, factoryDeprecation);
150534
- var updateNamedImports = Debug.deprecate(factory.updateNamedImports, factoryDeprecation);
150535
- var createImportSpecifier = Debug.deprecate(factory.createImportSpecifier, factoryDeprecation);
150536
- var updateImportSpecifier = Debug.deprecate(factory.updateImportSpecifier, factoryDeprecation);
150537
- var createExportAssignment2 = Debug.deprecate(factory.createExportAssignment, factoryDeprecation);
150538
- var updateExportAssignment = Debug.deprecate(factory.updateExportAssignment, factoryDeprecation);
150539
- var createNamedExports = Debug.deprecate(factory.createNamedExports, factoryDeprecation);
150540
- var updateNamedExports = Debug.deprecate(factory.updateNamedExports, factoryDeprecation);
150541
- var createExportSpecifier = Debug.deprecate(factory.createExportSpecifier, factoryDeprecation);
150542
- var updateExportSpecifier = Debug.deprecate(factory.updateExportSpecifier, factoryDeprecation);
150543
- var createExternalModuleReference = Debug.deprecate(factory.createExternalModuleReference, factoryDeprecation);
150544
- var updateExternalModuleReference = Debug.deprecate(factory.updateExternalModuleReference, factoryDeprecation);
150545
- var createJSDocTypeExpression = Debug.deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
150546
- var createJSDocTypeTag = Debug.deprecate(factory.createJSDocTypeTag, factoryDeprecation);
150547
- var createJSDocReturnTag = Debug.deprecate(factory.createJSDocReturnTag, factoryDeprecation);
150548
- var createJSDocThisTag = Debug.deprecate(factory.createJSDocThisTag, factoryDeprecation);
150549
- var createJSDocComment = Debug.deprecate(factory.createJSDocComment, factoryDeprecation);
150550
- var createJSDocParameterTag = Debug.deprecate(factory.createJSDocParameterTag, factoryDeprecation);
150551
- var createJSDocClassTag = Debug.deprecate(factory.createJSDocClassTag, factoryDeprecation);
150552
- var createJSDocAugmentsTag = Debug.deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
150553
- var createJSDocEnumTag = Debug.deprecate(factory.createJSDocEnumTag, factoryDeprecation);
150554
- var createJSDocTemplateTag = Debug.deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
150555
- var createJSDocTypedefTag = Debug.deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
150556
- var createJSDocCallbackTag = Debug.deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
150557
- var createJSDocSignature = Debug.deprecate(factory.createJSDocSignature, factoryDeprecation);
150558
- var createJSDocPropertyTag = Debug.deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
150559
- var createJSDocTypeLiteral = Debug.deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
150560
- var createJSDocImplementsTag = Debug.deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
150561
- var createJSDocAuthorTag = Debug.deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
150562
- var createJSDocPublicTag = Debug.deprecate(factory.createJSDocPublicTag, factoryDeprecation);
150563
- var createJSDocPrivateTag = Debug.deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
150564
- var createJSDocProtectedTag = Debug.deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
150565
- var createJSDocReadonlyTag = Debug.deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
150566
- var createJSDocTag = Debug.deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
150567
- var createJsxElement = Debug.deprecate(factory.createJsxElement, factoryDeprecation);
150568
- var updateJsxElement = Debug.deprecate(factory.updateJsxElement, factoryDeprecation);
150569
- var createJsxSelfClosingElement = Debug.deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
150570
- var updateJsxSelfClosingElement = Debug.deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
150571
- var createJsxOpeningElement = Debug.deprecate(factory.createJsxOpeningElement, factoryDeprecation);
150572
- var updateJsxOpeningElement = Debug.deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
150573
- var createJsxClosingElement = Debug.deprecate(factory.createJsxClosingElement, factoryDeprecation);
150574
- var updateJsxClosingElement = Debug.deprecate(factory.updateJsxClosingElement, factoryDeprecation);
150575
- var createJsxFragment = Debug.deprecate(factory.createJsxFragment, factoryDeprecation);
150576
- var createJsxText = Debug.deprecate(factory.createJsxText, factoryDeprecation);
150577
- var updateJsxText = Debug.deprecate(factory.updateJsxText, factoryDeprecation);
150578
- var createJsxOpeningFragment = Debug.deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
150579
- var createJsxJsxClosingFragment = Debug.deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
150580
- var updateJsxFragment = Debug.deprecate(factory.updateJsxFragment, factoryDeprecation);
150581
- var createJsxAttribute = Debug.deprecate(factory.createJsxAttribute, factoryDeprecation);
150582
- var updateJsxAttribute = Debug.deprecate(factory.updateJsxAttribute, factoryDeprecation);
150583
- var createJsxAttributes = Debug.deprecate(factory.createJsxAttributes, factoryDeprecation);
150584
- var updateJsxAttributes = Debug.deprecate(factory.updateJsxAttributes, factoryDeprecation);
150585
- var createJsxSpreadAttribute = Debug.deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
150586
- var updateJsxSpreadAttribute = Debug.deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
150587
- var createJsxExpression = Debug.deprecate(factory.createJsxExpression, factoryDeprecation);
150588
- var updateJsxExpression = Debug.deprecate(factory.updateJsxExpression, factoryDeprecation);
150589
- var createCaseClause = Debug.deprecate(factory.createCaseClause, factoryDeprecation);
150590
- var updateCaseClause = Debug.deprecate(factory.updateCaseClause, factoryDeprecation);
150591
- var createDefaultClause = Debug.deprecate(factory.createDefaultClause, factoryDeprecation);
150592
- var updateDefaultClause = Debug.deprecate(factory.updateDefaultClause, factoryDeprecation);
150593
- var createHeritageClause = Debug.deprecate(factory.createHeritageClause, factoryDeprecation);
150594
- var updateHeritageClause = Debug.deprecate(factory.updateHeritageClause, factoryDeprecation);
150595
- var createCatchClause = Debug.deprecate(factory.createCatchClause, factoryDeprecation);
150596
- var updateCatchClause = Debug.deprecate(factory.updateCatchClause, factoryDeprecation);
150597
- var createPropertyAssignment = Debug.deprecate(factory.createPropertyAssignment, factoryDeprecation);
150598
- var updatePropertyAssignment = Debug.deprecate(factory.updatePropertyAssignment, factoryDeprecation);
150599
- var createShorthandPropertyAssignment = Debug.deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
150600
- var updateShorthandPropertyAssignment = Debug.deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
150601
- var createSpreadAssignment = Debug.deprecate(factory.createSpreadAssignment, factoryDeprecation);
150602
- var updateSpreadAssignment = Debug.deprecate(factory.updateSpreadAssignment, factoryDeprecation);
150603
- var createEnumMember = Debug.deprecate(factory.createEnumMember, factoryDeprecation);
150604
- var updateEnumMember = Debug.deprecate(factory.updateEnumMember, factoryDeprecation);
150605
- var updateSourceFileNode = Debug.deprecate(factory.updateSourceFile, factoryDeprecation);
150606
- var createNotEmittedStatement = Debug.deprecate(factory.createNotEmittedStatement, factoryDeprecation);
150607
- var createPartiallyEmittedExpression = Debug.deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
150608
- var updatePartiallyEmittedExpression = Debug.deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
150609
- var createCommaList = Debug.deprecate(factory.createCommaListExpression, factoryDeprecation);
150610
- var updateCommaList = Debug.deprecate(factory.updateCommaListExpression, factoryDeprecation);
150611
- var createBundle = Debug.deprecate(factory.createBundle, factoryDeprecation);
150612
- var updateBundle = Debug.deprecate(factory.updateBundle, factoryDeprecation);
150613
- var createImmediatelyInvokedFunctionExpression = Debug.deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
150614
- var createImmediatelyInvokedArrowFunction = Debug.deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
150615
- var createVoidZero = Debug.deprecate(factory.createVoidZero, factoryDeprecation);
150616
- var createExportDefault = Debug.deprecate(factory.createExportDefault, factoryDeprecation);
150617
- var createExternalModuleExport = Debug.deprecate(factory.createExternalModuleExport, factoryDeprecation);
150618
- var createNamespaceExport = Debug.deprecate(factory.createNamespaceExport, factoryDeprecation);
150619
- var updateNamespaceExport = Debug.deprecate(factory.updateNamespaceExport, factoryDeprecation);
150620
- var createToken = Debug.deprecate(function createToken2(kind) {
150370
+ var createTypeQueryNode = deprecate(factory.createTypeQueryNode, factoryDeprecation);
150371
+ var updateTypeQueryNode = deprecate(factory.updateTypeQueryNode, factoryDeprecation);
150372
+ var createTypeLiteralNode = deprecate(factory.createTypeLiteralNode, factoryDeprecation);
150373
+ var updateTypeLiteralNode = deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
150374
+ var createArrayTypeNode = deprecate(factory.createArrayTypeNode, factoryDeprecation);
150375
+ var updateArrayTypeNode = deprecate(factory.updateArrayTypeNode, factoryDeprecation);
150376
+ var createTupleTypeNode = deprecate(factory.createTupleTypeNode, factoryDeprecation);
150377
+ var updateTupleTypeNode = deprecate(factory.updateTupleTypeNode, factoryDeprecation);
150378
+ var createOptionalTypeNode = deprecate(factory.createOptionalTypeNode, factoryDeprecation);
150379
+ var updateOptionalTypeNode = deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
150380
+ var createRestTypeNode = deprecate(factory.createRestTypeNode, factoryDeprecation);
150381
+ var updateRestTypeNode = deprecate(factory.updateRestTypeNode, factoryDeprecation);
150382
+ var createUnionTypeNode = deprecate(factory.createUnionTypeNode, factoryDeprecation);
150383
+ var updateUnionTypeNode = deprecate(factory.updateUnionTypeNode, factoryDeprecation);
150384
+ var createIntersectionTypeNode = deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
150385
+ var updateIntersectionTypeNode = deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
150386
+ var createConditionalTypeNode = deprecate(factory.createConditionalTypeNode, factoryDeprecation);
150387
+ var updateConditionalTypeNode = deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
150388
+ var createInferTypeNode = deprecate(factory.createInferTypeNode, factoryDeprecation);
150389
+ var updateInferTypeNode = deprecate(factory.updateInferTypeNode, factoryDeprecation);
150390
+ var createImportTypeNode = deprecate(factory.createImportTypeNode, factoryDeprecation);
150391
+ var updateImportTypeNode = deprecate(factory.updateImportTypeNode, factoryDeprecation);
150392
+ var createParenthesizedType = deprecate(factory.createParenthesizedType, factoryDeprecation);
150393
+ var updateParenthesizedType = deprecate(factory.updateParenthesizedType, factoryDeprecation);
150394
+ var createThisTypeNode = deprecate(factory.createThisTypeNode, factoryDeprecation);
150395
+ var updateTypeOperatorNode = deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
150396
+ var createIndexedAccessTypeNode = deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
150397
+ var updateIndexedAccessTypeNode = deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
150398
+ var createMappedTypeNode = deprecate(factory.createMappedTypeNode, factoryDeprecation);
150399
+ var updateMappedTypeNode = deprecate(factory.updateMappedTypeNode, factoryDeprecation);
150400
+ var createLiteralTypeNode = deprecate(factory.createLiteralTypeNode, factoryDeprecation);
150401
+ var updateLiteralTypeNode = deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
150402
+ var createObjectBindingPattern = deprecate(factory.createObjectBindingPattern, factoryDeprecation);
150403
+ var updateObjectBindingPattern = deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
150404
+ var createArrayBindingPattern = deprecate(factory.createArrayBindingPattern, factoryDeprecation);
150405
+ var updateArrayBindingPattern = deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
150406
+ var createBindingElement = deprecate(factory.createBindingElement, factoryDeprecation);
150407
+ var updateBindingElement = deprecate(factory.updateBindingElement, factoryDeprecation);
150408
+ var createArrayLiteral = deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
150409
+ var updateArrayLiteral = deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
150410
+ var createObjectLiteral = deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
150411
+ var updateObjectLiteral = deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
150412
+ var createPropertyAccess = deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
150413
+ var updatePropertyAccess = deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
150414
+ var createPropertyAccessChain = deprecate(factory.createPropertyAccessChain, factoryDeprecation);
150415
+ var updatePropertyAccessChain = deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
150416
+ var createElementAccess = deprecate(factory.createElementAccessExpression, factoryDeprecation);
150417
+ var updateElementAccess = deprecate(factory.updateElementAccessExpression, factoryDeprecation);
150418
+ var createElementAccessChain = deprecate(factory.createElementAccessChain, factoryDeprecation);
150419
+ var updateElementAccessChain = deprecate(factory.updateElementAccessChain, factoryDeprecation);
150420
+ var createCall = deprecate(factory.createCallExpression, factoryDeprecation);
150421
+ var updateCall = deprecate(factory.updateCallExpression, factoryDeprecation);
150422
+ var createCallChain = deprecate(factory.createCallChain, factoryDeprecation);
150423
+ var updateCallChain = deprecate(factory.updateCallChain, factoryDeprecation);
150424
+ var createNew = deprecate(factory.createNewExpression, factoryDeprecation);
150425
+ var updateNew = deprecate(factory.updateNewExpression, factoryDeprecation);
150426
+ var createTypeAssertion = deprecate(factory.createTypeAssertion, factoryDeprecation);
150427
+ var updateTypeAssertion = deprecate(factory.updateTypeAssertion, factoryDeprecation);
150428
+ var createParen = deprecate(factory.createParenthesizedExpression, factoryDeprecation);
150429
+ var updateParen = deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
150430
+ var createFunctionExpression = deprecate(factory.createFunctionExpression, factoryDeprecation);
150431
+ var updateFunctionExpression = deprecate(factory.updateFunctionExpression, factoryDeprecation);
150432
+ var createDelete = deprecate(factory.createDeleteExpression, factoryDeprecation);
150433
+ var updateDelete = deprecate(factory.updateDeleteExpression, factoryDeprecation);
150434
+ var createTypeOf = deprecate(factory.createTypeOfExpression, factoryDeprecation);
150435
+ var updateTypeOf = deprecate(factory.updateTypeOfExpression, factoryDeprecation);
150436
+ var createVoid = deprecate(factory.createVoidExpression, factoryDeprecation);
150437
+ var updateVoid = deprecate(factory.updateVoidExpression, factoryDeprecation);
150438
+ var createAwait = deprecate(factory.createAwaitExpression, factoryDeprecation);
150439
+ var updateAwait = deprecate(factory.updateAwaitExpression, factoryDeprecation);
150440
+ var createPrefix = deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
150441
+ var updatePrefix = deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
150442
+ var createPostfix = deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
150443
+ var updatePostfix = deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
150444
+ var createBinary = deprecate(factory.createBinaryExpression, factoryDeprecation);
150445
+ var updateConditional = deprecate(factory.updateConditionalExpression, factoryDeprecation);
150446
+ var createTemplateExpression = deprecate(factory.createTemplateExpression, factoryDeprecation);
150447
+ var updateTemplateExpression = deprecate(factory.updateTemplateExpression, factoryDeprecation);
150448
+ var createTemplateHead = deprecate(factory.createTemplateHead, factoryDeprecation);
150449
+ var createTemplateMiddle = deprecate(factory.createTemplateMiddle, factoryDeprecation);
150450
+ var createTemplateTail = deprecate(factory.createTemplateTail, factoryDeprecation);
150451
+ var createNoSubstitutionTemplateLiteral = deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
150452
+ var updateYield = deprecate(factory.updateYieldExpression, factoryDeprecation);
150453
+ var createSpread = deprecate(factory.createSpreadElement, factoryDeprecation);
150454
+ var updateSpread = deprecate(factory.updateSpreadElement, factoryDeprecation);
150455
+ var createOmittedExpression = deprecate(factory.createOmittedExpression, factoryDeprecation);
150456
+ var createAsExpression = deprecate(factory.createAsExpression, factoryDeprecation);
150457
+ var updateAsExpression = deprecate(factory.updateAsExpression, factoryDeprecation);
150458
+ var createNonNullExpression = deprecate(factory.createNonNullExpression, factoryDeprecation);
150459
+ var updateNonNullExpression = deprecate(factory.updateNonNullExpression, factoryDeprecation);
150460
+ var createNonNullChain = deprecate(factory.createNonNullChain, factoryDeprecation);
150461
+ var updateNonNullChain = deprecate(factory.updateNonNullChain, factoryDeprecation);
150462
+ var createMetaProperty = deprecate(factory.createMetaProperty, factoryDeprecation);
150463
+ var updateMetaProperty = deprecate(factory.updateMetaProperty, factoryDeprecation);
150464
+ var createTemplateSpan = deprecate(factory.createTemplateSpan, factoryDeprecation);
150465
+ var updateTemplateSpan = deprecate(factory.updateTemplateSpan, factoryDeprecation);
150466
+ var createSemicolonClassElement = deprecate(factory.createSemicolonClassElement, factoryDeprecation);
150467
+ var createBlock = deprecate(factory.createBlock, factoryDeprecation);
150468
+ var updateBlock = deprecate(factory.updateBlock, factoryDeprecation);
150469
+ var createVariableStatement = deprecate(factory.createVariableStatement, factoryDeprecation);
150470
+ var updateVariableStatement = deprecate(factory.updateVariableStatement, factoryDeprecation);
150471
+ var createEmptyStatement = deprecate(factory.createEmptyStatement, factoryDeprecation);
150472
+ var createExpressionStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
150473
+ var updateExpressionStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
150474
+ var createStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
150475
+ var updateStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
150476
+ var createIf = deprecate(factory.createIfStatement, factoryDeprecation);
150477
+ var updateIf = deprecate(factory.updateIfStatement, factoryDeprecation);
150478
+ var createDo = deprecate(factory.createDoStatement, factoryDeprecation);
150479
+ var updateDo = deprecate(factory.updateDoStatement, factoryDeprecation);
150480
+ var createWhile = deprecate(factory.createWhileStatement, factoryDeprecation);
150481
+ var updateWhile = deprecate(factory.updateWhileStatement, factoryDeprecation);
150482
+ var createFor = deprecate(factory.createForStatement, factoryDeprecation);
150483
+ var updateFor = deprecate(factory.updateForStatement, factoryDeprecation);
150484
+ var createForIn = deprecate(factory.createForInStatement, factoryDeprecation);
150485
+ var updateForIn = deprecate(factory.updateForInStatement, factoryDeprecation);
150486
+ var createForOf = deprecate(factory.createForOfStatement, factoryDeprecation);
150487
+ var updateForOf = deprecate(factory.updateForOfStatement, factoryDeprecation);
150488
+ var createContinue = deprecate(factory.createContinueStatement, factoryDeprecation);
150489
+ var updateContinue = deprecate(factory.updateContinueStatement, factoryDeprecation);
150490
+ var createBreak = deprecate(factory.createBreakStatement, factoryDeprecation);
150491
+ var updateBreak = deprecate(factory.updateBreakStatement, factoryDeprecation);
150492
+ var createReturn = deprecate(factory.createReturnStatement, factoryDeprecation);
150493
+ var updateReturn = deprecate(factory.updateReturnStatement, factoryDeprecation);
150494
+ var createWith = deprecate(factory.createWithStatement, factoryDeprecation);
150495
+ var updateWith = deprecate(factory.updateWithStatement, factoryDeprecation);
150496
+ var createSwitch = deprecate(factory.createSwitchStatement, factoryDeprecation);
150497
+ var updateSwitch = deprecate(factory.updateSwitchStatement, factoryDeprecation);
150498
+ var createLabel = deprecate(factory.createLabeledStatement, factoryDeprecation);
150499
+ var updateLabel = deprecate(factory.updateLabeledStatement, factoryDeprecation);
150500
+ var createThrow = deprecate(factory.createThrowStatement, factoryDeprecation);
150501
+ var updateThrow = deprecate(factory.updateThrowStatement, factoryDeprecation);
150502
+ var createTry = deprecate(factory.createTryStatement, factoryDeprecation);
150503
+ var updateTry = deprecate(factory.updateTryStatement, factoryDeprecation);
150504
+ var createDebuggerStatement = deprecate(factory.createDebuggerStatement, factoryDeprecation);
150505
+ var createVariableDeclarationList = deprecate(factory.createVariableDeclarationList, factoryDeprecation);
150506
+ var updateVariableDeclarationList = deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
150507
+ var createFunctionDeclaration = deprecate(factory.createFunctionDeclaration, factoryDeprecation);
150508
+ var updateFunctionDeclaration = deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
150509
+ var createClassDeclaration = deprecate(factory.createClassDeclaration, factoryDeprecation);
150510
+ var updateClassDeclaration = deprecate(factory.updateClassDeclaration, factoryDeprecation);
150511
+ var createInterfaceDeclaration = deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
150512
+ var updateInterfaceDeclaration = deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
150513
+ var createTypeAliasDeclaration = deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
150514
+ var updateTypeAliasDeclaration = deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
150515
+ var createEnumDeclaration = deprecate(factory.createEnumDeclaration, factoryDeprecation);
150516
+ var updateEnumDeclaration = deprecate(factory.updateEnumDeclaration, factoryDeprecation);
150517
+ var createModuleDeclaration = deprecate(factory.createModuleDeclaration, factoryDeprecation);
150518
+ var updateModuleDeclaration = deprecate(factory.updateModuleDeclaration, factoryDeprecation);
150519
+ var createModuleBlock = deprecate(factory.createModuleBlock, factoryDeprecation);
150520
+ var updateModuleBlock = deprecate(factory.updateModuleBlock, factoryDeprecation);
150521
+ var createCaseBlock = deprecate(factory.createCaseBlock, factoryDeprecation);
150522
+ var updateCaseBlock = deprecate(factory.updateCaseBlock, factoryDeprecation);
150523
+ var createNamespaceExportDeclaration = deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
150524
+ var updateNamespaceExportDeclaration = deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
150525
+ var createImportEqualsDeclaration = deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
150526
+ var updateImportEqualsDeclaration = deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
150527
+ var createImportDeclaration = deprecate(factory.createImportDeclaration, factoryDeprecation);
150528
+ var updateImportDeclaration = deprecate(factory.updateImportDeclaration, factoryDeprecation);
150529
+ var createNamespaceImport = deprecate(factory.createNamespaceImport, factoryDeprecation);
150530
+ var updateNamespaceImport = deprecate(factory.updateNamespaceImport, factoryDeprecation);
150531
+ var createNamedImports = deprecate(factory.createNamedImports, factoryDeprecation);
150532
+ var updateNamedImports = deprecate(factory.updateNamedImports, factoryDeprecation);
150533
+ var createImportSpecifier = deprecate(factory.createImportSpecifier, factoryDeprecation);
150534
+ var updateImportSpecifier = deprecate(factory.updateImportSpecifier, factoryDeprecation);
150535
+ var createExportAssignment2 = deprecate(factory.createExportAssignment, factoryDeprecation);
150536
+ var updateExportAssignment = deprecate(factory.updateExportAssignment, factoryDeprecation);
150537
+ var createNamedExports = deprecate(factory.createNamedExports, factoryDeprecation);
150538
+ var updateNamedExports = deprecate(factory.updateNamedExports, factoryDeprecation);
150539
+ var createExportSpecifier = deprecate(factory.createExportSpecifier, factoryDeprecation);
150540
+ var updateExportSpecifier = deprecate(factory.updateExportSpecifier, factoryDeprecation);
150541
+ var createExternalModuleReference = deprecate(factory.createExternalModuleReference, factoryDeprecation);
150542
+ var updateExternalModuleReference = deprecate(factory.updateExternalModuleReference, factoryDeprecation);
150543
+ var createJSDocTypeExpression = deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
150544
+ var createJSDocTypeTag = deprecate(factory.createJSDocTypeTag, factoryDeprecation);
150545
+ var createJSDocReturnTag = deprecate(factory.createJSDocReturnTag, factoryDeprecation);
150546
+ var createJSDocThisTag = deprecate(factory.createJSDocThisTag, factoryDeprecation);
150547
+ var createJSDocComment = deprecate(factory.createJSDocComment, factoryDeprecation);
150548
+ var createJSDocParameterTag = deprecate(factory.createJSDocParameterTag, factoryDeprecation);
150549
+ var createJSDocClassTag = deprecate(factory.createJSDocClassTag, factoryDeprecation);
150550
+ var createJSDocAugmentsTag = deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
150551
+ var createJSDocEnumTag = deprecate(factory.createJSDocEnumTag, factoryDeprecation);
150552
+ var createJSDocTemplateTag = deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
150553
+ var createJSDocTypedefTag = deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
150554
+ var createJSDocCallbackTag = deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
150555
+ var createJSDocSignature = deprecate(factory.createJSDocSignature, factoryDeprecation);
150556
+ var createJSDocPropertyTag = deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
150557
+ var createJSDocTypeLiteral = deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
150558
+ var createJSDocImplementsTag = deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
150559
+ var createJSDocAuthorTag = deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
150560
+ var createJSDocPublicTag = deprecate(factory.createJSDocPublicTag, factoryDeprecation);
150561
+ var createJSDocPrivateTag = deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
150562
+ var createJSDocProtectedTag = deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
150563
+ var createJSDocReadonlyTag = deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
150564
+ var createJSDocTag = deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
150565
+ var createJsxElement = deprecate(factory.createJsxElement, factoryDeprecation);
150566
+ var updateJsxElement = deprecate(factory.updateJsxElement, factoryDeprecation);
150567
+ var createJsxSelfClosingElement = deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
150568
+ var updateJsxSelfClosingElement = deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
150569
+ var createJsxOpeningElement = deprecate(factory.createJsxOpeningElement, factoryDeprecation);
150570
+ var updateJsxOpeningElement = deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
150571
+ var createJsxClosingElement = deprecate(factory.createJsxClosingElement, factoryDeprecation);
150572
+ var updateJsxClosingElement = deprecate(factory.updateJsxClosingElement, factoryDeprecation);
150573
+ var createJsxFragment = deprecate(factory.createJsxFragment, factoryDeprecation);
150574
+ var createJsxText = deprecate(factory.createJsxText, factoryDeprecation);
150575
+ var updateJsxText = deprecate(factory.updateJsxText, factoryDeprecation);
150576
+ var createJsxOpeningFragment = deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
150577
+ var createJsxJsxClosingFragment = deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
150578
+ var updateJsxFragment = deprecate(factory.updateJsxFragment, factoryDeprecation);
150579
+ var createJsxAttribute = deprecate(factory.createJsxAttribute, factoryDeprecation);
150580
+ var updateJsxAttribute = deprecate(factory.updateJsxAttribute, factoryDeprecation);
150581
+ var createJsxAttributes = deprecate(factory.createJsxAttributes, factoryDeprecation);
150582
+ var updateJsxAttributes = deprecate(factory.updateJsxAttributes, factoryDeprecation);
150583
+ var createJsxSpreadAttribute = deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
150584
+ var updateJsxSpreadAttribute = deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
150585
+ var createJsxExpression = deprecate(factory.createJsxExpression, factoryDeprecation);
150586
+ var updateJsxExpression = deprecate(factory.updateJsxExpression, factoryDeprecation);
150587
+ var createCaseClause = deprecate(factory.createCaseClause, factoryDeprecation);
150588
+ var updateCaseClause = deprecate(factory.updateCaseClause, factoryDeprecation);
150589
+ var createDefaultClause = deprecate(factory.createDefaultClause, factoryDeprecation);
150590
+ var updateDefaultClause = deprecate(factory.updateDefaultClause, factoryDeprecation);
150591
+ var createHeritageClause = deprecate(factory.createHeritageClause, factoryDeprecation);
150592
+ var updateHeritageClause = deprecate(factory.updateHeritageClause, factoryDeprecation);
150593
+ var createCatchClause = deprecate(factory.createCatchClause, factoryDeprecation);
150594
+ var updateCatchClause = deprecate(factory.updateCatchClause, factoryDeprecation);
150595
+ var createPropertyAssignment = deprecate(factory.createPropertyAssignment, factoryDeprecation);
150596
+ var updatePropertyAssignment = deprecate(factory.updatePropertyAssignment, factoryDeprecation);
150597
+ var createShorthandPropertyAssignment = deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
150598
+ var updateShorthandPropertyAssignment = deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
150599
+ var createSpreadAssignment = deprecate(factory.createSpreadAssignment, factoryDeprecation);
150600
+ var updateSpreadAssignment = deprecate(factory.updateSpreadAssignment, factoryDeprecation);
150601
+ var createEnumMember = deprecate(factory.createEnumMember, factoryDeprecation);
150602
+ var updateEnumMember = deprecate(factory.updateEnumMember, factoryDeprecation);
150603
+ var updateSourceFileNode = deprecate(factory.updateSourceFile, factoryDeprecation);
150604
+ var createNotEmittedStatement = deprecate(factory.createNotEmittedStatement, factoryDeprecation);
150605
+ var createPartiallyEmittedExpression = deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
150606
+ var updatePartiallyEmittedExpression = deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
150607
+ var createCommaList = deprecate(factory.createCommaListExpression, factoryDeprecation);
150608
+ var updateCommaList = deprecate(factory.updateCommaListExpression, factoryDeprecation);
150609
+ var createBundle = deprecate(factory.createBundle, factoryDeprecation);
150610
+ var updateBundle = deprecate(factory.updateBundle, factoryDeprecation);
150611
+ var createImmediatelyInvokedFunctionExpression = deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
150612
+ var createImmediatelyInvokedArrowFunction = deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
150613
+ var createVoidZero = deprecate(factory.createVoidZero, factoryDeprecation);
150614
+ var createExportDefault = deprecate(factory.createExportDefault, factoryDeprecation);
150615
+ var createExternalModuleExport = deprecate(factory.createExternalModuleExport, factoryDeprecation);
150616
+ var createNamespaceExport = deprecate(factory.createNamespaceExport, factoryDeprecation);
150617
+ var updateNamespaceExport = deprecate(factory.updateNamespaceExport, factoryDeprecation);
150618
+ var createToken = deprecate(function createToken2(kind) {
150621
150619
  return factory.createToken(kind);
150622
150620
  }, factoryDeprecation);
150623
- var createIdentifier = Debug.deprecate(function createIdentifier2(text) {
150621
+ var createIdentifier = deprecate(function createIdentifier2(text) {
150624
150622
  return factory.createIdentifier(text, void 0, void 0);
150625
150623
  }, factoryDeprecation);
150626
- var createTempVariable = Debug.deprecate(function createTempVariable2(recordTempVariable) {
150624
+ var createTempVariable = deprecate(function createTempVariable2(recordTempVariable) {
150627
150625
  return factory.createTempVariable(recordTempVariable, void 0);
150628
150626
  }, factoryDeprecation);
150629
- var getGeneratedNameForNode = Debug.deprecate(function getGeneratedNameForNode2(node) {
150627
+ var getGeneratedNameForNode = deprecate(function getGeneratedNameForNode2(node) {
150630
150628
  return factory.getGeneratedNameForNode(node, void 0);
150631
150629
  }, factoryDeprecation);
150632
- var createOptimisticUniqueName = Debug.deprecate(function createOptimisticUniqueName2(text) {
150630
+ var createOptimisticUniqueName = deprecate(function createOptimisticUniqueName2(text) {
150633
150631
  return factory.createUniqueName(text, 16 /* Optimistic */);
150634
150632
  }, factoryDeprecation);
150635
- var createFileLevelUniqueName = Debug.deprecate(function createFileLevelUniqueName2(text) {
150633
+ var createFileLevelUniqueName = deprecate(function createFileLevelUniqueName2(text) {
150636
150634
  return factory.createUniqueName(text, 16 /* Optimistic */ | 32 /* FileLevel */);
150637
150635
  }, factoryDeprecation);
150638
- var createIndexSignature = Debug.deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
150636
+ var createIndexSignature = deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
150639
150637
  return factory.createIndexSignature(decorators, modifiers, parameters, type);
150640
150638
  }, factoryDeprecation);
150641
- var createTypePredicateNode = Debug.deprecate(function createTypePredicateNode2(parameterName, type) {
150639
+ var createTypePredicateNode = deprecate(function createTypePredicateNode2(parameterName, type) {
150642
150640
  return factory.createTypePredicateNode(void 0, parameterName, type);
150643
150641
  }, factoryDeprecation);
150644
- var updateTypePredicateNode = Debug.deprecate(function updateTypePredicateNode2(node, parameterName, type) {
150642
+ var updateTypePredicateNode = deprecate(function updateTypePredicateNode2(node, parameterName, type) {
150645
150643
  return factory.updateTypePredicateNode(node, void 0, parameterName, type);
150646
150644
  }, factoryDeprecation);
150647
- var createLiteral = Debug.deprecate(function createLiteral2(value) {
150645
+ var createLiteral = deprecate(function createLiteral2(value) {
150648
150646
  if (typeof value === "number") {
150649
150647
  return factory.createNumericLiteral(value);
150650
150648
  }
@@ -150659,13 +150657,13 @@ ${options.prefix}` : "\n" : options.prefix
150659
150657
  }
150660
150658
  return factory.createStringLiteralFromNode(value);
150661
150659
  }, { 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." });
150662
- var createMethodSignature = Debug.deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
150660
+ var createMethodSignature = deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
150663
150661
  return factory.createMethodSignature(void 0, name, questionToken, typeParameters, parameters, type);
150664
150662
  }, factoryDeprecation);
150665
- var updateMethodSignature = Debug.deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
150663
+ var updateMethodSignature = deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
150666
150664
  return factory.updateMethodSignature(node, node.modifiers, name, questionToken, typeParameters, parameters, type);
150667
150665
  }, factoryDeprecation);
150668
- var createTypeOperatorNode = Debug.deprecate(function createTypeOperatorNode2(operatorOrType, type) {
150666
+ var createTypeOperatorNode = deprecate(function createTypeOperatorNode2(operatorOrType, type) {
150669
150667
  let operator;
150670
150668
  if (type) {
150671
150669
  operator = operatorOrType;
@@ -150675,7 +150673,7 @@ ${options.prefix}` : "\n" : options.prefix
150675
150673
  }
150676
150674
  return factory.createTypeOperatorNode(operator, type);
150677
150675
  }, factoryDeprecation);
150678
- var createTaggedTemplate = Debug.deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
150676
+ var createTaggedTemplate = deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
150679
150677
  let typeArguments;
150680
150678
  if (template) {
150681
150679
  typeArguments = typeArgumentsOrTemplate;
@@ -150684,7 +150682,7 @@ ${options.prefix}` : "\n" : options.prefix
150684
150682
  }
150685
150683
  return factory.createTaggedTemplateExpression(tag, typeArguments, template);
150686
150684
  }, factoryDeprecation);
150687
- var updateTaggedTemplate = Debug.deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
150685
+ var updateTaggedTemplate = deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
150688
150686
  let typeArguments;
150689
150687
  if (template) {
150690
150688
  typeArguments = typeArgumentsOrTemplate;
@@ -150693,16 +150691,16 @@ ${options.prefix}` : "\n" : options.prefix
150693
150691
  }
150694
150692
  return factory.updateTaggedTemplateExpression(node, tag, typeArguments, template);
150695
150693
  }, factoryDeprecation);
150696
- var updateBinary = Debug.deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
150694
+ var updateBinary = deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
150697
150695
  if (typeof operator === "number") {
150698
150696
  operator = operator === node.operatorToken.kind ? node.operatorToken : factory.createToken(operator);
150699
150697
  }
150700
150698
  return factory.updateBinaryExpression(node, left, operator, right);
150701
150699
  }, factoryDeprecation);
150702
- var createConditional = Debug.deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
150700
+ var createConditional = deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
150703
150701
  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");
150704
150702
  }, factoryDeprecation);
150705
- var createYield = Debug.deprecate(function createYield2(asteriskTokenOrExpression, expression) {
150703
+ var createYield = deprecate(function createYield2(asteriskTokenOrExpression, expression) {
150706
150704
  let asteriskToken;
150707
150705
  if (expression) {
150708
150706
  asteriskToken = asteriskTokenOrExpression;
@@ -150711,18 +150709,18 @@ ${options.prefix}` : "\n" : options.prefix
150711
150709
  }
150712
150710
  return factory.createYieldExpression(asteriskToken, expression);
150713
150711
  }, factoryDeprecation);
150714
- var createClassExpression = Debug.deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
150712
+ var createClassExpression = deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
150715
150713
  return factory.createClassExpression(void 0, modifiers, name, typeParameters, heritageClauses, members);
150716
150714
  }, factoryDeprecation);
150717
- var updateClassExpression = Debug.deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
150715
+ var updateClassExpression = deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
150718
150716
  return factory.updateClassExpression(node, void 0, modifiers, name, typeParameters, heritageClauses, members);
150719
150717
  }, factoryDeprecation);
150720
- var createPropertySignature = Debug.deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
150718
+ var createPropertySignature = deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
150721
150719
  const node = factory.createPropertySignature(modifiers, name, questionToken, type);
150722
150720
  node.initializer = initializer;
150723
150721
  return node;
150724
150722
  }, factoryDeprecation);
150725
- var updatePropertySignature = Debug.deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
150723
+ var updatePropertySignature = deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
150726
150724
  let updated = factory.updatePropertySignature(node, modifiers, name, questionToken, type);
150727
150725
  if (node.initializer !== initializer) {
150728
150726
  if (updated === node) {
@@ -150732,80 +150730,80 @@ ${options.prefix}` : "\n" : options.prefix
150732
150730
  }
150733
150731
  return updated;
150734
150732
  }, factoryDeprecation);
150735
- var createExpressionWithTypeArguments = Debug.deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
150733
+ var createExpressionWithTypeArguments = deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
150736
150734
  return factory.createExpressionWithTypeArguments(expression, typeArguments);
150737
150735
  }, factoryDeprecation);
150738
- var updateExpressionWithTypeArguments = Debug.deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
150736
+ var updateExpressionWithTypeArguments = deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
150739
150737
  return factory.updateExpressionWithTypeArguments(node, expression, typeArguments);
150740
150738
  }, factoryDeprecation);
150741
- var createArrowFunction = Debug.deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
150739
+ var createArrowFunction = deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
150742
150740
  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");
150743
150741
  }, factoryDeprecation);
150744
- var updateArrowFunction = Debug.deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
150742
+ var updateArrowFunction = deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
150745
150743
  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");
150746
150744
  }, factoryDeprecation);
150747
- var createVariableDeclaration = Debug.deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
150745
+ var createVariableDeclaration = deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
150748
150746
  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");
150749
150747
  }, factoryDeprecation);
150750
- var updateVariableDeclaration = Debug.deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
150748
+ var updateVariableDeclaration = deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
150751
150749
  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");
150752
150750
  }, factoryDeprecation);
150753
- var createImportClause = Debug.deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
150751
+ var createImportClause = deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
150754
150752
  return factory.createImportClause(isTypeOnly, name, namedBindings);
150755
150753
  }, factoryDeprecation);
150756
- var updateImportClause = Debug.deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
150754
+ var updateImportClause = deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
150757
150755
  return factory.updateImportClause(node, isTypeOnly, name, namedBindings);
150758
150756
  }, factoryDeprecation);
150759
- var createExportDeclaration = Debug.deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
150757
+ var createExportDeclaration = deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
150760
150758
  return factory.createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);
150761
150759
  }, factoryDeprecation);
150762
- var updateExportDeclaration = Debug.deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
150760
+ var updateExportDeclaration = deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
150763
150761
  return factory.updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, node.assertClause);
150764
150762
  }, factoryDeprecation);
150765
- var createJSDocParamTag = Debug.deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
150763
+ var createJSDocParamTag = deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
150766
150764
  return factory.createJSDocParameterTag(void 0, name, isBracketed, typeExpression, false, comment ? factory.createNodeArray([factory.createJSDocText(comment)]) : void 0);
150767
150765
  }, factoryDeprecation);
150768
- var createComma = Debug.deprecate(function createComma2(left, right) {
150766
+ var createComma = deprecate(function createComma2(left, right) {
150769
150767
  return factory.createComma(left, right);
150770
150768
  }, factoryDeprecation);
150771
- var createLessThan = Debug.deprecate(function createLessThan2(left, right) {
150769
+ var createLessThan = deprecate(function createLessThan2(left, right) {
150772
150770
  return factory.createLessThan(left, right);
150773
150771
  }, factoryDeprecation);
150774
- var createAssignment = Debug.deprecate(function createAssignment2(left, right) {
150772
+ var createAssignment = deprecate(function createAssignment2(left, right) {
150775
150773
  return factory.createAssignment(left, right);
150776
150774
  }, factoryDeprecation);
150777
- var createStrictEquality = Debug.deprecate(function createStrictEquality2(left, right) {
150775
+ var createStrictEquality = deprecate(function createStrictEquality2(left, right) {
150778
150776
  return factory.createStrictEquality(left, right);
150779
150777
  }, factoryDeprecation);
150780
- var createStrictInequality = Debug.deprecate(function createStrictInequality2(left, right) {
150778
+ var createStrictInequality = deprecate(function createStrictInequality2(left, right) {
150781
150779
  return factory.createStrictInequality(left, right);
150782
150780
  }, factoryDeprecation);
150783
- var createAdd = Debug.deprecate(function createAdd2(left, right) {
150781
+ var createAdd = deprecate(function createAdd2(left, right) {
150784
150782
  return factory.createAdd(left, right);
150785
150783
  }, factoryDeprecation);
150786
- var createSubtract = Debug.deprecate(function createSubtract2(left, right) {
150784
+ var createSubtract = deprecate(function createSubtract2(left, right) {
150787
150785
  return factory.createSubtract(left, right);
150788
150786
  }, factoryDeprecation);
150789
- var createLogicalAnd = Debug.deprecate(function createLogicalAnd2(left, right) {
150787
+ var createLogicalAnd = deprecate(function createLogicalAnd2(left, right) {
150790
150788
  return factory.createLogicalAnd(left, right);
150791
150789
  }, factoryDeprecation);
150792
- var createLogicalOr = Debug.deprecate(function createLogicalOr2(left, right) {
150790
+ var createLogicalOr = deprecate(function createLogicalOr2(left, right) {
150793
150791
  return factory.createLogicalOr(left, right);
150794
150792
  }, factoryDeprecation);
150795
- var createPostfixIncrement = Debug.deprecate(function createPostfixIncrement2(operand) {
150793
+ var createPostfixIncrement = deprecate(function createPostfixIncrement2(operand) {
150796
150794
  return factory.createPostfixIncrement(operand);
150797
150795
  }, factoryDeprecation);
150798
- var createLogicalNot = Debug.deprecate(function createLogicalNot2(operand) {
150796
+ var createLogicalNot = deprecate(function createLogicalNot2(operand) {
150799
150797
  return factory.createLogicalNot(operand);
150800
150798
  }, factoryDeprecation);
150801
- var createNode2 = Debug.deprecate(function createNode3(kind, pos = 0, end = 0) {
150799
+ var createNode2 = deprecate(function createNode3(kind, pos = 0, end = 0) {
150802
150800
  return setTextRangePosEnd(
150803
150801
  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),
150804
150802
  pos,
150805
150803
  end
150806
150804
  );
150807
150805
  }, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory` method instead." });
150808
- var getMutableClone = Debug.deprecate(function getMutableClone2(node) {
150806
+ var getMutableClone = deprecate(function getMutableClone2(node) {
150809
150807
  const clone2 = factory.cloneNode(node);
150810
150808
  setTextRange(clone2, node);
150811
150809
  setParent(clone2, node.parent);
@@ -150813,7 +150811,7 @@ ${options.prefix}` : "\n" : options.prefix
150813
150811
  }, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`." });
150814
150812
 
150815
150813
  // src/deprecatedCompat/4.0/renamedNodeTests.ts
150816
- var isTypeAssertion = Debug.deprecate(function isTypeAssertion2(node) {
150814
+ var isTypeAssertion = deprecate(function isTypeAssertion2(node) {
150817
150815
  return node.kind === 213 /* TypeAssertionExpression */;
150818
150816
  }, {
150819
150817
  since: "4.0",
@@ -150822,7 +150820,7 @@ ${options.prefix}` : "\n" : options.prefix
150822
150820
  });
150823
150821
 
150824
150822
  // src/deprecatedCompat/4.2/renamedNodeTests.ts
150825
- var isIdentifierOrPrivateIdentifier = Debug.deprecate(function isIdentifierOrPrivateIdentifier2(node) {
150823
+ var isIdentifierOrPrivateIdentifier = deprecate(function isIdentifierOrPrivateIdentifier2(node) {
150826
150824
  return isMemberName(node);
150827
150825
  }, {
150828
150826
  since: "4.2",
@@ -152528,6 +152526,7 @@ ${options.prefix}` : "\n" : options.prefix
152528
152526
  this.dirty = false;
152529
152527
  this.typingFiles = emptyArray2;
152530
152528
  this.moduleSpecifierCache = createModuleSpecifierCache(this);
152529
+ this.createHash = maybeBind(this.projectService.host, this.projectService.host.createHash);
152531
152530
  this.globalCacheResolutionModuleName = ts_JsTyping_exports.nonRelativeModuleNameForTypingCache;
152532
152531
  this.projectName = projectName;
152533
152532
  this.directoryStructureHost = directoryStructureHost;
@@ -152856,15 +152855,14 @@ ${options.prefix}` : "\n" : options.prefix
152856
152855
  return [];
152857
152856
  }
152858
152857
  updateProjectIfDirty(this);
152859
- this.builderState = BuilderState.create(this.program, this.projectService.toCanonicalFileName, this.builderState, true);
152858
+ this.builderState = BuilderState.create(this.program, this.builderState, true);
152860
152859
  return mapDefined(
152861
152860
  BuilderState.getFilesAffectedBy(
152862
152861
  this.builderState,
152863
152862
  this.program,
152864
152863
  scriptInfo.path,
152865
152864
  this.cancellationToken,
152866
- maybeBind(this.projectService.host, this.projectService.host.createHash),
152867
- this.getCanonicalFileName
152865
+ this.projectService.host
152868
152866
  ),
152869
152867
  (sourceFile) => this.shouldEmitFile(this.projectService.getScriptInfoForPath(sourceFile.path)) ? sourceFile.fileName : void 0
152870
152868
  );