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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tsserver.js CHANGED
@@ -253,6 +253,7 @@ var ts = (() => {
253
253
  canHaveModifiers: () => canHaveModifiers,
254
254
  canJsonReportNoInputFiles: () => canJsonReportNoInputFiles,
255
255
  canProduceDiagnostics: () => canProduceDiagnostics,
256
+ canUsePropertyAccess: () => canUsePropertyAccess,
256
257
  canWatchDirectoryOrFile: () => canWatchDirectoryOrFile,
257
258
  cartesianProduct: () => cartesianProduct,
258
259
  cast: () => cast,
@@ -1928,6 +1929,7 @@ var ts = (() => {
1928
1929
  isUnparsedSource: () => isUnparsedSource,
1929
1930
  isUnparsedTextLike: () => isUnparsedTextLike,
1930
1931
  isUrl: () => isUrl,
1932
+ isValidBigIntString: () => isValidBigIntString,
1931
1933
  isValidESSymbolDeclaration: () => isValidESSymbolDeclaration,
1932
1934
  isValidTypeOnlyAliasUseSite: () => isValidTypeOnlyAliasUseSite,
1933
1935
  isValueSignatureDeclaration: () => isValueSignatureDeclaration,
@@ -2059,6 +2061,7 @@ var ts = (() => {
2059
2061
  parameterIsThisKeyword: () => parameterIsThisKeyword,
2060
2062
  parameterNamePart: () => parameterNamePart,
2061
2063
  parseBaseNodeFactory: () => parseBaseNodeFactory,
2064
+ parseBigInt: () => parseBigInt,
2062
2065
  parseBuildCommand: () => parseBuildCommand,
2063
2066
  parseCommandLine: () => parseCommandLine,
2064
2067
  parseCommandLineWorker: () => parseCommandLineWorker,
@@ -2077,6 +2080,7 @@ var ts = (() => {
2077
2080
  parseNodeModuleFromPath: () => parseNodeModuleFromPath,
2078
2081
  parsePackageName: () => parsePackageName,
2079
2082
  parsePseudoBigInt: () => parsePseudoBigInt,
2083
+ parseValidBigInt: () => parseValidBigInt,
2080
2084
  patchWriteFileEnsuringDirectory: () => patchWriteFileEnsuringDirectory,
2081
2085
  pathContainsNodeModules: () => pathContainsNodeModules,
2082
2086
  pathIsAbsolute: () => pathIsAbsolute,
@@ -2257,6 +2261,7 @@ var ts = (() => {
2257
2261
  supportedLocaleDirectories: () => supportedLocaleDirectories,
2258
2262
  supportedTSExtensions: () => supportedTSExtensions,
2259
2263
  supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
2264
+ supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
2260
2265
  suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
2261
2266
  suppressLeadingTrivia: () => suppressLeadingTrivia,
2262
2267
  suppressTrailingTrivia: () => suppressTrailingTrivia,
@@ -2647,7 +2652,7 @@ var ts = (() => {
2647
2652
 
2648
2653
  // src/compiler/corePublic.ts
2649
2654
  var versionMajorMinor = "5.0";
2650
- var version = `${versionMajorMinor}.0-insiders.20221111`;
2655
+ var version = `${versionMajorMinor}.0-insiders.20221123`;
2651
2656
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2652
2657
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2653
2658
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -4382,15 +4387,9 @@ var ts = (() => {
4382
4387
  })(LogLevel || {});
4383
4388
  var Debug;
4384
4389
  ((Debug2) => {
4385
- let typeScriptVersion2;
4386
4390
  let currentAssertionLevel = 0 /* None */;
4387
4391
  Debug2.currentLogLevel = 2 /* Warning */;
4388
4392
  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
4393
  function shouldLog(level) {
4395
4394
  return Debug2.currentLogLevel <= level;
4396
4395
  }
@@ -4906,52 +4905,6 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
4906
4905
  isDebugInfoEnabled = true;
4907
4906
  }
4908
4907
  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
4908
  function formatVariance(varianceFlags) {
4956
4909
  const variance = varianceFlags & 7 /* VarianceMask */;
4957
4910
  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 +6872,7 @@ ${lanes.join("\n")}
6919
6872
  return EnumKind2;
6920
6873
  })(EnumKind || {});
6921
6874
  var CheckFlags = /* @__PURE__ */ ((CheckFlags2) => {
6875
+ CheckFlags2[CheckFlags2["None"] = 0] = "None";
6922
6876
  CheckFlags2[CheckFlags2["Instantiated"] = 1] = "Instantiated";
6923
6877
  CheckFlags2[CheckFlags2["SyntheticProperty"] = 2] = "SyntheticProperty";
6924
6878
  CheckFlags2[CheckFlags2["SyntheticMethod"] = 4] = "SyntheticMethod";
@@ -6966,31 +6920,32 @@ ${lanes.join("\n")}
6966
6920
  return InternalSymbolName2;
6967
6921
  })(InternalSymbolName || {});
6968
6922
  var NodeCheckFlags = /* @__PURE__ */ ((NodeCheckFlags2) => {
6923
+ NodeCheckFlags2[NodeCheckFlags2["None"] = 0] = "None";
6969
6924
  NodeCheckFlags2[NodeCheckFlags2["TypeChecked"] = 1] = "TypeChecked";
6970
6925
  NodeCheckFlags2[NodeCheckFlags2["LexicalThis"] = 2] = "LexicalThis";
6971
6926
  NodeCheckFlags2[NodeCheckFlags2["CaptureThis"] = 4] = "CaptureThis";
6972
6927
  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";
6928
+ NodeCheckFlags2[NodeCheckFlags2["SuperInstance"] = 16] = "SuperInstance";
6929
+ NodeCheckFlags2[NodeCheckFlags2["SuperStatic"] = 32] = "SuperStatic";
6930
+ NodeCheckFlags2[NodeCheckFlags2["ContextChecked"] = 64] = "ContextChecked";
6931
+ NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAccessInAsync"] = 128] = "MethodWithSuperPropertyAccessInAsync";
6932
+ NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAssignmentInAsync"] = 256] = "MethodWithSuperPropertyAssignmentInAsync";
6933
+ NodeCheckFlags2[NodeCheckFlags2["CaptureArguments"] = 512] = "CaptureArguments";
6934
+ NodeCheckFlags2[NodeCheckFlags2["EnumValuesComputed"] = 1024] = "EnumValuesComputed";
6935
+ NodeCheckFlags2[NodeCheckFlags2["LexicalModuleMergesWithClass"] = 2048] = "LexicalModuleMergesWithClass";
6936
+ NodeCheckFlags2[NodeCheckFlags2["LoopWithCapturedBlockScopedBinding"] = 4096] = "LoopWithCapturedBlockScopedBinding";
6937
+ NodeCheckFlags2[NodeCheckFlags2["ContainsCapturedBlockScopeBinding"] = 8192] = "ContainsCapturedBlockScopeBinding";
6938
+ NodeCheckFlags2[NodeCheckFlags2["CapturedBlockScopedBinding"] = 16384] = "CapturedBlockScopedBinding";
6939
+ NodeCheckFlags2[NodeCheckFlags2["BlockScopedBindingInLoop"] = 32768] = "BlockScopedBindingInLoop";
6940
+ NodeCheckFlags2[NodeCheckFlags2["ClassWithBodyScopedClassBinding"] = 65536] = "ClassWithBodyScopedClassBinding";
6941
+ NodeCheckFlags2[NodeCheckFlags2["BodyScopedClassBinding"] = 131072] = "BodyScopedClassBinding";
6942
+ NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 262144] = "NeedsLoopOutParameter";
6943
+ NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 524288] = "AssignmentsMarked";
6944
+ NodeCheckFlags2[NodeCheckFlags2["ClassWithConstructorReference"] = 1048576] = "ClassWithConstructorReference";
6945
+ NodeCheckFlags2[NodeCheckFlags2["ConstructorReferenceInClass"] = 2097152] = "ConstructorReferenceInClass";
6946
+ NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 4194304] = "ContainsClassWithPrivateIdentifiers";
6947
+ NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 8388608] = "ContainsSuperPropertyInStaticInitializer";
6948
+ NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 16777216] = "InCheckIdentifier";
6994
6949
  return NodeCheckFlags2;
6995
6950
  })(NodeCheckFlags || {});
6996
6951
  var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
@@ -7063,6 +7018,7 @@ ${lanes.join("\n")}
7063
7018
  return TypeFlags2;
7064
7019
  })(TypeFlags || {});
7065
7020
  var ObjectFlags = /* @__PURE__ */ ((ObjectFlags3) => {
7021
+ ObjectFlags3[ObjectFlags3["None"] = 0] = "None";
7066
7022
  ObjectFlags3[ObjectFlags3["Class"] = 1] = "Class";
7067
7023
  ObjectFlags3[ObjectFlags3["Interface"] = 2] = "Interface";
7068
7024
  ObjectFlags3[ObjectFlags3["Reference"] = 4] = "Reference";
@@ -7180,6 +7136,7 @@ ${lanes.join("\n")}
7180
7136
  return TypeMapKind2;
7181
7137
  })(TypeMapKind || {});
7182
7138
  var InferencePriority = /* @__PURE__ */ ((InferencePriority2) => {
7139
+ InferencePriority2[InferencePriority2["None"] = 0] = "None";
7183
7140
  InferencePriority2[InferencePriority2["NakedTypeVariable"] = 1] = "NakedTypeVariable";
7184
7141
  InferencePriority2[InferencePriority2["SpeculativeTuple"] = 2] = "SpeculativeTuple";
7185
7142
  InferencePriority2[InferencePriority2["SubstituteSource"] = 4] = "SubstituteSource";
@@ -10642,10 +10599,10 @@ ${lanes.join("\n")}
10642
10599
  Module_name_0_matched_pattern_1: diag(6092, 3 /* Message */, "Module_name_0_matched_pattern_1_6092", "Module name '{0}', matched pattern '{1}'."),
10643
10600
  Trying_substitution_0_candidate_module_location_Colon_1: diag(6093, 3 /* Message */, "Trying_substitution_0_candidate_module_location_Colon_1_6093", "Trying substitution '{0}', candidate module location: '{1}'."),
10644
10601
  Resolving_module_name_0_relative_to_base_url_1_2: diag(6094, 3 /* Message */, "Resolving_module_name_0_relative_to_base_url_1_2_6094", "Resolving module name '{0}' relative to base url '{1}' - '{2}'."),
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}'."),
10602
+ Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1: diag(6095, 3 /* Message */, "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095", "Loading module as file / folder, candidate module location '{0}', target file types: {1}."),
10646
10603
  File_0_does_not_exist: diag(6096, 3 /* Message */, "File_0_does_not_exist_6096", "File '{0}' does not exist."),
10647
10604
  File_0_exist_use_it_as_a_name_resolution_result: diag(6097, 3 /* Message */, "File_0_exist_use_it_as_a_name_resolution_result_6097", "File '{0}' exist - use it as a name resolution result."),
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}'."),
10605
+ Loading_module_0_from_node_modules_folder_target_file_types_Colon_1: diag(6098, 3 /* Message */, "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098", "Loading module '{0}' from 'node_modules' folder, target file types: {1}."),
10649
10606
  Found_package_json_at_0: diag(6099, 3 /* Message */, "Found_package_json_at_0_6099", "Found 'package.json' at '{0}'."),
10650
10607
  package_json_does_not_have_a_0_field: diag(6100, 3 /* Message */, "package_json_does_not_have_a_0_field_6100", "'package.json' does not have a '{0}' field."),
10651
10608
  package_json_has_0_field_1_that_references_2: diag(6101, 3 /* Message */, "package_json_has_0_field_1_that_references_2_6101", "'package.json' has '{0}' field '{1}' that references '{2}'."),
@@ -19582,6 +19539,7 @@ ${lanes.join("\n")}
19582
19539
  var allSupportedExtensions = [[".ts" /* Ts */, ".tsx" /* Tsx */, ".d.ts" /* Dts */, ".js" /* Js */, ".jsx" /* Jsx */], [".cts" /* Cts */, ".d.cts" /* Dcts */, ".cjs" /* Cjs */], [".mts" /* Mts */, ".d.mts" /* Dmts */, ".mjs" /* Mjs */]];
19583
19540
  var allSupportedExtensionsWithJson = [...allSupportedExtensions, [".json" /* Json */]];
19584
19541
  var supportedDeclarationExtensions = [".d.ts" /* Dts */, ".d.cts" /* Dcts */, ".d.mts" /* Dmts */];
19542
+ var supportedTSImplementationExtensions = [".ts" /* Ts */, ".cts" /* Cts */, ".mts" /* Mts */, ".tsx" /* Tsx */];
19585
19543
  function getSupportedExtensions(options, extraFileExtensions) {
19586
19544
  const needJsExtensions = options && getAllowJSCompilerOption(options);
19587
19545
  if (!extraFileExtensions || extraFileExtensions.length === 0) {
@@ -19807,6 +19765,32 @@ ${lanes.join("\n")}
19807
19765
  function pseudoBigIntToString({ negative, base10Value }) {
19808
19766
  return (negative && base10Value !== "0" ? "-" : "") + base10Value;
19809
19767
  }
19768
+ function parseBigInt(text) {
19769
+ if (!isValidBigIntString(text, false)) {
19770
+ return void 0;
19771
+ }
19772
+ return parseValidBigInt(text);
19773
+ }
19774
+ function parseValidBigInt(text) {
19775
+ const negative = text.startsWith("-");
19776
+ const base10Value = parsePseudoBigInt(`${negative ? text.slice(1) : text}n`);
19777
+ return { negative, base10Value };
19778
+ }
19779
+ function isValidBigIntString(s, roundTripOnly) {
19780
+ if (s === "")
19781
+ return false;
19782
+ const scanner2 = createScanner(99 /* ESNext */, false);
19783
+ let success = true;
19784
+ scanner2.setOnError(() => success = false);
19785
+ scanner2.setText(s + "n");
19786
+ let result = scanner2.scan();
19787
+ const negative = result === 40 /* MinusToken */;
19788
+ if (negative) {
19789
+ result = scanner2.scan();
19790
+ }
19791
+ const flags = scanner2.getTokenFlags();
19792
+ return success && result === 9 /* BigIntLiteral */ && scanner2.getTextPos() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner2.getTokenValue()) }));
19793
+ }
19810
19794
  function isValidTypeOnlyAliasUseSite(useSite) {
19811
19795
  return !!(useSite.flags & 16777216 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
19812
19796
  }
@@ -20133,6 +20117,10 @@ ${lanes.join("\n")}
20133
20117
  const { isBracketed, typeExpression } = node;
20134
20118
  return isBracketed || !!typeExpression && typeExpression.type.kind === 319 /* JSDocOptionalType */;
20135
20119
  }
20120
+ function canUsePropertyAccess(name, languageVersion) {
20121
+ const firstChar = name.charCodeAt(0);
20122
+ return firstChar === 35 /* hash */ ? name.length > 1 && isIdentifierStart(name.charCodeAt(1), languageVersion) : isIdentifierStart(firstChar, languageVersion);
20123
+ }
20136
20124
 
20137
20125
  // src/compiler/factory/baseNodeFactory.ts
20138
20126
  function createBaseNodeFactory() {
@@ -25634,7 +25622,7 @@ ${lanes.join("\n")}
25634
25622
  var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
25635
25623
  var i, p;
25636
25624
  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; }
25625
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
25638
25626
  };`
25639
25627
  };
25640
25628
  var asyncValues = {
@@ -37420,15 +37408,18 @@ ${lanes.join("\n")}
37420
37408
  return { path: r.path, ext: r.extension };
37421
37409
  }
37422
37410
  }
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 || {});
37411
+ function formatExtensions(extensions) {
37412
+ const result = [];
37413
+ if (extensions & 1 /* TypeScript */)
37414
+ result.push("TypeScript");
37415
+ if (extensions & 2 /* JavaScript */)
37416
+ result.push("JavaScript");
37417
+ if (extensions & 4 /* Declaration */)
37418
+ result.push("Declaration");
37419
+ if (extensions & 8 /* Json */)
37420
+ result.push("JSON");
37421
+ return result.join(", ");
37422
+ }
37432
37423
  function resolvedTypeScriptOnly(resolved) {
37433
37424
  if (!resolved) {
37434
37425
  return void 0;
@@ -37632,7 +37623,8 @@ ${lanes.join("\n")}
37632
37623
  features,
37633
37624
  conditions,
37634
37625
  requestContainingDirectory: containingDirectory,
37635
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
37626
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
37627
+ isConfigLookup: false
37636
37628
  };
37637
37629
  let resolved = primaryLookup();
37638
37630
  let primary = true;
@@ -37682,7 +37674,7 @@ ${lanes.join("\n")}
37682
37674
  }
37683
37675
  return resolvedTypeScriptOnly(
37684
37676
  loadNodeModuleFromDirectory(
37685
- 4 /* DtsOnly */,
37677
+ 4 /* Declaration */,
37686
37678
  candidate,
37687
37679
  !directoryExists,
37688
37680
  moduleResolutionState
@@ -37703,11 +37695,11 @@ ${lanes.join("\n")}
37703
37695
  }
37704
37696
  let result2;
37705
37697
  if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) {
37706
- const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /* DtsOnly */, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);
37698
+ const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /* Declaration */, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);
37707
37699
  result2 = searchResult && searchResult.value;
37708
37700
  } else {
37709
37701
  const { path: candidate } = normalizePathForCJSResolution(initialLocationForSecondaryLookup, typeReferenceDirectiveName);
37710
- result2 = nodeLoadModuleByRelativeName(4 /* DtsOnly */, candidate, false, moduleResolutionState, true);
37702
+ result2 = nodeLoadModuleByRelativeName(4 /* Declaration */, candidate, false, moduleResolutionState, true);
37711
37703
  }
37712
37704
  return resolvedTypeScriptOnly(result2);
37713
37705
  } else {
@@ -38233,38 +38225,42 @@ ${lanes.join("\n")}
38233
38225
  resolutionMode
38234
38226
  );
38235
38227
  }
38236
- var jsOnlyExtensions = [1 /* JavaScript */];
38237
- var tsExtensions = [0 /* TypeScript */, 1 /* JavaScript */];
38238
- var tsPlusJsonExtensions = [...tsExtensions, 2 /* Json */];
38239
- var tsconfigExtensions = [3 /* TSConfig */];
38240
38228
  function nodeNextModuleNameResolverWorker(features, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {
38241
38229
  const containingDirectory = getDirectoryPath(containingFile);
38242
38230
  const esmMode = resolutionMode === 99 /* ESNext */ ? 32 /* EsmMode */ : 0;
38243
- let extensions = compilerOptions.noDtsResolution ? [5 /* TsOnly */, 1 /* JavaScript */] : tsExtensions;
38231
+ let extensions = compilerOptions.noDtsResolution ? 3 /* ImplementationFiles */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
38244
38232
  if (compilerOptions.resolveJsonModule) {
38245
- extensions = [...extensions, 2 /* Json */];
38233
+ extensions |= 8 /* Json */;
38246
38234
  }
38247
- return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference);
38235
+ return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, false, redirectedReference);
38248
38236
  }
38249
38237
  function tryResolveJSModuleWorker(moduleName, initialDir, host) {
38250
- return nodeModuleNameResolverWorker(0 /* None */, moduleName, initialDir, { moduleResolution: 2 /* NodeJs */, allowJs: true }, host, void 0, jsOnlyExtensions, void 0);
38238
+ return nodeModuleNameResolverWorker(
38239
+ 0 /* None */,
38240
+ moduleName,
38241
+ initialDir,
38242
+ { moduleResolution: 2 /* NodeJs */, allowJs: true },
38243
+ host,
38244
+ void 0,
38245
+ 2 /* JavaScript */,
38246
+ false,
38247
+ void 0
38248
+ );
38251
38249
  }
38252
- function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, lookupConfig) {
38250
+ function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, isConfigLookup) {
38253
38251
  let extensions;
38254
- if (lookupConfig) {
38255
- extensions = tsconfigExtensions;
38252
+ if (isConfigLookup) {
38253
+ extensions = 8 /* Json */;
38256
38254
  } else if (compilerOptions.noDtsResolution) {
38257
- extensions = [5 /* TsOnly */];
38258
- if (compilerOptions.allowJs)
38259
- extensions.push(1 /* JavaScript */);
38255
+ extensions = 3 /* ImplementationFiles */;
38260
38256
  if (compilerOptions.resolveJsonModule)
38261
- extensions.push(2 /* Json */);
38257
+ extensions |= 8 /* Json */;
38262
38258
  } else {
38263
- extensions = compilerOptions.resolveJsonModule ? tsPlusJsonExtensions : tsExtensions;
38259
+ extensions = compilerOptions.resolveJsonModule ? 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */ | 8 /* Json */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
38264
38260
  }
38265
- return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, redirectedReference);
38261
+ return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, !!isConfigLookup, redirectedReference);
38266
38262
  }
38267
- function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference) {
38263
+ function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, isConfigLookup, redirectedReference) {
38268
38264
  var _a2, _b;
38269
38265
  const traceEnabled = isTraceEnabled(compilerOptions, host);
38270
38266
  const failedLookupLocations = [];
@@ -38284,12 +38280,20 @@ ${lanes.join("\n")}
38284
38280
  features,
38285
38281
  conditions,
38286
38282
  requestContainingDirectory: containingDirectory,
38287
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
38283
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
38284
+ isConfigLookup
38288
38285
  };
38289
38286
  if (traceEnabled && getEmitModuleResolutionKind(compilerOptions) >= 3 /* Node16 */ && getEmitModuleResolutionKind(compilerOptions) <= 99 /* NodeNext */) {
38290
38287
  trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & 32 /* EsmMode */ ? "ESM" : "CJS", conditions.map((c) => `'${c}'`).join(", "));
38291
38288
  }
38292
- const result = forEach(extensions, (ext) => tryResolve(ext));
38289
+ let result;
38290
+ if (getEmitModuleResolutionKind(compilerOptions) === 2 /* NodeJs */) {
38291
+ const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
38292
+ const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
38293
+ result = priorityExtensions && tryResolve(priorityExtensions) || secondaryExtensions && tryResolve(secondaryExtensions) || void 0;
38294
+ } else {
38295
+ result = tryResolve(extensions);
38296
+ }
38293
38297
  return createResolvedModuleWithFailedLookupLocations(
38294
38298
  (_a2 = result == null ? void 0 : result.value) == null ? void 0 : _a2.resolved,
38295
38299
  (_b = result == null ? void 0 : result.value) == null ? void 0 : _b.isExternalLibraryImport,
@@ -38314,7 +38318,7 @@ ${lanes.join("\n")}
38314
38318
  }
38315
38319
  if (!resolved2) {
38316
38320
  if (traceEnabled) {
38317
- trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1, moduleName, Extensions[extensions2]);
38321
+ trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions2));
38318
38322
  }
38319
38323
  resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state, cache, redirectedReference);
38320
38324
  }
@@ -38355,7 +38359,7 @@ ${lanes.join("\n")}
38355
38359
  }
38356
38360
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
38357
38361
  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]);
38362
+ trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1, candidate, formatExtensions(extensions));
38359
38363
  }
38360
38364
  if (!hasTrailingDirectorySeparator(candidate)) {
38361
38365
  if (!onlyRecordFailures) {
@@ -38413,10 +38417,9 @@ ${lanes.join("\n")}
38413
38417
  return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state));
38414
38418
  }
38415
38419
  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);
38420
+ const resolvedByReplacingExtension = loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
38421
+ if (resolvedByReplacingExtension) {
38422
+ return resolvedByReplacingExtension;
38420
38423
  }
38421
38424
  if (!(state.features & 32 /* EsmMode */)) {
38422
38425
  const resolvedByAddingExtension = tryAddingExtensions(candidate, extensions, "", onlyRecordFailures, state);
@@ -38424,10 +38427,9 @@ ${lanes.join("\n")}
38424
38427
  return resolvedByAddingExtension;
38425
38428
  }
38426
38429
  }
38427
- return loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
38428
38430
  }
38429
38431
  function loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state) {
38430
- if (hasJSFileExtension(candidate) || fileExtensionIs(candidate, ".json" /* Json */) && state.compilerOptions.resolveJsonModule) {
38432
+ if (hasJSFileExtension(candidate) || extensions & 8 /* Json */ && fileExtensionIs(candidate, ".json" /* Json */)) {
38431
38433
  const extensionless = removeFileExtension(candidate);
38432
38434
  const extension = candidate.substring(extensionless.length);
38433
38435
  if (state.traceEnabled) {
@@ -38437,7 +38439,7 @@ ${lanes.join("\n")}
38437
38439
  }
38438
38440
  }
38439
38441
  function loadJSOrExactTSFileName(extensions, candidate, onlyRecordFailures, state) {
38440
- if ((extensions === 0 /* TypeScript */ || extensions === 4 /* DtsOnly */) && fileExtensionIsOneOf(candidate, supportedTSExtensionsFlat)) {
38442
+ if (extensions & 1 /* TypeScript */ && fileExtensionIsOneOf(candidate, supportedTSImplementationExtensions) || extensions & 4 /* Declaration */ && fileExtensionIsOneOf(candidate, supportedDeclarationExtensions)) {
38441
38443
  const result = tryFile(candidate, onlyRecordFailures, state);
38442
38444
  return result !== void 0 ? { path: candidate, ext: tryExtractTSExtension(candidate) } : void 0;
38443
38445
  }
@@ -38450,59 +38452,32 @@ ${lanes.join("\n")}
38450
38452
  onlyRecordFailures = !directoryProbablyExists(directory, state.host);
38451
38453
  }
38452
38454
  }
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 */);
38455
+ switch (originalExtension) {
38456
+ case ".mjs" /* Mjs */:
38457
+ case ".mts" /* Mts */:
38458
+ case ".d.mts" /* Dmts */:
38459
+ return extensions & 1 /* TypeScript */ && tryExtension(".mts" /* Mts */) || extensions & 4 /* Declaration */ && tryExtension(".d.mts" /* Dmts */) || extensions & 2 /* JavaScript */ && tryExtension(".mjs" /* Mjs */) || void 0;
38460
+ case ".cjs" /* Cjs */:
38461
+ case ".cts" /* Cts */:
38462
+ case ".d.cts" /* Dcts */:
38463
+ return extensions & 1 /* TypeScript */ && tryExtension(".cts" /* Cts */) || extensions & 4 /* Declaration */ && tryExtension(".d.cts" /* Dcts */) || extensions & 2 /* JavaScript */ && tryExtension(".cjs" /* Cjs */) || void 0;
38464
+ case ".json" /* Json */:
38465
+ const originalCandidate = candidate;
38466
+ if (extensions & 4 /* Declaration */) {
38467
+ candidate += ".json" /* Json */;
38468
+ const result = tryExtension(".d.ts" /* Dts */);
38469
+ if (result)
38470
+ return result;
38502
38471
  }
38503
- case 3 /* TSConfig */:
38504
- case 2 /* Json */:
38505
- return tryExtension(".json" /* Json */);
38472
+ if (extensions & 8 /* Json */) {
38473
+ candidate = originalCandidate;
38474
+ const result = tryExtension(".json" /* Json */);
38475
+ if (result)
38476
+ return result;
38477
+ }
38478
+ return void 0;
38479
+ default:
38480
+ return extensions & 1 /* TypeScript */ && (tryExtension(".ts" /* Ts */) || tryExtension(".tsx" /* Tsx */)) || extensions & 4 /* Declaration */ && tryExtension(".d.ts" /* Dts */) || extensions & 2 /* JavaScript */ && (tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */)) || state.isConfigLookup && tryExtension(".json" /* Json */) || void 0;
38506
38481
  }
38507
38482
  function tryExtension(ext) {
38508
38483
  const path = tryFile(candidate + ext, onlyRecordFailures, state);
@@ -38545,7 +38520,7 @@ ${lanes.join("\n")}
38545
38520
  return packageJsonInfo.contents.resolvedEntrypoints;
38546
38521
  }
38547
38522
  let entrypoints;
38548
- const extensions = resolveJs ? 1 /* JavaScript */ : 0 /* TypeScript */;
38523
+ const extensions = 1 /* TypeScript */ | 4 /* Declaration */ | (resolveJs ? 2 /* JavaScript */ : 0);
38549
38524
  const features = getDefaultNodeResolutionFeatures(options);
38550
38525
  const requireState = getTemporaryModuleResolutionState(cache == null ? void 0 : cache.getPackageJsonInfoCache(), host, options);
38551
38526
  requireState.conditions = ["node", "require", "types"];
@@ -38633,7 +38608,8 @@ ${lanes.join("\n")}
38633
38608
  features: 0 /* None */,
38634
38609
  conditions: emptyArray,
38635
38610
  requestContainingDirectory: void 0,
38636
- reportDiagnostic: noop
38611
+ reportDiagnostic: noop,
38612
+ isConfigLookup: false
38637
38613
  };
38638
38614
  }
38639
38615
  function getPackageScopeForPath(fileName, state) {
@@ -38692,23 +38668,10 @@ ${lanes.join("\n")}
38692
38668
  function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) {
38693
38669
  let packageFile;
38694
38670
  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);
38671
+ if (state.isConfigLookup) {
38672
+ packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
38673
+ } else {
38674
+ packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(jsonContent, candidate, state) || void 0;
38712
38675
  }
38713
38676
  }
38714
38677
  const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
@@ -38722,18 +38685,18 @@ ${lanes.join("\n")}
38722
38685
  trace(state2.host, Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromFile);
38723
38686
  }
38724
38687
  }
38725
- const nextExtensions = extensions2 === 4 /* DtsOnly */ ? 0 /* TypeScript */ : extensions2;
38688
+ const expandedExtensions = extensions2 === 4 /* Declaration */ ? 1 /* TypeScript */ | 4 /* Declaration */ : extensions2;
38726
38689
  const features = state2.features;
38727
38690
  if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") {
38728
38691
  state2.features &= ~32 /* EsmMode */;
38729
38692
  }
38730
- const result = nodeLoadModuleByRelativeName(nextExtensions, candidate2, onlyRecordFailures2, state2, false);
38693
+ const result = nodeLoadModuleByRelativeName(expandedExtensions, candidate2, onlyRecordFailures2, state2, false);
38731
38694
  state2.features = features;
38732
38695
  return result;
38733
38696
  };
38734
38697
  const onlyRecordFailuresForPackageFile = packageFile ? !directoryProbablyExists(getDirectoryPath(packageFile), state.host) : void 0;
38735
38698
  const onlyRecordFailuresForIndex = onlyRecordFailures || !directoryProbablyExists(candidate, state.host);
38736
- const indexPath = combinePaths(candidate, extensions === 3 /* TSConfig */ ? "tsconfig" : "index");
38699
+ const indexPath = combinePaths(candidate, state.isConfigLookup ? "tsconfig" : "index");
38737
38700
  if (versionPaths && (!packageFile || containsPath(candidate, packageFile))) {
38738
38701
  const moduleName = getRelativePathFromDirectory(candidate, packageFile || indexPath, false);
38739
38702
  if (state.traceEnabled) {
@@ -38756,19 +38719,7 @@ ${lanes.join("\n")}
38756
38719
  return ext !== void 0 && extensionIsOk(extensions, ext) ? { path, ext } : void 0;
38757
38720
  }
38758
38721
  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
- }
38722
+ return extensions & 2 /* JavaScript */ && (extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */) || extensions & 1 /* TypeScript */ && (extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */) || extensions & 4 /* Declaration */ && (extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */) || extensions & 8 /* Json */ && extension === ".json" /* Json */ || false;
38772
38723
  }
38773
38724
  function parsePackageName(moduleName) {
38774
38725
  let idx = moduleName.indexOf(directorySeparator);
@@ -38930,7 +38881,7 @@ ${lanes.join("\n")}
38930
38881
  const combinedLookup = pattern ? target.replace(/\*/g, subpath) : target + subpath;
38931
38882
  traceIfEnabled(state, Diagnostics.Using_0_subpath_1_with_target_2, "imports", key, combinedLookup);
38932
38883
  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);
38884
+ const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache, extensions, false, redirectedReference);
38934
38885
  return toSearchResult(result.resolvedModule ? { path: result.resolvedModule.resolvedFileName, extension: result.resolvedModule.extension, packageId: result.resolvedModule.packageId, originalPath: result.resolvedModule.originalPath } : void 0);
38935
38886
  }
38936
38887
  if (state.traceEnabled) {
@@ -39021,7 +38972,7 @@ ${lanes.join("\n")}
39021
38972
  }
39022
38973
  function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
39023
38974
  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)) {
38975
+ if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) {
39025
38976
  const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames });
39026
38977
  const commonSourceDirGuesses = [];
39027
38978
  if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
@@ -39058,10 +39009,9 @@ ${lanes.join("\n")}
39058
39009
  if (fileExtensionIs(possibleInputBase, ext)) {
39059
39010
  const inputExts = getPossibleOriginalInputExtensionForExtension(possibleInputBase);
39060
39011
  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)) {
39012
+ if (!extensionIsOk(extensions, possibleExt))
39063
39013
  continue;
39064
- }
39014
+ const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
39065
39015
  if (state.host.fileExists(possibleInputWithInputExtension)) {
39066
39016
  return toSearchResult(withPackageId(scope, loadJSOrExactTSFileName(extensions, possibleInputWithInputExtension, false, state)));
39067
39017
  }
@@ -39102,19 +39052,31 @@ ${lanes.join("\n")}
39102
39052
  return loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, false, cache, redirectedReference);
39103
39053
  }
39104
39054
  function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directory, state) {
39105
- return loadModuleFromNearestNodeModulesDirectoryWorker(4 /* DtsOnly */, moduleName, directory, state, true, void 0, void 0);
39055
+ return loadModuleFromNearestNodeModulesDirectoryWorker(4 /* Declaration */, moduleName, directory, state, true, void 0, void 0);
39106
39056
  }
39107
39057
  function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
39108
39058
  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;
39059
+ const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
39060
+ const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
39061
+ if (priorityExtensions) {
39062
+ const result = lookup(priorityExtensions);
39063
+ if (result)
39064
+ return result;
39065
+ }
39066
+ if (secondaryExtensions && !typesScopeOnly) {
39067
+ return lookup(secondaryExtensions);
39068
+ }
39069
+ function lookup(extensions2) {
39070
+ return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => {
39071
+ if (getBaseFileName(ancestorDirectory) !== "node_modules") {
39072
+ const resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, ancestorDirectory, state);
39073
+ if (resolutionFromCache) {
39074
+ return resolutionFromCache;
39075
+ }
39076
+ return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions2, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));
39114
39077
  }
39115
- return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));
39116
- }
39117
- });
39078
+ });
39079
+ }
39118
39080
  }
39119
39081
  function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
39120
39082
  const nodeModulesFolder = combinePaths(directory, "node_modules");
@@ -39122,11 +39084,13 @@ ${lanes.join("\n")}
39122
39084
  if (!nodeModulesFolderExists && state.traceEnabled) {
39123
39085
  trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesFolder);
39124
39086
  }
39125
- const packageResult = typesScopeOnly ? void 0 : loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);
39126
- if (packageResult) {
39127
- return packageResult;
39087
+ if (!typesScopeOnly) {
39088
+ const packageResult = loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);
39089
+ if (packageResult) {
39090
+ return packageResult;
39091
+ }
39128
39092
  }
39129
- if (extensions === 0 /* TypeScript */ || extensions === 4 /* DtsOnly */) {
39093
+ if (extensions & 4 /* Declaration */) {
39130
39094
  const nodeModulesAtTypes2 = combinePaths(nodeModulesFolder, "@types");
39131
39095
  let nodeModulesAtTypesExists = nodeModulesFolderExists;
39132
39096
  if (nodeModulesFolderExists && !directoryProbablyExists(nodeModulesAtTypes2, state.host)) {
@@ -39135,7 +39099,7 @@ ${lanes.join("\n")}
39135
39099
  }
39136
39100
  nodeModulesAtTypesExists = false;
39137
39101
  }
39138
- return loadModuleFromSpecificNodeModulesDirectory(4 /* DtsOnly */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);
39102
+ return loadModuleFromSpecificNodeModulesDirectory(4 /* Declaration */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);
39139
39103
  }
39140
39104
  }
39141
39105
  function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {
@@ -39276,9 +39240,10 @@ ${lanes.join("\n")}
39276
39240
  features: 0 /* None */,
39277
39241
  conditions: [],
39278
39242
  requestContainingDirectory: containingDirectory,
39279
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
39243
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
39244
+ isConfigLookup: false
39280
39245
  };
39281
- const resolved = tryResolve(0 /* TypeScript */) || tryResolve(1 /* JavaScript */);
39246
+ const resolved = tryResolve(1 /* TypeScript */ | 4 /* Declaration */) || tryResolve(2 /* JavaScript */ | (compilerOptions.resolveJsonModule ? 8 /* Json */ : 0));
39282
39247
  return createResolvedModuleWithFailedLookupLocations(
39283
39248
  resolved && resolved.value,
39284
39249
  false,
@@ -39305,7 +39270,7 @@ ${lanes.join("\n")}
39305
39270
  if (resolved2) {
39306
39271
  return resolved2;
39307
39272
  }
39308
- if (extensions === 0 /* TypeScript */) {
39273
+ if (extensions & (1 /* TypeScript */ | 4 /* Declaration */)) {
39309
39274
  return loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state);
39310
39275
  }
39311
39276
  } else {
@@ -39332,9 +39297,10 @@ ${lanes.join("\n")}
39332
39297
  features: 0 /* None */,
39333
39298
  conditions: [],
39334
39299
  requestContainingDirectory: void 0,
39335
- reportDiagnostic: (diag2) => void diagnostics.push(diag2)
39300
+ reportDiagnostic: (diag2) => void diagnostics.push(diag2),
39301
+ isConfigLookup: false
39336
39302
  };
39337
- const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /* DtsOnly */, moduleName, globalCache, state, false, void 0, void 0);
39303
+ const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /* Declaration */, moduleName, globalCache, state, false, void 0, void 0);
39338
39304
  return createResolvedModuleWithFailedLookupLocations(
39339
39305
  resolved,
39340
39306
  true,
@@ -42333,6 +42299,7 @@ ${lanes.join("\n")}
42333
42299
  const importedFileIsInNodeModules = some(modulePaths, (p) => p.isInNodeModules);
42334
42300
  let nodeModulesSpecifiers;
42335
42301
  let pathsSpecifiers;
42302
+ let redirectPathsSpecifiers;
42336
42303
  let relativeSpecifiers;
42337
42304
  for (const modulePath of modulePaths) {
42338
42305
  const specifier = tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, void 0, options.overrideImportMode);
@@ -42341,34 +42308,53 @@ ${lanes.join("\n")}
42341
42308
  return nodeModulesSpecifiers;
42342
42309
  }
42343
42310
  if (!specifier) {
42344
- const local = getLocalModuleSpecifier(modulePath.path, info, compilerOptions, host, options.overrideImportMode || importingSourceFile.impliedNodeFormat, preferences);
42345
- if (pathIsBareSpecifier(local)) {
42311
+ const local = getLocalModuleSpecifier(
42312
+ modulePath.path,
42313
+ info,
42314
+ compilerOptions,
42315
+ host,
42316
+ options.overrideImportMode || importingSourceFile.impliedNodeFormat,
42317
+ preferences,
42318
+ modulePath.isRedirect
42319
+ );
42320
+ if (!local) {
42321
+ continue;
42322
+ }
42323
+ if (modulePath.isRedirect) {
42324
+ redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
42325
+ } else if (pathIsBareSpecifier(local)) {
42346
42326
  pathsSpecifiers = append(pathsSpecifiers, local);
42347
- } else if (!modulePath.isRedirect && (!importedFileIsInNodeModules || modulePath.isInNodeModules)) {
42327
+ } else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
42348
42328
  relativeSpecifiers = append(relativeSpecifiers, local);
42349
42329
  }
42350
42330
  }
42351
42331
  }
42352
- return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers : Debug.checkDefined(relativeSpecifiers);
42332
+ return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers : (redirectPathsSpecifiers == null ? void 0 : redirectPathsSpecifiers.length) ? redirectPathsSpecifiers : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers : Debug.checkDefined(relativeSpecifiers);
42353
42333
  }
42354
42334
  function getInfo(importingSourceFileName, host) {
42355
42335
  const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : true);
42356
42336
  const sourceDirectory = getDirectoryPath(importingSourceFileName);
42357
42337
  return { getCanonicalFileName, importingSourceFileName, sourceDirectory };
42358
42338
  }
42359
- function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }) {
42339
+ function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }, pathsOnly) {
42360
42340
  const { baseUrl, paths, rootDirs } = compilerOptions;
42341
+ if (pathsOnly && !paths) {
42342
+ return void 0;
42343
+ }
42361
42344
  const { sourceDirectory, getCanonicalFileName } = info;
42362
42345
  const relativePath = rootDirs && tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, ending, compilerOptions) || removeExtensionAndIndexPostFix(ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceDirectory, moduleFileName, getCanonicalFileName)), ending, compilerOptions);
42363
42346
  if (!baseUrl && !paths || relativePreference === 0 /* Relative */) {
42364
- return relativePath;
42347
+ return pathsOnly ? void 0 : relativePath;
42365
42348
  }
42366
42349
  const baseDirectory = getNormalizedAbsolutePath(getPathsBasePath(compilerOptions, host) || baseUrl, host.getCurrentDirectory());
42367
42350
  const relativeToBaseUrl = getRelativePathIfInDirectory(moduleFileName, baseDirectory, getCanonicalFileName);
42368
42351
  if (!relativeToBaseUrl) {
42369
- return relativePath;
42352
+ return pathsOnly ? void 0 : relativePath;
42370
42353
  }
42371
42354
  const fromPaths = paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, getAllowedEndings(ending, compilerOptions, importMode), host, compilerOptions);
42355
+ if (pathsOnly) {
42356
+ return fromPaths;
42357
+ }
42372
42358
  const maybeNonRelative = fromPaths === void 0 && baseUrl !== void 0 ? removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) : fromPaths;
42373
42359
  if (!maybeNonRelative) {
42374
42360
  return relativePath;
@@ -42952,6 +42938,7 @@ ${lanes.join("\n")}
42952
42938
  return CheckMode3;
42953
42939
  })(CheckMode || {});
42954
42940
  var SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => {
42941
+ SignatureCheckMode3[SignatureCheckMode3["None"] = 0] = "None";
42955
42942
  SignatureCheckMode3[SignatureCheckMode3["BivariantCallback"] = 1] = "BivariantCallback";
42956
42943
  SignatureCheckMode3[SignatureCheckMode3["StrictCallback"] = 2] = "StrictCallback";
42957
42944
  SignatureCheckMode3[SignatureCheckMode3["IgnoreReturnTypes"] = 4] = "IgnoreReturnTypes";
@@ -42969,7 +42956,7 @@ ${lanes.join("\n")}
42969
42956
  function SymbolLinks() {
42970
42957
  }
42971
42958
  function NodeLinks() {
42972
- this.flags = 0;
42959
+ this.flags = 0 /* None */;
42973
42960
  }
42974
42961
  function getNodeId(node) {
42975
42962
  if (!node.id) {
@@ -43814,7 +43801,7 @@ ${lanes.join("\n")}
43814
43801
  function createSymbol(flags, name, checkFlags) {
43815
43802
  symbolCount++;
43816
43803
  const symbol = new Symbol46(flags | 33554432 /* Transient */, name);
43817
- symbol.checkFlags = checkFlags || 0;
43804
+ symbol.checkFlags = checkFlags || 0 /* None */;
43818
43805
  return symbol;
43819
43806
  }
43820
43807
  function getExcludedSymbolFlags(flags) {
@@ -46125,7 +46112,7 @@ ${lanes.join("\n")}
46125
46112
  function createOriginType(flags) {
46126
46113
  return new Type27(checker, flags);
46127
46114
  }
46128
- function createIntrinsicType(kind, intrinsicName, objectFlags = 0) {
46115
+ function createIntrinsicType(kind, intrinsicName, objectFlags = 0 /* None */) {
46129
46116
  const type = createType(kind);
46130
46117
  type.intrinsicName = intrinsicName;
46131
46118
  type.objectFlags = objectFlags;
@@ -46620,25 +46607,22 @@ ${lanes.join("\n")}
46620
46607
  const context = {
46621
46608
  enclosingDeclaration,
46622
46609
  flags: flags || 0 /* None */,
46623
- tracker: tracker && tracker.trackSymbol ? tracker : {
46624
- trackSymbol: () => false,
46625
- moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
46626
- getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
46627
- getCurrentDirectory: () => host.getCurrentDirectory(),
46628
- getSymlinkCache: maybeBind(host, host.getSymlinkCache),
46629
- getPackageJsonInfoCache: () => {
46630
- var _a3;
46631
- return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
46632
- },
46633
- useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
46634
- redirectTargetsMap: host.redirectTargetsMap,
46635
- getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
46636
- isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
46637
- fileExists: (fileName) => host.fileExists(fileName),
46638
- getFileIncludeReasons: () => host.getFileIncludeReasons(),
46639
- readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
46640
- } : void 0
46641
- },
46610
+ tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: () => false, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
46611
+ getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
46612
+ getCurrentDirectory: () => host.getCurrentDirectory(),
46613
+ getSymlinkCache: maybeBind(host, host.getSymlinkCache),
46614
+ getPackageJsonInfoCache: () => {
46615
+ var _a3;
46616
+ return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
46617
+ },
46618
+ useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
46619
+ redirectTargetsMap: host.redirectTargetsMap,
46620
+ getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
46621
+ isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
46622
+ fileExists: (fileName) => host.fileExists(fileName),
46623
+ getFileIncludeReasons: () => host.getFileIncludeReasons(),
46624
+ readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
46625
+ } : void 0 },
46642
46626
  encounteredError: false,
46643
46627
  reportedDiagnostic: false,
46644
46628
  visitedTypes: void 0,
@@ -47995,8 +47979,7 @@ ${lanes.join("\n")}
47995
47979
  if (isSingleOrDoubleQuote(firstChar) && some(symbol2.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) {
47996
47980
  return factory.createStringLiteral(getSpecifierForModuleSymbol(symbol2, context));
47997
47981
  }
47998
- const canUsePropertyAccess = firstChar === 35 /* hash */ ? symbolName2.length > 1 && isIdentifierStart(symbolName2.charCodeAt(1), languageVersion) : isIdentifierStart(firstChar, languageVersion);
47999
- if (index === 0 || canUsePropertyAccess) {
47982
+ if (index === 0 || canUsePropertyAccess(symbolName2, languageVersion)) {
48000
47983
  const identifier = setEmitFlags(factory.createIdentifier(symbolName2, typeParameterNodes), 16777216 /* NoAsciiEscaping */);
48001
47984
  identifier.symbol = symbol2;
48002
47985
  return index > 0 ? factory.createPropertyAccessExpression(createExpressionFromSymbolChain(chain2, index - 1), identifier) : identifier;
@@ -52969,7 +52952,7 @@ ${lanes.join("\n")}
52969
52952
  function containsArgumentsReference(declaration) {
52970
52953
  const links = getNodeLinks(declaration);
52971
52954
  if (links.containsArgumentsReference === void 0) {
52972
- if (links.flags & 8192 /* CaptureArguments */) {
52955
+ if (links.flags & 512 /* CaptureArguments */) {
52973
52956
  links.containsArgumentsReference = true;
52974
52957
  } else {
52975
52958
  links.containsArgumentsReference = traverse(declaration.body);
@@ -56869,7 +56852,7 @@ ${lanes.join("\n")}
56869
56852
  return compareSignaturesRelated(
56870
56853
  source,
56871
56854
  target,
56872
- ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0,
56855
+ ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0 /* None */,
56873
56856
  false,
56874
56857
  void 0,
56875
56858
  void 0,
@@ -57103,7 +57086,9 @@ ${lanes.join("\n")}
57103
57086
  if (relation === assignableRelation || relation === comparableRelation) {
57104
57087
  if (s & 1 /* Any */)
57105
57088
  return true;
57106
- if (s & (8 /* Number */ | 256 /* NumberLiteral */) && !(s & 1024 /* EnumLiteral */) && (t & 32 /* Enum */ || relation === assignableRelation && t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */))
57089
+ if (s & 8 /* Number */ && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */))
57090
+ return true;
57091
+ if (s & 256 /* NumberLiteral */ && !(s & 1024 /* EnumLiteral */) && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */ && source.value === target.value))
57107
57092
  return true;
57108
57093
  if (isUnknownLikeUnionType(target))
57109
57094
  return true;
@@ -60052,24 +60037,7 @@ ${lanes.join("\n")}
60052
60037
  return isFinite(n) && (!roundTripOnly || "" + n === s);
60053
60038
  }
60054
60039
  function parseBigIntLiteralType(text) {
60055
- const negative = text.startsWith("-");
60056
- const base10Value = parsePseudoBigInt(`${negative ? text.slice(1) : text}n`);
60057
- return getBigIntLiteralType({ negative, base10Value });
60058
- }
60059
- function isValidBigIntString(s, roundTripOnly) {
60060
- if (s === "")
60061
- return false;
60062
- const scanner2 = createScanner(99 /* ESNext */, false);
60063
- let success = true;
60064
- scanner2.setOnError(() => success = false);
60065
- scanner2.setText(s + "n");
60066
- let result = scanner2.scan();
60067
- const negative = result === 40 /* MinusToken */;
60068
- if (negative) {
60069
- result = scanner2.scan();
60070
- }
60071
- const flags = scanner2.getTokenFlags();
60072
- return success && result === 9 /* BigIntLiteral */ && scanner2.getTextPos() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner2.getTokenValue()) }));
60040
+ return getBigIntLiteralType(parseValidBigInt(text));
60073
60041
  }
60074
60042
  function isMemberOfStringMapping(source, target) {
60075
60043
  if (target.flags & (4 /* String */ | 1 /* Any */)) {
@@ -60166,7 +60134,7 @@ ${lanes.join("\n")}
60166
60134
  pos = p;
60167
60135
  }
60168
60136
  }
60169
- function inferTypes(inferences, originalSource, originalTarget, priority = 0, contravariant = false) {
60137
+ function inferTypes(inferences, originalSource, originalTarget, priority = 0 /* None */, contravariant = false) {
60170
60138
  let bivariant = false;
60171
60139
  let propagationType;
60172
60140
  let inferencePriority = 2048 /* MaxValue */;
@@ -62608,8 +62576,8 @@ ${lanes.join("\n")}
62608
62576
  }
62609
62577
  const parent2 = getRootDeclaration(symbol.valueDeclaration).parent;
62610
62578
  const links = getNodeLinks(parent2);
62611
- if (!(links.flags & 8388608 /* AssignmentsMarked */)) {
62612
- links.flags |= 8388608 /* AssignmentsMarked */;
62579
+ if (!(links.flags & 524288 /* AssignmentsMarked */)) {
62580
+ links.flags |= 524288 /* AssignmentsMarked */;
62613
62581
  if (!hasParentWithAssignmentsMarked(parent2)) {
62614
62582
  markNodeAssignments(parent2);
62615
62583
  }
@@ -62617,7 +62585,7 @@ ${lanes.join("\n")}
62617
62585
  return symbol.isAssigned || false;
62618
62586
  }
62619
62587
  function hasParentWithAssignmentsMarked(node) {
62620
- return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 8388608 /* AssignmentsMarked */));
62588
+ return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 524288 /* AssignmentsMarked */));
62621
62589
  }
62622
62590
  function markNodeAssignments(node) {
62623
62591
  if (node.kind === 79 /* Identifier */) {
@@ -62696,11 +62664,11 @@ ${lanes.join("\n")}
62696
62664
  const parent2 = declaration.parent.parent;
62697
62665
  if (parent2.kind === 257 /* VariableDeclaration */ && getCombinedNodeFlags(declaration) & 2 /* Const */ || parent2.kind === 166 /* Parameter */) {
62698
62666
  const links = getNodeLinks(parent2);
62699
- if (!(links.flags & 268435456 /* InCheckIdentifier */)) {
62700
- links.flags |= 268435456 /* InCheckIdentifier */;
62667
+ if (!(links.flags & 16777216 /* InCheckIdentifier */)) {
62668
+ links.flags |= 16777216 /* InCheckIdentifier */;
62701
62669
  const parentType = getTypeForBindingElementParent(parent2, 0 /* Normal */);
62702
62670
  const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
62703
- links.flags &= ~268435456 /* InCheckIdentifier */;
62671
+ links.flags &= ~16777216 /* InCheckIdentifier */;
62704
62672
  if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent2.kind === 166 /* Parameter */ && isSymbolAssigned(symbol))) {
62705
62673
  const pattern = declaration.parent;
62706
62674
  const narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, void 0, location2.flowNode);
@@ -62750,7 +62718,7 @@ ${lanes.join("\n")}
62750
62718
  error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method);
62751
62719
  }
62752
62720
  }
62753
- getNodeLinks(container).flags |= 8192 /* CaptureArguments */;
62721
+ getNodeLinks(container).flags |= 512 /* CaptureArguments */;
62754
62722
  return getTypeOfSymbol(symbol);
62755
62723
  }
62756
62724
  if (shouldMarkIdentifierAliasReferenced(node)) {
@@ -62767,8 +62735,8 @@ ${lanes.join("\n")}
62767
62735
  let container = getContainingClass(node);
62768
62736
  while (container !== void 0) {
62769
62737
  if (container === declaration && container.name !== node) {
62770
- getNodeLinks(declaration).flags |= 16777216 /* ClassWithConstructorReference */;
62771
- getNodeLinks(node).flags |= 33554432 /* ConstructorReferenceInClass */;
62738
+ getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */;
62739
+ getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */;
62772
62740
  break;
62773
62741
  }
62774
62742
  container = getContainingClass(container);
@@ -62778,8 +62746,8 @@ ${lanes.join("\n")}
62778
62746
  while (container.kind !== 308 /* SourceFile */) {
62779
62747
  if (container.parent === declaration) {
62780
62748
  if (isPropertyDeclaration(container) && isStatic(container) || isClassStaticBlockDeclaration(container)) {
62781
- getNodeLinks(declaration).flags |= 16777216 /* ClassWithConstructorReference */;
62782
- getNodeLinks(node).flags |= 33554432 /* ConstructorReferenceInClass */;
62749
+ getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */;
62750
+ getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */;
62783
62751
  }
62784
62752
  break;
62785
62753
  }
@@ -62893,7 +62861,7 @@ ${lanes.join("\n")}
62893
62861
  const part = getPartOfForStatementContainingNode(node.parent, container);
62894
62862
  if (part) {
62895
62863
  const links = getNodeLinks(part);
62896
- links.flags |= 131072 /* ContainsCapturedBlockScopeBinding */;
62864
+ links.flags |= 8192 /* ContainsCapturedBlockScopeBinding */;
62897
62865
  const capturedBindings = links.capturedBlockScopeBindings || (links.capturedBlockScopeBindings = []);
62898
62866
  pushIfUnique(capturedBindings, symbol);
62899
62867
  if (part === container.initializer) {
@@ -62903,19 +62871,19 @@ ${lanes.join("\n")}
62903
62871
  }
62904
62872
  }
62905
62873
  if (capturesBlockScopeBindingInLoopBody) {
62906
- getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;
62874
+ getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
62907
62875
  }
62908
62876
  }
62909
62877
  if (isForStatement(container)) {
62910
62878
  const varDeclList = getAncestor(symbol.valueDeclaration, 258 /* VariableDeclarationList */);
62911
62879
  if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) {
62912
- getNodeLinks(symbol.valueDeclaration).flags |= 4194304 /* NeedsLoopOutParameter */;
62880
+ getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* NeedsLoopOutParameter */;
62913
62881
  }
62914
62882
  }
62915
- getNodeLinks(symbol.valueDeclaration).flags |= 524288 /* BlockScopedBindingInLoop */;
62883
+ getNodeLinks(symbol.valueDeclaration).flags |= 32768 /* BlockScopedBindingInLoop */;
62916
62884
  }
62917
62885
  if (isCaptured) {
62918
- getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* CapturedBlockScopedBinding */;
62886
+ getNodeLinks(symbol.valueDeclaration).flags |= 16384 /* CapturedBlockScopedBinding */;
62919
62887
  }
62920
62888
  }
62921
62889
  function isBindingCapturedByNode(node, decl) {
@@ -63132,23 +63100,23 @@ ${lanes.join("\n")}
63132
63100
  checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class);
63133
63101
  }
63134
63102
  if (isStatic(container) || isCallExpression2) {
63135
- nodeCheckFlag = 512 /* SuperStatic */;
63103
+ nodeCheckFlag = 32 /* SuperStatic */;
63136
63104
  if (!isCallExpression2 && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && (isPropertyDeclaration(container) || isClassStaticBlockDeclaration(container))) {
63137
63105
  forEachEnclosingBlockScopeContainer(node.parent, (current) => {
63138
63106
  if (!isSourceFile(current) || isExternalOrCommonJsModule(current)) {
63139
- getNodeLinks(current).flags |= 134217728 /* ContainsSuperPropertyInStaticInitializer */;
63107
+ getNodeLinks(current).flags |= 8388608 /* ContainsSuperPropertyInStaticInitializer */;
63140
63108
  }
63141
63109
  });
63142
63110
  }
63143
63111
  } else {
63144
- nodeCheckFlag = 256 /* SuperInstance */;
63112
+ nodeCheckFlag = 16 /* SuperInstance */;
63145
63113
  }
63146
63114
  getNodeLinks(node).flags |= nodeCheckFlag;
63147
63115
  if (container.kind === 171 /* MethodDeclaration */ && inAsyncFunction) {
63148
63116
  if (isSuperProperty(node.parent) && isAssignmentTarget(node.parent)) {
63149
- getNodeLinks(container).flags |= 4096 /* MethodWithSuperPropertyAssignmentInAsync */;
63117
+ getNodeLinks(container).flags |= 256 /* MethodWithSuperPropertyAssignmentInAsync */;
63150
63118
  } else {
63151
- getNodeLinks(container).flags |= 2048 /* MethodWithSuperPropertyAccessInAsync */;
63119
+ getNodeLinks(container).flags |= 128 /* MethodWithSuperPropertyAccessInAsync */;
63152
63120
  }
63153
63121
  }
63154
63122
  if (needToCaptureLexicalThis) {
@@ -63176,7 +63144,7 @@ ${lanes.join("\n")}
63176
63144
  error(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments);
63177
63145
  return errorType;
63178
63146
  }
63179
- return nodeCheckFlag === 512 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType);
63147
+ return nodeCheckFlag === 32 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType);
63180
63148
  function isLegalUsageOfSuperExpression(container2) {
63181
63149
  if (!container2) {
63182
63150
  return false;
@@ -64191,9 +64159,9 @@ ${lanes.join("\n")}
64191
64159
  const container = getEnclosingBlockScopeContainer(node.parent.parent);
64192
64160
  const enclosingIterationStatement = getEnclosingIterationStatement(container);
64193
64161
  if (enclosingIterationStatement) {
64194
- getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;
64195
- getNodeLinks(node).flags |= 524288 /* BlockScopedBindingInLoop */;
64196
- getNodeLinks(node.parent.parent).flags |= 524288 /* BlockScopedBindingInLoop */;
64162
+ getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
64163
+ getNodeLinks(node).flags |= 32768 /* BlockScopedBindingInLoop */;
64164
+ getNodeLinks(node.parent.parent).flags |= 32768 /* BlockScopedBindingInLoop */;
64197
64165
  }
64198
64166
  }
64199
64167
  if (links.resolvedType.flags & 98304 /* Nullable */ || !isTypeAssignableToKind(links.resolvedType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */) && !isTypeAssignableTo(links.resolvedType, stringNumberSymbolType)) {
@@ -68180,10 +68148,10 @@ ${lanes.join("\n")}
68180
68148
  }
68181
68149
  function contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode) {
68182
68150
  const links = getNodeLinks(node);
68183
- if (!(links.flags & 1024 /* ContextChecked */)) {
68151
+ if (!(links.flags & 64 /* ContextChecked */)) {
68184
68152
  const contextualSignature = getContextualSignature(node);
68185
- if (!(links.flags & 1024 /* ContextChecked */)) {
68186
- links.flags |= 1024 /* ContextChecked */;
68153
+ if (!(links.flags & 64 /* ContextChecked */)) {
68154
+ links.flags |= 64 /* ContextChecked */;
68187
68155
  const signature = firstOrUndefined(getSignaturesOfType(getTypeOfSymbol(getSymbolOfNode(node)), 0 /* Call */));
68188
68156
  if (!signature) {
68189
68157
  return;
@@ -70173,13 +70141,13 @@ ${lanes.join("\n")}
70173
70141
  function setNodeLinksForPrivateIdentifierScope(node) {
70174
70142
  if (isPrivateIdentifier(node.name) && languageVersion < 99 /* ESNext */) {
70175
70143
  for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) {
70176
- getNodeLinks(lexicalScope).flags |= 67108864 /* ContainsClassWithPrivateIdentifiers */;
70144
+ getNodeLinks(lexicalScope).flags |= 4194304 /* ContainsClassWithPrivateIdentifiers */;
70177
70145
  }
70178
70146
  if (isClassExpression(node.parent)) {
70179
70147
  const enclosingIterationStatement = getEnclosingIterationStatement(node.parent);
70180
70148
  if (enclosingIterationStatement) {
70181
- getNodeLinks(node.name).flags |= 524288 /* BlockScopedBindingInLoop */;
70182
- getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;
70149
+ getNodeLinks(node.name).flags |= 32768 /* BlockScopedBindingInLoop */;
70150
+ getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
70183
70151
  }
70184
70152
  }
70185
70153
  }
@@ -71774,7 +71742,7 @@ ${lanes.join("\n")}
71774
71742
  }
71775
71743
  function checkWeakMapSetCollision(node) {
71776
71744
  const enclosingBlockScope = getEnclosingBlockScopeContainer(node);
71777
- if (getNodeCheckFlags(enclosingBlockScope) & 67108864 /* ContainsClassWithPrivateIdentifiers */) {
71745
+ if (getNodeCheckFlags(enclosingBlockScope) & 4194304 /* ContainsClassWithPrivateIdentifiers */) {
71778
71746
  Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name) && typeof node.name.escapedText === "string", "The target of a WeakMap/WeakSet collision check should be an identifier");
71779
71747
  errorSkippedOn("noEmit", node, Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText);
71780
71748
  }
@@ -71788,18 +71756,18 @@ ${lanes.join("\n")}
71788
71756
  let hasCollision = false;
71789
71757
  if (isClassExpression(node)) {
71790
71758
  for (const member of node.members) {
71791
- if (getNodeCheckFlags(member) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {
71759
+ if (getNodeCheckFlags(member) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
71792
71760
  hasCollision = true;
71793
71761
  break;
71794
71762
  }
71795
71763
  }
71796
71764
  } else if (isFunctionExpression(node)) {
71797
- if (getNodeCheckFlags(node) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {
71765
+ if (getNodeCheckFlags(node) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
71798
71766
  hasCollision = true;
71799
71767
  }
71800
71768
  } else {
71801
71769
  const container = getEnclosingBlockScopeContainer(node);
71802
- if (container && getNodeCheckFlags(container) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {
71770
+ if (container && getNodeCheckFlags(container) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
71803
71771
  hasCollision = true;
71804
71772
  }
71805
71773
  }
@@ -73014,8 +72982,9 @@ ${lanes.join("\n")}
73014
72982
  });
73015
72983
  const containsArguments = containsArgumentsReference(node);
73016
72984
  if (containsArguments) {
73017
- const lastJSDocParam = lastOrUndefined(jsdocParameters);
73018
- if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
72985
+ const lastJSDocParamIndex = jsdocParameters.length - 1;
72986
+ const lastJSDocParam = jsdocParameters[lastJSDocParamIndex];
72987
+ if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
73019
72988
  error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name));
73020
72989
  }
73021
72990
  } else {
@@ -73683,8 +73652,8 @@ ${lanes.join("\n")}
73683
73652
  }
73684
73653
  function computeEnumMemberValues(node) {
73685
73654
  const nodeLinks2 = getNodeLinks(node);
73686
- if (!(nodeLinks2.flags & 16384 /* EnumValuesComputed */)) {
73687
- nodeLinks2.flags |= 16384 /* EnumValuesComputed */;
73655
+ if (!(nodeLinks2.flags & 1024 /* EnumValuesComputed */)) {
73656
+ nodeLinks2.flags |= 1024 /* EnumValuesComputed */;
73688
73657
  let autoValue = 0;
73689
73658
  for (const member of node.members) {
73690
73659
  const value = computeMemberValue(member, autoValue);
@@ -73960,7 +73929,7 @@ ${lanes.join("\n")}
73960
73929
  }
73961
73930
  const mergedClass = getDeclarationOfKind(symbol, 260 /* ClassDeclaration */);
73962
73931
  if (mergedClass && inSameLexicalScope(node, mergedClass)) {
73963
- getNodeLinks(node).flags |= 32768 /* LexicalModuleMergesWithClass */;
73932
+ getNodeLinks(node).flags |= 2048 /* LexicalModuleMergesWithClass */;
73964
73933
  }
73965
73934
  }
73966
73935
  if (isAmbientExternalModule) {
@@ -75591,8 +75560,8 @@ ${lanes.join("\n")}
75591
75560
  const nodeLinks2 = getNodeLinks(symbol.valueDeclaration);
75592
75561
  if (resolveName(container.parent, symbol.escapedName, 111551 /* Value */, void 0, void 0, false)) {
75593
75562
  links.isDeclarationWithCollidingName = true;
75594
- } else if (nodeLinks2.flags & 262144 /* CapturedBlockScopedBinding */) {
75595
- const isDeclaredInLoop = nodeLinks2.flags & 524288 /* BlockScopedBindingInLoop */;
75563
+ } else if (nodeLinks2.flags & 16384 /* CapturedBlockScopedBinding */) {
75564
+ const isDeclaredInLoop = nodeLinks2.flags & 32768 /* BlockScopedBindingInLoop */;
75596
75565
  const inLoopInitializer = isIterationStatement(container, false);
75597
75566
  const inLoopBodyBlock = container.kind === 238 /* Block */ && isIterationStatement(container.parent, false);
75598
75567
  links.isDeclarationWithCollidingName = !isBlockScopedContainerTopLevel(container) && (!isDeclaredInLoop || !inLoopInitializer && !inLoopBodyBlock);
@@ -79028,10 +78997,10 @@ ${lanes.join("\n")}
79028
78997
  nodeVisitor(node.initializer, visitor, isExpression)
79029
78998
  );
79030
78999
  },
79031
- [308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
79000
+ [308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
79032
79001
  return context.factory.updateSourceFile(
79033
79002
  node,
79034
- visitLexicalEnvironment(node.statements, visitor, context, void 0, void 0, nodesVisitor)
79003
+ visitLexicalEnvironment(node.statements, visitor, context)
79035
79004
  );
79036
79005
  },
79037
79006
  [353 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
@@ -82732,12 +82701,12 @@ ${lanes.join("\n")}
82732
82701
  function visitClassExpressionInNewClassLexicalEnvironment(node, facts) {
82733
82702
  const isDecoratedClassDeclaration = !!(facts & 1 /* ClassWasDecorated */);
82734
82703
  const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node);
82735
- const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 16777216 /* ClassWithConstructorReference */;
82704
+ const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */;
82736
82705
  let temp;
82737
82706
  function createClassTempVar() {
82738
82707
  const classCheckFlags = resolver.getNodeCheckFlags(node);
82739
- const isClassWithConstructorReference2 = classCheckFlags & 16777216 /* ClassWithConstructorReference */;
82740
- const requiresBlockScopedVar = classCheckFlags & 524288 /* BlockScopedBindingInLoop */;
82708
+ const isClassWithConstructorReference2 = classCheckFlags & 1048576 /* ClassWithConstructorReference */;
82709
+ const requiresBlockScopedVar = classCheckFlags & 32768 /* BlockScopedBindingInLoop */;
82741
82710
  return factory2.createTempVariable(requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, !!isClassWithConstructorReference2);
82742
82711
  }
82743
82712
  if (facts & 2 /* NeedsClassConstructorReference */) {
@@ -83250,7 +83219,7 @@ ${lanes.join("\n")}
83250
83219
  }
83251
83220
  function trySubstituteClassAlias(node) {
83252
83221
  if (enabledSubstitutions & 1 /* ClassAliases */) {
83253
- if (resolver.getNodeCheckFlags(node) & 33554432 /* ConstructorReferenceInClass */) {
83222
+ if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) {
83254
83223
  const declaration = resolver.getReferencedValueDeclaration(node);
83255
83224
  if (declaration) {
83256
83225
  const classAlias = classAliases[declaration.id];
@@ -83273,7 +83242,7 @@ ${lanes.join("\n")}
83273
83242
  const alreadyTransformed = isAssignmentExpression(innerExpression) && isGeneratedIdentifier(innerExpression.left);
83274
83243
  if (!alreadyTransformed && !inlinable && shouldHoist) {
83275
83244
  const generatedName = factory2.getGeneratedNameForNode(name);
83276
- if (resolver.getNodeCheckFlags(name) & 524288 /* BlockScopedBindingInLoop */) {
83245
+ if (resolver.getNodeCheckFlags(name) & 32768 /* BlockScopedBindingInLoop */) {
83277
83246
  addBlockScopedVariable(generatedName);
83278
83247
  } else {
83279
83248
  hoistVariableDeclaration(generatedName);
@@ -83422,7 +83391,7 @@ ${lanes.join("\n")}
83422
83391
  const { className } = getPrivateIdentifierEnvironment();
83423
83392
  const prefix = className ? { prefix: "_", node: className, suffix: "_" } : "_";
83424
83393
  const identifier = typeof name === "object" ? factory2.getGeneratedNameForNode(name, 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */, prefix, suffix) : typeof name === "string" ? factory2.createUniqueName(name, 16 /* Optimistic */, prefix, suffix) : factory2.createTempVariable(void 0, true, prefix, suffix);
83425
- if (resolver.getNodeCheckFlags(node) & 524288 /* BlockScopedBindingInLoop */) {
83394
+ if (resolver.getNodeCheckFlags(node) & 32768 /* BlockScopedBindingInLoop */) {
83426
83395
  addBlockScopedVariable(identifier);
83427
83396
  } else {
83428
83397
  hoistVariableDeclaration(identifier);
@@ -84287,7 +84256,7 @@ ${lanes.join("\n")}
84287
84256
  }
84288
84257
  }
84289
84258
  function getClassAliasIfNeeded(node) {
84290
- if (resolver.getNodeCheckFlags(node) & 16777216 /* ClassWithConstructorReference */) {
84259
+ if (resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */) {
84291
84260
  enableSubstitutionForClassAliases();
84292
84261
  const classAlias = factory2.createUniqueName(node.name && !isGeneratedIdentifier(node.name) ? idText(node.name) : "default");
84293
84262
  classAliases[getOriginalNodeId(node)] = classAlias;
@@ -84321,7 +84290,7 @@ ${lanes.join("\n")}
84321
84290
  }
84322
84291
  function trySubstituteClassAlias(node) {
84323
84292
  if (classAliases) {
84324
- if (resolver.getNodeCheckFlags(node) & 33554432 /* ConstructorReferenceInClass */) {
84293
+ if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) {
84325
84294
  const declaration = resolver.getReferencedValueDeclaration(node);
84326
84295
  if (declaration) {
84327
84296
  const classAlias = classAliases[declaration.id];
@@ -84356,7 +84325,7 @@ ${lanes.join("\n")}
84356
84325
  let capturedSuperProperties;
84357
84326
  let hasSuperElementAccess;
84358
84327
  const substitutedSuperAccessors = [];
84359
- let contextFlags = 0;
84328
+ let contextFlags = 0 /* None */;
84360
84329
  const previousOnEmitNode = context.onEmitNode;
84361
84330
  const previousOnSubstituteNode = context.onSubstituteNode;
84362
84331
  context.onEmitNode = onEmitNode;
@@ -84683,7 +84652,7 @@ ${lanes.join("\n")}
84683
84652
  hasSuperElementAccess = false;
84684
84653
  let updated = visitFunctionBody(node.body, visitor, context);
84685
84654
  const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration);
84686
- const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* MethodWithSuperPropertyAssignmentInAsync */ | 2048 /* MethodWithSuperPropertyAccessInAsync */) && (getFunctionFlags(originalMethod) & 3 /* AsyncGenerator */) !== 3 /* AsyncGenerator */;
84655
+ const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */) && (getFunctionFlags(originalMethod) & 3 /* AsyncGenerator */) !== 3 /* AsyncGenerator */;
84687
84656
  if (emitSuperHelpers) {
84688
84657
  enableSubstitutionForAsyncMethodsWithSuper();
84689
84658
  if (capturedSuperProperties.size) {
@@ -84694,9 +84663,9 @@ ${lanes.join("\n")}
84694
84663
  updated = factory2.updateBlock(updated, statements);
84695
84664
  }
84696
84665
  if (hasSuperElementAccess) {
84697
- if (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
84666
+ if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
84698
84667
  addEmitHelper(updated, advancedAsyncSuperHelper);
84699
- } else if (resolver.getNodeCheckFlags(node) & 2048 /* MethodWithSuperPropertyAccessInAsync */) {
84668
+ } else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
84700
84669
  addEmitHelper(updated, asyncSuperHelper);
84701
84670
  }
84702
84671
  }
@@ -84711,7 +84680,7 @@ ${lanes.join("\n")}
84711
84680
  const nodeType = original.type;
84712
84681
  const promiseConstructor = languageVersion < 2 /* ES2015 */ ? getPromiseConstructor(nodeType) : void 0;
84713
84682
  const isArrowFunction2 = node.kind === 216 /* ArrowFunction */;
84714
- const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 8192 /* CaptureArguments */) !== 0;
84683
+ const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 512 /* CaptureArguments */) !== 0;
84715
84684
  const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;
84716
84685
  enclosingFunctionParameterNames = /* @__PURE__ */ new Set();
84717
84686
  for (const parameter of node.parameters) {
@@ -84738,7 +84707,7 @@ ${lanes.join("\n")}
84738
84707
  )
84739
84708
  );
84740
84709
  insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
84741
- const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* MethodWithSuperPropertyAssignmentInAsync */ | 2048 /* MethodWithSuperPropertyAccessInAsync */);
84710
+ const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */);
84742
84711
  if (emitSuperHelpers) {
84743
84712
  enableSubstitutionForAsyncMethodsWithSuper();
84744
84713
  if (capturedSuperProperties.size) {
@@ -84750,9 +84719,9 @@ ${lanes.join("\n")}
84750
84719
  const block = factory2.createBlock(statements, true);
84751
84720
  setTextRange(block, node.body);
84752
84721
  if (emitSuperHelpers && hasSuperElementAccess) {
84753
- if (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
84722
+ if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
84754
84723
  addEmitHelper(block, advancedAsyncSuperHelper);
84755
- } else if (resolver.getNodeCheckFlags(node) & 2048 /* MethodWithSuperPropertyAccessInAsync */) {
84724
+ } else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
84756
84725
  addEmitHelper(block, asyncSuperHelper);
84757
84726
  }
84758
84727
  }
@@ -84812,7 +84781,7 @@ ${lanes.join("\n")}
84812
84781
  }
84813
84782
  function onEmitNode(hint, node, emitCallback) {
84814
84783
  if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {
84815
- const superContainerFlags = resolver.getNodeCheckFlags(node) & (2048 /* MethodWithSuperPropertyAccessInAsync */ | 4096 /* MethodWithSuperPropertyAssignmentInAsync */);
84784
+ const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */);
84816
84785
  if (superContainerFlags !== enclosingSuperContainerFlags) {
84817
84786
  const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;
84818
84787
  enclosingSuperContainerFlags = superContainerFlags;
@@ -84888,7 +84857,7 @@ ${lanes.join("\n")}
84888
84857
  return kind === 260 /* ClassDeclaration */ || kind === 173 /* Constructor */ || kind === 171 /* MethodDeclaration */ || kind === 174 /* GetAccessor */ || kind === 175 /* SetAccessor */;
84889
84858
  }
84890
84859
  function createSuperElementAccessInAsyncMethod(argumentExpression, location2) {
84891
- if (enclosingSuperContainerFlags & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
84860
+ if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
84892
84861
  return setTextRange(
84893
84862
  factory2.createPropertyAccessExpression(
84894
84863
  factory2.createCallExpression(
@@ -84913,7 +84882,7 @@ ${lanes.join("\n")}
84913
84882
  }
84914
84883
  }
84915
84884
  function createSuperAccessVariableStatement(factory2, resolver, node, names) {
84916
- const hasBinding = (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) !== 0;
84885
+ const hasBinding = (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) !== 0;
84917
84886
  const accessors = [];
84918
84887
  names.forEach((_, key) => {
84919
84888
  const name = unescapeLeadingUnderscores(key);
@@ -85851,7 +85820,7 @@ ${lanes.join("\n")}
85851
85820
  !!(hierarchyFacts & 1 /* HasLexicalThis */)
85852
85821
  )
85853
85822
  );
85854
- const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* MethodWithSuperPropertyAssignmentInAsync */ | 2048 /* MethodWithSuperPropertyAccessInAsync */);
85823
+ const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */);
85855
85824
  if (emitSuperHelpers) {
85856
85825
  enableSubstitutionForAsyncMethodsWithSuper();
85857
85826
  const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties);
@@ -85862,9 +85831,9 @@ ${lanes.join("\n")}
85862
85831
  insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
85863
85832
  const block = factory2.updateBlock(node.body, statements);
85864
85833
  if (emitSuperHelpers && hasSuperElementAccess) {
85865
- if (resolver.getNodeCheckFlags(node) & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
85834
+ if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
85866
85835
  addEmitHelper(block, advancedAsyncSuperHelper);
85867
- } else if (resolver.getNodeCheckFlags(node) & 2048 /* MethodWithSuperPropertyAccessInAsync */) {
85836
+ } else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
85868
85837
  addEmitHelper(block, asyncSuperHelper);
85869
85838
  }
85870
85839
  }
@@ -85974,7 +85943,7 @@ ${lanes.join("\n")}
85974
85943
  }
85975
85944
  function onEmitNode(hint, node, emitCallback) {
85976
85945
  if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {
85977
- const superContainerFlags = resolver.getNodeCheckFlags(node) & (2048 /* MethodWithSuperPropertyAccessInAsync */ | 4096 /* MethodWithSuperPropertyAssignmentInAsync */);
85946
+ const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */);
85978
85947
  if (superContainerFlags !== enclosingSuperContainerFlags) {
85979
85948
  const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;
85980
85949
  enclosingSuperContainerFlags = superContainerFlags;
@@ -86050,7 +86019,7 @@ ${lanes.join("\n")}
86050
86019
  return kind === 260 /* ClassDeclaration */ || kind === 173 /* Constructor */ || kind === 171 /* MethodDeclaration */ || kind === 174 /* GetAccessor */ || kind === 175 /* SetAccessor */;
86051
86020
  }
86052
86021
  function createSuperElementAccessInAsyncMethod(argumentExpression, location2) {
86053
- if (enclosingSuperContainerFlags & 4096 /* MethodWithSuperPropertyAssignmentInAsync */) {
86022
+ if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
86054
86023
  return setTextRange(
86055
86024
  factory2.createPropertyAccessExpression(
86056
86025
  factory2.createCallExpression(
@@ -88406,8 +88375,8 @@ ${lanes.join("\n")}
88406
88375
  }
88407
88376
  function shouldEmitExplicitInitializerForLetDeclaration(node) {
88408
88377
  const flags = resolver.getNodeCheckFlags(node);
88409
- const isCapturedInFunction = flags & 262144 /* CapturedBlockScopedBinding */;
88410
- const isDeclaredInLoop = flags & 524288 /* BlockScopedBindingInLoop */;
88378
+ const isCapturedInFunction = flags & 16384 /* CapturedBlockScopedBinding */;
88379
+ const isDeclaredInLoop = flags & 32768 /* BlockScopedBindingInLoop */;
88411
88380
  const emittedAsTopLevel = (hierarchyFacts & 64 /* TopLevel */) !== 0 || isCapturedInFunction && isDeclaredInLoop && (hierarchyFacts & 512 /* IterationStatementBlock */) !== 0;
88412
88381
  const emitExplicitInitializer = !emittedAsTopLevel && (hierarchyFacts & 4096 /* ForInOrForOfStatement */) === 0 && (!resolver.isDeclarationWithCollidingName(node) || isDeclaredInLoop && !isCapturedInFunction && (hierarchyFacts & (2048 /* ForStatement */ | 4096 /* ForInOrForOfStatement */)) === 0);
88413
88382
  return emitExplicitInitializer;
@@ -88768,7 +88737,7 @@ ${lanes.join("\n")}
88768
88737
  return factory2.inlineExpressions(expressions);
88769
88738
  }
88770
88739
  function shouldConvertPartOfIterationStatement(node) {
88771
- return (resolver.getNodeCheckFlags(node) & 131072 /* ContainsCapturedBlockScopeBinding */) !== 0;
88740
+ return (resolver.getNodeCheckFlags(node) & 8192 /* ContainsCapturedBlockScopeBinding */) !== 0;
88772
88741
  }
88773
88742
  function shouldConvertInitializerOfForStatement(node) {
88774
88743
  return isForStatement(node) && !!node.initializer && shouldConvertPartOfIterationStatement(node.initializer);
@@ -88783,7 +88752,7 @@ ${lanes.join("\n")}
88783
88752
  return shouldConvertBodyOfIterationStatement(node) || shouldConvertInitializerOfForStatement(node);
88784
88753
  }
88785
88754
  function shouldConvertBodyOfIterationStatement(node) {
88786
- return (resolver.getNodeCheckFlags(node) & 65536 /* LoopWithCapturedBlockScopedBinding */) !== 0;
88755
+ return (resolver.getNodeCheckFlags(node) & 4096 /* LoopWithCapturedBlockScopedBinding */) !== 0;
88787
88756
  }
88788
88757
  function hoistVariableDeclarationDeclaredInConvertedLoop(state, node) {
88789
88758
  if (!state.hoistedLocalVariables) {
@@ -89244,10 +89213,10 @@ ${lanes.join("\n")}
89244
89213
  } else {
89245
89214
  loopParameters.push(factory2.createParameterDeclaration(void 0, void 0, name));
89246
89215
  const checkFlags = resolver.getNodeCheckFlags(decl);
89247
- if (checkFlags & 4194304 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) {
89216
+ if (checkFlags & 262144 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) {
89248
89217
  const outParamName = factory2.createUniqueName("out_" + idText(name));
89249
- let flags = 0;
89250
- if (checkFlags & 4194304 /* NeedsLoopOutParameter */) {
89218
+ let flags = 0 /* None */;
89219
+ if (checkFlags & 262144 /* NeedsLoopOutParameter */) {
89251
89220
  flags |= 1 /* Body */;
89252
89221
  }
89253
89222
  if (isForStatement(container)) {
@@ -97175,7 +97144,7 @@ ${lanes.join("\n")}
97175
97144
  const sourceMap = sourceMapGenerator.toString();
97176
97145
  writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap, false, sourceFiles);
97177
97146
  if (printer.bundleFileInfo)
97178
- printer.bundleFileInfo.mapHash = computeSignature(sourceMap, maybeBind(host, host.createHash));
97147
+ printer.bundleFileInfo.mapHash = computeSignature(sourceMap, host);
97179
97148
  }
97180
97149
  } else {
97181
97150
  writer.writeLine();
@@ -97183,7 +97152,7 @@ ${lanes.join("\n")}
97183
97152
  const text = writer.getText();
97184
97153
  writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform2.diagnostics });
97185
97154
  if (printer.bundleFileInfo)
97186
- printer.bundleFileInfo.hash = computeSignature(text, maybeBind(host, host.createHash));
97155
+ printer.bundleFileInfo.hash = computeSignature(text, host);
97187
97156
  writer.clear();
97188
97157
  }
97189
97158
  function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) {
@@ -97329,7 +97298,6 @@ ${lanes.join("\n")}
97329
97298
  return result;
97330
97299
  }
97331
97300
  function emitUsingBuildInfoWorker(config, host, getCommandLine, customTransformers) {
97332
- const createHash = maybeBind(host, host.createHash);
97333
97301
  const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle(config.options, false);
97334
97302
  const buildInfo = host.getBuildInfo(buildInfoPath, config.options.configFilePath);
97335
97303
  if (!buildInfo)
@@ -97339,22 +97307,22 @@ ${lanes.join("\n")}
97339
97307
  const jsFileText = host.readFile(Debug.checkDefined(jsFilePath));
97340
97308
  if (!jsFileText)
97341
97309
  return jsFilePath;
97342
- if (computeSignature(jsFileText, createHash) !== buildInfo.bundle.js.hash)
97310
+ if (computeSignature(jsFileText, host) !== buildInfo.bundle.js.hash)
97343
97311
  return jsFilePath;
97344
97312
  const sourceMapText = sourceMapFilePath && host.readFile(sourceMapFilePath);
97345
97313
  if (sourceMapFilePath && !sourceMapText || config.options.inlineSourceMap)
97346
97314
  return sourceMapFilePath || "inline sourcemap decoding";
97347
- if (sourceMapFilePath && computeSignature(sourceMapText, createHash) !== buildInfo.bundle.js.mapHash)
97315
+ if (sourceMapFilePath && computeSignature(sourceMapText, host) !== buildInfo.bundle.js.mapHash)
97348
97316
  return sourceMapFilePath;
97349
97317
  const declarationText = declarationFilePath && host.readFile(declarationFilePath);
97350
97318
  if (declarationFilePath && !declarationText)
97351
97319
  return declarationFilePath;
97352
- if (declarationFilePath && computeSignature(declarationText, createHash) !== buildInfo.bundle.dts.hash)
97320
+ if (declarationFilePath && computeSignature(declarationText, host) !== buildInfo.bundle.dts.hash)
97353
97321
  return declarationFilePath;
97354
97322
  const declarationMapText = declarationMapPath && host.readFile(declarationMapPath);
97355
97323
  if (declarationMapPath && !declarationMapText || config.options.inlineSourceMap)
97356
97324
  return declarationMapPath || "inline sourcemap decoding";
97357
- if (declarationMapPath && computeSignature(declarationMapText, createHash) !== buildInfo.bundle.dts.mapHash)
97325
+ if (declarationMapPath && computeSignature(declarationMapText, host) !== buildInfo.bundle.dts.mapHash)
97358
97326
  return declarationMapPath;
97359
97327
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
97360
97328
  const ownPrependInput = createInputFilesWithFileTexts(
@@ -97424,7 +97392,7 @@ ${lanes.join("\n")}
97424
97392
  getBuildInfo: (bundle) => {
97425
97393
  const program = buildInfo.program;
97426
97394
  if (program && changedDtsText !== void 0 && config.options.composite) {
97427
- program.outSignature = computeSignature(changedDtsText, createHash, changedDtsData);
97395
+ program.outSignature = computeSignature(changedDtsText, host, changedDtsData);
97428
97396
  }
97429
97397
  const { js, dts, sourceFiles } = buildInfo.bundle;
97430
97398
  bundle.js.sources = js.sources;
@@ -97437,7 +97405,7 @@ ${lanes.join("\n")}
97437
97405
  getSourceFileFromReference: returnUndefined,
97438
97406
  redirectTargetsMap: createMultiMap(),
97439
97407
  getFileIncludeReasons: notImplemented,
97440
- createHash
97408
+ createHash: maybeBind(host, host.createHash)
97441
97409
  };
97442
97410
  emitFiles(
97443
97411
  notImplementedResolver,
@@ -105552,7 +105520,7 @@ ${lanes.join("\n")}
105552
105520
  return oldState && !oldState.referencedMap === !newReferencedMap;
105553
105521
  }
105554
105522
  BuilderState2.canReuseOldState = canReuseOldState;
105555
- function create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
105523
+ function create(newProgram, oldState, disableUseFileVersionAsSignature) {
105556
105524
  var _a2, _b, _c;
105557
105525
  const fileInfos = /* @__PURE__ */ new Map();
105558
105526
  const options = newProgram.getCompilerOptions();
@@ -105560,6 +105528,7 @@ ${lanes.join("\n")}
105560
105528
  const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
105561
105529
  const exportedModulesMap = referencedMap ? createManyToManyPathMap() : void 0;
105562
105530
  const useOldState = canReuseOldState(referencedMap, oldState);
105531
+ const getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames());
105563
105532
  newProgram.getTypeChecker();
105564
105533
  for (const sourceFile of newProgram.getSourceFiles()) {
105565
105534
  const version2 = Debug.checkDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set");
@@ -105598,30 +105567,29 @@ ${lanes.join("\n")}
105598
105567
  state.allFileNames = void 0;
105599
105568
  }
105600
105569
  BuilderState2.releaseCache = releaseCache2;
105601
- function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, computeHash, getCanonicalFileName) {
105570
+ function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, host) {
105602
105571
  var _a2, _b;
105603
105572
  const result = getFilesAffectedByWithOldState(
105604
105573
  state,
105605
105574
  programOfThisState,
105606
105575
  path,
105607
105576
  cancellationToken,
105608
- computeHash,
105609
- getCanonicalFileName
105577
+ host
105610
105578
  );
105611
105579
  (_a2 = state.oldSignatures) == null ? void 0 : _a2.clear();
105612
105580
  (_b = state.oldExportedModulesMap) == null ? void 0 : _b.clear();
105613
105581
  return result;
105614
105582
  }
105615
105583
  BuilderState2.getFilesAffectedBy = getFilesAffectedBy;
105616
- function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, computeHash, getCanonicalFileName) {
105584
+ function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host) {
105617
105585
  const sourceFile = programOfThisState.getSourceFileByPath(path);
105618
105586
  if (!sourceFile) {
105619
105587
  return emptyArray;
105620
105588
  }
105621
- if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName)) {
105589
+ if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host)) {
105622
105590
  return [sourceFile];
105623
105591
  }
105624
- return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName);
105592
+ return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host);
105625
105593
  }
105626
105594
  BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
105627
105595
  function updateSignatureOfFile(state, signature, path) {
@@ -105629,7 +105597,7 @@ ${lanes.join("\n")}
105629
105597
  (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
105630
105598
  }
105631
105599
  BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
105632
- function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName, useFileVersionAsSignature = state.useFileVersionAsSignature) {
105600
+ function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) {
105633
105601
  var _a2;
105634
105602
  if ((_a2 = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a2.has(sourceFile.resolvedPath))
105635
105603
  return false;
@@ -105642,10 +105610,10 @@ ${lanes.join("\n")}
105642
105610
  (fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => {
105643
105611
  Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`);
105644
105612
  latestSignature = computeSignatureWithDiagnostics(
105613
+ programOfThisState,
105645
105614
  sourceFile,
105646
105615
  text,
105647
- computeHash,
105648
- getCanonicalFileName,
105616
+ host,
105649
105617
  data
105650
105618
  );
105651
105619
  if (latestSignature !== prevSignature) {
@@ -105784,7 +105752,7 @@ ${lanes.join("\n")}
105784
105752
  }
105785
105753
  return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
105786
105754
  }
105787
- function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, computeHash, getCanonicalFileName) {
105755
+ function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, host) {
105788
105756
  if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) {
105789
105757
  return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
105790
105758
  }
@@ -105800,7 +105768,7 @@ ${lanes.join("\n")}
105800
105768
  if (!seenFileNamesMap.has(currentPath)) {
105801
105769
  const currentSourceFile = programOfThisState.getSourceFileByPath(currentPath);
105802
105770
  seenFileNamesMap.set(currentPath, currentSourceFile);
105803
- if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, computeHash, getCanonicalFileName)) {
105771
+ if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, host)) {
105804
105772
  queue.push(...getReferencedByPaths(state, currentSourceFile.resolvedPath));
105805
105773
  }
105806
105774
  }
@@ -105854,9 +105822,9 @@ ${lanes.join("\n")}
105854
105822
  function hasSameKeys(map1, map2) {
105855
105823
  return map1 === map2 || map1 !== void 0 && map2 !== void 0 && map1.size === map2.size && !forEachKey(map1, (key) => !map2.has(key));
105856
105824
  }
105857
- function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
105825
+ function createBuilderProgramState(newProgram, oldState, disableUseFileVersionAsSignature) {
105858
105826
  var _a2, _b;
105859
- const state = BuilderState.create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature);
105827
+ const state = BuilderState.create(newProgram, oldState, disableUseFileVersionAsSignature);
105860
105828
  state.program = newProgram;
105861
105829
  const compilerOptions = newProgram.getCompilerOptions();
105862
105830
  state.compilerOptions = compilerOptions;
@@ -105900,7 +105868,7 @@ ${lanes.join("\n")}
105900
105868
  return;
105901
105869
  const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);
105902
105870
  if (diagnostics) {
105903
- state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) : diagnostics);
105871
+ state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram) : diagnostics);
105904
105872
  if (!state.semanticDiagnosticsFromOldState) {
105905
105873
  state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
105906
105874
  }
@@ -105960,10 +105928,11 @@ ${lanes.join("\n")}
105960
105928
  function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) {
105961
105929
  return !!options.declarationMap === !!oldOptions.declarationMap ? oldEmitSignature : isString(oldEmitSignature) ? [oldEmitSignature] : oldEmitSignature[0];
105962
105930
  }
105963
- function convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) {
105931
+ function convertToDiagnostics(diagnostics, newProgram) {
105964
105932
  if (!diagnostics.length)
105965
105933
  return emptyArray;
105966
- const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
105934
+ let buildInfoDirectory;
105935
+ let getCanonicalFileName;
105967
105936
  return diagnostics.map((diagnostic) => {
105968
105937
  const result = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3);
105969
105938
  result.reportsUnnecessary = diagnostic.reportsUnnecessary;
@@ -105975,7 +105944,8 @@ ${lanes.join("\n")}
105975
105944
  return result;
105976
105945
  });
105977
105946
  function toPath3(path) {
105978
- return toPath(path, buildInfoDirectory, getCanonicalFileName);
105947
+ buildInfoDirectory != null ? buildInfoDirectory : buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
105948
+ return toPath(path, buildInfoDirectory, getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames()));
105979
105949
  }
105980
105950
  }
105981
105951
  function convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3) {
@@ -106017,7 +105987,7 @@ ${lanes.join("\n")}
106017
105987
  function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) {
106018
105988
  Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath));
106019
105989
  }
106020
- function getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host) {
105990
+ function getNextAffectedFile(state, cancellationToken, host) {
106021
105991
  var _a2, _b;
106022
105992
  while (true) {
106023
105993
  const { affectedFiles } = state;
@@ -106033,8 +106003,6 @@ ${lanes.join("\n")}
106033
106003
  state,
106034
106004
  affectedFile,
106035
106005
  cancellationToken,
106036
- computeHash,
106037
- getCanonicalFileName,
106038
106006
  host
106039
106007
  );
106040
106008
  return affectedFile;
@@ -106062,8 +106030,7 @@ ${lanes.join("\n")}
106062
106030
  program,
106063
106031
  nextKey.value,
106064
106032
  cancellationToken,
106065
- computeHash,
106066
- getCanonicalFileName
106033
+ host
106067
106034
  );
106068
106035
  state.currentChangedFilePath = nextKey.value;
106069
106036
  state.affectedFilesIndex = 0;
@@ -106115,7 +106082,7 @@ ${lanes.join("\n")}
106115
106082
  );
106116
106083
  }
106117
106084
  }
106118
- function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, computeHash, getCanonicalFileName, host) {
106085
+ function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) {
106119
106086
  removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath);
106120
106087
  if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) {
106121
106088
  removeDiagnosticsOfLibraryFiles(state);
@@ -106124,8 +106091,7 @@ ${lanes.join("\n")}
106124
106091
  Debug.checkDefined(state.program),
106125
106092
  affectedFile,
106126
106093
  cancellationToken,
106127
- computeHash,
106128
- getCanonicalFileName
106094
+ host
106129
106095
  );
106130
106096
  return;
106131
106097
  }
@@ -106135,12 +106101,10 @@ ${lanes.join("\n")}
106135
106101
  state,
106136
106102
  affectedFile,
106137
106103
  cancellationToken,
106138
- computeHash,
106139
- getCanonicalFileName,
106140
106104
  host
106141
106105
  );
106142
106106
  }
106143
- function handleDtsMayChangeOf(state, path, cancellationToken, computeHash, getCanonicalFileName, host) {
106107
+ function handleDtsMayChangeOf(state, path, cancellationToken, host) {
106144
106108
  removeSemanticDiagnosticsOf(state, path);
106145
106109
  if (!state.changedFilesSet.has(path)) {
106146
106110
  const program = Debug.checkDefined(state.program);
@@ -106151,8 +106115,7 @@ ${lanes.join("\n")}
106151
106115
  program,
106152
106116
  sourceFile,
106153
106117
  cancellationToken,
106154
- computeHash,
106155
- getCanonicalFileName,
106118
+ host,
106156
106119
  !host.disableUseFileVersionAsSignature
106157
106120
  );
106158
106121
  if (getEmitDeclarations(state.compilerOptions)) {
@@ -106174,7 +106137,7 @@ ${lanes.join("\n")}
106174
106137
  const newSignature = Debug.checkDefined(state.fileInfos.get(path)).signature;
106175
106138
  return newSignature !== oldSignature;
106176
106139
  }
106177
- function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host) {
106140
+ function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host) {
106178
106141
  var _a2;
106179
106142
  if (!((_a2 = state.fileInfos.get(filePath)) == null ? void 0 : _a2.affectsGlobalScope))
106180
106143
  return false;
@@ -106182,14 +106145,12 @@ ${lanes.join("\n")}
106182
106145
  state,
106183
106146
  file.resolvedPath,
106184
106147
  cancellationToken,
106185
- computeHash,
106186
- getCanonicalFileName,
106187
106148
  host
106188
106149
  ));
106189
106150
  removeDiagnosticsOfLibraryFiles(state);
106190
106151
  return true;
106191
106152
  }
106192
- function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, computeHash, getCanonicalFileName, host) {
106153
+ function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host) {
106193
106154
  var _a2;
106194
106155
  if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.resolvedPath))
106195
106156
  return;
@@ -106203,9 +106164,9 @@ ${lanes.join("\n")}
106203
106164
  const currentPath = queue.pop();
106204
106165
  if (!seenFileNamesMap.has(currentPath)) {
106205
106166
  seenFileNamesMap.set(currentPath, true);
106206
- if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, computeHash, getCanonicalFileName, host))
106167
+ if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, host))
106207
106168
  return;
106208
- handleDtsMayChangeOf(state, currentPath, cancellationToken, computeHash, getCanonicalFileName, host);
106169
+ handleDtsMayChangeOf(state, currentPath, cancellationToken, host);
106209
106170
  if (isChangedSignature(state, currentPath)) {
106210
106171
  const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath);
106211
106172
  queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath));
@@ -106215,7 +106176,7 @@ ${lanes.join("\n")}
106215
106176
  }
106216
106177
  const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
106217
106178
  (_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
106218
- if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, computeHash, getCanonicalFileName, host))
106179
+ if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, host))
106219
106180
  return true;
106220
106181
  const references = state.referencedMap.getKeys(exportedFromPath);
106221
106182
  return references && forEachKey(
@@ -106225,28 +106186,24 @@ ${lanes.join("\n")}
106225
106186
  filePath,
106226
106187
  seenFileAndExportsOfFile,
106227
106188
  cancellationToken,
106228
- computeHash,
106229
- getCanonicalFileName,
106230
106189
  host
106231
106190
  )
106232
106191
  );
106233
106192
  });
106234
106193
  }
106235
- function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, computeHash, getCanonicalFileName, host) {
106194
+ function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, host) {
106236
106195
  var _a2, _b;
106237
106196
  if (!tryAddToSet(seenFileAndExportsOfFile, filePath))
106238
106197
  return void 0;
106239
- if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host))
106198
+ if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host))
106240
106199
  return true;
106241
- handleDtsMayChangeOf(state, filePath, cancellationToken, computeHash, getCanonicalFileName, host);
106200
+ handleDtsMayChangeOf(state, filePath, cancellationToken, host);
106242
106201
  (_a2 = state.exportedModulesMap.getKeys(filePath)) == null ? void 0 : _a2.forEach(
106243
106202
  (exportedFromPath) => handleDtsMayChangeOfFileAndExportsOfFile(
106244
106203
  state,
106245
106204
  exportedFromPath,
106246
106205
  seenFileAndExportsOfFile,
106247
106206
  cancellationToken,
106248
- computeHash,
106249
- getCanonicalFileName,
106250
106207
  host
106251
106208
  )
106252
106209
  );
@@ -106255,8 +106212,6 @@ ${lanes.join("\n")}
106255
106212
  state,
106256
106213
  referencingFilePath,
106257
106214
  cancellationToken,
106258
- computeHash,
106259
- getCanonicalFileName,
106260
106215
  host
106261
106216
  )
106262
106217
  );
@@ -106285,9 +106240,10 @@ ${lanes.join("\n")}
106285
106240
  function isProgramBundleEmitBuildInfo(info) {
106286
106241
  return !!outFile(info.options || {});
106287
106242
  }
106288
- function getBuildInfo2(state, getCanonicalFileName, bundle) {
106243
+ function getBuildInfo2(state, bundle) {
106289
106244
  var _a2, _b, _c;
106290
106245
  const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory();
106246
+ const getCanonicalFileName = createGetCanonicalFileName(state.program.useCaseSensitiveFileNames());
106291
106247
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
106292
106248
  const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
106293
106249
  const fileNames = [];
@@ -106511,8 +106467,9 @@ ${lanes.join("\n")}
106511
106467
  function getTextHandlingSourceMapForSignature(text, data) {
106512
106468
  return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text;
106513
106469
  }
106514
- function computeSignatureWithDiagnostics(sourceFile, text, computeHash, getCanonicalFileName, data) {
106515
- var _a2;
106470
+ function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) {
106471
+ var _a2, _b;
106472
+ let getCanonicalFileName;
106516
106473
  text = getTextHandlingSourceMapForSignature(text, data);
106517
106474
  let sourceFileDirectory;
106518
106475
  if ((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length) {
@@ -106520,7 +106477,7 @@ ${lanes.join("\n")}
106520
106477
  (diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`
106521
106478
  ).join("\n");
106522
106479
  }
106523
- return (computeHash != null ? computeHash : generateDjb2Hash)(text);
106480
+ return ((_b = host.createHash) != null ? _b : generateDjb2Hash)(text);
106524
106481
  function flattenDiagnosticMessageText2(diagnostic) {
106525
106482
  return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? "" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText2).join("\n");
106526
106483
  }
@@ -106529,11 +106486,16 @@ ${lanes.join("\n")}
106529
106486
  return `(${diagnostic.start},${diagnostic.length})`;
106530
106487
  if (sourceFileDirectory === void 0)
106531
106488
  sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath);
106532
- return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceFileDirectory, diagnostic.file.resolvedPath, getCanonicalFileName))}(${diagnostic.start},${diagnostic.length})`;
106489
+ return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(
106490
+ sourceFileDirectory,
106491
+ diagnostic.file.resolvedPath,
106492
+ getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(program.useCaseSensitiveFileNames())
106493
+ ))}(${diagnostic.start},${diagnostic.length})`;
106533
106494
  }
106534
106495
  }
106535
- function computeSignature(text, computeHash, data) {
106536
- return (computeHash != null ? computeHash : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
106496
+ function computeSignature(text, host, data) {
106497
+ var _a2;
106498
+ return ((_a2 = host.createHash) != null ? _a2 : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
106537
106499
  }
106538
106500
  function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) {
106539
106501
  let oldState = oldProgram && oldProgram.getState();
@@ -106542,10 +106504,8 @@ ${lanes.join("\n")}
106542
106504
  oldState = void 0;
106543
106505
  return oldProgram;
106544
106506
  }
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);
106507
+ const state = createBuilderProgramState(newProgram, oldState, host.disableUseFileVersionAsSignature);
106508
+ newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, bundle);
106549
106509
  newProgram = void 0;
106550
106510
  oldProgram = void 0;
106551
106511
  oldState = void 0;
@@ -106579,7 +106539,7 @@ ${lanes.join("\n")}
106579
106539
  }
106580
106540
  function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
106581
106541
  var _a2, _b, _c, _d, _e;
106582
- let affected = getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host);
106542
+ let affected = getNextAffectedFile(state, cancellationToken, host);
106583
106543
  const programEmitKind = getBuilderFileEmit(state.compilerOptions);
106584
106544
  let emitKind = emitOnlyDtsFiles ? programEmitKind & 24 /* AllDts */ : programEmitKind;
106585
106545
  if (!affected) {
@@ -106653,10 +106613,10 @@ ${lanes.join("\n")}
106653
106613
  const info = state.fileInfos.get(file.resolvedPath);
106654
106614
  if (info.signature === file.version) {
106655
106615
  const signature = computeSignatureWithDiagnostics(
106616
+ state.program,
106656
106617
  file,
106657
106618
  text,
106658
- computeHash,
106659
- getCanonicalFileName,
106619
+ host,
106660
106620
  data
106661
106621
  );
106662
106622
  if (!((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length))
@@ -106700,7 +106660,7 @@ ${lanes.join("\n")}
106700
106660
  state.program.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
106701
106661
  function handleNewSignature(oldSignatureFormat, newSignature) {
106702
106662
  const oldSignature = !oldSignatureFormat || isString(oldSignatureFormat) ? oldSignatureFormat : oldSignatureFormat[0];
106703
- newSignature != null ? newSignature : newSignature = computeSignature(text, computeHash, data);
106663
+ newSignature != null ? newSignature : newSignature = computeSignature(text, host, data);
106704
106664
  if (newSignature === oldSignature) {
106705
106665
  if (oldSignatureFormat === oldSignature)
106706
106666
  return void 0;
@@ -106756,7 +106716,7 @@ ${lanes.join("\n")}
106756
106716
  }
106757
106717
  function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) {
106758
106718
  while (true) {
106759
- const affected = getNextAffectedFile(state, cancellationToken, computeHash, getCanonicalFileName, host);
106719
+ const affected = getNextAffectedFile(state, cancellationToken, host);
106760
106720
  let result;
106761
106721
  if (!affected)
106762
106722
  return void 0;
@@ -111587,6 +111547,7 @@ ${lanes.join("\n")}
111587
111547
  canHaveModifiers: () => canHaveModifiers,
111588
111548
  canJsonReportNoInputFiles: () => canJsonReportNoInputFiles,
111589
111549
  canProduceDiagnostics: () => canProduceDiagnostics,
111550
+ canUsePropertyAccess: () => canUsePropertyAccess,
111590
111551
  canWatchDirectoryOrFile: () => canWatchDirectoryOrFile,
111591
111552
  cartesianProduct: () => cartesianProduct,
111592
111553
  cast: () => cast,
@@ -113262,6 +113223,7 @@ ${lanes.join("\n")}
113262
113223
  isUnparsedSource: () => isUnparsedSource,
113263
113224
  isUnparsedTextLike: () => isUnparsedTextLike,
113264
113225
  isUrl: () => isUrl,
113226
+ isValidBigIntString: () => isValidBigIntString,
113265
113227
  isValidESSymbolDeclaration: () => isValidESSymbolDeclaration,
113266
113228
  isValidTypeOnlyAliasUseSite: () => isValidTypeOnlyAliasUseSite,
113267
113229
  isValueSignatureDeclaration: () => isValueSignatureDeclaration,
@@ -113393,6 +113355,7 @@ ${lanes.join("\n")}
113393
113355
  parameterIsThisKeyword: () => parameterIsThisKeyword,
113394
113356
  parameterNamePart: () => parameterNamePart,
113395
113357
  parseBaseNodeFactory: () => parseBaseNodeFactory,
113358
+ parseBigInt: () => parseBigInt,
113396
113359
  parseBuildCommand: () => parseBuildCommand,
113397
113360
  parseCommandLine: () => parseCommandLine,
113398
113361
  parseCommandLineWorker: () => parseCommandLineWorker,
@@ -113411,6 +113374,7 @@ ${lanes.join("\n")}
113411
113374
  parseNodeModuleFromPath: () => parseNodeModuleFromPath,
113412
113375
  parsePackageName: () => parsePackageName,
113413
113376
  parsePseudoBigInt: () => parsePseudoBigInt,
113377
+ parseValidBigInt: () => parseValidBigInt,
113414
113378
  patchWriteFileEnsuringDirectory: () => patchWriteFileEnsuringDirectory,
113415
113379
  pathContainsNodeModules: () => pathContainsNodeModules,
113416
113380
  pathIsAbsolute: () => pathIsAbsolute,
@@ -113591,6 +113555,7 @@ ${lanes.join("\n")}
113591
113555
  supportedLocaleDirectories: () => supportedLocaleDirectories,
113592
113556
  supportedTSExtensions: () => supportedTSExtensions,
113593
113557
  supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
113558
+ supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
113594
113559
  suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
113595
113560
  suppressLeadingTrivia: () => suppressLeadingTrivia,
113596
113561
  suppressTrailingTrivia: () => suppressTrailingTrivia,
@@ -121568,6 +121533,7 @@ ${lanes.join("\n")}
121568
121533
  trace: maybeBind(host, host.trace),
121569
121534
  resolveModuleNames: maybeBind(host, host.resolveModuleNames),
121570
121535
  getModuleResolutionCache: maybeBind(host, host.getModuleResolutionCache),
121536
+ createHash: maybeBind(host, host.createHash),
121571
121537
  resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives),
121572
121538
  useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect),
121573
121539
  getParsedCommandLine
@@ -133123,6 +133089,7 @@ ${lanes.join("\n")}
133123
133089
  CompletionSource2["ClassMemberSnippet"] = "ClassMemberSnippet/";
133124
133090
  CompletionSource2["TypeOnlyAlias"] = "TypeOnlyAlias/";
133125
133091
  CompletionSource2["ObjectLiteralMethodSnippet"] = "ObjectLiteralMethodSnippet/";
133092
+ CompletionSource2["SwitchCases"] = "SwitchCases/";
133126
133093
  return CompletionSource2;
133127
133094
  })(CompletionSource || {});
133128
133095
  var SymbolOriginInfoKind = /* @__PURE__ */ ((SymbolOriginInfoKind2) => {
@@ -133453,6 +133420,13 @@ ${lanes.join("\n")}
133453
133420
  if (!isChecked) {
133454
133421
  getJSCompletionEntries(sourceFile, location2.pos, uniqueNames, getEmitScriptTarget(compilerOptions), entries);
133455
133422
  }
133423
+ let caseBlock;
133424
+ if (preferences.includeCompletionsWithInsertText && contextToken && (caseBlock = findAncestor(contextToken, isCaseBlock))) {
133425
+ const cases = getExhaustiveCaseSnippets(caseBlock, sourceFile, preferences, compilerOptions, host, program, formatContext);
133426
+ if (cases) {
133427
+ entries.push(cases.entry);
133428
+ }
133429
+ }
133456
133430
  return {
133457
133431
  flags: completionData.flags,
133458
133432
  isGlobalCompletion: isInSnippetScope,
@@ -133466,6 +133440,190 @@ ${lanes.join("\n")}
133466
133440
  function isCheckedFile(sourceFile, compilerOptions) {
133467
133441
  return !isSourceFileJS(sourceFile) || !!isCheckJsEnabledForFile(sourceFile, compilerOptions);
133468
133442
  }
133443
+ function getExhaustiveCaseSnippets(caseBlock, sourceFile, preferences, options, host, program, formatContext) {
133444
+ const clauses = caseBlock.clauses;
133445
+ const checker = program.getTypeChecker();
133446
+ const switchType = checker.getTypeAtLocation(caseBlock.parent.expression);
133447
+ if (switchType && switchType.isUnion() && every(switchType.types, (type) => type.isLiteral())) {
133448
+ const tracker = newCaseClauseTracker(checker, clauses);
133449
+ const target = getEmitScriptTarget(options);
133450
+ const quotePreference = getQuotePreference(sourceFile, preferences);
133451
+ const importAdder = ts_codefix_exports.createImportAdder(sourceFile, program, preferences, host);
133452
+ const elements = [];
133453
+ for (const type of switchType.types) {
133454
+ if (type.flags & 1024 /* EnumLiteral */) {
133455
+ Debug.assert(type.symbol, "An enum member type should have a symbol");
133456
+ Debug.assert(type.symbol.parent, "An enum member type should have a parent symbol (the enum symbol)");
133457
+ const enumValue = type.symbol.valueDeclaration && checker.getConstantValue(type.symbol.valueDeclaration);
133458
+ if (enumValue !== void 0) {
133459
+ if (tracker.hasValue(enumValue)) {
133460
+ continue;
133461
+ }
133462
+ tracker.addValue(enumValue);
133463
+ }
133464
+ const typeNode = ts_codefix_exports.typeToAutoImportableTypeNode(checker, importAdder, type, caseBlock, target);
133465
+ if (!typeNode) {
133466
+ return void 0;
133467
+ }
133468
+ const expr = typeNodeToExpression(typeNode, target, quotePreference);
133469
+ if (!expr) {
133470
+ return void 0;
133471
+ }
133472
+ elements.push(expr);
133473
+ } else if (!tracker.hasValue(type.value)) {
133474
+ switch (typeof type.value) {
133475
+ case "object":
133476
+ elements.push(factory.createBigIntLiteral(type.value));
133477
+ break;
133478
+ case "number":
133479
+ elements.push(factory.createNumericLiteral(type.value));
133480
+ break;
133481
+ case "string":
133482
+ elements.push(factory.createStringLiteral(type.value));
133483
+ break;
133484
+ }
133485
+ }
133486
+ }
133487
+ if (elements.length === 0) {
133488
+ return void 0;
133489
+ }
133490
+ const newClauses = map(elements, (element) => {
133491
+ return factory.createCaseClause(element, []);
133492
+ });
133493
+ const printer = createSnippetPrinter({
133494
+ removeComments: true,
133495
+ module: options.module,
133496
+ target: options.target,
133497
+ newLine: getNewLineKind(getNewLineCharacter(options, maybeBind(host, host.getNewLine)))
133498
+ });
133499
+ const insertText = formatContext ? printer.printAndFormatSnippetList(
133500
+ 1 /* MultiLine */ | 131072 /* NoTrailingNewLine */,
133501
+ factory.createNodeArray(newClauses),
133502
+ sourceFile,
133503
+ formatContext
133504
+ ) : printer.printSnippetList(
133505
+ 1 /* MultiLine */ | 131072 /* NoTrailingNewLine */,
133506
+ factory.createNodeArray(newClauses),
133507
+ sourceFile
133508
+ );
133509
+ const firstClause = printer.printSnippetList(0 /* SingleLine */, factory.createNodeArray([first(newClauses)]), sourceFile);
133510
+ return {
133511
+ entry: {
133512
+ name: `${firstClause} ...`,
133513
+ kind: "" /* unknown */,
133514
+ sortText: SortText.GlobalsOrKeywords,
133515
+ insertText,
133516
+ hasAction: importAdder.hasFixes() || void 0,
133517
+ source: "SwitchCases/" /* SwitchCases */
133518
+ },
133519
+ importAdder
133520
+ };
133521
+ }
133522
+ return void 0;
133523
+ }
133524
+ function newCaseClauseTracker(checker, clauses) {
133525
+ const existingStrings = /* @__PURE__ */ new Set();
133526
+ const existingNumbers = /* @__PURE__ */ new Set();
133527
+ const existingBigInts = /* @__PURE__ */ new Set();
133528
+ for (const clause of clauses) {
133529
+ if (!isDefaultClause(clause)) {
133530
+ if (isLiteralExpression(clause.expression)) {
133531
+ const expression = clause.expression;
133532
+ switch (expression.kind) {
133533
+ case 14 /* NoSubstitutionTemplateLiteral */:
133534
+ case 10 /* StringLiteral */:
133535
+ existingStrings.add(expression.text);
133536
+ break;
133537
+ case 8 /* NumericLiteral */:
133538
+ existingNumbers.add(parseInt(expression.text));
133539
+ break;
133540
+ case 9 /* BigIntLiteral */:
133541
+ const parsedBigInt = parseBigInt(endsWith(expression.text, "n") ? expression.text.slice(0, -1) : expression.text);
133542
+ if (parsedBigInt) {
133543
+ existingBigInts.add(pseudoBigIntToString(parsedBigInt));
133544
+ }
133545
+ break;
133546
+ }
133547
+ } else {
133548
+ const symbol = checker.getSymbolAtLocation(clause.expression);
133549
+ if (symbol && symbol.valueDeclaration && isEnumMember(symbol.valueDeclaration)) {
133550
+ const enumValue = checker.getConstantValue(symbol.valueDeclaration);
133551
+ if (enumValue !== void 0) {
133552
+ addValue(enumValue);
133553
+ }
133554
+ }
133555
+ }
133556
+ }
133557
+ }
133558
+ return {
133559
+ addValue,
133560
+ hasValue
133561
+ };
133562
+ function addValue(value) {
133563
+ switch (typeof value) {
133564
+ case "string":
133565
+ existingStrings.add(value);
133566
+ break;
133567
+ case "number":
133568
+ existingNumbers.add(value);
133569
+ }
133570
+ }
133571
+ function hasValue(value) {
133572
+ switch (typeof value) {
133573
+ case "string":
133574
+ return existingStrings.has(value);
133575
+ case "number":
133576
+ return existingNumbers.has(value);
133577
+ case "object":
133578
+ return existingBigInts.has(pseudoBigIntToString(value));
133579
+ }
133580
+ }
133581
+ }
133582
+ function typeNodeToExpression(typeNode, languageVersion, quotePreference) {
133583
+ switch (typeNode.kind) {
133584
+ case 180 /* TypeReference */:
133585
+ const typeName = typeNode.typeName;
133586
+ return entityNameToExpression(typeName, languageVersion, quotePreference);
133587
+ case 196 /* IndexedAccessType */:
133588
+ const objectExpression = typeNodeToExpression(typeNode.objectType, languageVersion, quotePreference);
133589
+ const indexExpression = typeNodeToExpression(typeNode.indexType, languageVersion, quotePreference);
133590
+ return objectExpression && indexExpression && factory.createElementAccessExpression(objectExpression, indexExpression);
133591
+ case 198 /* LiteralType */:
133592
+ const literal = typeNode.literal;
133593
+ switch (literal.kind) {
133594
+ case 10 /* StringLiteral */:
133595
+ return factory.createStringLiteral(literal.text, quotePreference === 0 /* Single */);
133596
+ case 8 /* NumericLiteral */:
133597
+ return factory.createNumericLiteral(literal.text, literal.numericLiteralFlags);
133598
+ }
133599
+ return void 0;
133600
+ case 193 /* ParenthesizedType */:
133601
+ const exp = typeNodeToExpression(typeNode.type, languageVersion, quotePreference);
133602
+ return exp && (isIdentifier(exp) ? exp : factory.createParenthesizedExpression(exp));
133603
+ case 183 /* TypeQuery */:
133604
+ return entityNameToExpression(typeNode.exprName, languageVersion, quotePreference);
133605
+ case 202 /* ImportType */:
133606
+ Debug.fail(`We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.`);
133607
+ }
133608
+ return void 0;
133609
+ }
133610
+ function entityNameToExpression(entityName, languageVersion, quotePreference) {
133611
+ if (isIdentifier(entityName)) {
133612
+ return entityName;
133613
+ }
133614
+ const realName = unescapeLeadingUnderscores(entityName.right.escapedText);
133615
+ if (canUsePropertyAccess(realName, languageVersion)) {
133616
+ return factory.createPropertyAccessExpression(
133617
+ entityNameToExpression(entityName.left, languageVersion, quotePreference),
133618
+ realName
133619
+ );
133620
+ } else {
133621
+ return factory.createElementAccessExpression(
133622
+ entityNameToExpression(entityName.left, languageVersion, quotePreference),
133623
+ factory.createStringLiteral(realName, quotePreference === 0 /* Single */)
133624
+ );
133625
+ }
133626
+ }
133469
133627
  function isMemberCompletionKind(kind) {
133470
133628
  switch (kind) {
133471
133629
  case CompletionKind.ObjectPropertyDeclaration:
@@ -134124,6 +134282,9 @@ ${lanes.join("\n")}
134124
134282
  return entries;
134125
134283
  }
134126
134284
  function getSymbolCompletionFromEntryId(program, log, sourceFile, position, entryId, host, preferences) {
134285
+ if (entryId.source === "SwitchCases/" /* SwitchCases */) {
134286
+ return { type: "cases" };
134287
+ }
134127
134288
  if (entryId.data) {
134128
134289
  const autoImport = getAutoImportSymbolFromCompletionEntryData(entryId.name, entryId.data, program, host);
134129
134290
  if (autoImport) {
@@ -134162,9 +134323,9 @@ ${lanes.join("\n")}
134162
134323
  const typeChecker = program.getTypeChecker();
134163
134324
  const compilerOptions = program.getCompilerOptions();
134164
134325
  const { name, source, data } = entryId;
134165
- const contextToken = findPrecedingToken(position, sourceFile);
134166
- if (isInString(sourceFile, position, contextToken)) {
134167
- return ts_Completions_StringCompletions_exports.getStringLiteralCompletionDetails(name, sourceFile, position, contextToken, typeChecker, compilerOptions, host, cancellationToken, preferences);
134326
+ const { previousToken, contextToken } = getRelevantTokens(position, sourceFile);
134327
+ if (isInString(sourceFile, position, previousToken)) {
134328
+ return ts_Completions_StringCompletions_exports.getStringLiteralCompletionDetails(name, sourceFile, position, previousToken, typeChecker, compilerOptions, host, cancellationToken, preferences);
134168
134329
  }
134169
134330
  const symbolCompletion = getSymbolCompletionFromEntryId(program, log, sourceFile, position, entryId, host, preferences);
134170
134331
  switch (symbolCompletion.type) {
@@ -134184,14 +134345,40 @@ ${lanes.join("\n")}
134184
134345
  }
134185
134346
  }
134186
134347
  case "symbol": {
134187
- const { symbol, location: location2, contextToken: contextToken2, origin, previousToken } = symbolCompletion;
134188
- const { codeActions, sourceDisplay } = getCompletionEntryCodeActionsAndSourceDisplay(name, location2, contextToken2, origin, symbol, program, host, compilerOptions, sourceFile, position, previousToken, formatContext, preferences, data, source, cancellationToken);
134348
+ const { symbol, location: location2, contextToken: contextToken2, origin, previousToken: previousToken2 } = symbolCompletion;
134349
+ const { codeActions, sourceDisplay } = getCompletionEntryCodeActionsAndSourceDisplay(name, location2, contextToken2, origin, symbol, program, host, compilerOptions, sourceFile, position, previousToken2, formatContext, preferences, data, source, cancellationToken);
134189
134350
  return createCompletionDetailsForSymbol(symbol, typeChecker, sourceFile, location2, cancellationToken, codeActions, sourceDisplay);
134190
134351
  }
134191
134352
  case "literal": {
134192
134353
  const { literal } = symbolCompletion;
134193
134354
  return createSimpleDetails(completionNameForLiteral(sourceFile, preferences, literal), "string" /* string */, typeof literal === "string" ? 8 /* stringLiteral */ : 7 /* numericLiteral */);
134194
134355
  }
134356
+ case "cases": {
134357
+ const { entry, importAdder } = getExhaustiveCaseSnippets(
134358
+ contextToken.parent,
134359
+ sourceFile,
134360
+ preferences,
134361
+ program.getCompilerOptions(),
134362
+ host,
134363
+ program,
134364
+ void 0
134365
+ );
134366
+ const changes = ts_textChanges_exports.ChangeTracker.with(
134367
+ { host, formatContext, preferences },
134368
+ importAdder.writeFixes
134369
+ );
134370
+ return {
134371
+ name: entry.name,
134372
+ kind: "" /* unknown */,
134373
+ kindModifiers: "",
134374
+ displayParts: [],
134375
+ sourceDisplay: void 0,
134376
+ codeActions: [{
134377
+ changes,
134378
+ description: diagnosticToString([Diagnostics.Includes_imports_of_types_referenced_by_0, name])
134379
+ }]
134380
+ };
134381
+ }
134195
134382
  case "none":
134196
134383
  return allKeywordsCompletions().some((c) => c.name === name) ? createSimpleDetails(name, "keyword" /* keyword */, 5 /* keyword */) : void 0;
134197
134384
  default:
@@ -148132,6 +148319,7 @@ ${options.prefix}` : "\n" : options.prefix
148132
148319
  // src/services/formatting/rule.ts
148133
148320
  var anyContext = emptyArray;
148134
148321
  var RuleAction = /* @__PURE__ */ ((RuleAction2) => {
148322
+ RuleAction2[RuleAction2["None"] = 0] = "None";
148135
148323
  RuleAction2[RuleAction2["StopProcessingSpaceActions"] = 1] = "StopProcessingSpaceActions";
148136
148324
  RuleAction2[RuleAction2["StopProcessingTokenActions"] = 2] = "StopProcessingTokenActions";
148137
148325
  RuleAction2[RuleAction2["InsertSpace"] = 4] = "InsertSpace";
@@ -148779,7 +148967,7 @@ ${options.prefix}` : "\n" : options.prefix
148779
148967
  return rulesMapCache;
148780
148968
  }
148781
148969
  function getRuleActionExclusion(ruleAction) {
148782
- let mask2 = 0;
148970
+ let mask2 = 0 /* None */;
148783
148971
  if (ruleAction & 1 /* StopProcessingSpaceActions */) {
148784
148972
  mask2 |= 28 /* ModifySpaceAction */;
148785
148973
  }
@@ -150268,6 +150456,57 @@ ${options.prefix}` : "\n" : options.prefix
150268
150456
  }
150269
150457
  })(SmartIndenter || (SmartIndenter = {}));
150270
150458
 
150459
+ // src/deprecatedCompat/deprecate.ts
150460
+ var enableDeprecationWarnings = true;
150461
+ var typeScriptVersion2;
150462
+ function getTypeScriptVersion() {
150463
+ return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
150464
+ }
150465
+ function formatDeprecationMessage(name, error, errorAfter, since, message) {
150466
+ let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
150467
+ deprecationMessage += `'${name}' `;
150468
+ deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
150469
+ deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
150470
+ deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
150471
+ return deprecationMessage;
150472
+ }
150473
+ function createErrorDeprecation(name, errorAfter, since, message) {
150474
+ const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
150475
+ return () => {
150476
+ throw new TypeError(deprecationMessage);
150477
+ };
150478
+ }
150479
+ function createWarningDeprecation(name, errorAfter, since, message) {
150480
+ let hasWrittenDeprecation = false;
150481
+ return () => {
150482
+ if (enableDeprecationWarnings && !hasWrittenDeprecation) {
150483
+ Debug.log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
150484
+ hasWrittenDeprecation = true;
150485
+ }
150486
+ };
150487
+ }
150488
+ function createDeprecation(name, options = {}) {
150489
+ var _a2, _b;
150490
+ const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
150491
+ const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
150492
+ const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
150493
+ const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
150494
+ const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
150495
+ const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
150496
+ return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
150497
+ }
150498
+ function wrapFunction(deprecation, func) {
150499
+ return function() {
150500
+ deprecation();
150501
+ return func.apply(this, arguments);
150502
+ };
150503
+ }
150504
+ function deprecate(func, options) {
150505
+ var _a2;
150506
+ const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : Debug.getFunctionName(func), options);
150507
+ return wrapFunction(deprecation, func);
150508
+ }
150509
+
150271
150510
  // src/deprecatedCompat/deprecations.ts
150272
150511
  function createOverload(name, overloads, binder2, deprecations) {
150273
150512
  Object.defineProperty(call, "name", { ...Object.getOwnPropertyDescriptor(call, "name"), value: name });
@@ -150275,7 +150514,7 @@ ${options.prefix}` : "\n" : options.prefix
150275
150514
  for (const key of Object.keys(deprecations)) {
150276
150515
  const index = +key;
150277
150516
  if (!isNaN(index) && hasProperty(overloads, `${index}`)) {
150278
- overloads[index] = Debug.deprecate(overloads[index], { ...deprecations[index], name });
150517
+ overloads[index] = deprecate(overloads[index], { ...deprecations[index], name });
150279
150518
  }
150280
150519
  }
150281
150520
  }
@@ -150315,336 +150554,336 @@ ${options.prefix}` : "\n" : options.prefix
150315
150554
 
150316
150555
  // src/deprecatedCompat/4.0/nodeFactoryTopLevelExports.ts
150317
150556
  var factoryDeprecation = { since: "4.0", warnAfter: "4.1", message: "Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead." };
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) => {
150557
+ var createNodeArray = deprecate(factory.createNodeArray, factoryDeprecation);
150558
+ var createNumericLiteral = deprecate(factory.createNumericLiteral, factoryDeprecation);
150559
+ var createBigIntLiteral = deprecate(factory.createBigIntLiteral, factoryDeprecation);
150560
+ var createStringLiteral = deprecate(factory.createStringLiteral, factoryDeprecation);
150561
+ var createStringLiteralFromNode = deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
150562
+ var createRegularExpressionLiteral = deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
150563
+ var createLoopVariable = deprecate(factory.createLoopVariable, factoryDeprecation);
150564
+ var createUniqueName = deprecate(factory.createUniqueName, factoryDeprecation);
150565
+ var createPrivateIdentifier = deprecate(factory.createPrivateIdentifier, factoryDeprecation);
150566
+ var createSuper = deprecate(factory.createSuper, factoryDeprecation);
150567
+ var createThis = deprecate(factory.createThis, factoryDeprecation);
150568
+ var createNull = deprecate(factory.createNull, factoryDeprecation);
150569
+ var createTrue = deprecate(factory.createTrue, factoryDeprecation);
150570
+ var createFalse = deprecate(factory.createFalse, factoryDeprecation);
150571
+ var createModifier = deprecate(factory.createModifier, factoryDeprecation);
150572
+ var createModifiersFromModifierFlags = deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
150573
+ var createQualifiedName = deprecate(factory.createQualifiedName, factoryDeprecation);
150574
+ var updateQualifiedName = deprecate(factory.updateQualifiedName, factoryDeprecation);
150575
+ var createComputedPropertyName = deprecate(factory.createComputedPropertyName, factoryDeprecation);
150576
+ var updateComputedPropertyName = deprecate(factory.updateComputedPropertyName, factoryDeprecation);
150577
+ var createTypeParameterDeclaration = deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
150578
+ var updateTypeParameterDeclaration = deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
150579
+ var createParameter = deprecate(factory.createParameterDeclaration, factoryDeprecation);
150580
+ var updateParameter = deprecate(factory.updateParameterDeclaration, factoryDeprecation);
150581
+ var createDecorator = deprecate(factory.createDecorator, factoryDeprecation);
150582
+ var updateDecorator = deprecate(factory.updateDecorator, factoryDeprecation);
150583
+ var createProperty = deprecate(factory.createPropertyDeclaration, factoryDeprecation);
150584
+ var updateProperty = deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
150585
+ var createMethod = deprecate(factory.createMethodDeclaration, factoryDeprecation);
150586
+ var updateMethod = deprecate(factory.updateMethodDeclaration, factoryDeprecation);
150587
+ var createConstructor = deprecate(factory.createConstructorDeclaration, factoryDeprecation);
150588
+ var updateConstructor = deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
150589
+ var createGetAccessor = deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
150590
+ var updateGetAccessor = deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
150591
+ var createSetAccessor = deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
150592
+ var updateSetAccessor = deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
150593
+ var createCallSignature = deprecate(factory.createCallSignature, factoryDeprecation);
150594
+ var updateCallSignature = deprecate(factory.updateCallSignature, factoryDeprecation);
150595
+ var createConstructSignature = deprecate(factory.createConstructSignature, factoryDeprecation);
150596
+ var updateConstructSignature = deprecate(factory.updateConstructSignature, factoryDeprecation);
150597
+ var updateIndexSignature = deprecate(factory.updateIndexSignature, factoryDeprecation);
150598
+ var createKeywordTypeNode = deprecate(factory.createKeywordTypeNode, factoryDeprecation);
150599
+ var createTypePredicateNodeWithModifier = deprecate(factory.createTypePredicateNode, factoryDeprecation);
150600
+ var updateTypePredicateNodeWithModifier = deprecate(factory.updateTypePredicateNode, factoryDeprecation);
150601
+ var createTypeReferenceNode = deprecate(factory.createTypeReferenceNode, factoryDeprecation);
150602
+ var updateTypeReferenceNode = deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
150603
+ var createFunctionTypeNode = deprecate(factory.createFunctionTypeNode, factoryDeprecation);
150604
+ var updateFunctionTypeNode = deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
150605
+ var createConstructorTypeNode = deprecate((typeParameters, parameters, type) => {
150367
150606
  return factory.createConstructorTypeNode(void 0, typeParameters, parameters, type);
150368
150607
  }, factoryDeprecation);
150369
- var updateConstructorTypeNode = Debug.deprecate((node, typeParameters, parameters, type) => {
150608
+ var updateConstructorTypeNode = deprecate((node, typeParameters, parameters, type) => {
150370
150609
  return factory.updateConstructorTypeNode(node, node.modifiers, typeParameters, parameters, type);
150371
150610
  }, 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) {
150611
+ var createTypeQueryNode = deprecate(factory.createTypeQueryNode, factoryDeprecation);
150612
+ var updateTypeQueryNode = deprecate(factory.updateTypeQueryNode, factoryDeprecation);
150613
+ var createTypeLiteralNode = deprecate(factory.createTypeLiteralNode, factoryDeprecation);
150614
+ var updateTypeLiteralNode = deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
150615
+ var createArrayTypeNode = deprecate(factory.createArrayTypeNode, factoryDeprecation);
150616
+ var updateArrayTypeNode = deprecate(factory.updateArrayTypeNode, factoryDeprecation);
150617
+ var createTupleTypeNode = deprecate(factory.createTupleTypeNode, factoryDeprecation);
150618
+ var updateTupleTypeNode = deprecate(factory.updateTupleTypeNode, factoryDeprecation);
150619
+ var createOptionalTypeNode = deprecate(factory.createOptionalTypeNode, factoryDeprecation);
150620
+ var updateOptionalTypeNode = deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
150621
+ var createRestTypeNode = deprecate(factory.createRestTypeNode, factoryDeprecation);
150622
+ var updateRestTypeNode = deprecate(factory.updateRestTypeNode, factoryDeprecation);
150623
+ var createUnionTypeNode = deprecate(factory.createUnionTypeNode, factoryDeprecation);
150624
+ var updateUnionTypeNode = deprecate(factory.updateUnionTypeNode, factoryDeprecation);
150625
+ var createIntersectionTypeNode = deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
150626
+ var updateIntersectionTypeNode = deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
150627
+ var createConditionalTypeNode = deprecate(factory.createConditionalTypeNode, factoryDeprecation);
150628
+ var updateConditionalTypeNode = deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
150629
+ var createInferTypeNode = deprecate(factory.createInferTypeNode, factoryDeprecation);
150630
+ var updateInferTypeNode = deprecate(factory.updateInferTypeNode, factoryDeprecation);
150631
+ var createImportTypeNode = deprecate(factory.createImportTypeNode, factoryDeprecation);
150632
+ var updateImportTypeNode = deprecate(factory.updateImportTypeNode, factoryDeprecation);
150633
+ var createParenthesizedType = deprecate(factory.createParenthesizedType, factoryDeprecation);
150634
+ var updateParenthesizedType = deprecate(factory.updateParenthesizedType, factoryDeprecation);
150635
+ var createThisTypeNode = deprecate(factory.createThisTypeNode, factoryDeprecation);
150636
+ var updateTypeOperatorNode = deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
150637
+ var createIndexedAccessTypeNode = deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
150638
+ var updateIndexedAccessTypeNode = deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
150639
+ var createMappedTypeNode = deprecate(factory.createMappedTypeNode, factoryDeprecation);
150640
+ var updateMappedTypeNode = deprecate(factory.updateMappedTypeNode, factoryDeprecation);
150641
+ var createLiteralTypeNode = deprecate(factory.createLiteralTypeNode, factoryDeprecation);
150642
+ var updateLiteralTypeNode = deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
150643
+ var createObjectBindingPattern = deprecate(factory.createObjectBindingPattern, factoryDeprecation);
150644
+ var updateObjectBindingPattern = deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
150645
+ var createArrayBindingPattern = deprecate(factory.createArrayBindingPattern, factoryDeprecation);
150646
+ var updateArrayBindingPattern = deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
150647
+ var createBindingElement = deprecate(factory.createBindingElement, factoryDeprecation);
150648
+ var updateBindingElement = deprecate(factory.updateBindingElement, factoryDeprecation);
150649
+ var createArrayLiteral = deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
150650
+ var updateArrayLiteral = deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
150651
+ var createObjectLiteral = deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
150652
+ var updateObjectLiteral = deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
150653
+ var createPropertyAccess = deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
150654
+ var updatePropertyAccess = deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
150655
+ var createPropertyAccessChain = deprecate(factory.createPropertyAccessChain, factoryDeprecation);
150656
+ var updatePropertyAccessChain = deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
150657
+ var createElementAccess = deprecate(factory.createElementAccessExpression, factoryDeprecation);
150658
+ var updateElementAccess = deprecate(factory.updateElementAccessExpression, factoryDeprecation);
150659
+ var createElementAccessChain = deprecate(factory.createElementAccessChain, factoryDeprecation);
150660
+ var updateElementAccessChain = deprecate(factory.updateElementAccessChain, factoryDeprecation);
150661
+ var createCall = deprecate(factory.createCallExpression, factoryDeprecation);
150662
+ var updateCall = deprecate(factory.updateCallExpression, factoryDeprecation);
150663
+ var createCallChain = deprecate(factory.createCallChain, factoryDeprecation);
150664
+ var updateCallChain = deprecate(factory.updateCallChain, factoryDeprecation);
150665
+ var createNew = deprecate(factory.createNewExpression, factoryDeprecation);
150666
+ var updateNew = deprecate(factory.updateNewExpression, factoryDeprecation);
150667
+ var createTypeAssertion = deprecate(factory.createTypeAssertion, factoryDeprecation);
150668
+ var updateTypeAssertion = deprecate(factory.updateTypeAssertion, factoryDeprecation);
150669
+ var createParen = deprecate(factory.createParenthesizedExpression, factoryDeprecation);
150670
+ var updateParen = deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
150671
+ var createFunctionExpression = deprecate(factory.createFunctionExpression, factoryDeprecation);
150672
+ var updateFunctionExpression = deprecate(factory.updateFunctionExpression, factoryDeprecation);
150673
+ var createDelete = deprecate(factory.createDeleteExpression, factoryDeprecation);
150674
+ var updateDelete = deprecate(factory.updateDeleteExpression, factoryDeprecation);
150675
+ var createTypeOf = deprecate(factory.createTypeOfExpression, factoryDeprecation);
150676
+ var updateTypeOf = deprecate(factory.updateTypeOfExpression, factoryDeprecation);
150677
+ var createVoid = deprecate(factory.createVoidExpression, factoryDeprecation);
150678
+ var updateVoid = deprecate(factory.updateVoidExpression, factoryDeprecation);
150679
+ var createAwait = deprecate(factory.createAwaitExpression, factoryDeprecation);
150680
+ var updateAwait = deprecate(factory.updateAwaitExpression, factoryDeprecation);
150681
+ var createPrefix = deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
150682
+ var updatePrefix = deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
150683
+ var createPostfix = deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
150684
+ var updatePostfix = deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
150685
+ var createBinary = deprecate(factory.createBinaryExpression, factoryDeprecation);
150686
+ var updateConditional = deprecate(factory.updateConditionalExpression, factoryDeprecation);
150687
+ var createTemplateExpression = deprecate(factory.createTemplateExpression, factoryDeprecation);
150688
+ var updateTemplateExpression = deprecate(factory.updateTemplateExpression, factoryDeprecation);
150689
+ var createTemplateHead = deprecate(factory.createTemplateHead, factoryDeprecation);
150690
+ var createTemplateMiddle = deprecate(factory.createTemplateMiddle, factoryDeprecation);
150691
+ var createTemplateTail = deprecate(factory.createTemplateTail, factoryDeprecation);
150692
+ var createNoSubstitutionTemplateLiteral = deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
150693
+ var updateYield = deprecate(factory.updateYieldExpression, factoryDeprecation);
150694
+ var createSpread = deprecate(factory.createSpreadElement, factoryDeprecation);
150695
+ var updateSpread = deprecate(factory.updateSpreadElement, factoryDeprecation);
150696
+ var createOmittedExpression = deprecate(factory.createOmittedExpression, factoryDeprecation);
150697
+ var createAsExpression = deprecate(factory.createAsExpression, factoryDeprecation);
150698
+ var updateAsExpression = deprecate(factory.updateAsExpression, factoryDeprecation);
150699
+ var createNonNullExpression = deprecate(factory.createNonNullExpression, factoryDeprecation);
150700
+ var updateNonNullExpression = deprecate(factory.updateNonNullExpression, factoryDeprecation);
150701
+ var createNonNullChain = deprecate(factory.createNonNullChain, factoryDeprecation);
150702
+ var updateNonNullChain = deprecate(factory.updateNonNullChain, factoryDeprecation);
150703
+ var createMetaProperty = deprecate(factory.createMetaProperty, factoryDeprecation);
150704
+ var updateMetaProperty = deprecate(factory.updateMetaProperty, factoryDeprecation);
150705
+ var createTemplateSpan = deprecate(factory.createTemplateSpan, factoryDeprecation);
150706
+ var updateTemplateSpan = deprecate(factory.updateTemplateSpan, factoryDeprecation);
150707
+ var createSemicolonClassElement = deprecate(factory.createSemicolonClassElement, factoryDeprecation);
150708
+ var createBlock = deprecate(factory.createBlock, factoryDeprecation);
150709
+ var updateBlock = deprecate(factory.updateBlock, factoryDeprecation);
150710
+ var createVariableStatement = deprecate(factory.createVariableStatement, factoryDeprecation);
150711
+ var updateVariableStatement = deprecate(factory.updateVariableStatement, factoryDeprecation);
150712
+ var createEmptyStatement = deprecate(factory.createEmptyStatement, factoryDeprecation);
150713
+ var createExpressionStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
150714
+ var updateExpressionStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
150715
+ var createStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
150716
+ var updateStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
150717
+ var createIf = deprecate(factory.createIfStatement, factoryDeprecation);
150718
+ var updateIf = deprecate(factory.updateIfStatement, factoryDeprecation);
150719
+ var createDo = deprecate(factory.createDoStatement, factoryDeprecation);
150720
+ var updateDo = deprecate(factory.updateDoStatement, factoryDeprecation);
150721
+ var createWhile = deprecate(factory.createWhileStatement, factoryDeprecation);
150722
+ var updateWhile = deprecate(factory.updateWhileStatement, factoryDeprecation);
150723
+ var createFor = deprecate(factory.createForStatement, factoryDeprecation);
150724
+ var updateFor = deprecate(factory.updateForStatement, factoryDeprecation);
150725
+ var createForIn = deprecate(factory.createForInStatement, factoryDeprecation);
150726
+ var updateForIn = deprecate(factory.updateForInStatement, factoryDeprecation);
150727
+ var createForOf = deprecate(factory.createForOfStatement, factoryDeprecation);
150728
+ var updateForOf = deprecate(factory.updateForOfStatement, factoryDeprecation);
150729
+ var createContinue = deprecate(factory.createContinueStatement, factoryDeprecation);
150730
+ var updateContinue = deprecate(factory.updateContinueStatement, factoryDeprecation);
150731
+ var createBreak = deprecate(factory.createBreakStatement, factoryDeprecation);
150732
+ var updateBreak = deprecate(factory.updateBreakStatement, factoryDeprecation);
150733
+ var createReturn = deprecate(factory.createReturnStatement, factoryDeprecation);
150734
+ var updateReturn = deprecate(factory.updateReturnStatement, factoryDeprecation);
150735
+ var createWith = deprecate(factory.createWithStatement, factoryDeprecation);
150736
+ var updateWith = deprecate(factory.updateWithStatement, factoryDeprecation);
150737
+ var createSwitch = deprecate(factory.createSwitchStatement, factoryDeprecation);
150738
+ var updateSwitch = deprecate(factory.updateSwitchStatement, factoryDeprecation);
150739
+ var createLabel = deprecate(factory.createLabeledStatement, factoryDeprecation);
150740
+ var updateLabel = deprecate(factory.updateLabeledStatement, factoryDeprecation);
150741
+ var createThrow = deprecate(factory.createThrowStatement, factoryDeprecation);
150742
+ var updateThrow = deprecate(factory.updateThrowStatement, factoryDeprecation);
150743
+ var createTry = deprecate(factory.createTryStatement, factoryDeprecation);
150744
+ var updateTry = deprecate(factory.updateTryStatement, factoryDeprecation);
150745
+ var createDebuggerStatement = deprecate(factory.createDebuggerStatement, factoryDeprecation);
150746
+ var createVariableDeclarationList = deprecate(factory.createVariableDeclarationList, factoryDeprecation);
150747
+ var updateVariableDeclarationList = deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
150748
+ var createFunctionDeclaration = deprecate(factory.createFunctionDeclaration, factoryDeprecation);
150749
+ var updateFunctionDeclaration = deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
150750
+ var createClassDeclaration = deprecate(factory.createClassDeclaration, factoryDeprecation);
150751
+ var updateClassDeclaration = deprecate(factory.updateClassDeclaration, factoryDeprecation);
150752
+ var createInterfaceDeclaration = deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
150753
+ var updateInterfaceDeclaration = deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
150754
+ var createTypeAliasDeclaration = deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
150755
+ var updateTypeAliasDeclaration = deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
150756
+ var createEnumDeclaration = deprecate(factory.createEnumDeclaration, factoryDeprecation);
150757
+ var updateEnumDeclaration = deprecate(factory.updateEnumDeclaration, factoryDeprecation);
150758
+ var createModuleDeclaration = deprecate(factory.createModuleDeclaration, factoryDeprecation);
150759
+ var updateModuleDeclaration = deprecate(factory.updateModuleDeclaration, factoryDeprecation);
150760
+ var createModuleBlock = deprecate(factory.createModuleBlock, factoryDeprecation);
150761
+ var updateModuleBlock = deprecate(factory.updateModuleBlock, factoryDeprecation);
150762
+ var createCaseBlock = deprecate(factory.createCaseBlock, factoryDeprecation);
150763
+ var updateCaseBlock = deprecate(factory.updateCaseBlock, factoryDeprecation);
150764
+ var createNamespaceExportDeclaration = deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
150765
+ var updateNamespaceExportDeclaration = deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
150766
+ var createImportEqualsDeclaration = deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
150767
+ var updateImportEqualsDeclaration = deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
150768
+ var createImportDeclaration = deprecate(factory.createImportDeclaration, factoryDeprecation);
150769
+ var updateImportDeclaration = deprecate(factory.updateImportDeclaration, factoryDeprecation);
150770
+ var createNamespaceImport = deprecate(factory.createNamespaceImport, factoryDeprecation);
150771
+ var updateNamespaceImport = deprecate(factory.updateNamespaceImport, factoryDeprecation);
150772
+ var createNamedImports = deprecate(factory.createNamedImports, factoryDeprecation);
150773
+ var updateNamedImports = deprecate(factory.updateNamedImports, factoryDeprecation);
150774
+ var createImportSpecifier = deprecate(factory.createImportSpecifier, factoryDeprecation);
150775
+ var updateImportSpecifier = deprecate(factory.updateImportSpecifier, factoryDeprecation);
150776
+ var createExportAssignment2 = deprecate(factory.createExportAssignment, factoryDeprecation);
150777
+ var updateExportAssignment = deprecate(factory.updateExportAssignment, factoryDeprecation);
150778
+ var createNamedExports = deprecate(factory.createNamedExports, factoryDeprecation);
150779
+ var updateNamedExports = deprecate(factory.updateNamedExports, factoryDeprecation);
150780
+ var createExportSpecifier = deprecate(factory.createExportSpecifier, factoryDeprecation);
150781
+ var updateExportSpecifier = deprecate(factory.updateExportSpecifier, factoryDeprecation);
150782
+ var createExternalModuleReference = deprecate(factory.createExternalModuleReference, factoryDeprecation);
150783
+ var updateExternalModuleReference = deprecate(factory.updateExternalModuleReference, factoryDeprecation);
150784
+ var createJSDocTypeExpression = deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
150785
+ var createJSDocTypeTag = deprecate(factory.createJSDocTypeTag, factoryDeprecation);
150786
+ var createJSDocReturnTag = deprecate(factory.createJSDocReturnTag, factoryDeprecation);
150787
+ var createJSDocThisTag = deprecate(factory.createJSDocThisTag, factoryDeprecation);
150788
+ var createJSDocComment = deprecate(factory.createJSDocComment, factoryDeprecation);
150789
+ var createJSDocParameterTag = deprecate(factory.createJSDocParameterTag, factoryDeprecation);
150790
+ var createJSDocClassTag = deprecate(factory.createJSDocClassTag, factoryDeprecation);
150791
+ var createJSDocAugmentsTag = deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
150792
+ var createJSDocEnumTag = deprecate(factory.createJSDocEnumTag, factoryDeprecation);
150793
+ var createJSDocTemplateTag = deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
150794
+ var createJSDocTypedefTag = deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
150795
+ var createJSDocCallbackTag = deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
150796
+ var createJSDocSignature = deprecate(factory.createJSDocSignature, factoryDeprecation);
150797
+ var createJSDocPropertyTag = deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
150798
+ var createJSDocTypeLiteral = deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
150799
+ var createJSDocImplementsTag = deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
150800
+ var createJSDocAuthorTag = deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
150801
+ var createJSDocPublicTag = deprecate(factory.createJSDocPublicTag, factoryDeprecation);
150802
+ var createJSDocPrivateTag = deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
150803
+ var createJSDocProtectedTag = deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
150804
+ var createJSDocReadonlyTag = deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
150805
+ var createJSDocTag = deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
150806
+ var createJsxElement = deprecate(factory.createJsxElement, factoryDeprecation);
150807
+ var updateJsxElement = deprecate(factory.updateJsxElement, factoryDeprecation);
150808
+ var createJsxSelfClosingElement = deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
150809
+ var updateJsxSelfClosingElement = deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
150810
+ var createJsxOpeningElement = deprecate(factory.createJsxOpeningElement, factoryDeprecation);
150811
+ var updateJsxOpeningElement = deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
150812
+ var createJsxClosingElement = deprecate(factory.createJsxClosingElement, factoryDeprecation);
150813
+ var updateJsxClosingElement = deprecate(factory.updateJsxClosingElement, factoryDeprecation);
150814
+ var createJsxFragment = deprecate(factory.createJsxFragment, factoryDeprecation);
150815
+ var createJsxText = deprecate(factory.createJsxText, factoryDeprecation);
150816
+ var updateJsxText = deprecate(factory.updateJsxText, factoryDeprecation);
150817
+ var createJsxOpeningFragment = deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
150818
+ var createJsxJsxClosingFragment = deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
150819
+ var updateJsxFragment = deprecate(factory.updateJsxFragment, factoryDeprecation);
150820
+ var createJsxAttribute = deprecate(factory.createJsxAttribute, factoryDeprecation);
150821
+ var updateJsxAttribute = deprecate(factory.updateJsxAttribute, factoryDeprecation);
150822
+ var createJsxAttributes = deprecate(factory.createJsxAttributes, factoryDeprecation);
150823
+ var updateJsxAttributes = deprecate(factory.updateJsxAttributes, factoryDeprecation);
150824
+ var createJsxSpreadAttribute = deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
150825
+ var updateJsxSpreadAttribute = deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
150826
+ var createJsxExpression = deprecate(factory.createJsxExpression, factoryDeprecation);
150827
+ var updateJsxExpression = deprecate(factory.updateJsxExpression, factoryDeprecation);
150828
+ var createCaseClause = deprecate(factory.createCaseClause, factoryDeprecation);
150829
+ var updateCaseClause = deprecate(factory.updateCaseClause, factoryDeprecation);
150830
+ var createDefaultClause = deprecate(factory.createDefaultClause, factoryDeprecation);
150831
+ var updateDefaultClause = deprecate(factory.updateDefaultClause, factoryDeprecation);
150832
+ var createHeritageClause = deprecate(factory.createHeritageClause, factoryDeprecation);
150833
+ var updateHeritageClause = deprecate(factory.updateHeritageClause, factoryDeprecation);
150834
+ var createCatchClause = deprecate(factory.createCatchClause, factoryDeprecation);
150835
+ var updateCatchClause = deprecate(factory.updateCatchClause, factoryDeprecation);
150836
+ var createPropertyAssignment = deprecate(factory.createPropertyAssignment, factoryDeprecation);
150837
+ var updatePropertyAssignment = deprecate(factory.updatePropertyAssignment, factoryDeprecation);
150838
+ var createShorthandPropertyAssignment = deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
150839
+ var updateShorthandPropertyAssignment = deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
150840
+ var createSpreadAssignment = deprecate(factory.createSpreadAssignment, factoryDeprecation);
150841
+ var updateSpreadAssignment = deprecate(factory.updateSpreadAssignment, factoryDeprecation);
150842
+ var createEnumMember = deprecate(factory.createEnumMember, factoryDeprecation);
150843
+ var updateEnumMember = deprecate(factory.updateEnumMember, factoryDeprecation);
150844
+ var updateSourceFileNode = deprecate(factory.updateSourceFile, factoryDeprecation);
150845
+ var createNotEmittedStatement = deprecate(factory.createNotEmittedStatement, factoryDeprecation);
150846
+ var createPartiallyEmittedExpression = deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
150847
+ var updatePartiallyEmittedExpression = deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
150848
+ var createCommaList = deprecate(factory.createCommaListExpression, factoryDeprecation);
150849
+ var updateCommaList = deprecate(factory.updateCommaListExpression, factoryDeprecation);
150850
+ var createBundle = deprecate(factory.createBundle, factoryDeprecation);
150851
+ var updateBundle = deprecate(factory.updateBundle, factoryDeprecation);
150852
+ var createImmediatelyInvokedFunctionExpression = deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
150853
+ var createImmediatelyInvokedArrowFunction = deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
150854
+ var createVoidZero = deprecate(factory.createVoidZero, factoryDeprecation);
150855
+ var createExportDefault = deprecate(factory.createExportDefault, factoryDeprecation);
150856
+ var createExternalModuleExport = deprecate(factory.createExternalModuleExport, factoryDeprecation);
150857
+ var createNamespaceExport = deprecate(factory.createNamespaceExport, factoryDeprecation);
150858
+ var updateNamespaceExport = deprecate(factory.updateNamespaceExport, factoryDeprecation);
150859
+ var createToken = deprecate(function createToken2(kind) {
150621
150860
  return factory.createToken(kind);
150622
150861
  }, factoryDeprecation);
150623
- var createIdentifier = Debug.deprecate(function createIdentifier2(text) {
150862
+ var createIdentifier = deprecate(function createIdentifier2(text) {
150624
150863
  return factory.createIdentifier(text, void 0, void 0);
150625
150864
  }, factoryDeprecation);
150626
- var createTempVariable = Debug.deprecate(function createTempVariable2(recordTempVariable) {
150865
+ var createTempVariable = deprecate(function createTempVariable2(recordTempVariable) {
150627
150866
  return factory.createTempVariable(recordTempVariable, void 0);
150628
150867
  }, factoryDeprecation);
150629
- var getGeneratedNameForNode = Debug.deprecate(function getGeneratedNameForNode2(node) {
150868
+ var getGeneratedNameForNode = deprecate(function getGeneratedNameForNode2(node) {
150630
150869
  return factory.getGeneratedNameForNode(node, void 0);
150631
150870
  }, factoryDeprecation);
150632
- var createOptimisticUniqueName = Debug.deprecate(function createOptimisticUniqueName2(text) {
150871
+ var createOptimisticUniqueName = deprecate(function createOptimisticUniqueName2(text) {
150633
150872
  return factory.createUniqueName(text, 16 /* Optimistic */);
150634
150873
  }, factoryDeprecation);
150635
- var createFileLevelUniqueName = Debug.deprecate(function createFileLevelUniqueName2(text) {
150874
+ var createFileLevelUniqueName = deprecate(function createFileLevelUniqueName2(text) {
150636
150875
  return factory.createUniqueName(text, 16 /* Optimistic */ | 32 /* FileLevel */);
150637
150876
  }, factoryDeprecation);
150638
- var createIndexSignature = Debug.deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
150877
+ var createIndexSignature = deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
150639
150878
  return factory.createIndexSignature(decorators, modifiers, parameters, type);
150640
150879
  }, factoryDeprecation);
150641
- var createTypePredicateNode = Debug.deprecate(function createTypePredicateNode2(parameterName, type) {
150880
+ var createTypePredicateNode = deprecate(function createTypePredicateNode2(parameterName, type) {
150642
150881
  return factory.createTypePredicateNode(void 0, parameterName, type);
150643
150882
  }, factoryDeprecation);
150644
- var updateTypePredicateNode = Debug.deprecate(function updateTypePredicateNode2(node, parameterName, type) {
150883
+ var updateTypePredicateNode = deprecate(function updateTypePredicateNode2(node, parameterName, type) {
150645
150884
  return factory.updateTypePredicateNode(node, void 0, parameterName, type);
150646
150885
  }, factoryDeprecation);
150647
- var createLiteral = Debug.deprecate(function createLiteral2(value) {
150886
+ var createLiteral = deprecate(function createLiteral2(value) {
150648
150887
  if (typeof value === "number") {
150649
150888
  return factory.createNumericLiteral(value);
150650
150889
  }
@@ -150659,13 +150898,13 @@ ${options.prefix}` : "\n" : options.prefix
150659
150898
  }
150660
150899
  return factory.createStringLiteralFromNode(value);
150661
150900
  }, { since: "4.0", warnAfter: "4.1", message: "Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead." });
150662
- var createMethodSignature = Debug.deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
150901
+ var createMethodSignature = deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
150663
150902
  return factory.createMethodSignature(void 0, name, questionToken, typeParameters, parameters, type);
150664
150903
  }, factoryDeprecation);
150665
- var updateMethodSignature = Debug.deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
150904
+ var updateMethodSignature = deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
150666
150905
  return factory.updateMethodSignature(node, node.modifiers, name, questionToken, typeParameters, parameters, type);
150667
150906
  }, factoryDeprecation);
150668
- var createTypeOperatorNode = Debug.deprecate(function createTypeOperatorNode2(operatorOrType, type) {
150907
+ var createTypeOperatorNode = deprecate(function createTypeOperatorNode2(operatorOrType, type) {
150669
150908
  let operator;
150670
150909
  if (type) {
150671
150910
  operator = operatorOrType;
@@ -150675,7 +150914,7 @@ ${options.prefix}` : "\n" : options.prefix
150675
150914
  }
150676
150915
  return factory.createTypeOperatorNode(operator, type);
150677
150916
  }, factoryDeprecation);
150678
- var createTaggedTemplate = Debug.deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
150917
+ var createTaggedTemplate = deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
150679
150918
  let typeArguments;
150680
150919
  if (template) {
150681
150920
  typeArguments = typeArgumentsOrTemplate;
@@ -150684,7 +150923,7 @@ ${options.prefix}` : "\n" : options.prefix
150684
150923
  }
150685
150924
  return factory.createTaggedTemplateExpression(tag, typeArguments, template);
150686
150925
  }, factoryDeprecation);
150687
- var updateTaggedTemplate = Debug.deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
150926
+ var updateTaggedTemplate = deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
150688
150927
  let typeArguments;
150689
150928
  if (template) {
150690
150929
  typeArguments = typeArgumentsOrTemplate;
@@ -150693,16 +150932,16 @@ ${options.prefix}` : "\n" : options.prefix
150693
150932
  }
150694
150933
  return factory.updateTaggedTemplateExpression(node, tag, typeArguments, template);
150695
150934
  }, factoryDeprecation);
150696
- var updateBinary = Debug.deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
150935
+ var updateBinary = deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
150697
150936
  if (typeof operator === "number") {
150698
150937
  operator = operator === node.operatorToken.kind ? node.operatorToken : factory.createToken(operator);
150699
150938
  }
150700
150939
  return factory.updateBinaryExpression(node, left, operator, right);
150701
150940
  }, factoryDeprecation);
150702
- var createConditional = Debug.deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
150941
+ var createConditional = deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
150703
150942
  return arguments.length === 5 ? factory.createConditionalExpression(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) : arguments.length === 3 ? factory.createConditionalExpression(condition, factory.createToken(57 /* QuestionToken */), questionTokenOrWhenTrue, factory.createToken(58 /* ColonToken */), whenTrueOrWhenFalse) : Debug.fail("Argument count mismatch");
150704
150943
  }, factoryDeprecation);
150705
- var createYield = Debug.deprecate(function createYield2(asteriskTokenOrExpression, expression) {
150944
+ var createYield = deprecate(function createYield2(asteriskTokenOrExpression, expression) {
150706
150945
  let asteriskToken;
150707
150946
  if (expression) {
150708
150947
  asteriskToken = asteriskTokenOrExpression;
@@ -150711,18 +150950,18 @@ ${options.prefix}` : "\n" : options.prefix
150711
150950
  }
150712
150951
  return factory.createYieldExpression(asteriskToken, expression);
150713
150952
  }, factoryDeprecation);
150714
- var createClassExpression = Debug.deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
150953
+ var createClassExpression = deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
150715
150954
  return factory.createClassExpression(void 0, modifiers, name, typeParameters, heritageClauses, members);
150716
150955
  }, factoryDeprecation);
150717
- var updateClassExpression = Debug.deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
150956
+ var updateClassExpression = deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
150718
150957
  return factory.updateClassExpression(node, void 0, modifiers, name, typeParameters, heritageClauses, members);
150719
150958
  }, factoryDeprecation);
150720
- var createPropertySignature = Debug.deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
150959
+ var createPropertySignature = deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
150721
150960
  const node = factory.createPropertySignature(modifiers, name, questionToken, type);
150722
150961
  node.initializer = initializer;
150723
150962
  return node;
150724
150963
  }, factoryDeprecation);
150725
- var updatePropertySignature = Debug.deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
150964
+ var updatePropertySignature = deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
150726
150965
  let updated = factory.updatePropertySignature(node, modifiers, name, questionToken, type);
150727
150966
  if (node.initializer !== initializer) {
150728
150967
  if (updated === node) {
@@ -150732,80 +150971,80 @@ ${options.prefix}` : "\n" : options.prefix
150732
150971
  }
150733
150972
  return updated;
150734
150973
  }, factoryDeprecation);
150735
- var createExpressionWithTypeArguments = Debug.deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
150974
+ var createExpressionWithTypeArguments = deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
150736
150975
  return factory.createExpressionWithTypeArguments(expression, typeArguments);
150737
150976
  }, factoryDeprecation);
150738
- var updateExpressionWithTypeArguments = Debug.deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
150977
+ var updateExpressionWithTypeArguments = deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
150739
150978
  return factory.updateExpressionWithTypeArguments(node, expression, typeArguments);
150740
150979
  }, factoryDeprecation);
150741
- var createArrowFunction = Debug.deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
150980
+ var createArrowFunction = deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
150742
150981
  return arguments.length === 6 ? factory.createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) : arguments.length === 5 ? factory.createArrowFunction(modifiers, typeParameters, parameters, type, void 0, equalsGreaterThanTokenOrBody) : Debug.fail("Argument count mismatch");
150743
150982
  }, factoryDeprecation);
150744
- var updateArrowFunction = Debug.deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
150983
+ var updateArrowFunction = deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
150745
150984
  return arguments.length === 7 ? factory.updateArrowFunction(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) : arguments.length === 6 ? factory.updateArrowFunction(node, modifiers, typeParameters, parameters, type, node.equalsGreaterThanToken, equalsGreaterThanTokenOrBody) : Debug.fail("Argument count mismatch");
150746
150985
  }, factoryDeprecation);
150747
- var createVariableDeclaration = Debug.deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
150986
+ var createVariableDeclaration = deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
150748
150987
  return arguments.length === 4 ? factory.createVariableDeclaration(name, exclamationTokenOrType, typeOrInitializer, initializer) : arguments.length >= 1 && arguments.length <= 3 ? factory.createVariableDeclaration(name, void 0, exclamationTokenOrType, typeOrInitializer) : Debug.fail("Argument count mismatch");
150749
150988
  }, factoryDeprecation);
150750
- var updateVariableDeclaration = Debug.deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
150989
+ var updateVariableDeclaration = deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
150751
150990
  return arguments.length === 5 ? factory.updateVariableDeclaration(node, name, exclamationTokenOrType, typeOrInitializer, initializer) : arguments.length === 4 ? factory.updateVariableDeclaration(node, name, node.exclamationToken, exclamationTokenOrType, typeOrInitializer) : Debug.fail("Argument count mismatch");
150752
150991
  }, factoryDeprecation);
150753
- var createImportClause = Debug.deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
150992
+ var createImportClause = deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
150754
150993
  return factory.createImportClause(isTypeOnly, name, namedBindings);
150755
150994
  }, factoryDeprecation);
150756
- var updateImportClause = Debug.deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
150995
+ var updateImportClause = deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
150757
150996
  return factory.updateImportClause(node, isTypeOnly, name, namedBindings);
150758
150997
  }, factoryDeprecation);
150759
- var createExportDeclaration = Debug.deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
150998
+ var createExportDeclaration = deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
150760
150999
  return factory.createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);
150761
151000
  }, factoryDeprecation);
150762
- var updateExportDeclaration = Debug.deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
151001
+ var updateExportDeclaration = deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
150763
151002
  return factory.updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, node.assertClause);
150764
151003
  }, factoryDeprecation);
150765
- var createJSDocParamTag = Debug.deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
151004
+ var createJSDocParamTag = deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
150766
151005
  return factory.createJSDocParameterTag(void 0, name, isBracketed, typeExpression, false, comment ? factory.createNodeArray([factory.createJSDocText(comment)]) : void 0);
150767
151006
  }, factoryDeprecation);
150768
- var createComma = Debug.deprecate(function createComma2(left, right) {
151007
+ var createComma = deprecate(function createComma2(left, right) {
150769
151008
  return factory.createComma(left, right);
150770
151009
  }, factoryDeprecation);
150771
- var createLessThan = Debug.deprecate(function createLessThan2(left, right) {
151010
+ var createLessThan = deprecate(function createLessThan2(left, right) {
150772
151011
  return factory.createLessThan(left, right);
150773
151012
  }, factoryDeprecation);
150774
- var createAssignment = Debug.deprecate(function createAssignment2(left, right) {
151013
+ var createAssignment = deprecate(function createAssignment2(left, right) {
150775
151014
  return factory.createAssignment(left, right);
150776
151015
  }, factoryDeprecation);
150777
- var createStrictEquality = Debug.deprecate(function createStrictEquality2(left, right) {
151016
+ var createStrictEquality = deprecate(function createStrictEquality2(left, right) {
150778
151017
  return factory.createStrictEquality(left, right);
150779
151018
  }, factoryDeprecation);
150780
- var createStrictInequality = Debug.deprecate(function createStrictInequality2(left, right) {
151019
+ var createStrictInequality = deprecate(function createStrictInequality2(left, right) {
150781
151020
  return factory.createStrictInequality(left, right);
150782
151021
  }, factoryDeprecation);
150783
- var createAdd = Debug.deprecate(function createAdd2(left, right) {
151022
+ var createAdd = deprecate(function createAdd2(left, right) {
150784
151023
  return factory.createAdd(left, right);
150785
151024
  }, factoryDeprecation);
150786
- var createSubtract = Debug.deprecate(function createSubtract2(left, right) {
151025
+ var createSubtract = deprecate(function createSubtract2(left, right) {
150787
151026
  return factory.createSubtract(left, right);
150788
151027
  }, factoryDeprecation);
150789
- var createLogicalAnd = Debug.deprecate(function createLogicalAnd2(left, right) {
151028
+ var createLogicalAnd = deprecate(function createLogicalAnd2(left, right) {
150790
151029
  return factory.createLogicalAnd(left, right);
150791
151030
  }, factoryDeprecation);
150792
- var createLogicalOr = Debug.deprecate(function createLogicalOr2(left, right) {
151031
+ var createLogicalOr = deprecate(function createLogicalOr2(left, right) {
150793
151032
  return factory.createLogicalOr(left, right);
150794
151033
  }, factoryDeprecation);
150795
- var createPostfixIncrement = Debug.deprecate(function createPostfixIncrement2(operand) {
151034
+ var createPostfixIncrement = deprecate(function createPostfixIncrement2(operand) {
150796
151035
  return factory.createPostfixIncrement(operand);
150797
151036
  }, factoryDeprecation);
150798
- var createLogicalNot = Debug.deprecate(function createLogicalNot2(operand) {
151037
+ var createLogicalNot = deprecate(function createLogicalNot2(operand) {
150799
151038
  return factory.createLogicalNot(operand);
150800
151039
  }, factoryDeprecation);
150801
- var createNode2 = Debug.deprecate(function createNode3(kind, pos = 0, end = 0) {
151040
+ var createNode2 = deprecate(function createNode3(kind, pos = 0, end = 0) {
150802
151041
  return setTextRangePosEnd(
150803
151042
  kind === 308 /* SourceFile */ ? parseBaseNodeFactory.createBaseSourceFileNode(kind) : kind === 79 /* Identifier */ ? parseBaseNodeFactory.createBaseIdentifierNode(kind) : kind === 80 /* PrivateIdentifier */ ? parseBaseNodeFactory.createBasePrivateIdentifierNode(kind) : !isNodeKind(kind) ? parseBaseNodeFactory.createBaseTokenNode(kind) : parseBaseNodeFactory.createBaseNode(kind),
150804
151043
  pos,
150805
151044
  end
150806
151045
  );
150807
151046
  }, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory` method instead." });
150808
- var getMutableClone = Debug.deprecate(function getMutableClone2(node) {
151047
+ var getMutableClone = deprecate(function getMutableClone2(node) {
150809
151048
  const clone2 = factory.cloneNode(node);
150810
151049
  setTextRange(clone2, node);
150811
151050
  setParent(clone2, node.parent);
@@ -150813,7 +151052,7 @@ ${options.prefix}` : "\n" : options.prefix
150813
151052
  }, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`." });
150814
151053
 
150815
151054
  // src/deprecatedCompat/4.0/renamedNodeTests.ts
150816
- var isTypeAssertion = Debug.deprecate(function isTypeAssertion2(node) {
151055
+ var isTypeAssertion = deprecate(function isTypeAssertion2(node) {
150817
151056
  return node.kind === 213 /* TypeAssertionExpression */;
150818
151057
  }, {
150819
151058
  since: "4.0",
@@ -150822,7 +151061,7 @@ ${options.prefix}` : "\n" : options.prefix
150822
151061
  });
150823
151062
 
150824
151063
  // src/deprecatedCompat/4.2/renamedNodeTests.ts
150825
- var isIdentifierOrPrivateIdentifier = Debug.deprecate(function isIdentifierOrPrivateIdentifier2(node) {
151064
+ var isIdentifierOrPrivateIdentifier = deprecate(function isIdentifierOrPrivateIdentifier2(node) {
150826
151065
  return isMemberName(node);
150827
151066
  }, {
150828
151067
  since: "4.2",
@@ -152528,6 +152767,7 @@ ${options.prefix}` : "\n" : options.prefix
152528
152767
  this.dirty = false;
152529
152768
  this.typingFiles = emptyArray2;
152530
152769
  this.moduleSpecifierCache = createModuleSpecifierCache(this);
152770
+ this.createHash = maybeBind(this.projectService.host, this.projectService.host.createHash);
152531
152771
  this.globalCacheResolutionModuleName = ts_JsTyping_exports.nonRelativeModuleNameForTypingCache;
152532
152772
  this.projectName = projectName;
152533
152773
  this.directoryStructureHost = directoryStructureHost;
@@ -152856,15 +153096,14 @@ ${options.prefix}` : "\n" : options.prefix
152856
153096
  return [];
152857
153097
  }
152858
153098
  updateProjectIfDirty(this);
152859
- this.builderState = BuilderState.create(this.program, this.projectService.toCanonicalFileName, this.builderState, true);
153099
+ this.builderState = BuilderState.create(this.program, this.builderState, true);
152860
153100
  return mapDefined(
152861
153101
  BuilderState.getFilesAffectedBy(
152862
153102
  this.builderState,
152863
153103
  this.program,
152864
153104
  scriptInfo.path,
152865
153105
  this.cancellationToken,
152866
- maybeBind(this.projectService.host, this.projectService.host.createHash),
152867
- this.getCanonicalFileName
153106
+ this.projectService.host
152868
153107
  ),
152869
153108
  (sourceFile) => this.shouldEmitFile(this.projectService.getScriptInfoForPath(sourceFile.path)) ? sourceFile.fileName : void 0
152870
153109
  );