@typescript-deploys/pr-build 5.0.0-pr-50996-2 → 5.0.0-pr-50996-9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/lib.es2015.core.d.ts +2 -2
- package/lib/lib.es5.d.ts +1 -1
- package/lib/tsc.js +353 -415
- package/lib/tsserver.js +827 -835
- package/lib/tsserverlibrary.d.ts +27 -28
- package/lib/tsserverlibrary.js +840 -838
- package/lib/typescript.d.ts +25 -26
- package/lib/typescript.js +823 -822
- package/lib/typingsInstaller.js +149 -221
- package/package.json +1 -1
package/lib/typescript.js
CHANGED
|
@@ -42,7 +42,7 @@ var ts = (() => {
|
|
|
42
42
|
"src/compiler/corePublic.ts"() {
|
|
43
43
|
"use strict";
|
|
44
44
|
versionMajorMinor = "5.0";
|
|
45
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
45
|
+
version = `${versionMajorMinor}.0-insiders.20221123`;
|
|
46
46
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
47
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
48
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -1789,15 +1789,9 @@ var ts = (() => {
|
|
|
1789
1789
|
return LogLevel2;
|
|
1790
1790
|
})(LogLevel || {});
|
|
1791
1791
|
((Debug2) => {
|
|
1792
|
-
let typeScriptVersion2;
|
|
1793
1792
|
let currentAssertionLevel = 0 /* None */;
|
|
1794
1793
|
Debug2.currentLogLevel = 2 /* Warning */;
|
|
1795
1794
|
Debug2.isDebugging = false;
|
|
1796
|
-
Debug2.enableDeprecationWarnings = true;
|
|
1797
|
-
function getTypeScriptVersion() {
|
|
1798
|
-
return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
|
|
1799
|
-
}
|
|
1800
|
-
Debug2.getTypeScriptVersion = getTypeScriptVersion;
|
|
1801
1795
|
function shouldLog(level) {
|
|
1802
1796
|
return Debug2.currentLogLevel <= level;
|
|
1803
1797
|
}
|
|
@@ -2313,52 +2307,6 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
|
|
|
2313
2307
|
isDebugInfoEnabled = true;
|
|
2314
2308
|
}
|
|
2315
2309
|
Debug2.enableDebugInfo = enableDebugInfo;
|
|
2316
|
-
function formatDeprecationMessage(name, error, errorAfter, since, message) {
|
|
2317
|
-
let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
|
|
2318
|
-
deprecationMessage += `'${name}' `;
|
|
2319
|
-
deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
|
|
2320
|
-
deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
|
|
2321
|
-
deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
|
|
2322
|
-
return deprecationMessage;
|
|
2323
|
-
}
|
|
2324
|
-
function createErrorDeprecation(name, errorAfter, since, message) {
|
|
2325
|
-
const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
|
|
2326
|
-
return () => {
|
|
2327
|
-
throw new TypeError(deprecationMessage);
|
|
2328
|
-
};
|
|
2329
|
-
}
|
|
2330
|
-
function createWarningDeprecation(name, errorAfter, since, message) {
|
|
2331
|
-
let hasWrittenDeprecation = false;
|
|
2332
|
-
return () => {
|
|
2333
|
-
if (Debug2.enableDeprecationWarnings && !hasWrittenDeprecation) {
|
|
2334
|
-
log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
|
|
2335
|
-
hasWrittenDeprecation = true;
|
|
2336
|
-
}
|
|
2337
|
-
};
|
|
2338
|
-
}
|
|
2339
|
-
function createDeprecation(name, options = {}) {
|
|
2340
|
-
var _a2, _b;
|
|
2341
|
-
const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
|
|
2342
|
-
const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
|
|
2343
|
-
const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
|
|
2344
|
-
const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
|
|
2345
|
-
const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
|
|
2346
|
-
const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
|
|
2347
|
-
return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
|
|
2348
|
-
}
|
|
2349
|
-
Debug2.createDeprecation = createDeprecation;
|
|
2350
|
-
function wrapFunction(deprecation, func) {
|
|
2351
|
-
return function() {
|
|
2352
|
-
deprecation();
|
|
2353
|
-
return func.apply(this, arguments);
|
|
2354
|
-
};
|
|
2355
|
-
}
|
|
2356
|
-
function deprecate(func, options) {
|
|
2357
|
-
var _a2;
|
|
2358
|
-
const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : getFunctionName(func), options);
|
|
2359
|
-
return wrapFunction(deprecation, func);
|
|
2360
|
-
}
|
|
2361
|
-
Debug2.deprecate = deprecate;
|
|
2362
2310
|
function formatVariance(varianceFlags) {
|
|
2363
2311
|
const variance = varianceFlags & 7 /* VarianceMask */;
|
|
2364
2312
|
let result = variance === 0 /* Invariant */ ? "in out" : variance === 3 /* Bivariant */ ? "[bivariant]" : variance === 2 /* Contravariant */ ? "in" : variance === 1 /* Covariant */ ? "out" : variance === 4 /* Independent */ ? "[independent]" : "";
|
|
@@ -4372,6 +4320,7 @@ ${lanes.join("\n")}
|
|
|
4372
4320
|
return EnumKind2;
|
|
4373
4321
|
})(EnumKind || {});
|
|
4374
4322
|
CheckFlags = /* @__PURE__ */ ((CheckFlags2) => {
|
|
4323
|
+
CheckFlags2[CheckFlags2["None"] = 0] = "None";
|
|
4375
4324
|
CheckFlags2[CheckFlags2["Instantiated"] = 1] = "Instantiated";
|
|
4376
4325
|
CheckFlags2[CheckFlags2["SyntheticProperty"] = 2] = "SyntheticProperty";
|
|
4377
4326
|
CheckFlags2[CheckFlags2["SyntheticMethod"] = 4] = "SyntheticMethod";
|
|
@@ -4419,31 +4368,32 @@ ${lanes.join("\n")}
|
|
|
4419
4368
|
return InternalSymbolName2;
|
|
4420
4369
|
})(InternalSymbolName || {});
|
|
4421
4370
|
NodeCheckFlags = /* @__PURE__ */ ((NodeCheckFlags2) => {
|
|
4371
|
+
NodeCheckFlags2[NodeCheckFlags2["None"] = 0] = "None";
|
|
4422
4372
|
NodeCheckFlags2[NodeCheckFlags2["TypeChecked"] = 1] = "TypeChecked";
|
|
4423
4373
|
NodeCheckFlags2[NodeCheckFlags2["LexicalThis"] = 2] = "LexicalThis";
|
|
4424
4374
|
NodeCheckFlags2[NodeCheckFlags2["CaptureThis"] = 4] = "CaptureThis";
|
|
4425
4375
|
NodeCheckFlags2[NodeCheckFlags2["CaptureNewTarget"] = 8] = "CaptureNewTarget";
|
|
4426
|
-
NodeCheckFlags2[NodeCheckFlags2["SuperInstance"] =
|
|
4427
|
-
NodeCheckFlags2[NodeCheckFlags2["SuperStatic"] =
|
|
4428
|
-
NodeCheckFlags2[NodeCheckFlags2["ContextChecked"] =
|
|
4429
|
-
NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAccessInAsync"] =
|
|
4430
|
-
NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAssignmentInAsync"] =
|
|
4431
|
-
NodeCheckFlags2[NodeCheckFlags2["CaptureArguments"] =
|
|
4432
|
-
NodeCheckFlags2[NodeCheckFlags2["EnumValuesComputed"] =
|
|
4433
|
-
NodeCheckFlags2[NodeCheckFlags2["LexicalModuleMergesWithClass"] =
|
|
4434
|
-
NodeCheckFlags2[NodeCheckFlags2["LoopWithCapturedBlockScopedBinding"] =
|
|
4435
|
-
NodeCheckFlags2[NodeCheckFlags2["ContainsCapturedBlockScopeBinding"] =
|
|
4436
|
-
NodeCheckFlags2[NodeCheckFlags2["CapturedBlockScopedBinding"] =
|
|
4437
|
-
NodeCheckFlags2[NodeCheckFlags2["BlockScopedBindingInLoop"] =
|
|
4438
|
-
NodeCheckFlags2[NodeCheckFlags2["ClassWithBodyScopedClassBinding"] =
|
|
4439
|
-
NodeCheckFlags2[NodeCheckFlags2["BodyScopedClassBinding"] =
|
|
4440
|
-
NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] =
|
|
4441
|
-
NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] =
|
|
4442
|
-
NodeCheckFlags2[NodeCheckFlags2["ClassWithConstructorReference"] =
|
|
4443
|
-
NodeCheckFlags2[NodeCheckFlags2["ConstructorReferenceInClass"] =
|
|
4444
|
-
NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] =
|
|
4445
|
-
NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] =
|
|
4446
|
-
NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] =
|
|
4376
|
+
NodeCheckFlags2[NodeCheckFlags2["SuperInstance"] = 16] = "SuperInstance";
|
|
4377
|
+
NodeCheckFlags2[NodeCheckFlags2["SuperStatic"] = 32] = "SuperStatic";
|
|
4378
|
+
NodeCheckFlags2[NodeCheckFlags2["ContextChecked"] = 64] = "ContextChecked";
|
|
4379
|
+
NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAccessInAsync"] = 128] = "MethodWithSuperPropertyAccessInAsync";
|
|
4380
|
+
NodeCheckFlags2[NodeCheckFlags2["MethodWithSuperPropertyAssignmentInAsync"] = 256] = "MethodWithSuperPropertyAssignmentInAsync";
|
|
4381
|
+
NodeCheckFlags2[NodeCheckFlags2["CaptureArguments"] = 512] = "CaptureArguments";
|
|
4382
|
+
NodeCheckFlags2[NodeCheckFlags2["EnumValuesComputed"] = 1024] = "EnumValuesComputed";
|
|
4383
|
+
NodeCheckFlags2[NodeCheckFlags2["LexicalModuleMergesWithClass"] = 2048] = "LexicalModuleMergesWithClass";
|
|
4384
|
+
NodeCheckFlags2[NodeCheckFlags2["LoopWithCapturedBlockScopedBinding"] = 4096] = "LoopWithCapturedBlockScopedBinding";
|
|
4385
|
+
NodeCheckFlags2[NodeCheckFlags2["ContainsCapturedBlockScopeBinding"] = 8192] = "ContainsCapturedBlockScopeBinding";
|
|
4386
|
+
NodeCheckFlags2[NodeCheckFlags2["CapturedBlockScopedBinding"] = 16384] = "CapturedBlockScopedBinding";
|
|
4387
|
+
NodeCheckFlags2[NodeCheckFlags2["BlockScopedBindingInLoop"] = 32768] = "BlockScopedBindingInLoop";
|
|
4388
|
+
NodeCheckFlags2[NodeCheckFlags2["ClassWithBodyScopedClassBinding"] = 65536] = "ClassWithBodyScopedClassBinding";
|
|
4389
|
+
NodeCheckFlags2[NodeCheckFlags2["BodyScopedClassBinding"] = 131072] = "BodyScopedClassBinding";
|
|
4390
|
+
NodeCheckFlags2[NodeCheckFlags2["NeedsLoopOutParameter"] = 262144] = "NeedsLoopOutParameter";
|
|
4391
|
+
NodeCheckFlags2[NodeCheckFlags2["AssignmentsMarked"] = 524288] = "AssignmentsMarked";
|
|
4392
|
+
NodeCheckFlags2[NodeCheckFlags2["ClassWithConstructorReference"] = 1048576] = "ClassWithConstructorReference";
|
|
4393
|
+
NodeCheckFlags2[NodeCheckFlags2["ConstructorReferenceInClass"] = 2097152] = "ConstructorReferenceInClass";
|
|
4394
|
+
NodeCheckFlags2[NodeCheckFlags2["ContainsClassWithPrivateIdentifiers"] = 4194304] = "ContainsClassWithPrivateIdentifiers";
|
|
4395
|
+
NodeCheckFlags2[NodeCheckFlags2["ContainsSuperPropertyInStaticInitializer"] = 8388608] = "ContainsSuperPropertyInStaticInitializer";
|
|
4396
|
+
NodeCheckFlags2[NodeCheckFlags2["InCheckIdentifier"] = 16777216] = "InCheckIdentifier";
|
|
4447
4397
|
return NodeCheckFlags2;
|
|
4448
4398
|
})(NodeCheckFlags || {});
|
|
4449
4399
|
TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
|
|
@@ -4516,6 +4466,7 @@ ${lanes.join("\n")}
|
|
|
4516
4466
|
return TypeFlags2;
|
|
4517
4467
|
})(TypeFlags || {});
|
|
4518
4468
|
ObjectFlags = /* @__PURE__ */ ((ObjectFlags3) => {
|
|
4469
|
+
ObjectFlags3[ObjectFlags3["None"] = 0] = "None";
|
|
4519
4470
|
ObjectFlags3[ObjectFlags3["Class"] = 1] = "Class";
|
|
4520
4471
|
ObjectFlags3[ObjectFlags3["Interface"] = 2] = "Interface";
|
|
4521
4472
|
ObjectFlags3[ObjectFlags3["Reference"] = 4] = "Reference";
|
|
@@ -4633,6 +4584,7 @@ ${lanes.join("\n")}
|
|
|
4633
4584
|
return TypeMapKind2;
|
|
4634
4585
|
})(TypeMapKind || {});
|
|
4635
4586
|
InferencePriority = /* @__PURE__ */ ((InferencePriority2) => {
|
|
4587
|
+
InferencePriority2[InferencePriority2["None"] = 0] = "None";
|
|
4636
4588
|
InferencePriority2[InferencePriority2["NakedTypeVariable"] = 1] = "NakedTypeVariable";
|
|
4637
4589
|
InferencePriority2[InferencePriority2["SpeculativeTuple"] = 2] = "SpeculativeTuple";
|
|
4638
4590
|
InferencePriority2[InferencePriority2["SubstituteSource"] = 4] = "SubstituteSource";
|
|
@@ -4719,19 +4671,19 @@ ${lanes.join("\n")}
|
|
|
4719
4671
|
PollingWatchKind2[PollingWatchKind2["FixedChunkSize"] = 3] = "FixedChunkSize";
|
|
4720
4672
|
return PollingWatchKind2;
|
|
4721
4673
|
})(PollingWatchKind || {});
|
|
4722
|
-
ModuleKind = /* @__PURE__ */ ((
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
return
|
|
4674
|
+
ModuleKind = /* @__PURE__ */ ((ModuleKind2) => {
|
|
4675
|
+
ModuleKind2[ModuleKind2["None"] = 0] = "None";
|
|
4676
|
+
ModuleKind2[ModuleKind2["CommonJS"] = 1] = "CommonJS";
|
|
4677
|
+
ModuleKind2[ModuleKind2["AMD"] = 2] = "AMD";
|
|
4678
|
+
ModuleKind2[ModuleKind2["UMD"] = 3] = "UMD";
|
|
4679
|
+
ModuleKind2[ModuleKind2["System"] = 4] = "System";
|
|
4680
|
+
ModuleKind2[ModuleKind2["ES2015"] = 5] = "ES2015";
|
|
4681
|
+
ModuleKind2[ModuleKind2["ES2020"] = 6] = "ES2020";
|
|
4682
|
+
ModuleKind2[ModuleKind2["ES2022"] = 7] = "ES2022";
|
|
4683
|
+
ModuleKind2[ModuleKind2["ESNext"] = 99] = "ESNext";
|
|
4684
|
+
ModuleKind2[ModuleKind2["Node16"] = 100] = "Node16";
|
|
4685
|
+
ModuleKind2[ModuleKind2["NodeNext"] = 199] = "NodeNext";
|
|
4686
|
+
return ModuleKind2;
|
|
4735
4687
|
})(ModuleKind || {});
|
|
4736
4688
|
JsxEmit = /* @__PURE__ */ ((JsxEmit2) => {
|
|
4737
4689
|
JsxEmit2[JsxEmit2["None"] = 0] = "None";
|
|
@@ -8112,10 +8064,10 @@ ${lanes.join("\n")}
|
|
|
8112
8064
|
Module_name_0_matched_pattern_1: diag(6092, 3 /* Message */, "Module_name_0_matched_pattern_1_6092", "Module name '{0}', matched pattern '{1}'."),
|
|
8113
8065
|
Trying_substitution_0_candidate_module_location_Colon_1: diag(6093, 3 /* Message */, "Trying_substitution_0_candidate_module_location_Colon_1_6093", "Trying substitution '{0}', candidate module location: '{1}'."),
|
|
8114
8066
|
Resolving_module_name_0_relative_to_base_url_1_2: diag(6094, 3 /* Message */, "Resolving_module_name_0_relative_to_base_url_1_2_6094", "Resolving module name '{0}' relative to base url '{1}' - '{2}'."),
|
|
8115
|
-
|
|
8067
|
+
Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1: diag(6095, 3 /* Message */, "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095", "Loading module as file / folder, candidate module location '{0}', target file types: {1}."),
|
|
8116
8068
|
File_0_does_not_exist: diag(6096, 3 /* Message */, "File_0_does_not_exist_6096", "File '{0}' does not exist."),
|
|
8117
8069
|
File_0_exist_use_it_as_a_name_resolution_result: diag(6097, 3 /* Message */, "File_0_exist_use_it_as_a_name_resolution_result_6097", "File '{0}' exist - use it as a name resolution result."),
|
|
8118
|
-
|
|
8070
|
+
Loading_module_0_from_node_modules_folder_target_file_types_Colon_1: diag(6098, 3 /* Message */, "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098", "Loading module '{0}' from 'node_modules' folder, target file types: {1}."),
|
|
8119
8071
|
Found_package_json_at_0: diag(6099, 3 /* Message */, "Found_package_json_at_0_6099", "Found 'package.json' at '{0}'."),
|
|
8120
8072
|
package_json_does_not_have_a_0_field: diag(6100, 3 /* Message */, "package_json_does_not_have_a_0_field_6100", "'package.json' does not have a '{0}' field."),
|
|
8121
8073
|
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}'."),
|
|
@@ -17498,7 +17450,7 @@ ${lanes.join("\n")}
|
|
|
17498
17450
|
const firstChar = name.charCodeAt(0);
|
|
17499
17451
|
return firstChar === 35 /* hash */ ? name.length > 1 && isIdentifierStart(name.charCodeAt(1), languageVersion) : isIdentifierStart(firstChar, languageVersion);
|
|
17500
17452
|
}
|
|
17501
|
-
var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashAMDReferencePathRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, AccessKind, objectAllocator, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, extensionsToRemove, emptyFileSystemEntries;
|
|
17453
|
+
var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashAMDReferencePathRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, AccessKind, objectAllocator, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, supportedTSImplementationExtensions, extensionsToRemove, emptyFileSystemEntries;
|
|
17502
17454
|
var init_utilities = __esm({
|
|
17503
17455
|
"src/compiler/utilities.ts"() {
|
|
17504
17456
|
"use strict";
|
|
@@ -17648,6 +17600,7 @@ ${lanes.join("\n")}
|
|
|
17648
17600
|
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 */]];
|
|
17649
17601
|
allSupportedExtensionsWithJson = [...allSupportedExtensions, [".json" /* Json */]];
|
|
17650
17602
|
supportedDeclarationExtensions = [".d.ts" /* Dts */, ".d.cts" /* Dcts */, ".d.mts" /* Dmts */];
|
|
17603
|
+
supportedTSImplementationExtensions = [".ts" /* Ts */, ".cts" /* Cts */, ".mts" /* Mts */, ".tsx" /* Tsx */];
|
|
17651
17604
|
extensionsToRemove = [".d.ts" /* Dts */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".mjs" /* Mjs */, ".mts" /* Mts */, ".cjs" /* Cjs */, ".cts" /* Cts */, ".ts" /* Ts */, ".js" /* Js */, ".tsx" /* Tsx */, ".jsx" /* Jsx */, ".json" /* Json */];
|
|
17652
17605
|
emptyFileSystemEntries = {
|
|
17653
17606
|
files: emptyArray,
|
|
@@ -23223,7 +23176,7 @@ ${lanes.join("\n")}
|
|
|
23223
23176
|
var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
|
|
23224
23177
|
var i, p;
|
|
23225
23178
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
23226
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done:
|
|
23179
|
+
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; }
|
|
23227
23180
|
};`
|
|
23228
23181
|
};
|
|
23229
23182
|
asyncValues = {
|
|
@@ -34999,6 +34952,18 @@ ${lanes.join("\n")}
|
|
|
34999
34952
|
return { path: r.path, ext: r.extension };
|
|
35000
34953
|
}
|
|
35001
34954
|
}
|
|
34955
|
+
function formatExtensions(extensions) {
|
|
34956
|
+
const result = [];
|
|
34957
|
+
if (extensions & 1 /* TypeScript */)
|
|
34958
|
+
result.push("TypeScript");
|
|
34959
|
+
if (extensions & 2 /* JavaScript */)
|
|
34960
|
+
result.push("JavaScript");
|
|
34961
|
+
if (extensions & 4 /* Declaration */)
|
|
34962
|
+
result.push("Declaration");
|
|
34963
|
+
if (extensions & 8 /* Json */)
|
|
34964
|
+
result.push("JSON");
|
|
34965
|
+
return result.join(", ");
|
|
34966
|
+
}
|
|
35002
34967
|
function resolvedTypeScriptOnly(resolved) {
|
|
35003
34968
|
if (!resolved) {
|
|
35004
34969
|
return void 0;
|
|
@@ -35200,7 +35165,8 @@ ${lanes.join("\n")}
|
|
|
35200
35165
|
features,
|
|
35201
35166
|
conditions,
|
|
35202
35167
|
requestContainingDirectory: containingDirectory,
|
|
35203
|
-
reportDiagnostic: (diag2) => void diagnostics.push(diag2)
|
|
35168
|
+
reportDiagnostic: (diag2) => void diagnostics.push(diag2),
|
|
35169
|
+
isConfigLookup: false
|
|
35204
35170
|
};
|
|
35205
35171
|
let resolved = primaryLookup();
|
|
35206
35172
|
let primary = true;
|
|
@@ -35250,7 +35216,7 @@ ${lanes.join("\n")}
|
|
|
35250
35216
|
}
|
|
35251
35217
|
return resolvedTypeScriptOnly(
|
|
35252
35218
|
loadNodeModuleFromDirectory(
|
|
35253
|
-
4 /*
|
|
35219
|
+
4 /* Declaration */,
|
|
35254
35220
|
candidate,
|
|
35255
35221
|
!directoryExists,
|
|
35256
35222
|
moduleResolutionState
|
|
@@ -35271,11 +35237,11 @@ ${lanes.join("\n")}
|
|
|
35271
35237
|
}
|
|
35272
35238
|
let result2;
|
|
35273
35239
|
if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) {
|
|
35274
|
-
const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /*
|
|
35240
|
+
const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /* Declaration */, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);
|
|
35275
35241
|
result2 = searchResult && searchResult.value;
|
|
35276
35242
|
} else {
|
|
35277
35243
|
const { path: candidate } = normalizePathForCJSResolution(initialLocationForSecondaryLookup, typeReferenceDirectiveName);
|
|
35278
|
-
result2 = nodeLoadModuleByRelativeName(4 /*
|
|
35244
|
+
result2 = nodeLoadModuleByRelativeName(4 /* Declaration */, candidate, false, moduleResolutionState, true);
|
|
35279
35245
|
}
|
|
35280
35246
|
return resolvedTypeScriptOnly(result2);
|
|
35281
35247
|
} else {
|
|
@@ -35792,31 +35758,39 @@ ${lanes.join("\n")}
|
|
|
35792
35758
|
function nodeNextModuleNameResolverWorker(features, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {
|
|
35793
35759
|
const containingDirectory = getDirectoryPath(containingFile);
|
|
35794
35760
|
const esmMode = resolutionMode === 99 /* ESNext */ ? 32 /* EsmMode */ : 0;
|
|
35795
|
-
let extensions = compilerOptions.noDtsResolution ?
|
|
35761
|
+
let extensions = compilerOptions.noDtsResolution ? 3 /* ImplementationFiles */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
|
|
35796
35762
|
if (compilerOptions.resolveJsonModule) {
|
|
35797
|
-
extensions
|
|
35763
|
+
extensions |= 8 /* Json */;
|
|
35798
35764
|
}
|
|
35799
|
-
return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference);
|
|
35765
|
+
return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, false, redirectedReference);
|
|
35800
35766
|
}
|
|
35801
35767
|
function tryResolveJSModuleWorker(moduleName, initialDir, host) {
|
|
35802
|
-
return nodeModuleNameResolverWorker(
|
|
35768
|
+
return nodeModuleNameResolverWorker(
|
|
35769
|
+
0 /* None */,
|
|
35770
|
+
moduleName,
|
|
35771
|
+
initialDir,
|
|
35772
|
+
{ moduleResolution: 2 /* NodeJs */, allowJs: true },
|
|
35773
|
+
host,
|
|
35774
|
+
void 0,
|
|
35775
|
+
2 /* JavaScript */,
|
|
35776
|
+
false,
|
|
35777
|
+
void 0
|
|
35778
|
+
);
|
|
35803
35779
|
}
|
|
35804
|
-
function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference,
|
|
35780
|
+
function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, isConfigLookup) {
|
|
35805
35781
|
let extensions;
|
|
35806
|
-
if (
|
|
35807
|
-
extensions =
|
|
35782
|
+
if (isConfigLookup) {
|
|
35783
|
+
extensions = 8 /* Json */;
|
|
35808
35784
|
} else if (compilerOptions.noDtsResolution) {
|
|
35809
|
-
extensions =
|
|
35810
|
-
if (compilerOptions.allowJs)
|
|
35811
|
-
extensions.push(1 /* JavaScript */);
|
|
35785
|
+
extensions = 3 /* ImplementationFiles */;
|
|
35812
35786
|
if (compilerOptions.resolveJsonModule)
|
|
35813
|
-
extensions
|
|
35787
|
+
extensions |= 8 /* Json */;
|
|
35814
35788
|
} else {
|
|
35815
|
-
extensions = compilerOptions.resolveJsonModule ?
|
|
35789
|
+
extensions = compilerOptions.resolveJsonModule ? 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */ | 8 /* Json */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
|
|
35816
35790
|
}
|
|
35817
|
-
return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, redirectedReference);
|
|
35791
|
+
return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, !!isConfigLookup, redirectedReference);
|
|
35818
35792
|
}
|
|
35819
|
-
function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference) {
|
|
35793
|
+
function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, isConfigLookup, redirectedReference) {
|
|
35820
35794
|
var _a2, _b;
|
|
35821
35795
|
const traceEnabled = isTraceEnabled(compilerOptions, host);
|
|
35822
35796
|
const failedLookupLocations = [];
|
|
@@ -35836,12 +35810,20 @@ ${lanes.join("\n")}
|
|
|
35836
35810
|
features,
|
|
35837
35811
|
conditions,
|
|
35838
35812
|
requestContainingDirectory: containingDirectory,
|
|
35839
|
-
reportDiagnostic: (diag2) => void diagnostics.push(diag2)
|
|
35813
|
+
reportDiagnostic: (diag2) => void diagnostics.push(diag2),
|
|
35814
|
+
isConfigLookup
|
|
35840
35815
|
};
|
|
35841
35816
|
if (traceEnabled && getEmitModuleResolutionKind(compilerOptions) >= 3 /* Node16 */ && getEmitModuleResolutionKind(compilerOptions) <= 99 /* NodeNext */) {
|
|
35842
35817
|
trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & 32 /* EsmMode */ ? "ESM" : "CJS", conditions.map((c) => `'${c}'`).join(", "));
|
|
35843
35818
|
}
|
|
35844
|
-
|
|
35819
|
+
let result;
|
|
35820
|
+
if (getEmitModuleResolutionKind(compilerOptions) === 2 /* NodeJs */) {
|
|
35821
|
+
const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
|
|
35822
|
+
const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
|
|
35823
|
+
result = priorityExtensions && tryResolve(priorityExtensions) || secondaryExtensions && tryResolve(secondaryExtensions) || void 0;
|
|
35824
|
+
} else {
|
|
35825
|
+
result = tryResolve(extensions);
|
|
35826
|
+
}
|
|
35845
35827
|
return createResolvedModuleWithFailedLookupLocations(
|
|
35846
35828
|
(_a2 = result == null ? void 0 : result.value) == null ? void 0 : _a2.resolved,
|
|
35847
35829
|
(_b = result == null ? void 0 : result.value) == null ? void 0 : _b.isExternalLibraryImport,
|
|
@@ -35866,7 +35848,7 @@ ${lanes.join("\n")}
|
|
|
35866
35848
|
}
|
|
35867
35849
|
if (!resolved2) {
|
|
35868
35850
|
if (traceEnabled) {
|
|
35869
|
-
trace(host, Diagnostics.
|
|
35851
|
+
trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions2));
|
|
35870
35852
|
}
|
|
35871
35853
|
resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state, cache, redirectedReference);
|
|
35872
35854
|
}
|
|
@@ -35907,7 +35889,7 @@ ${lanes.join("\n")}
|
|
|
35907
35889
|
}
|
|
35908
35890
|
function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
|
|
35909
35891
|
if (state.traceEnabled) {
|
|
35910
|
-
trace(state.host, Diagnostics.
|
|
35892
|
+
trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1, candidate, formatExtensions(extensions));
|
|
35911
35893
|
}
|
|
35912
35894
|
if (!hasTrailingDirectorySeparator(candidate)) {
|
|
35913
35895
|
if (!onlyRecordFailures) {
|
|
@@ -35964,10 +35946,9 @@ ${lanes.join("\n")}
|
|
|
35964
35946
|
return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state));
|
|
35965
35947
|
}
|
|
35966
35948
|
function loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) {
|
|
35967
|
-
|
|
35968
|
-
|
|
35969
|
-
|
|
35970
|
-
return extensionLess === void 0 && extensions === 2 /* Json */ ? void 0 : tryAddingExtensions(extensionLess || candidate, extensions, extension, onlyRecordFailures, state);
|
|
35949
|
+
const resolvedByReplacingExtension = loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
|
|
35950
|
+
if (resolvedByReplacingExtension) {
|
|
35951
|
+
return resolvedByReplacingExtension;
|
|
35971
35952
|
}
|
|
35972
35953
|
if (!(state.features & 32 /* EsmMode */)) {
|
|
35973
35954
|
const resolvedByAddingExtension = tryAddingExtensions(candidate, extensions, "", onlyRecordFailures, state);
|
|
@@ -35975,10 +35956,9 @@ ${lanes.join("\n")}
|
|
|
35975
35956
|
return resolvedByAddingExtension;
|
|
35976
35957
|
}
|
|
35977
35958
|
}
|
|
35978
|
-
return loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
|
|
35979
35959
|
}
|
|
35980
35960
|
function loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state) {
|
|
35981
|
-
if (hasJSFileExtension(candidate) || fileExtensionIs(candidate, ".json" /* Json */)
|
|
35961
|
+
if (hasJSFileExtension(candidate) || extensions & 8 /* Json */ && fileExtensionIs(candidate, ".json" /* Json */)) {
|
|
35982
35962
|
const extensionless = removeFileExtension(candidate);
|
|
35983
35963
|
const extension = candidate.substring(extensionless.length);
|
|
35984
35964
|
if (state.traceEnabled) {
|
|
@@ -35988,7 +35968,7 @@ ${lanes.join("\n")}
|
|
|
35988
35968
|
}
|
|
35989
35969
|
}
|
|
35990
35970
|
function loadJSOrExactTSFileName(extensions, candidate, onlyRecordFailures, state) {
|
|
35991
|
-
if (
|
|
35971
|
+
if (extensions & 1 /* TypeScript */ && fileExtensionIsOneOf(candidate, supportedTSImplementationExtensions) || extensions & 4 /* Declaration */ && fileExtensionIsOneOf(candidate, supportedDeclarationExtensions)) {
|
|
35992
35972
|
const result = tryFile(candidate, onlyRecordFailures, state);
|
|
35993
35973
|
return result !== void 0 ? { path: candidate, ext: tryExtractTSExtension(candidate) } : void 0;
|
|
35994
35974
|
}
|
|
@@ -36001,59 +35981,32 @@ ${lanes.join("\n")}
|
|
|
36001
35981
|
onlyRecordFailures = !directoryProbablyExists(directory, state.host);
|
|
36002
35982
|
}
|
|
36003
35983
|
}
|
|
36004
|
-
switch (
|
|
36005
|
-
case
|
|
36006
|
-
|
|
36007
|
-
|
|
36008
|
-
|
|
36009
|
-
|
|
36010
|
-
|
|
36011
|
-
|
|
36012
|
-
|
|
36013
|
-
|
|
36014
|
-
|
|
36015
|
-
|
|
36016
|
-
|
|
36017
|
-
|
|
36018
|
-
|
|
36019
|
-
return
|
|
36020
|
-
}
|
|
36021
|
-
|
|
36022
|
-
|
|
36023
|
-
|
|
36024
|
-
|
|
36025
|
-
|
|
36026
|
-
case ".mts" /* Mts */:
|
|
36027
|
-
case ".d.mts" /* Dmts */:
|
|
36028
|
-
return tryExtension(".mts" /* Mts */) || (useDts ? tryExtension(".d.mts" /* Dmts */) : void 0);
|
|
36029
|
-
case ".cjs" /* Cjs */:
|
|
36030
|
-
case ".cts" /* Cts */:
|
|
36031
|
-
case ".d.cts" /* Dcts */:
|
|
36032
|
-
return tryExtension(".cts" /* Cts */) || (useDts ? tryExtension(".d.cts" /* Dcts */) : void 0);
|
|
36033
|
-
case ".json" /* Json */:
|
|
36034
|
-
candidate += ".json" /* Json */;
|
|
36035
|
-
return useDts ? tryExtension(".d.ts" /* Dts */) : void 0;
|
|
36036
|
-
default:
|
|
36037
|
-
return tryExtension(".ts" /* Ts */) || tryExtension(".tsx" /* Tsx */) || (useDts ? tryExtension(".d.ts" /* Dts */) : void 0);
|
|
36038
|
-
}
|
|
36039
|
-
case 1 /* JavaScript */:
|
|
36040
|
-
switch (originalExtension) {
|
|
36041
|
-
case ".mjs" /* Mjs */:
|
|
36042
|
-
case ".mts" /* Mts */:
|
|
36043
|
-
case ".d.mts" /* Dmts */:
|
|
36044
|
-
return tryExtension(".mjs" /* Mjs */);
|
|
36045
|
-
case ".cjs" /* Cjs */:
|
|
36046
|
-
case ".cts" /* Cts */:
|
|
36047
|
-
case ".d.cts" /* Dcts */:
|
|
36048
|
-
return tryExtension(".cjs" /* Cjs */);
|
|
36049
|
-
case ".json" /* Json */:
|
|
36050
|
-
return tryExtension(".json" /* Json */);
|
|
36051
|
-
default:
|
|
36052
|
-
return tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */);
|
|
35984
|
+
switch (originalExtension) {
|
|
35985
|
+
case ".mjs" /* Mjs */:
|
|
35986
|
+
case ".mts" /* Mts */:
|
|
35987
|
+
case ".d.mts" /* Dmts */:
|
|
35988
|
+
return extensions & 1 /* TypeScript */ && tryExtension(".mts" /* Mts */) || extensions & 4 /* Declaration */ && tryExtension(".d.mts" /* Dmts */) || extensions & 2 /* JavaScript */ && tryExtension(".mjs" /* Mjs */) || void 0;
|
|
35989
|
+
case ".cjs" /* Cjs */:
|
|
35990
|
+
case ".cts" /* Cts */:
|
|
35991
|
+
case ".d.cts" /* Dcts */:
|
|
35992
|
+
return extensions & 1 /* TypeScript */ && tryExtension(".cts" /* Cts */) || extensions & 4 /* Declaration */ && tryExtension(".d.cts" /* Dcts */) || extensions & 2 /* JavaScript */ && tryExtension(".cjs" /* Cjs */) || void 0;
|
|
35993
|
+
case ".json" /* Json */:
|
|
35994
|
+
const originalCandidate = candidate;
|
|
35995
|
+
if (extensions & 4 /* Declaration */) {
|
|
35996
|
+
candidate += ".json" /* Json */;
|
|
35997
|
+
const result = tryExtension(".d.ts" /* Dts */);
|
|
35998
|
+
if (result)
|
|
35999
|
+
return result;
|
|
36000
|
+
}
|
|
36001
|
+
if (extensions & 8 /* Json */) {
|
|
36002
|
+
candidate = originalCandidate;
|
|
36003
|
+
const result = tryExtension(".json" /* Json */);
|
|
36004
|
+
if (result)
|
|
36005
|
+
return result;
|
|
36053
36006
|
}
|
|
36054
|
-
|
|
36055
|
-
|
|
36056
|
-
return tryExtension(".json" /* Json */);
|
|
36007
|
+
return void 0;
|
|
36008
|
+
default:
|
|
36009
|
+
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;
|
|
36057
36010
|
}
|
|
36058
36011
|
function tryExtension(ext) {
|
|
36059
36012
|
const path = tryFile(candidate + ext, onlyRecordFailures, state);
|
|
@@ -36096,7 +36049,7 @@ ${lanes.join("\n")}
|
|
|
36096
36049
|
return packageJsonInfo.contents.resolvedEntrypoints;
|
|
36097
36050
|
}
|
|
36098
36051
|
let entrypoints;
|
|
36099
|
-
const extensions = resolveJs ?
|
|
36052
|
+
const extensions = 1 /* TypeScript */ | 4 /* Declaration */ | (resolveJs ? 2 /* JavaScript */ : 0);
|
|
36100
36053
|
const features = getDefaultNodeResolutionFeatures(options);
|
|
36101
36054
|
const requireState = getTemporaryModuleResolutionState(cache == null ? void 0 : cache.getPackageJsonInfoCache(), host, options);
|
|
36102
36055
|
requireState.conditions = ["node", "require", "types"];
|
|
@@ -36184,7 +36137,8 @@ ${lanes.join("\n")}
|
|
|
36184
36137
|
features: 0 /* None */,
|
|
36185
36138
|
conditions: emptyArray,
|
|
36186
36139
|
requestContainingDirectory: void 0,
|
|
36187
|
-
reportDiagnostic: noop
|
|
36140
|
+
reportDiagnostic: noop,
|
|
36141
|
+
isConfigLookup: false
|
|
36188
36142
|
};
|
|
36189
36143
|
}
|
|
36190
36144
|
function getPackageScopeForPath(fileName, state) {
|
|
@@ -36243,23 +36197,10 @@ ${lanes.join("\n")}
|
|
|
36243
36197
|
function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) {
|
|
36244
36198
|
let packageFile;
|
|
36245
36199
|
if (jsonContent) {
|
|
36246
|
-
|
|
36247
|
-
|
|
36248
|
-
|
|
36249
|
-
|
|
36250
|
-
packageFile = readPackageJsonMainField(jsonContent, candidate, state);
|
|
36251
|
-
break;
|
|
36252
|
-
case 0 /* TypeScript */:
|
|
36253
|
-
packageFile = readPackageJsonTypesFields(jsonContent, candidate, state) || readPackageJsonMainField(jsonContent, candidate, state);
|
|
36254
|
-
break;
|
|
36255
|
-
case 4 /* DtsOnly */:
|
|
36256
|
-
packageFile = readPackageJsonTypesFields(jsonContent, candidate, state);
|
|
36257
|
-
break;
|
|
36258
|
-
case 3 /* TSConfig */:
|
|
36259
|
-
packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
|
|
36260
|
-
break;
|
|
36261
|
-
default:
|
|
36262
|
-
return Debug.assertNever(extensions);
|
|
36200
|
+
if (state.isConfigLookup) {
|
|
36201
|
+
packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
|
|
36202
|
+
} else {
|
|
36203
|
+
packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(jsonContent, candidate, state) || void 0;
|
|
36263
36204
|
}
|
|
36264
36205
|
}
|
|
36265
36206
|
const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
|
|
@@ -36273,18 +36214,18 @@ ${lanes.join("\n")}
|
|
|
36273
36214
|
trace(state2.host, Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromFile);
|
|
36274
36215
|
}
|
|
36275
36216
|
}
|
|
36276
|
-
const
|
|
36217
|
+
const expandedExtensions = extensions2 === 4 /* Declaration */ ? 1 /* TypeScript */ | 4 /* Declaration */ : extensions2;
|
|
36277
36218
|
const features = state2.features;
|
|
36278
36219
|
if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") {
|
|
36279
36220
|
state2.features &= ~32 /* EsmMode */;
|
|
36280
36221
|
}
|
|
36281
|
-
const result = nodeLoadModuleByRelativeName(
|
|
36222
|
+
const result = nodeLoadModuleByRelativeName(expandedExtensions, candidate2, onlyRecordFailures2, state2, false);
|
|
36282
36223
|
state2.features = features;
|
|
36283
36224
|
return result;
|
|
36284
36225
|
};
|
|
36285
36226
|
const onlyRecordFailuresForPackageFile = packageFile ? !directoryProbablyExists(getDirectoryPath(packageFile), state.host) : void 0;
|
|
36286
36227
|
const onlyRecordFailuresForIndex = onlyRecordFailures || !directoryProbablyExists(candidate, state.host);
|
|
36287
|
-
const indexPath = combinePaths(candidate,
|
|
36228
|
+
const indexPath = combinePaths(candidate, state.isConfigLookup ? "tsconfig" : "index");
|
|
36288
36229
|
if (versionPaths && (!packageFile || containsPath(candidate, packageFile))) {
|
|
36289
36230
|
const moduleName = getRelativePathFromDirectory(candidate, packageFile || indexPath, false);
|
|
36290
36231
|
if (state.traceEnabled) {
|
|
@@ -36307,19 +36248,7 @@ ${lanes.join("\n")}
|
|
|
36307
36248
|
return ext !== void 0 && extensionIsOk(extensions, ext) ? { path, ext } : void 0;
|
|
36308
36249
|
}
|
|
36309
36250
|
function extensionIsOk(extensions, extension) {
|
|
36310
|
-
|
|
36311
|
-
case 1 /* JavaScript */:
|
|
36312
|
-
return extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */;
|
|
36313
|
-
case 3 /* TSConfig */:
|
|
36314
|
-
case 2 /* Json */:
|
|
36315
|
-
return extension === ".json" /* Json */;
|
|
36316
|
-
case 0 /* TypeScript */:
|
|
36317
|
-
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 */;
|
|
36318
|
-
case 5 /* TsOnly */:
|
|
36319
|
-
return extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */;
|
|
36320
|
-
case 4 /* DtsOnly */:
|
|
36321
|
-
return extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */;
|
|
36322
|
-
}
|
|
36251
|
+
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;
|
|
36323
36252
|
}
|
|
36324
36253
|
function parsePackageName(moduleName) {
|
|
36325
36254
|
let idx = moduleName.indexOf(directorySeparator);
|
|
@@ -36481,7 +36410,7 @@ ${lanes.join("\n")}
|
|
|
36481
36410
|
const combinedLookup = pattern ? target.replace(/\*/g, subpath) : target + subpath;
|
|
36482
36411
|
traceIfEnabled(state, Diagnostics.Using_0_subpath_1_with_target_2, "imports", key, combinedLookup);
|
|
36483
36412
|
traceIfEnabled(state, Diagnostics.Resolving_module_0_from_1, combinedLookup, scope.packageDirectory + "/");
|
|
36484
|
-
const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache,
|
|
36413
|
+
const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache, extensions, false, redirectedReference);
|
|
36485
36414
|
return toSearchResult(result.resolvedModule ? { path: result.resolvedModule.resolvedFileName, extension: result.resolvedModule.extension, packageId: result.resolvedModule.packageId, originalPath: result.resolvedModule.originalPath } : void 0);
|
|
36486
36415
|
}
|
|
36487
36416
|
if (state.traceEnabled) {
|
|
@@ -36572,7 +36501,7 @@ ${lanes.join("\n")}
|
|
|
36572
36501
|
}
|
|
36573
36502
|
function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
|
|
36574
36503
|
var _a2, _b, _c, _d;
|
|
36575
|
-
if (
|
|
36504
|
+
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)) {
|
|
36576
36505
|
const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames });
|
|
36577
36506
|
const commonSourceDirGuesses = [];
|
|
36578
36507
|
if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
|
|
@@ -36609,10 +36538,9 @@ ${lanes.join("\n")}
|
|
|
36609
36538
|
if (fileExtensionIs(possibleInputBase, ext)) {
|
|
36610
36539
|
const inputExts = getPossibleOriginalInputExtensionForExtension(possibleInputBase);
|
|
36611
36540
|
for (const possibleExt of inputExts) {
|
|
36612
|
-
|
|
36613
|
-
if (extensions === 0 /* TypeScript */ && hasJSFileExtension(possibleInputWithInputExtension) || extensions === 1 /* JavaScript */ && hasTSFileExtension(possibleInputWithInputExtension)) {
|
|
36541
|
+
if (!extensionIsOk(extensions, possibleExt))
|
|
36614
36542
|
continue;
|
|
36615
|
-
|
|
36543
|
+
const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
|
|
36616
36544
|
if (state.host.fileExists(possibleInputWithInputExtension)) {
|
|
36617
36545
|
return toSearchResult(withPackageId(scope, loadJSOrExactTSFileName(extensions, possibleInputWithInputExtension, false, state)));
|
|
36618
36546
|
}
|
|
@@ -36653,19 +36581,31 @@ ${lanes.join("\n")}
|
|
|
36653
36581
|
return loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, false, cache, redirectedReference);
|
|
36654
36582
|
}
|
|
36655
36583
|
function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directory, state) {
|
|
36656
|
-
return loadModuleFromNearestNodeModulesDirectoryWorker(4 /*
|
|
36584
|
+
return loadModuleFromNearestNodeModulesDirectoryWorker(4 /* Declaration */, moduleName, directory, state, true, void 0, void 0);
|
|
36657
36585
|
}
|
|
36658
36586
|
function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
|
|
36659
36587
|
const perModuleNameCache = cache && cache.getOrCreateCacheForModuleName(moduleName, state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ ? 99 /* ESNext */ : 1 /* CommonJS */, redirectedReference);
|
|
36660
|
-
|
|
36661
|
-
|
|
36662
|
-
|
|
36663
|
-
|
|
36664
|
-
|
|
36588
|
+
const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
|
|
36589
|
+
const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
|
|
36590
|
+
if (priorityExtensions) {
|
|
36591
|
+
const result = lookup(priorityExtensions);
|
|
36592
|
+
if (result)
|
|
36593
|
+
return result;
|
|
36594
|
+
}
|
|
36595
|
+
if (secondaryExtensions && !typesScopeOnly) {
|
|
36596
|
+
return lookup(secondaryExtensions);
|
|
36597
|
+
}
|
|
36598
|
+
function lookup(extensions2) {
|
|
36599
|
+
return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => {
|
|
36600
|
+
if (getBaseFileName(ancestorDirectory) !== "node_modules") {
|
|
36601
|
+
const resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, ancestorDirectory, state);
|
|
36602
|
+
if (resolutionFromCache) {
|
|
36603
|
+
return resolutionFromCache;
|
|
36604
|
+
}
|
|
36605
|
+
return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions2, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));
|
|
36665
36606
|
}
|
|
36666
|
-
|
|
36667
|
-
|
|
36668
|
-
});
|
|
36607
|
+
});
|
|
36608
|
+
}
|
|
36669
36609
|
}
|
|
36670
36610
|
function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
|
|
36671
36611
|
const nodeModulesFolder = combinePaths(directory, "node_modules");
|
|
@@ -36673,11 +36613,13 @@ ${lanes.join("\n")}
|
|
|
36673
36613
|
if (!nodeModulesFolderExists && state.traceEnabled) {
|
|
36674
36614
|
trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesFolder);
|
|
36675
36615
|
}
|
|
36676
|
-
|
|
36677
|
-
|
|
36678
|
-
|
|
36616
|
+
if (!typesScopeOnly) {
|
|
36617
|
+
const packageResult = loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);
|
|
36618
|
+
if (packageResult) {
|
|
36619
|
+
return packageResult;
|
|
36620
|
+
}
|
|
36679
36621
|
}
|
|
36680
|
-
if (extensions
|
|
36622
|
+
if (extensions & 4 /* Declaration */) {
|
|
36681
36623
|
const nodeModulesAtTypes2 = combinePaths(nodeModulesFolder, "@types");
|
|
36682
36624
|
let nodeModulesAtTypesExists = nodeModulesFolderExists;
|
|
36683
36625
|
if (nodeModulesFolderExists && !directoryProbablyExists(nodeModulesAtTypes2, state.host)) {
|
|
@@ -36686,7 +36628,7 @@ ${lanes.join("\n")}
|
|
|
36686
36628
|
}
|
|
36687
36629
|
nodeModulesAtTypesExists = false;
|
|
36688
36630
|
}
|
|
36689
|
-
return loadModuleFromSpecificNodeModulesDirectory(4 /*
|
|
36631
|
+
return loadModuleFromSpecificNodeModulesDirectory(4 /* Declaration */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);
|
|
36690
36632
|
}
|
|
36691
36633
|
}
|
|
36692
36634
|
function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {
|
|
@@ -36826,9 +36768,10 @@ ${lanes.join("\n")}
|
|
|
36826
36768
|
features: 0 /* None */,
|
|
36827
36769
|
conditions: [],
|
|
36828
36770
|
requestContainingDirectory: containingDirectory,
|
|
36829
|
-
reportDiagnostic: (diag2) => void diagnostics.push(diag2)
|
|
36771
|
+
reportDiagnostic: (diag2) => void diagnostics.push(diag2),
|
|
36772
|
+
isConfigLookup: false
|
|
36830
36773
|
};
|
|
36831
|
-
const resolved = tryResolve(
|
|
36774
|
+
const resolved = tryResolve(1 /* TypeScript */ | 4 /* Declaration */) || tryResolve(2 /* JavaScript */ | (compilerOptions.resolveJsonModule ? 8 /* Json */ : 0));
|
|
36832
36775
|
return createResolvedModuleWithFailedLookupLocations(
|
|
36833
36776
|
resolved && resolved.value,
|
|
36834
36777
|
false,
|
|
@@ -36855,7 +36798,7 @@ ${lanes.join("\n")}
|
|
|
36855
36798
|
if (resolved2) {
|
|
36856
36799
|
return resolved2;
|
|
36857
36800
|
}
|
|
36858
|
-
if (extensions
|
|
36801
|
+
if (extensions & (1 /* TypeScript */ | 4 /* Declaration */)) {
|
|
36859
36802
|
return loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state);
|
|
36860
36803
|
}
|
|
36861
36804
|
} else {
|
|
@@ -36882,9 +36825,10 @@ ${lanes.join("\n")}
|
|
|
36882
36825
|
features: 0 /* None */,
|
|
36883
36826
|
conditions: [],
|
|
36884
36827
|
requestContainingDirectory: void 0,
|
|
36885
|
-
reportDiagnostic: (diag2) => void diagnostics.push(diag2)
|
|
36828
|
+
reportDiagnostic: (diag2) => void diagnostics.push(diag2),
|
|
36829
|
+
isConfigLookup: false
|
|
36886
36830
|
};
|
|
36887
|
-
const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /*
|
|
36831
|
+
const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /* Declaration */, moduleName, globalCache, state, false, void 0, void 0);
|
|
36888
36832
|
return createResolvedModuleWithFailedLookupLocations(
|
|
36889
36833
|
resolved,
|
|
36890
36834
|
true,
|
|
@@ -36902,20 +36846,11 @@ ${lanes.join("\n")}
|
|
|
36902
36846
|
trace(state.host, diagnostic, ...args);
|
|
36903
36847
|
}
|
|
36904
36848
|
}
|
|
36905
|
-
var
|
|
36849
|
+
var typeScriptVersion, nodeModulesAtTypes, NodeResolutionFeatures, nodeModulesPathPart, mangledScopedPackageSeparator;
|
|
36906
36850
|
var init_moduleNameResolver = __esm({
|
|
36907
36851
|
"src/compiler/moduleNameResolver.ts"() {
|
|
36908
36852
|
"use strict";
|
|
36909
36853
|
init_ts2();
|
|
36910
|
-
Extensions = /* @__PURE__ */ ((Extensions2) => {
|
|
36911
|
-
Extensions2[Extensions2["TypeScript"] = 0] = "TypeScript";
|
|
36912
|
-
Extensions2[Extensions2["JavaScript"] = 1] = "JavaScript";
|
|
36913
|
-
Extensions2[Extensions2["Json"] = 2] = "Json";
|
|
36914
|
-
Extensions2[Extensions2["TSConfig"] = 3] = "TSConfig";
|
|
36915
|
-
Extensions2[Extensions2["DtsOnly"] = 4] = "DtsOnly";
|
|
36916
|
-
Extensions2[Extensions2["TsOnly"] = 5] = "TsOnly";
|
|
36917
|
-
return Extensions2;
|
|
36918
|
-
})(Extensions || {});
|
|
36919
36854
|
nodeModulesAtTypes = combinePaths("node_modules", "@types");
|
|
36920
36855
|
NodeResolutionFeatures = /* @__PURE__ */ ((NodeResolutionFeatures2) => {
|
|
36921
36856
|
NodeResolutionFeatures2[NodeResolutionFeatures2["None"] = 0] = "None";
|
|
@@ -36929,10 +36864,6 @@ ${lanes.join("\n")}
|
|
|
36929
36864
|
NodeResolutionFeatures2[NodeResolutionFeatures2["EsmMode"] = 32] = "EsmMode";
|
|
36930
36865
|
return NodeResolutionFeatures2;
|
|
36931
36866
|
})(NodeResolutionFeatures || {});
|
|
36932
|
-
jsOnlyExtensions = [1 /* JavaScript */];
|
|
36933
|
-
tsExtensions = [0 /* TypeScript */, 1 /* JavaScript */];
|
|
36934
|
-
tsPlusJsonExtensions = [...tsExtensions, 2 /* Json */];
|
|
36935
|
-
tsconfigExtensions = [3 /* TSConfig */];
|
|
36936
36867
|
nodeModulesPathPart = "/node_modules/";
|
|
36937
36868
|
mangledScopedPackageSeparator = "__";
|
|
36938
36869
|
}
|
|
@@ -39918,6 +39849,7 @@ ${lanes.join("\n")}
|
|
|
39918
39849
|
const importedFileIsInNodeModules = some(modulePaths, (p) => p.isInNodeModules);
|
|
39919
39850
|
let nodeModulesSpecifiers;
|
|
39920
39851
|
let pathsSpecifiers;
|
|
39852
|
+
let redirectPathsSpecifiers;
|
|
39921
39853
|
let relativeSpecifiers;
|
|
39922
39854
|
for (const modulePath of modulePaths) {
|
|
39923
39855
|
const specifier = tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, void 0, options.overrideImportMode);
|
|
@@ -39925,60 +39857,77 @@ ${lanes.join("\n")}
|
|
|
39925
39857
|
if (specifier && modulePath.isRedirect) {
|
|
39926
39858
|
return nodeModulesSpecifiers;
|
|
39927
39859
|
}
|
|
39928
|
-
if (!specifier
|
|
39929
|
-
const local = getLocalModuleSpecifier(
|
|
39930
|
-
|
|
39860
|
+
if (!specifier) {
|
|
39861
|
+
const local = getLocalModuleSpecifier(
|
|
39862
|
+
modulePath.path,
|
|
39863
|
+
info,
|
|
39864
|
+
compilerOptions,
|
|
39865
|
+
host,
|
|
39866
|
+
options.overrideImportMode || importingSourceFile.impliedNodeFormat,
|
|
39867
|
+
preferences,
|
|
39868
|
+
modulePath.isRedirect
|
|
39869
|
+
);
|
|
39870
|
+
if (!local) {
|
|
39871
|
+
continue;
|
|
39872
|
+
}
|
|
39873
|
+
if (modulePath.isRedirect) {
|
|
39874
|
+
redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
|
|
39875
|
+
} else if (pathIsBareSpecifier(local)) {
|
|
39931
39876
|
pathsSpecifiers = append(pathsSpecifiers, local);
|
|
39932
39877
|
} else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
39933
39878
|
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
39934
39879
|
}
|
|
39935
39880
|
}
|
|
39936
39881
|
}
|
|
39937
|
-
return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers : Debug.checkDefined(relativeSpecifiers);
|
|
39882
|
+
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);
|
|
39938
39883
|
}
|
|
39939
39884
|
function getInfo(importingSourceFileName, host) {
|
|
39940
39885
|
const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : true);
|
|
39941
39886
|
const sourceDirectory = getDirectoryPath(importingSourceFileName);
|
|
39942
39887
|
return { getCanonicalFileName, importingSourceFileName, sourceDirectory };
|
|
39943
39888
|
}
|
|
39944
|
-
function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }) {
|
|
39889
|
+
function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }, pathsOnly) {
|
|
39945
39890
|
const { baseUrl, paths, rootDirs } = compilerOptions;
|
|
39891
|
+
if (pathsOnly && !paths) {
|
|
39892
|
+
return void 0;
|
|
39893
|
+
}
|
|
39946
39894
|
const { sourceDirectory, getCanonicalFileName } = info;
|
|
39947
39895
|
const relativePath = rootDirs && tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, ending, compilerOptions) || removeExtensionAndIndexPostFix(ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceDirectory, moduleFileName, getCanonicalFileName)), ending, compilerOptions);
|
|
39948
39896
|
if (!baseUrl && !paths || relativePreference === 0 /* Relative */) {
|
|
39949
|
-
return relativePath;
|
|
39897
|
+
return pathsOnly ? void 0 : relativePath;
|
|
39950
39898
|
}
|
|
39951
39899
|
const baseDirectory = getNormalizedAbsolutePath(getPathsBasePath(compilerOptions, host) || baseUrl, host.getCurrentDirectory());
|
|
39952
39900
|
const relativeToBaseUrl = getRelativePathIfInDirectory(moduleFileName, baseDirectory, getCanonicalFileName);
|
|
39953
39901
|
if (!relativeToBaseUrl) {
|
|
39954
|
-
return relativePath;
|
|
39902
|
+
return pathsOnly ? void 0 : relativePath;
|
|
39955
39903
|
}
|
|
39956
39904
|
const fromPaths = paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, getAllowedEndings(ending, compilerOptions, importMode), host, compilerOptions);
|
|
39957
|
-
|
|
39958
|
-
|
|
39905
|
+
if (pathsOnly) {
|
|
39906
|
+
return fromPaths;
|
|
39907
|
+
}
|
|
39908
|
+
const maybeNonRelative = fromPaths === void 0 && baseUrl !== void 0 ? removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) : fromPaths;
|
|
39909
|
+
if (!maybeNonRelative) {
|
|
39959
39910
|
return relativePath;
|
|
39960
39911
|
}
|
|
39961
|
-
if (relativePreference === 1 /* NonRelative */) {
|
|
39962
|
-
return
|
|
39912
|
+
if (relativePreference === 1 /* NonRelative */ && !pathIsRelative(maybeNonRelative)) {
|
|
39913
|
+
return maybeNonRelative;
|
|
39963
39914
|
}
|
|
39964
|
-
if (relativePreference === 3 /* ExternalNonRelative */) {
|
|
39915
|
+
if (relativePreference === 3 /* ExternalNonRelative */ && !pathIsRelative(maybeNonRelative)) {
|
|
39965
39916
|
const projectDirectory = compilerOptions.configFilePath ? toPath(getDirectoryPath(compilerOptions.configFilePath), host.getCurrentDirectory(), info.getCanonicalFileName) : info.getCanonicalFileName(host.getCurrentDirectory());
|
|
39966
39917
|
const modulePath = toPath(moduleFileName, projectDirectory, getCanonicalFileName);
|
|
39967
39918
|
const sourceIsInternal = startsWith(sourceDirectory, projectDirectory);
|
|
39968
39919
|
const targetIsInternal = startsWith(modulePath, projectDirectory);
|
|
39969
39920
|
if (sourceIsInternal && !targetIsInternal || !sourceIsInternal && targetIsInternal) {
|
|
39970
|
-
return
|
|
39921
|
+
return maybeNonRelative;
|
|
39971
39922
|
}
|
|
39972
39923
|
const nearestTargetPackageJson = getNearestAncestorDirectoryWithPackageJson(host, getDirectoryPath(modulePath));
|
|
39973
39924
|
const nearestSourcePackageJson = getNearestAncestorDirectoryWithPackageJson(host, sourceDirectory);
|
|
39974
39925
|
if (nearestSourcePackageJson !== nearestTargetPackageJson) {
|
|
39975
|
-
return
|
|
39926
|
+
return maybeNonRelative;
|
|
39976
39927
|
}
|
|
39977
39928
|
return relativePath;
|
|
39978
39929
|
}
|
|
39979
|
-
|
|
39980
|
-
Debug.assertNever(relativePreference);
|
|
39981
|
-
return isPathRelativeToParent(nonRelative) || countPathComponents(relativePath) < countPathComponents(nonRelative) ? relativePath : nonRelative;
|
|
39930
|
+
return isPathRelativeToParent(maybeNonRelative) || countPathComponents(relativePath) < countPathComponents(maybeNonRelative) ? relativePath : maybeNonRelative;
|
|
39982
39931
|
}
|
|
39983
39932
|
function countPathComponents(path) {
|
|
39984
39933
|
let count = 0;
|
|
@@ -40461,7 +40410,7 @@ ${lanes.join("\n")}
|
|
|
40461
40410
|
function SymbolLinks() {
|
|
40462
40411
|
}
|
|
40463
40412
|
function NodeLinks() {
|
|
40464
|
-
this.flags = 0
|
|
40413
|
+
this.flags = 0 /* None */;
|
|
40465
40414
|
}
|
|
40466
40415
|
function getNodeId(node) {
|
|
40467
40416
|
if (!node.id) {
|
|
@@ -41306,7 +41255,7 @@ ${lanes.join("\n")}
|
|
|
41306
41255
|
function createSymbol(flags, name, checkFlags) {
|
|
41307
41256
|
symbolCount++;
|
|
41308
41257
|
const symbol = new Symbol46(flags | 33554432 /* Transient */, name);
|
|
41309
|
-
symbol.checkFlags = checkFlags || 0
|
|
41258
|
+
symbol.checkFlags = checkFlags || 0 /* None */;
|
|
41310
41259
|
return symbol;
|
|
41311
41260
|
}
|
|
41312
41261
|
function getExcludedSymbolFlags(flags) {
|
|
@@ -43617,7 +43566,7 @@ ${lanes.join("\n")}
|
|
|
43617
43566
|
function createOriginType(flags) {
|
|
43618
43567
|
return new Type27(checker, flags);
|
|
43619
43568
|
}
|
|
43620
|
-
function createIntrinsicType(kind, intrinsicName, objectFlags = 0) {
|
|
43569
|
+
function createIntrinsicType(kind, intrinsicName, objectFlags = 0 /* None */) {
|
|
43621
43570
|
const type = createType(kind);
|
|
43622
43571
|
type.intrinsicName = intrinsicName;
|
|
43623
43572
|
type.objectFlags = objectFlags;
|
|
@@ -44112,25 +44061,22 @@ ${lanes.join("\n")}
|
|
|
44112
44061
|
const context = {
|
|
44113
44062
|
enclosingDeclaration,
|
|
44114
44063
|
flags: flags || 0 /* None */,
|
|
44115
|
-
tracker: tracker && tracker.trackSymbol ? tracker : {
|
|
44116
|
-
|
|
44117
|
-
|
|
44118
|
-
|
|
44119
|
-
|
|
44120
|
-
|
|
44121
|
-
getPackageJsonInfoCache: ()
|
|
44122
|
-
|
|
44123
|
-
|
|
44124
|
-
|
|
44125
|
-
|
|
44126
|
-
|
|
44127
|
-
|
|
44128
|
-
|
|
44129
|
-
|
|
44130
|
-
|
|
44131
|
-
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
44132
|
-
} : void 0
|
|
44133
|
-
},
|
|
44064
|
+
tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: () => false, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
|
|
44065
|
+
getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
|
|
44066
|
+
getCurrentDirectory: () => host.getCurrentDirectory(),
|
|
44067
|
+
getSymlinkCache: maybeBind(host, host.getSymlinkCache),
|
|
44068
|
+
getPackageJsonInfoCache: () => {
|
|
44069
|
+
var _a3;
|
|
44070
|
+
return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
|
|
44071
|
+
},
|
|
44072
|
+
useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
|
|
44073
|
+
redirectTargetsMap: host.redirectTargetsMap,
|
|
44074
|
+
getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
|
|
44075
|
+
isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
|
|
44076
|
+
fileExists: (fileName) => host.fileExists(fileName),
|
|
44077
|
+
getFileIncludeReasons: () => host.getFileIncludeReasons(),
|
|
44078
|
+
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
44079
|
+
} : void 0 },
|
|
44134
44080
|
encounteredError: false,
|
|
44135
44081
|
reportedDiagnostic: false,
|
|
44136
44082
|
visitedTypes: void 0,
|
|
@@ -50460,7 +50406,7 @@ ${lanes.join("\n")}
|
|
|
50460
50406
|
function containsArgumentsReference(declaration) {
|
|
50461
50407
|
const links = getNodeLinks(declaration);
|
|
50462
50408
|
if (links.containsArgumentsReference === void 0) {
|
|
50463
|
-
if (links.flags &
|
|
50409
|
+
if (links.flags & 512 /* CaptureArguments */) {
|
|
50464
50410
|
links.containsArgumentsReference = true;
|
|
50465
50411
|
} else {
|
|
50466
50412
|
links.containsArgumentsReference = traverse(declaration.body);
|
|
@@ -54360,7 +54306,7 @@ ${lanes.join("\n")}
|
|
|
54360
54306
|
return compareSignaturesRelated(
|
|
54361
54307
|
source,
|
|
54362
54308
|
target,
|
|
54363
|
-
ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0
|
|
54309
|
+
ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0 /* None */,
|
|
54364
54310
|
false,
|
|
54365
54311
|
void 0,
|
|
54366
54312
|
void 0,
|
|
@@ -54594,7 +54540,9 @@ ${lanes.join("\n")}
|
|
|
54594
54540
|
if (relation === assignableRelation || relation === comparableRelation) {
|
|
54595
54541
|
if (s & 1 /* Any */)
|
|
54596
54542
|
return true;
|
|
54597
|
-
if (s &
|
|
54543
|
+
if (s & 8 /* Number */ && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */))
|
|
54544
|
+
return true;
|
|
54545
|
+
if (s & 256 /* NumberLiteral */ && !(s & 1024 /* EnumLiteral */) && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */ && source.value === target.value))
|
|
54598
54546
|
return true;
|
|
54599
54547
|
if (isUnknownLikeUnionType(target))
|
|
54600
54548
|
return true;
|
|
@@ -57640,7 +57588,7 @@ ${lanes.join("\n")}
|
|
|
57640
57588
|
pos = p;
|
|
57641
57589
|
}
|
|
57642
57590
|
}
|
|
57643
|
-
function inferTypes(inferences, originalSource, originalTarget, priority = 0
|
|
57591
|
+
function inferTypes(inferences, originalSource, originalTarget, priority = 0 /* None */, contravariant = false) {
|
|
57644
57592
|
let bivariant = false;
|
|
57645
57593
|
let propagationType;
|
|
57646
57594
|
let inferencePriority = 2048 /* MaxValue */;
|
|
@@ -60082,8 +60030,8 @@ ${lanes.join("\n")}
|
|
|
60082
60030
|
}
|
|
60083
60031
|
const parent2 = getRootDeclaration(symbol.valueDeclaration).parent;
|
|
60084
60032
|
const links = getNodeLinks(parent2);
|
|
60085
|
-
if (!(links.flags &
|
|
60086
|
-
links.flags |=
|
|
60033
|
+
if (!(links.flags & 524288 /* AssignmentsMarked */)) {
|
|
60034
|
+
links.flags |= 524288 /* AssignmentsMarked */;
|
|
60087
60035
|
if (!hasParentWithAssignmentsMarked(parent2)) {
|
|
60088
60036
|
markNodeAssignments(parent2);
|
|
60089
60037
|
}
|
|
@@ -60091,7 +60039,7 @@ ${lanes.join("\n")}
|
|
|
60091
60039
|
return symbol.isAssigned || false;
|
|
60092
60040
|
}
|
|
60093
60041
|
function hasParentWithAssignmentsMarked(node) {
|
|
60094
|
-
return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags &
|
|
60042
|
+
return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 524288 /* AssignmentsMarked */));
|
|
60095
60043
|
}
|
|
60096
60044
|
function markNodeAssignments(node) {
|
|
60097
60045
|
if (node.kind === 79 /* Identifier */) {
|
|
@@ -60170,11 +60118,11 @@ ${lanes.join("\n")}
|
|
|
60170
60118
|
const parent2 = declaration.parent.parent;
|
|
60171
60119
|
if (parent2.kind === 257 /* VariableDeclaration */ && getCombinedNodeFlags(declaration) & 2 /* Const */ || parent2.kind === 166 /* Parameter */) {
|
|
60172
60120
|
const links = getNodeLinks(parent2);
|
|
60173
|
-
if (!(links.flags &
|
|
60174
|
-
links.flags |=
|
|
60121
|
+
if (!(links.flags & 16777216 /* InCheckIdentifier */)) {
|
|
60122
|
+
links.flags |= 16777216 /* InCheckIdentifier */;
|
|
60175
60123
|
const parentType = getTypeForBindingElementParent(parent2, 0 /* Normal */);
|
|
60176
60124
|
const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
|
|
60177
|
-
links.flags &= ~
|
|
60125
|
+
links.flags &= ~16777216 /* InCheckIdentifier */;
|
|
60178
60126
|
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent2.kind === 166 /* Parameter */ && isSymbolAssigned(symbol))) {
|
|
60179
60127
|
const pattern = declaration.parent;
|
|
60180
60128
|
const narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, void 0, location.flowNode);
|
|
@@ -60224,7 +60172,7 @@ ${lanes.join("\n")}
|
|
|
60224
60172
|
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);
|
|
60225
60173
|
}
|
|
60226
60174
|
}
|
|
60227
|
-
getNodeLinks(container).flags |=
|
|
60175
|
+
getNodeLinks(container).flags |= 512 /* CaptureArguments */;
|
|
60228
60176
|
return getTypeOfSymbol(symbol);
|
|
60229
60177
|
}
|
|
60230
60178
|
if (shouldMarkIdentifierAliasReferenced(node)) {
|
|
@@ -60241,8 +60189,8 @@ ${lanes.join("\n")}
|
|
|
60241
60189
|
let container = getContainingClass(node);
|
|
60242
60190
|
while (container !== void 0) {
|
|
60243
60191
|
if (container === declaration && container.name !== node) {
|
|
60244
|
-
getNodeLinks(declaration).flags |=
|
|
60245
|
-
getNodeLinks(node).flags |=
|
|
60192
|
+
getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */;
|
|
60193
|
+
getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */;
|
|
60246
60194
|
break;
|
|
60247
60195
|
}
|
|
60248
60196
|
container = getContainingClass(container);
|
|
@@ -60252,8 +60200,8 @@ ${lanes.join("\n")}
|
|
|
60252
60200
|
while (container.kind !== 308 /* SourceFile */) {
|
|
60253
60201
|
if (container.parent === declaration) {
|
|
60254
60202
|
if (isPropertyDeclaration(container) && isStatic(container) || isClassStaticBlockDeclaration(container)) {
|
|
60255
|
-
getNodeLinks(declaration).flags |=
|
|
60256
|
-
getNodeLinks(node).flags |=
|
|
60203
|
+
getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */;
|
|
60204
|
+
getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */;
|
|
60257
60205
|
}
|
|
60258
60206
|
break;
|
|
60259
60207
|
}
|
|
@@ -60367,7 +60315,7 @@ ${lanes.join("\n")}
|
|
|
60367
60315
|
const part = getPartOfForStatementContainingNode(node.parent, container);
|
|
60368
60316
|
if (part) {
|
|
60369
60317
|
const links = getNodeLinks(part);
|
|
60370
|
-
links.flags |=
|
|
60318
|
+
links.flags |= 8192 /* ContainsCapturedBlockScopeBinding */;
|
|
60371
60319
|
const capturedBindings = links.capturedBlockScopeBindings || (links.capturedBlockScopeBindings = []);
|
|
60372
60320
|
pushIfUnique(capturedBindings, symbol);
|
|
60373
60321
|
if (part === container.initializer) {
|
|
@@ -60377,19 +60325,19 @@ ${lanes.join("\n")}
|
|
|
60377
60325
|
}
|
|
60378
60326
|
}
|
|
60379
60327
|
if (capturesBlockScopeBindingInLoopBody) {
|
|
60380
|
-
getNodeLinks(enclosingIterationStatement).flags |=
|
|
60328
|
+
getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
|
|
60381
60329
|
}
|
|
60382
60330
|
}
|
|
60383
60331
|
if (isForStatement(container)) {
|
|
60384
60332
|
const varDeclList = getAncestor(symbol.valueDeclaration, 258 /* VariableDeclarationList */);
|
|
60385
60333
|
if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) {
|
|
60386
|
-
getNodeLinks(symbol.valueDeclaration).flags |=
|
|
60334
|
+
getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* NeedsLoopOutParameter */;
|
|
60387
60335
|
}
|
|
60388
60336
|
}
|
|
60389
|
-
getNodeLinks(symbol.valueDeclaration).flags |=
|
|
60337
|
+
getNodeLinks(symbol.valueDeclaration).flags |= 32768 /* BlockScopedBindingInLoop */;
|
|
60390
60338
|
}
|
|
60391
60339
|
if (isCaptured) {
|
|
60392
|
-
getNodeLinks(symbol.valueDeclaration).flags |=
|
|
60340
|
+
getNodeLinks(symbol.valueDeclaration).flags |= 16384 /* CapturedBlockScopedBinding */;
|
|
60393
60341
|
}
|
|
60394
60342
|
}
|
|
60395
60343
|
function isBindingCapturedByNode(node, decl) {
|
|
@@ -60606,23 +60554,23 @@ ${lanes.join("\n")}
|
|
|
60606
60554
|
checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class);
|
|
60607
60555
|
}
|
|
60608
60556
|
if (isStatic(container) || isCallExpression2) {
|
|
60609
|
-
nodeCheckFlag =
|
|
60557
|
+
nodeCheckFlag = 32 /* SuperStatic */;
|
|
60610
60558
|
if (!isCallExpression2 && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && (isPropertyDeclaration(container) || isClassStaticBlockDeclaration(container))) {
|
|
60611
60559
|
forEachEnclosingBlockScopeContainer(node.parent, (current) => {
|
|
60612
60560
|
if (!isSourceFile(current) || isExternalOrCommonJsModule(current)) {
|
|
60613
|
-
getNodeLinks(current).flags |=
|
|
60561
|
+
getNodeLinks(current).flags |= 8388608 /* ContainsSuperPropertyInStaticInitializer */;
|
|
60614
60562
|
}
|
|
60615
60563
|
});
|
|
60616
60564
|
}
|
|
60617
60565
|
} else {
|
|
60618
|
-
nodeCheckFlag =
|
|
60566
|
+
nodeCheckFlag = 16 /* SuperInstance */;
|
|
60619
60567
|
}
|
|
60620
60568
|
getNodeLinks(node).flags |= nodeCheckFlag;
|
|
60621
60569
|
if (container.kind === 171 /* MethodDeclaration */ && inAsyncFunction) {
|
|
60622
60570
|
if (isSuperProperty(node.parent) && isAssignmentTarget(node.parent)) {
|
|
60623
|
-
getNodeLinks(container).flags |=
|
|
60571
|
+
getNodeLinks(container).flags |= 256 /* MethodWithSuperPropertyAssignmentInAsync */;
|
|
60624
60572
|
} else {
|
|
60625
|
-
getNodeLinks(container).flags |=
|
|
60573
|
+
getNodeLinks(container).flags |= 128 /* MethodWithSuperPropertyAccessInAsync */;
|
|
60626
60574
|
}
|
|
60627
60575
|
}
|
|
60628
60576
|
if (needToCaptureLexicalThis) {
|
|
@@ -60650,7 +60598,7 @@ ${lanes.join("\n")}
|
|
|
60650
60598
|
error(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments);
|
|
60651
60599
|
return errorType;
|
|
60652
60600
|
}
|
|
60653
|
-
return nodeCheckFlag ===
|
|
60601
|
+
return nodeCheckFlag === 32 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType);
|
|
60654
60602
|
function isLegalUsageOfSuperExpression(container2) {
|
|
60655
60603
|
if (!container2) {
|
|
60656
60604
|
return false;
|
|
@@ -61665,9 +61613,9 @@ ${lanes.join("\n")}
|
|
|
61665
61613
|
const container = getEnclosingBlockScopeContainer(node.parent.parent);
|
|
61666
61614
|
const enclosingIterationStatement = getEnclosingIterationStatement(container);
|
|
61667
61615
|
if (enclosingIterationStatement) {
|
|
61668
|
-
getNodeLinks(enclosingIterationStatement).flags |=
|
|
61669
|
-
getNodeLinks(node).flags |=
|
|
61670
|
-
getNodeLinks(node.parent.parent).flags |=
|
|
61616
|
+
getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
|
|
61617
|
+
getNodeLinks(node).flags |= 32768 /* BlockScopedBindingInLoop */;
|
|
61618
|
+
getNodeLinks(node.parent.parent).flags |= 32768 /* BlockScopedBindingInLoop */;
|
|
61671
61619
|
}
|
|
61672
61620
|
}
|
|
61673
61621
|
if (links.resolvedType.flags & 98304 /* Nullable */ || !isTypeAssignableToKind(links.resolvedType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */) && !isTypeAssignableTo(links.resolvedType, stringNumberSymbolType)) {
|
|
@@ -65654,10 +65602,10 @@ ${lanes.join("\n")}
|
|
|
65654
65602
|
}
|
|
65655
65603
|
function contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode) {
|
|
65656
65604
|
const links = getNodeLinks(node);
|
|
65657
|
-
if (!(links.flags &
|
|
65605
|
+
if (!(links.flags & 64 /* ContextChecked */)) {
|
|
65658
65606
|
const contextualSignature = getContextualSignature(node);
|
|
65659
|
-
if (!(links.flags &
|
|
65660
|
-
links.flags |=
|
|
65607
|
+
if (!(links.flags & 64 /* ContextChecked */)) {
|
|
65608
|
+
links.flags |= 64 /* ContextChecked */;
|
|
65661
65609
|
const signature = firstOrUndefined(getSignaturesOfType(getTypeOfSymbol(getSymbolOfNode(node)), 0 /* Call */));
|
|
65662
65610
|
if (!signature) {
|
|
65663
65611
|
return;
|
|
@@ -67647,13 +67595,13 @@ ${lanes.join("\n")}
|
|
|
67647
67595
|
function setNodeLinksForPrivateIdentifierScope(node) {
|
|
67648
67596
|
if (isPrivateIdentifier(node.name) && languageVersion < 99 /* ESNext */) {
|
|
67649
67597
|
for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) {
|
|
67650
|
-
getNodeLinks(lexicalScope).flags |=
|
|
67598
|
+
getNodeLinks(lexicalScope).flags |= 4194304 /* ContainsClassWithPrivateIdentifiers */;
|
|
67651
67599
|
}
|
|
67652
67600
|
if (isClassExpression(node.parent)) {
|
|
67653
67601
|
const enclosingIterationStatement = getEnclosingIterationStatement(node.parent);
|
|
67654
67602
|
if (enclosingIterationStatement) {
|
|
67655
|
-
getNodeLinks(node.name).flags |=
|
|
67656
|
-
getNodeLinks(enclosingIterationStatement).flags |=
|
|
67603
|
+
getNodeLinks(node.name).flags |= 32768 /* BlockScopedBindingInLoop */;
|
|
67604
|
+
getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
|
|
67657
67605
|
}
|
|
67658
67606
|
}
|
|
67659
67607
|
}
|
|
@@ -69248,7 +69196,7 @@ ${lanes.join("\n")}
|
|
|
69248
69196
|
}
|
|
69249
69197
|
function checkWeakMapSetCollision(node) {
|
|
69250
69198
|
const enclosingBlockScope = getEnclosingBlockScopeContainer(node);
|
|
69251
|
-
if (getNodeCheckFlags(enclosingBlockScope) &
|
|
69199
|
+
if (getNodeCheckFlags(enclosingBlockScope) & 4194304 /* ContainsClassWithPrivateIdentifiers */) {
|
|
69252
69200
|
Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name) && typeof node.name.escapedText === "string", "The target of a WeakMap/WeakSet collision check should be an identifier");
|
|
69253
69201
|
errorSkippedOn("noEmit", node, Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText);
|
|
69254
69202
|
}
|
|
@@ -69262,18 +69210,18 @@ ${lanes.join("\n")}
|
|
|
69262
69210
|
let hasCollision = false;
|
|
69263
69211
|
if (isClassExpression(node)) {
|
|
69264
69212
|
for (const member of node.members) {
|
|
69265
|
-
if (getNodeCheckFlags(member) &
|
|
69213
|
+
if (getNodeCheckFlags(member) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
|
|
69266
69214
|
hasCollision = true;
|
|
69267
69215
|
break;
|
|
69268
69216
|
}
|
|
69269
69217
|
}
|
|
69270
69218
|
} else if (isFunctionExpression(node)) {
|
|
69271
|
-
if (getNodeCheckFlags(node) &
|
|
69219
|
+
if (getNodeCheckFlags(node) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
|
|
69272
69220
|
hasCollision = true;
|
|
69273
69221
|
}
|
|
69274
69222
|
} else {
|
|
69275
69223
|
const container = getEnclosingBlockScopeContainer(node);
|
|
69276
|
-
if (container && getNodeCheckFlags(container) &
|
|
69224
|
+
if (container && getNodeCheckFlags(container) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
|
|
69277
69225
|
hasCollision = true;
|
|
69278
69226
|
}
|
|
69279
69227
|
}
|
|
@@ -70488,8 +70436,9 @@ ${lanes.join("\n")}
|
|
|
70488
70436
|
});
|
|
70489
70437
|
const containsArguments = containsArgumentsReference(node);
|
|
70490
70438
|
if (containsArguments) {
|
|
70491
|
-
const
|
|
70492
|
-
|
|
70439
|
+
const lastJSDocParamIndex = jsdocParameters.length - 1;
|
|
70440
|
+
const lastJSDocParam = jsdocParameters[lastJSDocParamIndex];
|
|
70441
|
+
if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
|
|
70493
70442
|
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));
|
|
70494
70443
|
}
|
|
70495
70444
|
} else {
|
|
@@ -71157,8 +71106,8 @@ ${lanes.join("\n")}
|
|
|
71157
71106
|
}
|
|
71158
71107
|
function computeEnumMemberValues(node) {
|
|
71159
71108
|
const nodeLinks2 = getNodeLinks(node);
|
|
71160
|
-
if (!(nodeLinks2.flags &
|
|
71161
|
-
nodeLinks2.flags |=
|
|
71109
|
+
if (!(nodeLinks2.flags & 1024 /* EnumValuesComputed */)) {
|
|
71110
|
+
nodeLinks2.flags |= 1024 /* EnumValuesComputed */;
|
|
71162
71111
|
let autoValue = 0;
|
|
71163
71112
|
for (const member of node.members) {
|
|
71164
71113
|
const value = computeMemberValue(member, autoValue);
|
|
@@ -71434,7 +71383,7 @@ ${lanes.join("\n")}
|
|
|
71434
71383
|
}
|
|
71435
71384
|
const mergedClass = getDeclarationOfKind(symbol, 260 /* ClassDeclaration */);
|
|
71436
71385
|
if (mergedClass && inSameLexicalScope(node, mergedClass)) {
|
|
71437
|
-
getNodeLinks(node).flags |=
|
|
71386
|
+
getNodeLinks(node).flags |= 2048 /* LexicalModuleMergesWithClass */;
|
|
71438
71387
|
}
|
|
71439
71388
|
}
|
|
71440
71389
|
if (isAmbientExternalModule) {
|
|
@@ -73065,8 +73014,8 @@ ${lanes.join("\n")}
|
|
|
73065
73014
|
const nodeLinks2 = getNodeLinks(symbol.valueDeclaration);
|
|
73066
73015
|
if (resolveName(container.parent, symbol.escapedName, 111551 /* Value */, void 0, void 0, false)) {
|
|
73067
73016
|
links.isDeclarationWithCollidingName = true;
|
|
73068
|
-
} else if (nodeLinks2.flags &
|
|
73069
|
-
const isDeclaredInLoop = nodeLinks2.flags &
|
|
73017
|
+
} else if (nodeLinks2.flags & 16384 /* CapturedBlockScopedBinding */) {
|
|
73018
|
+
const isDeclaredInLoop = nodeLinks2.flags & 32768 /* BlockScopedBindingInLoop */;
|
|
73070
73019
|
const inLoopInitializer = isIterationStatement(container, false);
|
|
73071
73020
|
const inLoopBodyBlock = container.kind === 238 /* Block */ && isIterationStatement(container.parent, false);
|
|
73072
73021
|
links.isDeclarationWithCollidingName = !isBlockScopedContainerTopLevel(container) && (!isDeclaredInLoop || !inLoopInitializer && !inLoopBodyBlock);
|
|
@@ -75368,6 +75317,7 @@ ${lanes.join("\n")}
|
|
|
75368
75317
|
return CheckMode3;
|
|
75369
75318
|
})(CheckMode || {});
|
|
75370
75319
|
SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => {
|
|
75320
|
+
SignatureCheckMode3[SignatureCheckMode3["None"] = 0] = "None";
|
|
75371
75321
|
SignatureCheckMode3[SignatureCheckMode3["BivariantCallback"] = 1] = "BivariantCallback";
|
|
75372
75322
|
SignatureCheckMode3[SignatureCheckMode3["StrictCallback"] = 2] = "StrictCallback";
|
|
75373
75323
|
SignatureCheckMode3[SignatureCheckMode3["IgnoreReturnTypes"] = 4] = "IgnoreReturnTypes";
|
|
@@ -76641,10 +76591,10 @@ ${lanes.join("\n")}
|
|
|
76641
76591
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
76642
76592
|
);
|
|
76643
76593
|
},
|
|
76644
|
-
[308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context,
|
|
76594
|
+
[308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
76645
76595
|
return context.factory.updateSourceFile(
|
|
76646
76596
|
node,
|
|
76647
|
-
visitLexicalEnvironment(node.statements, visitor, context
|
|
76597
|
+
visitLexicalEnvironment(node.statements, visitor, context)
|
|
76648
76598
|
);
|
|
76649
76599
|
},
|
|
76650
76600
|
[353 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -80372,12 +80322,12 @@ ${lanes.join("\n")}
|
|
|
80372
80322
|
function visitClassExpressionInNewClassLexicalEnvironment(node, facts) {
|
|
80373
80323
|
const isDecoratedClassDeclaration = !!(facts & 1 /* ClassWasDecorated */);
|
|
80374
80324
|
const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node);
|
|
80375
|
-
const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) &
|
|
80325
|
+
const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */;
|
|
80376
80326
|
let temp;
|
|
80377
80327
|
function createClassTempVar() {
|
|
80378
80328
|
const classCheckFlags = resolver.getNodeCheckFlags(node);
|
|
80379
|
-
const isClassWithConstructorReference2 = classCheckFlags &
|
|
80380
|
-
const requiresBlockScopedVar = classCheckFlags &
|
|
80329
|
+
const isClassWithConstructorReference2 = classCheckFlags & 1048576 /* ClassWithConstructorReference */;
|
|
80330
|
+
const requiresBlockScopedVar = classCheckFlags & 32768 /* BlockScopedBindingInLoop */;
|
|
80381
80331
|
return factory2.createTempVariable(requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, !!isClassWithConstructorReference2);
|
|
80382
80332
|
}
|
|
80383
80333
|
if (facts & 2 /* NeedsClassConstructorReference */) {
|
|
@@ -80890,7 +80840,7 @@ ${lanes.join("\n")}
|
|
|
80890
80840
|
}
|
|
80891
80841
|
function trySubstituteClassAlias(node) {
|
|
80892
80842
|
if (enabledSubstitutions & 1 /* ClassAliases */) {
|
|
80893
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
80843
|
+
if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) {
|
|
80894
80844
|
const declaration = resolver.getReferencedValueDeclaration(node);
|
|
80895
80845
|
if (declaration) {
|
|
80896
80846
|
const classAlias = classAliases[declaration.id];
|
|
@@ -80913,7 +80863,7 @@ ${lanes.join("\n")}
|
|
|
80913
80863
|
const alreadyTransformed = isAssignmentExpression(innerExpression) && isGeneratedIdentifier(innerExpression.left);
|
|
80914
80864
|
if (!alreadyTransformed && !inlinable && shouldHoist) {
|
|
80915
80865
|
const generatedName = factory2.getGeneratedNameForNode(name);
|
|
80916
|
-
if (resolver.getNodeCheckFlags(name) &
|
|
80866
|
+
if (resolver.getNodeCheckFlags(name) & 32768 /* BlockScopedBindingInLoop */) {
|
|
80917
80867
|
addBlockScopedVariable(generatedName);
|
|
80918
80868
|
} else {
|
|
80919
80869
|
hoistVariableDeclaration(generatedName);
|
|
@@ -81062,7 +81012,7 @@ ${lanes.join("\n")}
|
|
|
81062
81012
|
const { className } = getPrivateIdentifierEnvironment();
|
|
81063
81013
|
const prefix = className ? { prefix: "_", node: className, suffix: "_" } : "_";
|
|
81064
81014
|
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);
|
|
81065
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
81015
|
+
if (resolver.getNodeCheckFlags(node) & 32768 /* BlockScopedBindingInLoop */) {
|
|
81066
81016
|
addBlockScopedVariable(identifier);
|
|
81067
81017
|
} else {
|
|
81068
81018
|
hoistVariableDeclaration(identifier);
|
|
@@ -81946,7 +81896,7 @@ ${lanes.join("\n")}
|
|
|
81946
81896
|
}
|
|
81947
81897
|
}
|
|
81948
81898
|
function getClassAliasIfNeeded(node) {
|
|
81949
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
81899
|
+
if (resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */) {
|
|
81950
81900
|
enableSubstitutionForClassAliases();
|
|
81951
81901
|
const classAlias = factory2.createUniqueName(node.name && !isGeneratedIdentifier(node.name) ? idText(node.name) : "default");
|
|
81952
81902
|
classAliases[getOriginalNodeId(node)] = classAlias;
|
|
@@ -81980,7 +81930,7 @@ ${lanes.join("\n")}
|
|
|
81980
81930
|
}
|
|
81981
81931
|
function trySubstituteClassAlias(node) {
|
|
81982
81932
|
if (classAliases) {
|
|
81983
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
81933
|
+
if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) {
|
|
81984
81934
|
const declaration = resolver.getReferencedValueDeclaration(node);
|
|
81985
81935
|
if (declaration) {
|
|
81986
81936
|
const classAlias = classAliases[declaration.id];
|
|
@@ -82021,7 +81971,7 @@ ${lanes.join("\n")}
|
|
|
82021
81971
|
let capturedSuperProperties;
|
|
82022
81972
|
let hasSuperElementAccess;
|
|
82023
81973
|
const substitutedSuperAccessors = [];
|
|
82024
|
-
let contextFlags = 0
|
|
81974
|
+
let contextFlags = 0 /* None */;
|
|
82025
81975
|
const previousOnEmitNode = context.onEmitNode;
|
|
82026
81976
|
const previousOnSubstituteNode = context.onSubstituteNode;
|
|
82027
81977
|
context.onEmitNode = onEmitNode;
|
|
@@ -82348,7 +82298,7 @@ ${lanes.join("\n")}
|
|
|
82348
82298
|
hasSuperElementAccess = false;
|
|
82349
82299
|
let updated = visitFunctionBody(node.body, visitor, context);
|
|
82350
82300
|
const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration);
|
|
82351
|
-
const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (
|
|
82301
|
+
const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */) && (getFunctionFlags(originalMethod) & 3 /* AsyncGenerator */) !== 3 /* AsyncGenerator */;
|
|
82352
82302
|
if (emitSuperHelpers) {
|
|
82353
82303
|
enableSubstitutionForAsyncMethodsWithSuper();
|
|
82354
82304
|
if (capturedSuperProperties.size) {
|
|
@@ -82359,9 +82309,9 @@ ${lanes.join("\n")}
|
|
|
82359
82309
|
updated = factory2.updateBlock(updated, statements);
|
|
82360
82310
|
}
|
|
82361
82311
|
if (hasSuperElementAccess) {
|
|
82362
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
82312
|
+
if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
|
|
82363
82313
|
addEmitHelper(updated, advancedAsyncSuperHelper);
|
|
82364
|
-
} else if (resolver.getNodeCheckFlags(node) &
|
|
82314
|
+
} else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
|
|
82365
82315
|
addEmitHelper(updated, asyncSuperHelper);
|
|
82366
82316
|
}
|
|
82367
82317
|
}
|
|
@@ -82376,7 +82326,7 @@ ${lanes.join("\n")}
|
|
|
82376
82326
|
const nodeType = original.type;
|
|
82377
82327
|
const promiseConstructor = languageVersion < 2 /* ES2015 */ ? getPromiseConstructor(nodeType) : void 0;
|
|
82378
82328
|
const isArrowFunction2 = node.kind === 216 /* ArrowFunction */;
|
|
82379
|
-
const hasLexicalArguments = (resolver.getNodeCheckFlags(node) &
|
|
82329
|
+
const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 512 /* CaptureArguments */) !== 0;
|
|
82380
82330
|
const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;
|
|
82381
82331
|
enclosingFunctionParameterNames = /* @__PURE__ */ new Set();
|
|
82382
82332
|
for (const parameter of node.parameters) {
|
|
@@ -82403,7 +82353,7 @@ ${lanes.join("\n")}
|
|
|
82403
82353
|
)
|
|
82404
82354
|
);
|
|
82405
82355
|
insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
|
|
82406
|
-
const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (
|
|
82356
|
+
const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */);
|
|
82407
82357
|
if (emitSuperHelpers) {
|
|
82408
82358
|
enableSubstitutionForAsyncMethodsWithSuper();
|
|
82409
82359
|
if (capturedSuperProperties.size) {
|
|
@@ -82415,9 +82365,9 @@ ${lanes.join("\n")}
|
|
|
82415
82365
|
const block = factory2.createBlock(statements, true);
|
|
82416
82366
|
setTextRange(block, node.body);
|
|
82417
82367
|
if (emitSuperHelpers && hasSuperElementAccess) {
|
|
82418
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
82368
|
+
if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
|
|
82419
82369
|
addEmitHelper(block, advancedAsyncSuperHelper);
|
|
82420
|
-
} else if (resolver.getNodeCheckFlags(node) &
|
|
82370
|
+
} else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
|
|
82421
82371
|
addEmitHelper(block, asyncSuperHelper);
|
|
82422
82372
|
}
|
|
82423
82373
|
}
|
|
@@ -82477,7 +82427,7 @@ ${lanes.join("\n")}
|
|
|
82477
82427
|
}
|
|
82478
82428
|
function onEmitNode(hint, node, emitCallback) {
|
|
82479
82429
|
if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {
|
|
82480
|
-
const superContainerFlags = resolver.getNodeCheckFlags(node) & (
|
|
82430
|
+
const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */);
|
|
82481
82431
|
if (superContainerFlags !== enclosingSuperContainerFlags) {
|
|
82482
82432
|
const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;
|
|
82483
82433
|
enclosingSuperContainerFlags = superContainerFlags;
|
|
@@ -82553,7 +82503,7 @@ ${lanes.join("\n")}
|
|
|
82553
82503
|
return kind === 260 /* ClassDeclaration */ || kind === 173 /* Constructor */ || kind === 171 /* MethodDeclaration */ || kind === 174 /* GetAccessor */ || kind === 175 /* SetAccessor */;
|
|
82554
82504
|
}
|
|
82555
82505
|
function createSuperElementAccessInAsyncMethod(argumentExpression, location) {
|
|
82556
|
-
if (enclosingSuperContainerFlags &
|
|
82506
|
+
if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
|
|
82557
82507
|
return setTextRange(
|
|
82558
82508
|
factory2.createPropertyAccessExpression(
|
|
82559
82509
|
factory2.createCallExpression(
|
|
@@ -82578,7 +82528,7 @@ ${lanes.join("\n")}
|
|
|
82578
82528
|
}
|
|
82579
82529
|
}
|
|
82580
82530
|
function createSuperAccessVariableStatement(factory2, resolver, node, names) {
|
|
82581
|
-
const hasBinding = (resolver.getNodeCheckFlags(node) &
|
|
82531
|
+
const hasBinding = (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) !== 0;
|
|
82582
82532
|
const accessors = [];
|
|
82583
82533
|
names.forEach((_, key) => {
|
|
82584
82534
|
const name = unescapeLeadingUnderscores(key);
|
|
@@ -83522,7 +83472,7 @@ ${lanes.join("\n")}
|
|
|
83522
83472
|
!!(hierarchyFacts & 1 /* HasLexicalThis */)
|
|
83523
83473
|
)
|
|
83524
83474
|
);
|
|
83525
|
-
const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (
|
|
83475
|
+
const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */);
|
|
83526
83476
|
if (emitSuperHelpers) {
|
|
83527
83477
|
enableSubstitutionForAsyncMethodsWithSuper();
|
|
83528
83478
|
const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties);
|
|
@@ -83533,9 +83483,9 @@ ${lanes.join("\n")}
|
|
|
83533
83483
|
insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
|
|
83534
83484
|
const block = factory2.updateBlock(node.body, statements);
|
|
83535
83485
|
if (emitSuperHelpers && hasSuperElementAccess) {
|
|
83536
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
83486
|
+
if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
|
|
83537
83487
|
addEmitHelper(block, advancedAsyncSuperHelper);
|
|
83538
|
-
} else if (resolver.getNodeCheckFlags(node) &
|
|
83488
|
+
} else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
|
|
83539
83489
|
addEmitHelper(block, asyncSuperHelper);
|
|
83540
83490
|
}
|
|
83541
83491
|
}
|
|
@@ -83645,7 +83595,7 @@ ${lanes.join("\n")}
|
|
|
83645
83595
|
}
|
|
83646
83596
|
function onEmitNode(hint, node, emitCallback) {
|
|
83647
83597
|
if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {
|
|
83648
|
-
const superContainerFlags = resolver.getNodeCheckFlags(node) & (
|
|
83598
|
+
const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */);
|
|
83649
83599
|
if (superContainerFlags !== enclosingSuperContainerFlags) {
|
|
83650
83600
|
const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;
|
|
83651
83601
|
enclosingSuperContainerFlags = superContainerFlags;
|
|
@@ -83721,7 +83671,7 @@ ${lanes.join("\n")}
|
|
|
83721
83671
|
return kind === 260 /* ClassDeclaration */ || kind === 173 /* Constructor */ || kind === 171 /* MethodDeclaration */ || kind === 174 /* GetAccessor */ || kind === 175 /* SetAccessor */;
|
|
83722
83672
|
}
|
|
83723
83673
|
function createSuperElementAccessInAsyncMethod(argumentExpression, location) {
|
|
83724
|
-
if (enclosingSuperContainerFlags &
|
|
83674
|
+
if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
|
|
83725
83675
|
return setTextRange(
|
|
83726
83676
|
factory2.createPropertyAccessExpression(
|
|
83727
83677
|
factory2.createCallExpression(
|
|
@@ -86120,8 +86070,8 @@ ${lanes.join("\n")}
|
|
|
86120
86070
|
}
|
|
86121
86071
|
function shouldEmitExplicitInitializerForLetDeclaration(node) {
|
|
86122
86072
|
const flags = resolver.getNodeCheckFlags(node);
|
|
86123
|
-
const isCapturedInFunction = flags &
|
|
86124
|
-
const isDeclaredInLoop = flags &
|
|
86073
|
+
const isCapturedInFunction = flags & 16384 /* CapturedBlockScopedBinding */;
|
|
86074
|
+
const isDeclaredInLoop = flags & 32768 /* BlockScopedBindingInLoop */;
|
|
86125
86075
|
const emittedAsTopLevel = (hierarchyFacts & 64 /* TopLevel */) !== 0 || isCapturedInFunction && isDeclaredInLoop && (hierarchyFacts & 512 /* IterationStatementBlock */) !== 0;
|
|
86126
86076
|
const emitExplicitInitializer = !emittedAsTopLevel && (hierarchyFacts & 4096 /* ForInOrForOfStatement */) === 0 && (!resolver.isDeclarationWithCollidingName(node) || isDeclaredInLoop && !isCapturedInFunction && (hierarchyFacts & (2048 /* ForStatement */ | 4096 /* ForInOrForOfStatement */)) === 0);
|
|
86127
86077
|
return emitExplicitInitializer;
|
|
@@ -86482,7 +86432,7 @@ ${lanes.join("\n")}
|
|
|
86482
86432
|
return factory2.inlineExpressions(expressions);
|
|
86483
86433
|
}
|
|
86484
86434
|
function shouldConvertPartOfIterationStatement(node) {
|
|
86485
|
-
return (resolver.getNodeCheckFlags(node) &
|
|
86435
|
+
return (resolver.getNodeCheckFlags(node) & 8192 /* ContainsCapturedBlockScopeBinding */) !== 0;
|
|
86486
86436
|
}
|
|
86487
86437
|
function shouldConvertInitializerOfForStatement(node) {
|
|
86488
86438
|
return isForStatement(node) && !!node.initializer && shouldConvertPartOfIterationStatement(node.initializer);
|
|
@@ -86497,7 +86447,7 @@ ${lanes.join("\n")}
|
|
|
86497
86447
|
return shouldConvertBodyOfIterationStatement(node) || shouldConvertInitializerOfForStatement(node);
|
|
86498
86448
|
}
|
|
86499
86449
|
function shouldConvertBodyOfIterationStatement(node) {
|
|
86500
|
-
return (resolver.getNodeCheckFlags(node) &
|
|
86450
|
+
return (resolver.getNodeCheckFlags(node) & 4096 /* LoopWithCapturedBlockScopedBinding */) !== 0;
|
|
86501
86451
|
}
|
|
86502
86452
|
function hoistVariableDeclarationDeclaredInConvertedLoop(state, node) {
|
|
86503
86453
|
if (!state.hoistedLocalVariables) {
|
|
@@ -86958,10 +86908,10 @@ ${lanes.join("\n")}
|
|
|
86958
86908
|
} else {
|
|
86959
86909
|
loopParameters.push(factory2.createParameterDeclaration(void 0, void 0, name));
|
|
86960
86910
|
const checkFlags = resolver.getNodeCheckFlags(decl);
|
|
86961
|
-
if (checkFlags &
|
|
86911
|
+
if (checkFlags & 262144 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) {
|
|
86962
86912
|
const outParamName = factory2.createUniqueName("out_" + idText(name));
|
|
86963
|
-
let flags = 0
|
|
86964
|
-
if (checkFlags &
|
|
86913
|
+
let flags = 0 /* None */;
|
|
86914
|
+
if (checkFlags & 262144 /* NeedsLoopOutParameter */) {
|
|
86965
86915
|
flags |= 1 /* Body */;
|
|
86966
86916
|
}
|
|
86967
86917
|
if (isForStatement(container)) {
|
|
@@ -94953,7 +94903,7 @@ ${lanes.join("\n")}
|
|
|
94953
94903
|
const sourceMap = sourceMapGenerator.toString();
|
|
94954
94904
|
writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap, false, sourceFiles);
|
|
94955
94905
|
if (printer.bundleFileInfo)
|
|
94956
|
-
printer.bundleFileInfo.mapHash = computeSignature(sourceMap,
|
|
94906
|
+
printer.bundleFileInfo.mapHash = computeSignature(sourceMap, host);
|
|
94957
94907
|
}
|
|
94958
94908
|
} else {
|
|
94959
94909
|
writer.writeLine();
|
|
@@ -94961,7 +94911,7 @@ ${lanes.join("\n")}
|
|
|
94961
94911
|
const text = writer.getText();
|
|
94962
94912
|
writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform2.diagnostics });
|
|
94963
94913
|
if (printer.bundleFileInfo)
|
|
94964
|
-
printer.bundleFileInfo.hash = computeSignature(text,
|
|
94914
|
+
printer.bundleFileInfo.hash = computeSignature(text, host);
|
|
94965
94915
|
writer.clear();
|
|
94966
94916
|
}
|
|
94967
94917
|
function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) {
|
|
@@ -95065,7 +95015,6 @@ ${lanes.join("\n")}
|
|
|
95065
95015
|
return result;
|
|
95066
95016
|
}
|
|
95067
95017
|
function emitUsingBuildInfoWorker(config, host, getCommandLine, customTransformers) {
|
|
95068
|
-
const createHash = maybeBind(host, host.createHash);
|
|
95069
95018
|
const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle(config.options, false);
|
|
95070
95019
|
const buildInfo = host.getBuildInfo(buildInfoPath, config.options.configFilePath);
|
|
95071
95020
|
if (!buildInfo)
|
|
@@ -95075,22 +95024,22 @@ ${lanes.join("\n")}
|
|
|
95075
95024
|
const jsFileText = host.readFile(Debug.checkDefined(jsFilePath));
|
|
95076
95025
|
if (!jsFileText)
|
|
95077
95026
|
return jsFilePath;
|
|
95078
|
-
if (computeSignature(jsFileText,
|
|
95027
|
+
if (computeSignature(jsFileText, host) !== buildInfo.bundle.js.hash)
|
|
95079
95028
|
return jsFilePath;
|
|
95080
95029
|
const sourceMapText = sourceMapFilePath && host.readFile(sourceMapFilePath);
|
|
95081
95030
|
if (sourceMapFilePath && !sourceMapText || config.options.inlineSourceMap)
|
|
95082
95031
|
return sourceMapFilePath || "inline sourcemap decoding";
|
|
95083
|
-
if (sourceMapFilePath && computeSignature(sourceMapText,
|
|
95032
|
+
if (sourceMapFilePath && computeSignature(sourceMapText, host) !== buildInfo.bundle.js.mapHash)
|
|
95084
95033
|
return sourceMapFilePath;
|
|
95085
95034
|
const declarationText = declarationFilePath && host.readFile(declarationFilePath);
|
|
95086
95035
|
if (declarationFilePath && !declarationText)
|
|
95087
95036
|
return declarationFilePath;
|
|
95088
|
-
if (declarationFilePath && computeSignature(declarationText,
|
|
95037
|
+
if (declarationFilePath && computeSignature(declarationText, host) !== buildInfo.bundle.dts.hash)
|
|
95089
95038
|
return declarationFilePath;
|
|
95090
95039
|
const declarationMapText = declarationMapPath && host.readFile(declarationMapPath);
|
|
95091
95040
|
if (declarationMapPath && !declarationMapText || config.options.inlineSourceMap)
|
|
95092
95041
|
return declarationMapPath || "inline sourcemap decoding";
|
|
95093
|
-
if (declarationMapPath && computeSignature(declarationMapText,
|
|
95042
|
+
if (declarationMapPath && computeSignature(declarationMapText, host) !== buildInfo.bundle.dts.mapHash)
|
|
95094
95043
|
return declarationMapPath;
|
|
95095
95044
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
|
|
95096
95045
|
const ownPrependInput = createInputFilesWithFileTexts(
|
|
@@ -95160,7 +95109,7 @@ ${lanes.join("\n")}
|
|
|
95160
95109
|
getBuildInfo: (bundle) => {
|
|
95161
95110
|
const program = buildInfo.program;
|
|
95162
95111
|
if (program && changedDtsText !== void 0 && config.options.composite) {
|
|
95163
|
-
program.outSignature = computeSignature(changedDtsText,
|
|
95112
|
+
program.outSignature = computeSignature(changedDtsText, host, changedDtsData);
|
|
95164
95113
|
}
|
|
95165
95114
|
const { js, dts, sourceFiles } = buildInfo.bundle;
|
|
95166
95115
|
bundle.js.sources = js.sources;
|
|
@@ -95173,7 +95122,7 @@ ${lanes.join("\n")}
|
|
|
95173
95122
|
getSourceFileFromReference: returnUndefined,
|
|
95174
95123
|
redirectTargetsMap: createMultiMap(),
|
|
95175
95124
|
getFileIncludeReasons: notImplemented,
|
|
95176
|
-
createHash
|
|
95125
|
+
createHash: maybeBind(host, host.createHash)
|
|
95177
95126
|
};
|
|
95178
95127
|
emitFiles(
|
|
95179
95128
|
notImplementedResolver,
|
|
@@ -103368,7 +103317,7 @@ ${lanes.join("\n")}
|
|
|
103368
103317
|
return oldState && !oldState.referencedMap === !newReferencedMap;
|
|
103369
103318
|
}
|
|
103370
103319
|
BuilderState2.canReuseOldState = canReuseOldState;
|
|
103371
|
-
function create(newProgram,
|
|
103320
|
+
function create(newProgram, oldState, disableUseFileVersionAsSignature) {
|
|
103372
103321
|
var _a2, _b, _c;
|
|
103373
103322
|
const fileInfos = /* @__PURE__ */ new Map();
|
|
103374
103323
|
const options = newProgram.getCompilerOptions();
|
|
@@ -103376,6 +103325,7 @@ ${lanes.join("\n")}
|
|
|
103376
103325
|
const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
|
|
103377
103326
|
const exportedModulesMap = referencedMap ? createManyToManyPathMap() : void 0;
|
|
103378
103327
|
const useOldState = canReuseOldState(referencedMap, oldState);
|
|
103328
|
+
const getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames());
|
|
103379
103329
|
newProgram.getTypeChecker();
|
|
103380
103330
|
for (const sourceFile of newProgram.getSourceFiles()) {
|
|
103381
103331
|
const version2 = Debug.checkDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set");
|
|
@@ -103414,30 +103364,29 @@ ${lanes.join("\n")}
|
|
|
103414
103364
|
state.allFileNames = void 0;
|
|
103415
103365
|
}
|
|
103416
103366
|
BuilderState2.releaseCache = releaseCache2;
|
|
103417
|
-
function getFilesAffectedBy(state, programOfThisState, path, cancellationToken,
|
|
103367
|
+
function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, host) {
|
|
103418
103368
|
var _a2, _b;
|
|
103419
103369
|
const result = getFilesAffectedByWithOldState(
|
|
103420
103370
|
state,
|
|
103421
103371
|
programOfThisState,
|
|
103422
103372
|
path,
|
|
103423
103373
|
cancellationToken,
|
|
103424
|
-
|
|
103425
|
-
getCanonicalFileName
|
|
103374
|
+
host
|
|
103426
103375
|
);
|
|
103427
103376
|
(_a2 = state.oldSignatures) == null ? void 0 : _a2.clear();
|
|
103428
103377
|
(_b = state.oldExportedModulesMap) == null ? void 0 : _b.clear();
|
|
103429
103378
|
return result;
|
|
103430
103379
|
}
|
|
103431
103380
|
BuilderState2.getFilesAffectedBy = getFilesAffectedBy;
|
|
103432
|
-
function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken,
|
|
103381
|
+
function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host) {
|
|
103433
103382
|
const sourceFile = programOfThisState.getSourceFileByPath(path);
|
|
103434
103383
|
if (!sourceFile) {
|
|
103435
103384
|
return emptyArray;
|
|
103436
103385
|
}
|
|
103437
|
-
if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken,
|
|
103386
|
+
if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host)) {
|
|
103438
103387
|
return [sourceFile];
|
|
103439
103388
|
}
|
|
103440
|
-
return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken,
|
|
103389
|
+
return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host);
|
|
103441
103390
|
}
|
|
103442
103391
|
BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
|
|
103443
103392
|
function updateSignatureOfFile(state, signature, path) {
|
|
@@ -103445,7 +103394,7 @@ ${lanes.join("\n")}
|
|
|
103445
103394
|
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
|
|
103446
103395
|
}
|
|
103447
103396
|
BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
|
|
103448
|
-
function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken,
|
|
103397
|
+
function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) {
|
|
103449
103398
|
var _a2;
|
|
103450
103399
|
if ((_a2 = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a2.has(sourceFile.resolvedPath))
|
|
103451
103400
|
return false;
|
|
@@ -103458,10 +103407,10 @@ ${lanes.join("\n")}
|
|
|
103458
103407
|
(fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => {
|
|
103459
103408
|
Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`);
|
|
103460
103409
|
latestSignature = computeSignatureWithDiagnostics(
|
|
103410
|
+
programOfThisState,
|
|
103461
103411
|
sourceFile,
|
|
103462
103412
|
text,
|
|
103463
|
-
|
|
103464
|
-
getCanonicalFileName,
|
|
103413
|
+
host,
|
|
103465
103414
|
data
|
|
103466
103415
|
);
|
|
103467
103416
|
if (latestSignature !== prevSignature) {
|
|
@@ -103600,7 +103549,7 @@ ${lanes.join("\n")}
|
|
|
103600
103549
|
}
|
|
103601
103550
|
return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
|
|
103602
103551
|
}
|
|
103603
|
-
function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken,
|
|
103552
|
+
function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, host) {
|
|
103604
103553
|
if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) {
|
|
103605
103554
|
return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
|
|
103606
103555
|
}
|
|
@@ -103616,7 +103565,7 @@ ${lanes.join("\n")}
|
|
|
103616
103565
|
if (!seenFileNamesMap.has(currentPath)) {
|
|
103617
103566
|
const currentSourceFile = programOfThisState.getSourceFileByPath(currentPath);
|
|
103618
103567
|
seenFileNamesMap.set(currentPath, currentSourceFile);
|
|
103619
|
-
if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken,
|
|
103568
|
+
if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, host)) {
|
|
103620
103569
|
queue.push(...getReferencedByPaths(state, currentSourceFile.resolvedPath));
|
|
103621
103570
|
}
|
|
103622
103571
|
}
|
|
@@ -103660,9 +103609,9 @@ ${lanes.join("\n")}
|
|
|
103660
103609
|
function hasSameKeys(map1, map2) {
|
|
103661
103610
|
return map1 === map2 || map1 !== void 0 && map2 !== void 0 && map1.size === map2.size && !forEachKey(map1, (key) => !map2.has(key));
|
|
103662
103611
|
}
|
|
103663
|
-
function createBuilderProgramState(newProgram,
|
|
103612
|
+
function createBuilderProgramState(newProgram, oldState, disableUseFileVersionAsSignature) {
|
|
103664
103613
|
var _a2, _b;
|
|
103665
|
-
const state = BuilderState.create(newProgram,
|
|
103614
|
+
const state = BuilderState.create(newProgram, oldState, disableUseFileVersionAsSignature);
|
|
103666
103615
|
state.program = newProgram;
|
|
103667
103616
|
const compilerOptions = newProgram.getCompilerOptions();
|
|
103668
103617
|
state.compilerOptions = compilerOptions;
|
|
@@ -103706,7 +103655,7 @@ ${lanes.join("\n")}
|
|
|
103706
103655
|
return;
|
|
103707
103656
|
const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);
|
|
103708
103657
|
if (diagnostics) {
|
|
103709
|
-
state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram
|
|
103658
|
+
state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram) : diagnostics);
|
|
103710
103659
|
if (!state.semanticDiagnosticsFromOldState) {
|
|
103711
103660
|
state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
|
|
103712
103661
|
}
|
|
@@ -103766,10 +103715,11 @@ ${lanes.join("\n")}
|
|
|
103766
103715
|
function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) {
|
|
103767
103716
|
return !!options.declarationMap === !!oldOptions.declarationMap ? oldEmitSignature : isString(oldEmitSignature) ? [oldEmitSignature] : oldEmitSignature[0];
|
|
103768
103717
|
}
|
|
103769
|
-
function convertToDiagnostics(diagnostics, newProgram
|
|
103718
|
+
function convertToDiagnostics(diagnostics, newProgram) {
|
|
103770
103719
|
if (!diagnostics.length)
|
|
103771
103720
|
return emptyArray;
|
|
103772
|
-
|
|
103721
|
+
let buildInfoDirectory;
|
|
103722
|
+
let getCanonicalFileName;
|
|
103773
103723
|
return diagnostics.map((diagnostic) => {
|
|
103774
103724
|
const result = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3);
|
|
103775
103725
|
result.reportsUnnecessary = diagnostic.reportsUnnecessary;
|
|
@@ -103781,7 +103731,8 @@ ${lanes.join("\n")}
|
|
|
103781
103731
|
return result;
|
|
103782
103732
|
});
|
|
103783
103733
|
function toPath3(path) {
|
|
103784
|
-
|
|
103734
|
+
buildInfoDirectory != null ? buildInfoDirectory : buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
|
|
103735
|
+
return toPath(path, buildInfoDirectory, getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames()));
|
|
103785
103736
|
}
|
|
103786
103737
|
}
|
|
103787
103738
|
function convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3) {
|
|
@@ -103823,7 +103774,7 @@ ${lanes.join("\n")}
|
|
|
103823
103774
|
function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) {
|
|
103824
103775
|
Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath));
|
|
103825
103776
|
}
|
|
103826
|
-
function getNextAffectedFile(state, cancellationToken,
|
|
103777
|
+
function getNextAffectedFile(state, cancellationToken, host) {
|
|
103827
103778
|
var _a2, _b;
|
|
103828
103779
|
while (true) {
|
|
103829
103780
|
const { affectedFiles } = state;
|
|
@@ -103839,8 +103790,6 @@ ${lanes.join("\n")}
|
|
|
103839
103790
|
state,
|
|
103840
103791
|
affectedFile,
|
|
103841
103792
|
cancellationToken,
|
|
103842
|
-
computeHash,
|
|
103843
|
-
getCanonicalFileName,
|
|
103844
103793
|
host
|
|
103845
103794
|
);
|
|
103846
103795
|
return affectedFile;
|
|
@@ -103868,8 +103817,7 @@ ${lanes.join("\n")}
|
|
|
103868
103817
|
program,
|
|
103869
103818
|
nextKey.value,
|
|
103870
103819
|
cancellationToken,
|
|
103871
|
-
|
|
103872
|
-
getCanonicalFileName
|
|
103820
|
+
host
|
|
103873
103821
|
);
|
|
103874
103822
|
state.currentChangedFilePath = nextKey.value;
|
|
103875
103823
|
state.affectedFilesIndex = 0;
|
|
@@ -103921,7 +103869,7 @@ ${lanes.join("\n")}
|
|
|
103921
103869
|
);
|
|
103922
103870
|
}
|
|
103923
103871
|
}
|
|
103924
|
-
function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken,
|
|
103872
|
+
function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) {
|
|
103925
103873
|
removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath);
|
|
103926
103874
|
if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) {
|
|
103927
103875
|
removeDiagnosticsOfLibraryFiles(state);
|
|
@@ -103930,8 +103878,7 @@ ${lanes.join("\n")}
|
|
|
103930
103878
|
Debug.checkDefined(state.program),
|
|
103931
103879
|
affectedFile,
|
|
103932
103880
|
cancellationToken,
|
|
103933
|
-
|
|
103934
|
-
getCanonicalFileName
|
|
103881
|
+
host
|
|
103935
103882
|
);
|
|
103936
103883
|
return;
|
|
103937
103884
|
}
|
|
@@ -103941,12 +103888,10 @@ ${lanes.join("\n")}
|
|
|
103941
103888
|
state,
|
|
103942
103889
|
affectedFile,
|
|
103943
103890
|
cancellationToken,
|
|
103944
|
-
computeHash,
|
|
103945
|
-
getCanonicalFileName,
|
|
103946
103891
|
host
|
|
103947
103892
|
);
|
|
103948
103893
|
}
|
|
103949
|
-
function handleDtsMayChangeOf(state, path, cancellationToken,
|
|
103894
|
+
function handleDtsMayChangeOf(state, path, cancellationToken, host) {
|
|
103950
103895
|
removeSemanticDiagnosticsOf(state, path);
|
|
103951
103896
|
if (!state.changedFilesSet.has(path)) {
|
|
103952
103897
|
const program = Debug.checkDefined(state.program);
|
|
@@ -103957,8 +103902,7 @@ ${lanes.join("\n")}
|
|
|
103957
103902
|
program,
|
|
103958
103903
|
sourceFile,
|
|
103959
103904
|
cancellationToken,
|
|
103960
|
-
|
|
103961
|
-
getCanonicalFileName,
|
|
103905
|
+
host,
|
|
103962
103906
|
!host.disableUseFileVersionAsSignature
|
|
103963
103907
|
);
|
|
103964
103908
|
if (getEmitDeclarations(state.compilerOptions)) {
|
|
@@ -103980,7 +103924,7 @@ ${lanes.join("\n")}
|
|
|
103980
103924
|
const newSignature = Debug.checkDefined(state.fileInfos.get(path)).signature;
|
|
103981
103925
|
return newSignature !== oldSignature;
|
|
103982
103926
|
}
|
|
103983
|
-
function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken,
|
|
103927
|
+
function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host) {
|
|
103984
103928
|
var _a2;
|
|
103985
103929
|
if (!((_a2 = state.fileInfos.get(filePath)) == null ? void 0 : _a2.affectsGlobalScope))
|
|
103986
103930
|
return false;
|
|
@@ -103988,14 +103932,12 @@ ${lanes.join("\n")}
|
|
|
103988
103932
|
state,
|
|
103989
103933
|
file.resolvedPath,
|
|
103990
103934
|
cancellationToken,
|
|
103991
|
-
computeHash,
|
|
103992
|
-
getCanonicalFileName,
|
|
103993
103935
|
host
|
|
103994
103936
|
));
|
|
103995
103937
|
removeDiagnosticsOfLibraryFiles(state);
|
|
103996
103938
|
return true;
|
|
103997
103939
|
}
|
|
103998
|
-
function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken,
|
|
103940
|
+
function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host) {
|
|
103999
103941
|
var _a2;
|
|
104000
103942
|
if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.resolvedPath))
|
|
104001
103943
|
return;
|
|
@@ -104009,9 +103951,9 @@ ${lanes.join("\n")}
|
|
|
104009
103951
|
const currentPath = queue.pop();
|
|
104010
103952
|
if (!seenFileNamesMap.has(currentPath)) {
|
|
104011
103953
|
seenFileNamesMap.set(currentPath, true);
|
|
104012
|
-
if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken,
|
|
103954
|
+
if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, host))
|
|
104013
103955
|
return;
|
|
104014
|
-
handleDtsMayChangeOf(state, currentPath, cancellationToken,
|
|
103956
|
+
handleDtsMayChangeOf(state, currentPath, cancellationToken, host);
|
|
104015
103957
|
if (isChangedSignature(state, currentPath)) {
|
|
104016
103958
|
const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath);
|
|
104017
103959
|
queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath));
|
|
@@ -104021,7 +103963,7 @@ ${lanes.join("\n")}
|
|
|
104021
103963
|
}
|
|
104022
103964
|
const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
|
|
104023
103965
|
(_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
|
|
104024
|
-
if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken,
|
|
103966
|
+
if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, host))
|
|
104025
103967
|
return true;
|
|
104026
103968
|
const references = state.referencedMap.getKeys(exportedFromPath);
|
|
104027
103969
|
return references && forEachKey(
|
|
@@ -104031,28 +103973,24 @@ ${lanes.join("\n")}
|
|
|
104031
103973
|
filePath,
|
|
104032
103974
|
seenFileAndExportsOfFile,
|
|
104033
103975
|
cancellationToken,
|
|
104034
|
-
computeHash,
|
|
104035
|
-
getCanonicalFileName,
|
|
104036
103976
|
host
|
|
104037
103977
|
)
|
|
104038
103978
|
);
|
|
104039
103979
|
});
|
|
104040
103980
|
}
|
|
104041
|
-
function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken,
|
|
103981
|
+
function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, host) {
|
|
104042
103982
|
var _a2, _b;
|
|
104043
103983
|
if (!tryAddToSet(seenFileAndExportsOfFile, filePath))
|
|
104044
103984
|
return void 0;
|
|
104045
|
-
if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken,
|
|
103985
|
+
if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host))
|
|
104046
103986
|
return true;
|
|
104047
|
-
handleDtsMayChangeOf(state, filePath, cancellationToken,
|
|
103987
|
+
handleDtsMayChangeOf(state, filePath, cancellationToken, host);
|
|
104048
103988
|
(_a2 = state.exportedModulesMap.getKeys(filePath)) == null ? void 0 : _a2.forEach(
|
|
104049
103989
|
(exportedFromPath) => handleDtsMayChangeOfFileAndExportsOfFile(
|
|
104050
103990
|
state,
|
|
104051
103991
|
exportedFromPath,
|
|
104052
103992
|
seenFileAndExportsOfFile,
|
|
104053
103993
|
cancellationToken,
|
|
104054
|
-
computeHash,
|
|
104055
|
-
getCanonicalFileName,
|
|
104056
103994
|
host
|
|
104057
103995
|
)
|
|
104058
103996
|
);
|
|
@@ -104061,8 +103999,6 @@ ${lanes.join("\n")}
|
|
|
104061
103999
|
state,
|
|
104062
104000
|
referencingFilePath,
|
|
104063
104001
|
cancellationToken,
|
|
104064
|
-
computeHash,
|
|
104065
|
-
getCanonicalFileName,
|
|
104066
104002
|
host
|
|
104067
104003
|
)
|
|
104068
104004
|
);
|
|
@@ -104091,9 +104027,10 @@ ${lanes.join("\n")}
|
|
|
104091
104027
|
function isProgramBundleEmitBuildInfo(info) {
|
|
104092
104028
|
return !!outFile(info.options || {});
|
|
104093
104029
|
}
|
|
104094
|
-
function getBuildInfo2(state,
|
|
104030
|
+
function getBuildInfo2(state, bundle) {
|
|
104095
104031
|
var _a2, _b, _c;
|
|
104096
104032
|
const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory();
|
|
104033
|
+
const getCanonicalFileName = createGetCanonicalFileName(state.program.useCaseSensitiveFileNames());
|
|
104097
104034
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
|
|
104098
104035
|
const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
|
|
104099
104036
|
const fileNames = [];
|
|
@@ -104312,8 +104249,9 @@ ${lanes.join("\n")}
|
|
|
104312
104249
|
function getTextHandlingSourceMapForSignature(text, data) {
|
|
104313
104250
|
return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text;
|
|
104314
104251
|
}
|
|
104315
|
-
function computeSignatureWithDiagnostics(sourceFile, text,
|
|
104316
|
-
var _a2;
|
|
104252
|
+
function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) {
|
|
104253
|
+
var _a2, _b;
|
|
104254
|
+
let getCanonicalFileName;
|
|
104317
104255
|
text = getTextHandlingSourceMapForSignature(text, data);
|
|
104318
104256
|
let sourceFileDirectory;
|
|
104319
104257
|
if ((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length) {
|
|
@@ -104321,7 +104259,7 @@ ${lanes.join("\n")}
|
|
|
104321
104259
|
(diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`
|
|
104322
104260
|
).join("\n");
|
|
104323
104261
|
}
|
|
104324
|
-
return (
|
|
104262
|
+
return ((_b = host.createHash) != null ? _b : generateDjb2Hash)(text);
|
|
104325
104263
|
function flattenDiagnosticMessageText2(diagnostic) {
|
|
104326
104264
|
return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? "" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText2).join("\n");
|
|
104327
104265
|
}
|
|
@@ -104330,11 +104268,16 @@ ${lanes.join("\n")}
|
|
|
104330
104268
|
return `(${diagnostic.start},${diagnostic.length})`;
|
|
104331
104269
|
if (sourceFileDirectory === void 0)
|
|
104332
104270
|
sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath);
|
|
104333
|
-
return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(
|
|
104271
|
+
return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(
|
|
104272
|
+
sourceFileDirectory,
|
|
104273
|
+
diagnostic.file.resolvedPath,
|
|
104274
|
+
getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(program.useCaseSensitiveFileNames())
|
|
104275
|
+
))}(${diagnostic.start},${diagnostic.length})`;
|
|
104334
104276
|
}
|
|
104335
104277
|
}
|
|
104336
|
-
function computeSignature(text,
|
|
104337
|
-
|
|
104278
|
+
function computeSignature(text, host, data) {
|
|
104279
|
+
var _a2;
|
|
104280
|
+
return ((_a2 = host.createHash) != null ? _a2 : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
|
|
104338
104281
|
}
|
|
104339
104282
|
function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) {
|
|
104340
104283
|
let oldState = oldProgram && oldProgram.getState();
|
|
@@ -104343,10 +104286,8 @@ ${lanes.join("\n")}
|
|
|
104343
104286
|
oldState = void 0;
|
|
104344
104287
|
return oldProgram;
|
|
104345
104288
|
}
|
|
104346
|
-
const
|
|
104347
|
-
|
|
104348
|
-
const state = createBuilderProgramState(newProgram, getCanonicalFileName, oldState, host.disableUseFileVersionAsSignature);
|
|
104349
|
-
newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, getCanonicalFileName, bundle);
|
|
104289
|
+
const state = createBuilderProgramState(newProgram, oldState, host.disableUseFileVersionAsSignature);
|
|
104290
|
+
newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, bundle);
|
|
104350
104291
|
newProgram = void 0;
|
|
104351
104292
|
oldProgram = void 0;
|
|
104352
104293
|
oldState = void 0;
|
|
@@ -104380,7 +104321,7 @@ ${lanes.join("\n")}
|
|
|
104380
104321
|
}
|
|
104381
104322
|
function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
|
|
104382
104323
|
var _a2, _b, _c, _d, _e;
|
|
104383
|
-
let affected = getNextAffectedFile(state, cancellationToken,
|
|
104324
|
+
let affected = getNextAffectedFile(state, cancellationToken, host);
|
|
104384
104325
|
const programEmitKind = getBuilderFileEmit(state.compilerOptions);
|
|
104385
104326
|
let emitKind = emitOnlyDtsFiles ? programEmitKind & 24 /* AllDts */ : programEmitKind;
|
|
104386
104327
|
if (!affected) {
|
|
@@ -104454,10 +104395,10 @@ ${lanes.join("\n")}
|
|
|
104454
104395
|
const info = state.fileInfos.get(file.resolvedPath);
|
|
104455
104396
|
if (info.signature === file.version) {
|
|
104456
104397
|
const signature = computeSignatureWithDiagnostics(
|
|
104398
|
+
state.program,
|
|
104457
104399
|
file,
|
|
104458
104400
|
text,
|
|
104459
|
-
|
|
104460
|
-
getCanonicalFileName,
|
|
104401
|
+
host,
|
|
104461
104402
|
data
|
|
104462
104403
|
);
|
|
104463
104404
|
if (!((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length))
|
|
@@ -104501,7 +104442,7 @@ ${lanes.join("\n")}
|
|
|
104501
104442
|
state.program.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
|
|
104502
104443
|
function handleNewSignature(oldSignatureFormat, newSignature) {
|
|
104503
104444
|
const oldSignature = !oldSignatureFormat || isString(oldSignatureFormat) ? oldSignatureFormat : oldSignatureFormat[0];
|
|
104504
|
-
newSignature != null ? newSignature : newSignature = computeSignature(text,
|
|
104445
|
+
newSignature != null ? newSignature : newSignature = computeSignature(text, host, data);
|
|
104505
104446
|
if (newSignature === oldSignature) {
|
|
104506
104447
|
if (oldSignatureFormat === oldSignature)
|
|
104507
104448
|
return void 0;
|
|
@@ -104557,7 +104498,7 @@ ${lanes.join("\n")}
|
|
|
104557
104498
|
}
|
|
104558
104499
|
function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) {
|
|
104559
104500
|
while (true) {
|
|
104560
|
-
const affected = getNextAffectedFile(state, cancellationToken,
|
|
104501
|
+
const affected = getNextAffectedFile(state, cancellationToken, host);
|
|
104561
104502
|
let result;
|
|
104562
104503
|
if (!affected)
|
|
104563
104504
|
return void 0;
|
|
@@ -105080,12 +105021,12 @@ ${lanes.join("\n")}
|
|
|
105080
105021
|
const resolved = getResolutionWithResolvedFileName(resolution);
|
|
105081
105022
|
trace(
|
|
105082
105023
|
host,
|
|
105083
|
-
loader === resolveModuleName2 ? (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.
|
|
105024
|
+
loader === resolveModuleName2 ? (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4 : Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved : (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,
|
|
105084
105025
|
name,
|
|
105085
105026
|
containingFile,
|
|
105086
105027
|
getDirectoryPath(containingFile),
|
|
105087
105028
|
resolved == null ? void 0 : resolved.resolvedFileName,
|
|
105088
|
-
(resolved == null ? void 0 : resolved.
|
|
105029
|
+
(resolved == null ? void 0 : resolved.packageId) && packageIdToString(resolved.packageId)
|
|
105089
105030
|
);
|
|
105090
105031
|
}
|
|
105091
105032
|
} else {
|
|
@@ -105110,11 +105051,11 @@ ${lanes.join("\n")}
|
|
|
105110
105051
|
const resolved = getResolutionWithResolvedFileName(resolution);
|
|
105111
105052
|
trace(
|
|
105112
105053
|
host,
|
|
105113
|
-
loader === resolveModuleName2 ? (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.
|
|
105054
|
+
loader === resolveModuleName2 ? (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved : (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,
|
|
105114
105055
|
name,
|
|
105115
105056
|
containingFile,
|
|
105116
105057
|
resolved == null ? void 0 : resolved.resolvedFileName,
|
|
105117
|
-
(resolved == null ? void 0 : resolved.
|
|
105058
|
+
(resolved == null ? void 0 : resolved.packageId) && packageIdToString(resolved.packageId)
|
|
105118
105059
|
);
|
|
105119
105060
|
}
|
|
105120
105061
|
}
|
|
@@ -116426,6 +116367,7 @@ ${lanes.join("\n")}
|
|
|
116426
116367
|
trace: maybeBind(host, host.trace),
|
|
116427
116368
|
resolveModuleNames: maybeBind(host, host.resolveModuleNames),
|
|
116428
116369
|
getModuleResolutionCache: maybeBind(host, host.getModuleResolutionCache),
|
|
116370
|
+
createHash: maybeBind(host, host.createHash),
|
|
116429
116371
|
resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives),
|
|
116430
116372
|
useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect),
|
|
116431
116373
|
getParsedCommandLine
|
|
@@ -129618,12 +129560,7 @@ ${lanes.join("\n")}
|
|
|
129618
129560
|
const checker = program.getTypeChecker();
|
|
129619
129561
|
const switchType = checker.getTypeAtLocation(caseBlock.parent.expression);
|
|
129620
129562
|
if (switchType && switchType.isUnion() && every(switchType.types, (type) => type.isLiteral())) {
|
|
129621
|
-
const tracker = newCaseClauseTracker(checker);
|
|
129622
|
-
for (const clause of clauses) {
|
|
129623
|
-
if (!isDefaultClause(clause)) {
|
|
129624
|
-
tracker.addClause(clause);
|
|
129625
|
-
}
|
|
129626
|
-
}
|
|
129563
|
+
const tracker = newCaseClauseTracker(checker, clauses);
|
|
129627
129564
|
const target = getEmitScriptTarget(options);
|
|
129628
129565
|
const quotePreference = getQuotePreference(sourceFile, preferences);
|
|
129629
129566
|
const importAdder = ts_codefix_exports.createImportAdder(sourceFile, program, preferences, host);
|
|
@@ -129699,43 +129636,44 @@ ${lanes.join("\n")}
|
|
|
129699
129636
|
}
|
|
129700
129637
|
return void 0;
|
|
129701
129638
|
}
|
|
129702
|
-
function newCaseClauseTracker(checker) {
|
|
129639
|
+
function newCaseClauseTracker(checker, clauses) {
|
|
129703
129640
|
const existingStrings = /* @__PURE__ */ new Set();
|
|
129704
129641
|
const existingNumbers = /* @__PURE__ */ new Set();
|
|
129705
129642
|
const existingBigInts = /* @__PURE__ */ new Set();
|
|
129706
|
-
|
|
129707
|
-
|
|
129708
|
-
|
|
129709
|
-
|
|
129710
|
-
|
|
129711
|
-
|
|
129712
|
-
|
|
129713
|
-
|
|
129714
|
-
|
|
129715
|
-
|
|
129716
|
-
|
|
129717
|
-
|
|
129718
|
-
|
|
129719
|
-
|
|
129720
|
-
|
|
129721
|
-
|
|
129722
|
-
|
|
129723
|
-
|
|
129724
|
-
|
|
129725
|
-
|
|
129643
|
+
for (const clause of clauses) {
|
|
129644
|
+
if (!isDefaultClause(clause)) {
|
|
129645
|
+
if (isLiteralExpression(clause.expression)) {
|
|
129646
|
+
const expression = clause.expression;
|
|
129647
|
+
switch (expression.kind) {
|
|
129648
|
+
case 14 /* NoSubstitutionTemplateLiteral */:
|
|
129649
|
+
case 10 /* StringLiteral */:
|
|
129650
|
+
existingStrings.add(expression.text);
|
|
129651
|
+
break;
|
|
129652
|
+
case 8 /* NumericLiteral */:
|
|
129653
|
+
existingNumbers.add(parseInt(expression.text));
|
|
129654
|
+
break;
|
|
129655
|
+
case 9 /* BigIntLiteral */:
|
|
129656
|
+
const parsedBigInt = parseBigInt(endsWith(expression.text, "n") ? expression.text.slice(0, -1) : expression.text);
|
|
129657
|
+
if (parsedBigInt) {
|
|
129658
|
+
existingBigInts.add(pseudoBigIntToString(parsedBigInt));
|
|
129659
|
+
}
|
|
129660
|
+
break;
|
|
129661
|
+
}
|
|
129662
|
+
} else {
|
|
129663
|
+
const symbol = checker.getSymbolAtLocation(clause.expression);
|
|
129664
|
+
if (symbol && symbol.valueDeclaration && isEnumMember(symbol.valueDeclaration)) {
|
|
129665
|
+
const enumValue = checker.getConstantValue(symbol.valueDeclaration);
|
|
129666
|
+
if (enumValue !== void 0) {
|
|
129667
|
+
addValue(enumValue);
|
|
129726
129668
|
}
|
|
129727
|
-
break;
|
|
129728
|
-
}
|
|
129729
|
-
} else {
|
|
129730
|
-
const symbol = checker.getSymbolAtLocation(clause.expression);
|
|
129731
|
-
if (symbol && symbol.valueDeclaration && isEnumMember(symbol.valueDeclaration)) {
|
|
129732
|
-
const enumValue = checker.getConstantValue(symbol.valueDeclaration);
|
|
129733
|
-
if (enumValue !== void 0) {
|
|
129734
|
-
addValue(enumValue);
|
|
129735
129669
|
}
|
|
129736
129670
|
}
|
|
129737
129671
|
}
|
|
129738
129672
|
}
|
|
129673
|
+
return {
|
|
129674
|
+
addValue,
|
|
129675
|
+
hasValue
|
|
129676
|
+
};
|
|
129739
129677
|
function addValue(value) {
|
|
129740
129678
|
switch (typeof value) {
|
|
129741
129679
|
case "string":
|
|
@@ -144911,6 +144849,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
144911
144849
|
init_ts4();
|
|
144912
144850
|
anyContext = emptyArray;
|
|
144913
144851
|
RuleAction = /* @__PURE__ */ ((RuleAction2) => {
|
|
144852
|
+
RuleAction2[RuleAction2["None"] = 0] = "None";
|
|
144914
144853
|
RuleAction2[RuleAction2["StopProcessingSpaceActions"] = 1] = "StopProcessingSpaceActions";
|
|
144915
144854
|
RuleAction2[RuleAction2["StopProcessingTokenActions"] = 2] = "StopProcessingTokenActions";
|
|
144916
144855
|
RuleAction2[RuleAction2["InsertSpace"] = 4] = "InsertSpace";
|
|
@@ -145566,7 +145505,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
145566
145505
|
return rulesMapCache;
|
|
145567
145506
|
}
|
|
145568
145507
|
function getRuleActionExclusion(ruleAction) {
|
|
145569
|
-
let mask2 = 0
|
|
145508
|
+
let mask2 = 0 /* None */;
|
|
145570
145509
|
if (ruleAction & 1 /* StopProcessingSpaceActions */) {
|
|
145571
145510
|
mask2 |= 28 /* ModifySpaceAction */;
|
|
145572
145511
|
}
|
|
@@ -147155,6 +147094,63 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147155
147094
|
}
|
|
147156
147095
|
});
|
|
147157
147096
|
|
|
147097
|
+
// src/deprecatedCompat/deprecate.ts
|
|
147098
|
+
function getTypeScriptVersion() {
|
|
147099
|
+
return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
|
|
147100
|
+
}
|
|
147101
|
+
function formatDeprecationMessage(name, error, errorAfter, since, message) {
|
|
147102
|
+
let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
|
|
147103
|
+
deprecationMessage += `'${name}' `;
|
|
147104
|
+
deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
|
|
147105
|
+
deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
|
|
147106
|
+
deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
|
|
147107
|
+
return deprecationMessage;
|
|
147108
|
+
}
|
|
147109
|
+
function createErrorDeprecation(name, errorAfter, since, message) {
|
|
147110
|
+
const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
|
|
147111
|
+
return () => {
|
|
147112
|
+
throw new TypeError(deprecationMessage);
|
|
147113
|
+
};
|
|
147114
|
+
}
|
|
147115
|
+
function createWarningDeprecation(name, errorAfter, since, message) {
|
|
147116
|
+
let hasWrittenDeprecation = false;
|
|
147117
|
+
return () => {
|
|
147118
|
+
if (enableDeprecationWarnings && !hasWrittenDeprecation) {
|
|
147119
|
+
Debug.log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
|
|
147120
|
+
hasWrittenDeprecation = true;
|
|
147121
|
+
}
|
|
147122
|
+
};
|
|
147123
|
+
}
|
|
147124
|
+
function createDeprecation(name, options = {}) {
|
|
147125
|
+
var _a2, _b;
|
|
147126
|
+
const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
|
|
147127
|
+
const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
|
|
147128
|
+
const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
|
|
147129
|
+
const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
|
|
147130
|
+
const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
|
|
147131
|
+
const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
|
|
147132
|
+
return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
|
|
147133
|
+
}
|
|
147134
|
+
function wrapFunction(deprecation, func) {
|
|
147135
|
+
return function() {
|
|
147136
|
+
deprecation();
|
|
147137
|
+
return func.apply(this, arguments);
|
|
147138
|
+
};
|
|
147139
|
+
}
|
|
147140
|
+
function deprecate(func, options) {
|
|
147141
|
+
var _a2;
|
|
147142
|
+
const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : Debug.getFunctionName(func), options);
|
|
147143
|
+
return wrapFunction(deprecation, func);
|
|
147144
|
+
}
|
|
147145
|
+
var enableDeprecationWarnings, typeScriptVersion2;
|
|
147146
|
+
var init_deprecate = __esm({
|
|
147147
|
+
"src/deprecatedCompat/deprecate.ts"() {
|
|
147148
|
+
"use strict";
|
|
147149
|
+
init_ts5();
|
|
147150
|
+
enableDeprecationWarnings = true;
|
|
147151
|
+
}
|
|
147152
|
+
});
|
|
147153
|
+
|
|
147158
147154
|
// src/deprecatedCompat/deprecations.ts
|
|
147159
147155
|
function createOverload(name, overloads, binder2, deprecations) {
|
|
147160
147156
|
Object.defineProperty(call, "name", { ...Object.getOwnPropertyDescriptor(call, "name"), value: name });
|
|
@@ -147162,7 +147158,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147162
147158
|
for (const key of Object.keys(deprecations)) {
|
|
147163
147159
|
const index = +key;
|
|
147164
147160
|
if (!isNaN(index) && hasProperty(overloads, `${index}`)) {
|
|
147165
|
-
overloads[index] =
|
|
147161
|
+
overloads[index] = deprecate(overloads[index], { ...deprecations[index], name });
|
|
147166
147162
|
}
|
|
147167
147163
|
}
|
|
147168
147164
|
}
|
|
@@ -147203,6 +147199,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147203
147199
|
"src/deprecatedCompat/deprecations.ts"() {
|
|
147204
147200
|
"use strict";
|
|
147205
147201
|
init_ts5();
|
|
147202
|
+
init_deprecate();
|
|
147206
147203
|
}
|
|
147207
147204
|
});
|
|
147208
147205
|
|
|
@@ -147212,337 +147209,338 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147212
147209
|
"src/deprecatedCompat/4.0/nodeFactoryTopLevelExports.ts"() {
|
|
147213
147210
|
"use strict";
|
|
147214
147211
|
init_ts5();
|
|
147212
|
+
init_deprecate();
|
|
147215
147213
|
factoryDeprecation = { since: "4.0", warnAfter: "4.1", message: "Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead." };
|
|
147216
|
-
createNodeArray =
|
|
147217
|
-
createNumericLiteral =
|
|
147218
|
-
createBigIntLiteral =
|
|
147219
|
-
createStringLiteral =
|
|
147220
|
-
createStringLiteralFromNode =
|
|
147221
|
-
createRegularExpressionLiteral =
|
|
147222
|
-
createLoopVariable =
|
|
147223
|
-
createUniqueName =
|
|
147224
|
-
createPrivateIdentifier =
|
|
147225
|
-
createSuper =
|
|
147226
|
-
createThis =
|
|
147227
|
-
createNull =
|
|
147228
|
-
createTrue =
|
|
147229
|
-
createFalse =
|
|
147230
|
-
createModifier =
|
|
147231
|
-
createModifiersFromModifierFlags =
|
|
147232
|
-
createQualifiedName =
|
|
147233
|
-
updateQualifiedName =
|
|
147234
|
-
createComputedPropertyName =
|
|
147235
|
-
updateComputedPropertyName =
|
|
147236
|
-
createTypeParameterDeclaration =
|
|
147237
|
-
updateTypeParameterDeclaration =
|
|
147238
|
-
createParameter =
|
|
147239
|
-
updateParameter =
|
|
147240
|
-
createDecorator =
|
|
147241
|
-
updateDecorator =
|
|
147242
|
-
createProperty =
|
|
147243
|
-
updateProperty =
|
|
147244
|
-
createMethod =
|
|
147245
|
-
updateMethod =
|
|
147246
|
-
createConstructor =
|
|
147247
|
-
updateConstructor =
|
|
147248
|
-
createGetAccessor =
|
|
147249
|
-
updateGetAccessor =
|
|
147250
|
-
createSetAccessor =
|
|
147251
|
-
updateSetAccessor =
|
|
147252
|
-
createCallSignature =
|
|
147253
|
-
updateCallSignature =
|
|
147254
|
-
createConstructSignature =
|
|
147255
|
-
updateConstructSignature =
|
|
147256
|
-
updateIndexSignature =
|
|
147257
|
-
createKeywordTypeNode =
|
|
147258
|
-
createTypePredicateNodeWithModifier =
|
|
147259
|
-
updateTypePredicateNodeWithModifier =
|
|
147260
|
-
createTypeReferenceNode =
|
|
147261
|
-
updateTypeReferenceNode =
|
|
147262
|
-
createFunctionTypeNode =
|
|
147263
|
-
updateFunctionTypeNode =
|
|
147264
|
-
createConstructorTypeNode =
|
|
147214
|
+
createNodeArray = deprecate(factory.createNodeArray, factoryDeprecation);
|
|
147215
|
+
createNumericLiteral = deprecate(factory.createNumericLiteral, factoryDeprecation);
|
|
147216
|
+
createBigIntLiteral = deprecate(factory.createBigIntLiteral, factoryDeprecation);
|
|
147217
|
+
createStringLiteral = deprecate(factory.createStringLiteral, factoryDeprecation);
|
|
147218
|
+
createStringLiteralFromNode = deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
|
|
147219
|
+
createRegularExpressionLiteral = deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
|
|
147220
|
+
createLoopVariable = deprecate(factory.createLoopVariable, factoryDeprecation);
|
|
147221
|
+
createUniqueName = deprecate(factory.createUniqueName, factoryDeprecation);
|
|
147222
|
+
createPrivateIdentifier = deprecate(factory.createPrivateIdentifier, factoryDeprecation);
|
|
147223
|
+
createSuper = deprecate(factory.createSuper, factoryDeprecation);
|
|
147224
|
+
createThis = deprecate(factory.createThis, factoryDeprecation);
|
|
147225
|
+
createNull = deprecate(factory.createNull, factoryDeprecation);
|
|
147226
|
+
createTrue = deprecate(factory.createTrue, factoryDeprecation);
|
|
147227
|
+
createFalse = deprecate(factory.createFalse, factoryDeprecation);
|
|
147228
|
+
createModifier = deprecate(factory.createModifier, factoryDeprecation);
|
|
147229
|
+
createModifiersFromModifierFlags = deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
|
|
147230
|
+
createQualifiedName = deprecate(factory.createQualifiedName, factoryDeprecation);
|
|
147231
|
+
updateQualifiedName = deprecate(factory.updateQualifiedName, factoryDeprecation);
|
|
147232
|
+
createComputedPropertyName = deprecate(factory.createComputedPropertyName, factoryDeprecation);
|
|
147233
|
+
updateComputedPropertyName = deprecate(factory.updateComputedPropertyName, factoryDeprecation);
|
|
147234
|
+
createTypeParameterDeclaration = deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
|
|
147235
|
+
updateTypeParameterDeclaration = deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
|
|
147236
|
+
createParameter = deprecate(factory.createParameterDeclaration, factoryDeprecation);
|
|
147237
|
+
updateParameter = deprecate(factory.updateParameterDeclaration, factoryDeprecation);
|
|
147238
|
+
createDecorator = deprecate(factory.createDecorator, factoryDeprecation);
|
|
147239
|
+
updateDecorator = deprecate(factory.updateDecorator, factoryDeprecation);
|
|
147240
|
+
createProperty = deprecate(factory.createPropertyDeclaration, factoryDeprecation);
|
|
147241
|
+
updateProperty = deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
|
|
147242
|
+
createMethod = deprecate(factory.createMethodDeclaration, factoryDeprecation);
|
|
147243
|
+
updateMethod = deprecate(factory.updateMethodDeclaration, factoryDeprecation);
|
|
147244
|
+
createConstructor = deprecate(factory.createConstructorDeclaration, factoryDeprecation);
|
|
147245
|
+
updateConstructor = deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
|
|
147246
|
+
createGetAccessor = deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
|
|
147247
|
+
updateGetAccessor = deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
|
|
147248
|
+
createSetAccessor = deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
|
|
147249
|
+
updateSetAccessor = deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
|
|
147250
|
+
createCallSignature = deprecate(factory.createCallSignature, factoryDeprecation);
|
|
147251
|
+
updateCallSignature = deprecate(factory.updateCallSignature, factoryDeprecation);
|
|
147252
|
+
createConstructSignature = deprecate(factory.createConstructSignature, factoryDeprecation);
|
|
147253
|
+
updateConstructSignature = deprecate(factory.updateConstructSignature, factoryDeprecation);
|
|
147254
|
+
updateIndexSignature = deprecate(factory.updateIndexSignature, factoryDeprecation);
|
|
147255
|
+
createKeywordTypeNode = deprecate(factory.createKeywordTypeNode, factoryDeprecation);
|
|
147256
|
+
createTypePredicateNodeWithModifier = deprecate(factory.createTypePredicateNode, factoryDeprecation);
|
|
147257
|
+
updateTypePredicateNodeWithModifier = deprecate(factory.updateTypePredicateNode, factoryDeprecation);
|
|
147258
|
+
createTypeReferenceNode = deprecate(factory.createTypeReferenceNode, factoryDeprecation);
|
|
147259
|
+
updateTypeReferenceNode = deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
|
|
147260
|
+
createFunctionTypeNode = deprecate(factory.createFunctionTypeNode, factoryDeprecation);
|
|
147261
|
+
updateFunctionTypeNode = deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
|
|
147262
|
+
createConstructorTypeNode = deprecate((typeParameters, parameters, type) => {
|
|
147265
147263
|
return factory.createConstructorTypeNode(void 0, typeParameters, parameters, type);
|
|
147266
147264
|
}, factoryDeprecation);
|
|
147267
|
-
updateConstructorTypeNode =
|
|
147265
|
+
updateConstructorTypeNode = deprecate((node, typeParameters, parameters, type) => {
|
|
147268
147266
|
return factory.updateConstructorTypeNode(node, node.modifiers, typeParameters, parameters, type);
|
|
147269
147267
|
}, factoryDeprecation);
|
|
147270
|
-
createTypeQueryNode =
|
|
147271
|
-
updateTypeQueryNode =
|
|
147272
|
-
createTypeLiteralNode =
|
|
147273
|
-
updateTypeLiteralNode =
|
|
147274
|
-
createArrayTypeNode =
|
|
147275
|
-
updateArrayTypeNode =
|
|
147276
|
-
createTupleTypeNode =
|
|
147277
|
-
updateTupleTypeNode =
|
|
147278
|
-
createOptionalTypeNode =
|
|
147279
|
-
updateOptionalTypeNode =
|
|
147280
|
-
createRestTypeNode =
|
|
147281
|
-
updateRestTypeNode =
|
|
147282
|
-
createUnionTypeNode =
|
|
147283
|
-
updateUnionTypeNode =
|
|
147284
|
-
createIntersectionTypeNode =
|
|
147285
|
-
updateIntersectionTypeNode =
|
|
147286
|
-
createConditionalTypeNode =
|
|
147287
|
-
updateConditionalTypeNode =
|
|
147288
|
-
createInferTypeNode =
|
|
147289
|
-
updateInferTypeNode =
|
|
147290
|
-
createImportTypeNode =
|
|
147291
|
-
updateImportTypeNode =
|
|
147292
|
-
createParenthesizedType =
|
|
147293
|
-
updateParenthesizedType =
|
|
147294
|
-
createThisTypeNode =
|
|
147295
|
-
updateTypeOperatorNode =
|
|
147296
|
-
createIndexedAccessTypeNode =
|
|
147297
|
-
updateIndexedAccessTypeNode =
|
|
147298
|
-
createMappedTypeNode =
|
|
147299
|
-
updateMappedTypeNode =
|
|
147300
|
-
createLiteralTypeNode =
|
|
147301
|
-
updateLiteralTypeNode =
|
|
147302
|
-
createObjectBindingPattern =
|
|
147303
|
-
updateObjectBindingPattern =
|
|
147304
|
-
createArrayBindingPattern =
|
|
147305
|
-
updateArrayBindingPattern =
|
|
147306
|
-
createBindingElement =
|
|
147307
|
-
updateBindingElement =
|
|
147308
|
-
createArrayLiteral =
|
|
147309
|
-
updateArrayLiteral =
|
|
147310
|
-
createObjectLiteral =
|
|
147311
|
-
updateObjectLiteral =
|
|
147312
|
-
createPropertyAccess =
|
|
147313
|
-
updatePropertyAccess =
|
|
147314
|
-
createPropertyAccessChain =
|
|
147315
|
-
updatePropertyAccessChain =
|
|
147316
|
-
createElementAccess =
|
|
147317
|
-
updateElementAccess =
|
|
147318
|
-
createElementAccessChain =
|
|
147319
|
-
updateElementAccessChain =
|
|
147320
|
-
createCall =
|
|
147321
|
-
updateCall =
|
|
147322
|
-
createCallChain =
|
|
147323
|
-
updateCallChain =
|
|
147324
|
-
createNew =
|
|
147325
|
-
updateNew =
|
|
147326
|
-
createTypeAssertion =
|
|
147327
|
-
updateTypeAssertion =
|
|
147328
|
-
createParen =
|
|
147329
|
-
updateParen =
|
|
147330
|
-
createFunctionExpression =
|
|
147331
|
-
updateFunctionExpression =
|
|
147332
|
-
createDelete =
|
|
147333
|
-
updateDelete =
|
|
147334
|
-
createTypeOf =
|
|
147335
|
-
updateTypeOf =
|
|
147336
|
-
createVoid =
|
|
147337
|
-
updateVoid =
|
|
147338
|
-
createAwait =
|
|
147339
|
-
updateAwait =
|
|
147340
|
-
createPrefix =
|
|
147341
|
-
updatePrefix =
|
|
147342
|
-
createPostfix =
|
|
147343
|
-
updatePostfix =
|
|
147344
|
-
createBinary =
|
|
147345
|
-
updateConditional =
|
|
147346
|
-
createTemplateExpression =
|
|
147347
|
-
updateTemplateExpression =
|
|
147348
|
-
createTemplateHead =
|
|
147349
|
-
createTemplateMiddle =
|
|
147350
|
-
createTemplateTail =
|
|
147351
|
-
createNoSubstitutionTemplateLiteral =
|
|
147352
|
-
updateYield =
|
|
147353
|
-
createSpread =
|
|
147354
|
-
updateSpread =
|
|
147355
|
-
createOmittedExpression =
|
|
147356
|
-
createAsExpression =
|
|
147357
|
-
updateAsExpression =
|
|
147358
|
-
createNonNullExpression =
|
|
147359
|
-
updateNonNullExpression =
|
|
147360
|
-
createNonNullChain =
|
|
147361
|
-
updateNonNullChain =
|
|
147362
|
-
createMetaProperty =
|
|
147363
|
-
updateMetaProperty =
|
|
147364
|
-
createTemplateSpan =
|
|
147365
|
-
updateTemplateSpan =
|
|
147366
|
-
createSemicolonClassElement =
|
|
147367
|
-
createBlock =
|
|
147368
|
-
updateBlock =
|
|
147369
|
-
createVariableStatement =
|
|
147370
|
-
updateVariableStatement =
|
|
147371
|
-
createEmptyStatement =
|
|
147372
|
-
createExpressionStatement =
|
|
147373
|
-
updateExpressionStatement =
|
|
147374
|
-
createStatement =
|
|
147375
|
-
updateStatement =
|
|
147376
|
-
createIf =
|
|
147377
|
-
updateIf =
|
|
147378
|
-
createDo =
|
|
147379
|
-
updateDo =
|
|
147380
|
-
createWhile =
|
|
147381
|
-
updateWhile =
|
|
147382
|
-
createFor =
|
|
147383
|
-
updateFor =
|
|
147384
|
-
createForIn =
|
|
147385
|
-
updateForIn =
|
|
147386
|
-
createForOf =
|
|
147387
|
-
updateForOf =
|
|
147388
|
-
createContinue =
|
|
147389
|
-
updateContinue =
|
|
147390
|
-
createBreak =
|
|
147391
|
-
updateBreak =
|
|
147392
|
-
createReturn =
|
|
147393
|
-
updateReturn =
|
|
147394
|
-
createWith =
|
|
147395
|
-
updateWith =
|
|
147396
|
-
createSwitch =
|
|
147397
|
-
updateSwitch =
|
|
147398
|
-
createLabel =
|
|
147399
|
-
updateLabel =
|
|
147400
|
-
createThrow =
|
|
147401
|
-
updateThrow =
|
|
147402
|
-
createTry =
|
|
147403
|
-
updateTry =
|
|
147404
|
-
createDebuggerStatement =
|
|
147405
|
-
createVariableDeclarationList =
|
|
147406
|
-
updateVariableDeclarationList =
|
|
147407
|
-
createFunctionDeclaration =
|
|
147408
|
-
updateFunctionDeclaration =
|
|
147409
|
-
createClassDeclaration =
|
|
147410
|
-
updateClassDeclaration =
|
|
147411
|
-
createInterfaceDeclaration =
|
|
147412
|
-
updateInterfaceDeclaration =
|
|
147413
|
-
createTypeAliasDeclaration =
|
|
147414
|
-
updateTypeAliasDeclaration =
|
|
147415
|
-
createEnumDeclaration =
|
|
147416
|
-
updateEnumDeclaration =
|
|
147417
|
-
createModuleDeclaration =
|
|
147418
|
-
updateModuleDeclaration =
|
|
147419
|
-
createModuleBlock =
|
|
147420
|
-
updateModuleBlock =
|
|
147421
|
-
createCaseBlock =
|
|
147422
|
-
updateCaseBlock =
|
|
147423
|
-
createNamespaceExportDeclaration =
|
|
147424
|
-
updateNamespaceExportDeclaration =
|
|
147425
|
-
createImportEqualsDeclaration =
|
|
147426
|
-
updateImportEqualsDeclaration =
|
|
147427
|
-
createImportDeclaration =
|
|
147428
|
-
updateImportDeclaration =
|
|
147429
|
-
createNamespaceImport =
|
|
147430
|
-
updateNamespaceImport =
|
|
147431
|
-
createNamedImports =
|
|
147432
|
-
updateNamedImports =
|
|
147433
|
-
createImportSpecifier =
|
|
147434
|
-
updateImportSpecifier =
|
|
147435
|
-
createExportAssignment2 =
|
|
147436
|
-
updateExportAssignment =
|
|
147437
|
-
createNamedExports =
|
|
147438
|
-
updateNamedExports =
|
|
147439
|
-
createExportSpecifier =
|
|
147440
|
-
updateExportSpecifier =
|
|
147441
|
-
createExternalModuleReference =
|
|
147442
|
-
updateExternalModuleReference =
|
|
147443
|
-
createJSDocTypeExpression =
|
|
147444
|
-
createJSDocTypeTag =
|
|
147445
|
-
createJSDocReturnTag =
|
|
147446
|
-
createJSDocThisTag =
|
|
147447
|
-
createJSDocComment =
|
|
147448
|
-
createJSDocParameterTag =
|
|
147449
|
-
createJSDocClassTag =
|
|
147450
|
-
createJSDocAugmentsTag =
|
|
147451
|
-
createJSDocEnumTag =
|
|
147452
|
-
createJSDocTemplateTag =
|
|
147453
|
-
createJSDocTypedefTag =
|
|
147454
|
-
createJSDocCallbackTag =
|
|
147455
|
-
createJSDocSignature =
|
|
147456
|
-
createJSDocPropertyTag =
|
|
147457
|
-
createJSDocTypeLiteral =
|
|
147458
|
-
createJSDocImplementsTag =
|
|
147459
|
-
createJSDocAuthorTag =
|
|
147460
|
-
createJSDocPublicTag =
|
|
147461
|
-
createJSDocPrivateTag =
|
|
147462
|
-
createJSDocProtectedTag =
|
|
147463
|
-
createJSDocReadonlyTag =
|
|
147464
|
-
createJSDocTag =
|
|
147465
|
-
createJsxElement =
|
|
147466
|
-
updateJsxElement =
|
|
147467
|
-
createJsxSelfClosingElement =
|
|
147468
|
-
updateJsxSelfClosingElement =
|
|
147469
|
-
createJsxOpeningElement =
|
|
147470
|
-
updateJsxOpeningElement =
|
|
147471
|
-
createJsxClosingElement =
|
|
147472
|
-
updateJsxClosingElement =
|
|
147473
|
-
createJsxFragment =
|
|
147474
|
-
createJsxText =
|
|
147475
|
-
updateJsxText =
|
|
147476
|
-
createJsxOpeningFragment =
|
|
147477
|
-
createJsxJsxClosingFragment =
|
|
147478
|
-
updateJsxFragment =
|
|
147479
|
-
createJsxAttribute =
|
|
147480
|
-
updateJsxAttribute =
|
|
147481
|
-
createJsxAttributes =
|
|
147482
|
-
updateJsxAttributes =
|
|
147483
|
-
createJsxSpreadAttribute =
|
|
147484
|
-
updateJsxSpreadAttribute =
|
|
147485
|
-
createJsxExpression =
|
|
147486
|
-
updateJsxExpression =
|
|
147487
|
-
createCaseClause =
|
|
147488
|
-
updateCaseClause =
|
|
147489
|
-
createDefaultClause =
|
|
147490
|
-
updateDefaultClause =
|
|
147491
|
-
createHeritageClause =
|
|
147492
|
-
updateHeritageClause =
|
|
147493
|
-
createCatchClause =
|
|
147494
|
-
updateCatchClause =
|
|
147495
|
-
createPropertyAssignment =
|
|
147496
|
-
updatePropertyAssignment =
|
|
147497
|
-
createShorthandPropertyAssignment =
|
|
147498
|
-
updateShorthandPropertyAssignment =
|
|
147499
|
-
createSpreadAssignment =
|
|
147500
|
-
updateSpreadAssignment =
|
|
147501
|
-
createEnumMember =
|
|
147502
|
-
updateEnumMember =
|
|
147503
|
-
updateSourceFileNode =
|
|
147504
|
-
createNotEmittedStatement =
|
|
147505
|
-
createPartiallyEmittedExpression =
|
|
147506
|
-
updatePartiallyEmittedExpression =
|
|
147507
|
-
createCommaList =
|
|
147508
|
-
updateCommaList =
|
|
147509
|
-
createBundle =
|
|
147510
|
-
updateBundle =
|
|
147511
|
-
createImmediatelyInvokedFunctionExpression =
|
|
147512
|
-
createImmediatelyInvokedArrowFunction =
|
|
147513
|
-
createVoidZero =
|
|
147514
|
-
createExportDefault =
|
|
147515
|
-
createExternalModuleExport =
|
|
147516
|
-
createNamespaceExport =
|
|
147517
|
-
updateNamespaceExport =
|
|
147518
|
-
createToken =
|
|
147268
|
+
createTypeQueryNode = deprecate(factory.createTypeQueryNode, factoryDeprecation);
|
|
147269
|
+
updateTypeQueryNode = deprecate(factory.updateTypeQueryNode, factoryDeprecation);
|
|
147270
|
+
createTypeLiteralNode = deprecate(factory.createTypeLiteralNode, factoryDeprecation);
|
|
147271
|
+
updateTypeLiteralNode = deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
|
|
147272
|
+
createArrayTypeNode = deprecate(factory.createArrayTypeNode, factoryDeprecation);
|
|
147273
|
+
updateArrayTypeNode = deprecate(factory.updateArrayTypeNode, factoryDeprecation);
|
|
147274
|
+
createTupleTypeNode = deprecate(factory.createTupleTypeNode, factoryDeprecation);
|
|
147275
|
+
updateTupleTypeNode = deprecate(factory.updateTupleTypeNode, factoryDeprecation);
|
|
147276
|
+
createOptionalTypeNode = deprecate(factory.createOptionalTypeNode, factoryDeprecation);
|
|
147277
|
+
updateOptionalTypeNode = deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
|
|
147278
|
+
createRestTypeNode = deprecate(factory.createRestTypeNode, factoryDeprecation);
|
|
147279
|
+
updateRestTypeNode = deprecate(factory.updateRestTypeNode, factoryDeprecation);
|
|
147280
|
+
createUnionTypeNode = deprecate(factory.createUnionTypeNode, factoryDeprecation);
|
|
147281
|
+
updateUnionTypeNode = deprecate(factory.updateUnionTypeNode, factoryDeprecation);
|
|
147282
|
+
createIntersectionTypeNode = deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
|
|
147283
|
+
updateIntersectionTypeNode = deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
|
|
147284
|
+
createConditionalTypeNode = deprecate(factory.createConditionalTypeNode, factoryDeprecation);
|
|
147285
|
+
updateConditionalTypeNode = deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
|
|
147286
|
+
createInferTypeNode = deprecate(factory.createInferTypeNode, factoryDeprecation);
|
|
147287
|
+
updateInferTypeNode = deprecate(factory.updateInferTypeNode, factoryDeprecation);
|
|
147288
|
+
createImportTypeNode = deprecate(factory.createImportTypeNode, factoryDeprecation);
|
|
147289
|
+
updateImportTypeNode = deprecate(factory.updateImportTypeNode, factoryDeprecation);
|
|
147290
|
+
createParenthesizedType = deprecate(factory.createParenthesizedType, factoryDeprecation);
|
|
147291
|
+
updateParenthesizedType = deprecate(factory.updateParenthesizedType, factoryDeprecation);
|
|
147292
|
+
createThisTypeNode = deprecate(factory.createThisTypeNode, factoryDeprecation);
|
|
147293
|
+
updateTypeOperatorNode = deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
|
|
147294
|
+
createIndexedAccessTypeNode = deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
|
|
147295
|
+
updateIndexedAccessTypeNode = deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
|
|
147296
|
+
createMappedTypeNode = deprecate(factory.createMappedTypeNode, factoryDeprecation);
|
|
147297
|
+
updateMappedTypeNode = deprecate(factory.updateMappedTypeNode, factoryDeprecation);
|
|
147298
|
+
createLiteralTypeNode = deprecate(factory.createLiteralTypeNode, factoryDeprecation);
|
|
147299
|
+
updateLiteralTypeNode = deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
|
|
147300
|
+
createObjectBindingPattern = deprecate(factory.createObjectBindingPattern, factoryDeprecation);
|
|
147301
|
+
updateObjectBindingPattern = deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
|
|
147302
|
+
createArrayBindingPattern = deprecate(factory.createArrayBindingPattern, factoryDeprecation);
|
|
147303
|
+
updateArrayBindingPattern = deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
|
|
147304
|
+
createBindingElement = deprecate(factory.createBindingElement, factoryDeprecation);
|
|
147305
|
+
updateBindingElement = deprecate(factory.updateBindingElement, factoryDeprecation);
|
|
147306
|
+
createArrayLiteral = deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
|
|
147307
|
+
updateArrayLiteral = deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
|
|
147308
|
+
createObjectLiteral = deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
|
|
147309
|
+
updateObjectLiteral = deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
|
|
147310
|
+
createPropertyAccess = deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
|
|
147311
|
+
updatePropertyAccess = deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
|
|
147312
|
+
createPropertyAccessChain = deprecate(factory.createPropertyAccessChain, factoryDeprecation);
|
|
147313
|
+
updatePropertyAccessChain = deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
|
|
147314
|
+
createElementAccess = deprecate(factory.createElementAccessExpression, factoryDeprecation);
|
|
147315
|
+
updateElementAccess = deprecate(factory.updateElementAccessExpression, factoryDeprecation);
|
|
147316
|
+
createElementAccessChain = deprecate(factory.createElementAccessChain, factoryDeprecation);
|
|
147317
|
+
updateElementAccessChain = deprecate(factory.updateElementAccessChain, factoryDeprecation);
|
|
147318
|
+
createCall = deprecate(factory.createCallExpression, factoryDeprecation);
|
|
147319
|
+
updateCall = deprecate(factory.updateCallExpression, factoryDeprecation);
|
|
147320
|
+
createCallChain = deprecate(factory.createCallChain, factoryDeprecation);
|
|
147321
|
+
updateCallChain = deprecate(factory.updateCallChain, factoryDeprecation);
|
|
147322
|
+
createNew = deprecate(factory.createNewExpression, factoryDeprecation);
|
|
147323
|
+
updateNew = deprecate(factory.updateNewExpression, factoryDeprecation);
|
|
147324
|
+
createTypeAssertion = deprecate(factory.createTypeAssertion, factoryDeprecation);
|
|
147325
|
+
updateTypeAssertion = deprecate(factory.updateTypeAssertion, factoryDeprecation);
|
|
147326
|
+
createParen = deprecate(factory.createParenthesizedExpression, factoryDeprecation);
|
|
147327
|
+
updateParen = deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
|
|
147328
|
+
createFunctionExpression = deprecate(factory.createFunctionExpression, factoryDeprecation);
|
|
147329
|
+
updateFunctionExpression = deprecate(factory.updateFunctionExpression, factoryDeprecation);
|
|
147330
|
+
createDelete = deprecate(factory.createDeleteExpression, factoryDeprecation);
|
|
147331
|
+
updateDelete = deprecate(factory.updateDeleteExpression, factoryDeprecation);
|
|
147332
|
+
createTypeOf = deprecate(factory.createTypeOfExpression, factoryDeprecation);
|
|
147333
|
+
updateTypeOf = deprecate(factory.updateTypeOfExpression, factoryDeprecation);
|
|
147334
|
+
createVoid = deprecate(factory.createVoidExpression, factoryDeprecation);
|
|
147335
|
+
updateVoid = deprecate(factory.updateVoidExpression, factoryDeprecation);
|
|
147336
|
+
createAwait = deprecate(factory.createAwaitExpression, factoryDeprecation);
|
|
147337
|
+
updateAwait = deprecate(factory.updateAwaitExpression, factoryDeprecation);
|
|
147338
|
+
createPrefix = deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
|
|
147339
|
+
updatePrefix = deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
|
|
147340
|
+
createPostfix = deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
|
|
147341
|
+
updatePostfix = deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
|
|
147342
|
+
createBinary = deprecate(factory.createBinaryExpression, factoryDeprecation);
|
|
147343
|
+
updateConditional = deprecate(factory.updateConditionalExpression, factoryDeprecation);
|
|
147344
|
+
createTemplateExpression = deprecate(factory.createTemplateExpression, factoryDeprecation);
|
|
147345
|
+
updateTemplateExpression = deprecate(factory.updateTemplateExpression, factoryDeprecation);
|
|
147346
|
+
createTemplateHead = deprecate(factory.createTemplateHead, factoryDeprecation);
|
|
147347
|
+
createTemplateMiddle = deprecate(factory.createTemplateMiddle, factoryDeprecation);
|
|
147348
|
+
createTemplateTail = deprecate(factory.createTemplateTail, factoryDeprecation);
|
|
147349
|
+
createNoSubstitutionTemplateLiteral = deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
|
|
147350
|
+
updateYield = deprecate(factory.updateYieldExpression, factoryDeprecation);
|
|
147351
|
+
createSpread = deprecate(factory.createSpreadElement, factoryDeprecation);
|
|
147352
|
+
updateSpread = deprecate(factory.updateSpreadElement, factoryDeprecation);
|
|
147353
|
+
createOmittedExpression = deprecate(factory.createOmittedExpression, factoryDeprecation);
|
|
147354
|
+
createAsExpression = deprecate(factory.createAsExpression, factoryDeprecation);
|
|
147355
|
+
updateAsExpression = deprecate(factory.updateAsExpression, factoryDeprecation);
|
|
147356
|
+
createNonNullExpression = deprecate(factory.createNonNullExpression, factoryDeprecation);
|
|
147357
|
+
updateNonNullExpression = deprecate(factory.updateNonNullExpression, factoryDeprecation);
|
|
147358
|
+
createNonNullChain = deprecate(factory.createNonNullChain, factoryDeprecation);
|
|
147359
|
+
updateNonNullChain = deprecate(factory.updateNonNullChain, factoryDeprecation);
|
|
147360
|
+
createMetaProperty = deprecate(factory.createMetaProperty, factoryDeprecation);
|
|
147361
|
+
updateMetaProperty = deprecate(factory.updateMetaProperty, factoryDeprecation);
|
|
147362
|
+
createTemplateSpan = deprecate(factory.createTemplateSpan, factoryDeprecation);
|
|
147363
|
+
updateTemplateSpan = deprecate(factory.updateTemplateSpan, factoryDeprecation);
|
|
147364
|
+
createSemicolonClassElement = deprecate(factory.createSemicolonClassElement, factoryDeprecation);
|
|
147365
|
+
createBlock = deprecate(factory.createBlock, factoryDeprecation);
|
|
147366
|
+
updateBlock = deprecate(factory.updateBlock, factoryDeprecation);
|
|
147367
|
+
createVariableStatement = deprecate(factory.createVariableStatement, factoryDeprecation);
|
|
147368
|
+
updateVariableStatement = deprecate(factory.updateVariableStatement, factoryDeprecation);
|
|
147369
|
+
createEmptyStatement = deprecate(factory.createEmptyStatement, factoryDeprecation);
|
|
147370
|
+
createExpressionStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
|
|
147371
|
+
updateExpressionStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
|
|
147372
|
+
createStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
|
|
147373
|
+
updateStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
|
|
147374
|
+
createIf = deprecate(factory.createIfStatement, factoryDeprecation);
|
|
147375
|
+
updateIf = deprecate(factory.updateIfStatement, factoryDeprecation);
|
|
147376
|
+
createDo = deprecate(factory.createDoStatement, factoryDeprecation);
|
|
147377
|
+
updateDo = deprecate(factory.updateDoStatement, factoryDeprecation);
|
|
147378
|
+
createWhile = deprecate(factory.createWhileStatement, factoryDeprecation);
|
|
147379
|
+
updateWhile = deprecate(factory.updateWhileStatement, factoryDeprecation);
|
|
147380
|
+
createFor = deprecate(factory.createForStatement, factoryDeprecation);
|
|
147381
|
+
updateFor = deprecate(factory.updateForStatement, factoryDeprecation);
|
|
147382
|
+
createForIn = deprecate(factory.createForInStatement, factoryDeprecation);
|
|
147383
|
+
updateForIn = deprecate(factory.updateForInStatement, factoryDeprecation);
|
|
147384
|
+
createForOf = deprecate(factory.createForOfStatement, factoryDeprecation);
|
|
147385
|
+
updateForOf = deprecate(factory.updateForOfStatement, factoryDeprecation);
|
|
147386
|
+
createContinue = deprecate(factory.createContinueStatement, factoryDeprecation);
|
|
147387
|
+
updateContinue = deprecate(factory.updateContinueStatement, factoryDeprecation);
|
|
147388
|
+
createBreak = deprecate(factory.createBreakStatement, factoryDeprecation);
|
|
147389
|
+
updateBreak = deprecate(factory.updateBreakStatement, factoryDeprecation);
|
|
147390
|
+
createReturn = deprecate(factory.createReturnStatement, factoryDeprecation);
|
|
147391
|
+
updateReturn = deprecate(factory.updateReturnStatement, factoryDeprecation);
|
|
147392
|
+
createWith = deprecate(factory.createWithStatement, factoryDeprecation);
|
|
147393
|
+
updateWith = deprecate(factory.updateWithStatement, factoryDeprecation);
|
|
147394
|
+
createSwitch = deprecate(factory.createSwitchStatement, factoryDeprecation);
|
|
147395
|
+
updateSwitch = deprecate(factory.updateSwitchStatement, factoryDeprecation);
|
|
147396
|
+
createLabel = deprecate(factory.createLabeledStatement, factoryDeprecation);
|
|
147397
|
+
updateLabel = deprecate(factory.updateLabeledStatement, factoryDeprecation);
|
|
147398
|
+
createThrow = deprecate(factory.createThrowStatement, factoryDeprecation);
|
|
147399
|
+
updateThrow = deprecate(factory.updateThrowStatement, factoryDeprecation);
|
|
147400
|
+
createTry = deprecate(factory.createTryStatement, factoryDeprecation);
|
|
147401
|
+
updateTry = deprecate(factory.updateTryStatement, factoryDeprecation);
|
|
147402
|
+
createDebuggerStatement = deprecate(factory.createDebuggerStatement, factoryDeprecation);
|
|
147403
|
+
createVariableDeclarationList = deprecate(factory.createVariableDeclarationList, factoryDeprecation);
|
|
147404
|
+
updateVariableDeclarationList = deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
|
|
147405
|
+
createFunctionDeclaration = deprecate(factory.createFunctionDeclaration, factoryDeprecation);
|
|
147406
|
+
updateFunctionDeclaration = deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
|
|
147407
|
+
createClassDeclaration = deprecate(factory.createClassDeclaration, factoryDeprecation);
|
|
147408
|
+
updateClassDeclaration = deprecate(factory.updateClassDeclaration, factoryDeprecation);
|
|
147409
|
+
createInterfaceDeclaration = deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
|
|
147410
|
+
updateInterfaceDeclaration = deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
|
|
147411
|
+
createTypeAliasDeclaration = deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
|
|
147412
|
+
updateTypeAliasDeclaration = deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
|
|
147413
|
+
createEnumDeclaration = deprecate(factory.createEnumDeclaration, factoryDeprecation);
|
|
147414
|
+
updateEnumDeclaration = deprecate(factory.updateEnumDeclaration, factoryDeprecation);
|
|
147415
|
+
createModuleDeclaration = deprecate(factory.createModuleDeclaration, factoryDeprecation);
|
|
147416
|
+
updateModuleDeclaration = deprecate(factory.updateModuleDeclaration, factoryDeprecation);
|
|
147417
|
+
createModuleBlock = deprecate(factory.createModuleBlock, factoryDeprecation);
|
|
147418
|
+
updateModuleBlock = deprecate(factory.updateModuleBlock, factoryDeprecation);
|
|
147419
|
+
createCaseBlock = deprecate(factory.createCaseBlock, factoryDeprecation);
|
|
147420
|
+
updateCaseBlock = deprecate(factory.updateCaseBlock, factoryDeprecation);
|
|
147421
|
+
createNamespaceExportDeclaration = deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
|
|
147422
|
+
updateNamespaceExportDeclaration = deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
|
|
147423
|
+
createImportEqualsDeclaration = deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
|
|
147424
|
+
updateImportEqualsDeclaration = deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
|
|
147425
|
+
createImportDeclaration = deprecate(factory.createImportDeclaration, factoryDeprecation);
|
|
147426
|
+
updateImportDeclaration = deprecate(factory.updateImportDeclaration, factoryDeprecation);
|
|
147427
|
+
createNamespaceImport = deprecate(factory.createNamespaceImport, factoryDeprecation);
|
|
147428
|
+
updateNamespaceImport = deprecate(factory.updateNamespaceImport, factoryDeprecation);
|
|
147429
|
+
createNamedImports = deprecate(factory.createNamedImports, factoryDeprecation);
|
|
147430
|
+
updateNamedImports = deprecate(factory.updateNamedImports, factoryDeprecation);
|
|
147431
|
+
createImportSpecifier = deprecate(factory.createImportSpecifier, factoryDeprecation);
|
|
147432
|
+
updateImportSpecifier = deprecate(factory.updateImportSpecifier, factoryDeprecation);
|
|
147433
|
+
createExportAssignment2 = deprecate(factory.createExportAssignment, factoryDeprecation);
|
|
147434
|
+
updateExportAssignment = deprecate(factory.updateExportAssignment, factoryDeprecation);
|
|
147435
|
+
createNamedExports = deprecate(factory.createNamedExports, factoryDeprecation);
|
|
147436
|
+
updateNamedExports = deprecate(factory.updateNamedExports, factoryDeprecation);
|
|
147437
|
+
createExportSpecifier = deprecate(factory.createExportSpecifier, factoryDeprecation);
|
|
147438
|
+
updateExportSpecifier = deprecate(factory.updateExportSpecifier, factoryDeprecation);
|
|
147439
|
+
createExternalModuleReference = deprecate(factory.createExternalModuleReference, factoryDeprecation);
|
|
147440
|
+
updateExternalModuleReference = deprecate(factory.updateExternalModuleReference, factoryDeprecation);
|
|
147441
|
+
createJSDocTypeExpression = deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
|
|
147442
|
+
createJSDocTypeTag = deprecate(factory.createJSDocTypeTag, factoryDeprecation);
|
|
147443
|
+
createJSDocReturnTag = deprecate(factory.createJSDocReturnTag, factoryDeprecation);
|
|
147444
|
+
createJSDocThisTag = deprecate(factory.createJSDocThisTag, factoryDeprecation);
|
|
147445
|
+
createJSDocComment = deprecate(factory.createJSDocComment, factoryDeprecation);
|
|
147446
|
+
createJSDocParameterTag = deprecate(factory.createJSDocParameterTag, factoryDeprecation);
|
|
147447
|
+
createJSDocClassTag = deprecate(factory.createJSDocClassTag, factoryDeprecation);
|
|
147448
|
+
createJSDocAugmentsTag = deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
|
|
147449
|
+
createJSDocEnumTag = deprecate(factory.createJSDocEnumTag, factoryDeprecation);
|
|
147450
|
+
createJSDocTemplateTag = deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
|
|
147451
|
+
createJSDocTypedefTag = deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
|
|
147452
|
+
createJSDocCallbackTag = deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
|
|
147453
|
+
createJSDocSignature = deprecate(factory.createJSDocSignature, factoryDeprecation);
|
|
147454
|
+
createJSDocPropertyTag = deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
|
|
147455
|
+
createJSDocTypeLiteral = deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
|
|
147456
|
+
createJSDocImplementsTag = deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
|
|
147457
|
+
createJSDocAuthorTag = deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
|
|
147458
|
+
createJSDocPublicTag = deprecate(factory.createJSDocPublicTag, factoryDeprecation);
|
|
147459
|
+
createJSDocPrivateTag = deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
|
|
147460
|
+
createJSDocProtectedTag = deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
|
|
147461
|
+
createJSDocReadonlyTag = deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
|
|
147462
|
+
createJSDocTag = deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
|
|
147463
|
+
createJsxElement = deprecate(factory.createJsxElement, factoryDeprecation);
|
|
147464
|
+
updateJsxElement = deprecate(factory.updateJsxElement, factoryDeprecation);
|
|
147465
|
+
createJsxSelfClosingElement = deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
|
|
147466
|
+
updateJsxSelfClosingElement = deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
|
|
147467
|
+
createJsxOpeningElement = deprecate(factory.createJsxOpeningElement, factoryDeprecation);
|
|
147468
|
+
updateJsxOpeningElement = deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
|
|
147469
|
+
createJsxClosingElement = deprecate(factory.createJsxClosingElement, factoryDeprecation);
|
|
147470
|
+
updateJsxClosingElement = deprecate(factory.updateJsxClosingElement, factoryDeprecation);
|
|
147471
|
+
createJsxFragment = deprecate(factory.createJsxFragment, factoryDeprecation);
|
|
147472
|
+
createJsxText = deprecate(factory.createJsxText, factoryDeprecation);
|
|
147473
|
+
updateJsxText = deprecate(factory.updateJsxText, factoryDeprecation);
|
|
147474
|
+
createJsxOpeningFragment = deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
|
|
147475
|
+
createJsxJsxClosingFragment = deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
|
|
147476
|
+
updateJsxFragment = deprecate(factory.updateJsxFragment, factoryDeprecation);
|
|
147477
|
+
createJsxAttribute = deprecate(factory.createJsxAttribute, factoryDeprecation);
|
|
147478
|
+
updateJsxAttribute = deprecate(factory.updateJsxAttribute, factoryDeprecation);
|
|
147479
|
+
createJsxAttributes = deprecate(factory.createJsxAttributes, factoryDeprecation);
|
|
147480
|
+
updateJsxAttributes = deprecate(factory.updateJsxAttributes, factoryDeprecation);
|
|
147481
|
+
createJsxSpreadAttribute = deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
|
|
147482
|
+
updateJsxSpreadAttribute = deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
|
|
147483
|
+
createJsxExpression = deprecate(factory.createJsxExpression, factoryDeprecation);
|
|
147484
|
+
updateJsxExpression = deprecate(factory.updateJsxExpression, factoryDeprecation);
|
|
147485
|
+
createCaseClause = deprecate(factory.createCaseClause, factoryDeprecation);
|
|
147486
|
+
updateCaseClause = deprecate(factory.updateCaseClause, factoryDeprecation);
|
|
147487
|
+
createDefaultClause = deprecate(factory.createDefaultClause, factoryDeprecation);
|
|
147488
|
+
updateDefaultClause = deprecate(factory.updateDefaultClause, factoryDeprecation);
|
|
147489
|
+
createHeritageClause = deprecate(factory.createHeritageClause, factoryDeprecation);
|
|
147490
|
+
updateHeritageClause = deprecate(factory.updateHeritageClause, factoryDeprecation);
|
|
147491
|
+
createCatchClause = deprecate(factory.createCatchClause, factoryDeprecation);
|
|
147492
|
+
updateCatchClause = deprecate(factory.updateCatchClause, factoryDeprecation);
|
|
147493
|
+
createPropertyAssignment = deprecate(factory.createPropertyAssignment, factoryDeprecation);
|
|
147494
|
+
updatePropertyAssignment = deprecate(factory.updatePropertyAssignment, factoryDeprecation);
|
|
147495
|
+
createShorthandPropertyAssignment = deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
|
|
147496
|
+
updateShorthandPropertyAssignment = deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
|
|
147497
|
+
createSpreadAssignment = deprecate(factory.createSpreadAssignment, factoryDeprecation);
|
|
147498
|
+
updateSpreadAssignment = deprecate(factory.updateSpreadAssignment, factoryDeprecation);
|
|
147499
|
+
createEnumMember = deprecate(factory.createEnumMember, factoryDeprecation);
|
|
147500
|
+
updateEnumMember = deprecate(factory.updateEnumMember, factoryDeprecation);
|
|
147501
|
+
updateSourceFileNode = deprecate(factory.updateSourceFile, factoryDeprecation);
|
|
147502
|
+
createNotEmittedStatement = deprecate(factory.createNotEmittedStatement, factoryDeprecation);
|
|
147503
|
+
createPartiallyEmittedExpression = deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
|
|
147504
|
+
updatePartiallyEmittedExpression = deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
|
|
147505
|
+
createCommaList = deprecate(factory.createCommaListExpression, factoryDeprecation);
|
|
147506
|
+
updateCommaList = deprecate(factory.updateCommaListExpression, factoryDeprecation);
|
|
147507
|
+
createBundle = deprecate(factory.createBundle, factoryDeprecation);
|
|
147508
|
+
updateBundle = deprecate(factory.updateBundle, factoryDeprecation);
|
|
147509
|
+
createImmediatelyInvokedFunctionExpression = deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
|
|
147510
|
+
createImmediatelyInvokedArrowFunction = deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
|
|
147511
|
+
createVoidZero = deprecate(factory.createVoidZero, factoryDeprecation);
|
|
147512
|
+
createExportDefault = deprecate(factory.createExportDefault, factoryDeprecation);
|
|
147513
|
+
createExternalModuleExport = deprecate(factory.createExternalModuleExport, factoryDeprecation);
|
|
147514
|
+
createNamespaceExport = deprecate(factory.createNamespaceExport, factoryDeprecation);
|
|
147515
|
+
updateNamespaceExport = deprecate(factory.updateNamespaceExport, factoryDeprecation);
|
|
147516
|
+
createToken = deprecate(function createToken2(kind) {
|
|
147519
147517
|
return factory.createToken(kind);
|
|
147520
147518
|
}, factoryDeprecation);
|
|
147521
|
-
createIdentifier =
|
|
147519
|
+
createIdentifier = deprecate(function createIdentifier2(text) {
|
|
147522
147520
|
return factory.createIdentifier(text, void 0, void 0);
|
|
147523
147521
|
}, factoryDeprecation);
|
|
147524
|
-
createTempVariable =
|
|
147522
|
+
createTempVariable = deprecate(function createTempVariable2(recordTempVariable) {
|
|
147525
147523
|
return factory.createTempVariable(recordTempVariable, void 0);
|
|
147526
147524
|
}, factoryDeprecation);
|
|
147527
|
-
getGeneratedNameForNode =
|
|
147525
|
+
getGeneratedNameForNode = deprecate(function getGeneratedNameForNode2(node) {
|
|
147528
147526
|
return factory.getGeneratedNameForNode(node, void 0);
|
|
147529
147527
|
}, factoryDeprecation);
|
|
147530
|
-
createOptimisticUniqueName =
|
|
147528
|
+
createOptimisticUniqueName = deprecate(function createOptimisticUniqueName2(text) {
|
|
147531
147529
|
return factory.createUniqueName(text, 16 /* Optimistic */);
|
|
147532
147530
|
}, factoryDeprecation);
|
|
147533
|
-
createFileLevelUniqueName =
|
|
147531
|
+
createFileLevelUniqueName = deprecate(function createFileLevelUniqueName2(text) {
|
|
147534
147532
|
return factory.createUniqueName(text, 16 /* Optimistic */ | 32 /* FileLevel */);
|
|
147535
147533
|
}, factoryDeprecation);
|
|
147536
|
-
createIndexSignature =
|
|
147534
|
+
createIndexSignature = deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
|
|
147537
147535
|
return factory.createIndexSignature(decorators, modifiers, parameters, type);
|
|
147538
147536
|
}, factoryDeprecation);
|
|
147539
|
-
createTypePredicateNode =
|
|
147537
|
+
createTypePredicateNode = deprecate(function createTypePredicateNode2(parameterName, type) {
|
|
147540
147538
|
return factory.createTypePredicateNode(void 0, parameterName, type);
|
|
147541
147539
|
}, factoryDeprecation);
|
|
147542
|
-
updateTypePredicateNode =
|
|
147540
|
+
updateTypePredicateNode = deprecate(function updateTypePredicateNode2(node, parameterName, type) {
|
|
147543
147541
|
return factory.updateTypePredicateNode(node, void 0, parameterName, type);
|
|
147544
147542
|
}, factoryDeprecation);
|
|
147545
|
-
createLiteral =
|
|
147543
|
+
createLiteral = deprecate(function createLiteral2(value) {
|
|
147546
147544
|
if (typeof value === "number") {
|
|
147547
147545
|
return factory.createNumericLiteral(value);
|
|
147548
147546
|
}
|
|
@@ -147557,13 +147555,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147557
147555
|
}
|
|
147558
147556
|
return factory.createStringLiteralFromNode(value);
|
|
147559
147557
|
}, { 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." });
|
|
147560
|
-
createMethodSignature =
|
|
147558
|
+
createMethodSignature = deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
|
|
147561
147559
|
return factory.createMethodSignature(void 0, name, questionToken, typeParameters, parameters, type);
|
|
147562
147560
|
}, factoryDeprecation);
|
|
147563
|
-
updateMethodSignature =
|
|
147561
|
+
updateMethodSignature = deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
|
|
147564
147562
|
return factory.updateMethodSignature(node, node.modifiers, name, questionToken, typeParameters, parameters, type);
|
|
147565
147563
|
}, factoryDeprecation);
|
|
147566
|
-
createTypeOperatorNode =
|
|
147564
|
+
createTypeOperatorNode = deprecate(function createTypeOperatorNode2(operatorOrType, type) {
|
|
147567
147565
|
let operator;
|
|
147568
147566
|
if (type) {
|
|
147569
147567
|
operator = operatorOrType;
|
|
@@ -147573,7 +147571,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147573
147571
|
}
|
|
147574
147572
|
return factory.createTypeOperatorNode(operator, type);
|
|
147575
147573
|
}, factoryDeprecation);
|
|
147576
|
-
createTaggedTemplate =
|
|
147574
|
+
createTaggedTemplate = deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
|
|
147577
147575
|
let typeArguments;
|
|
147578
147576
|
if (template) {
|
|
147579
147577
|
typeArguments = typeArgumentsOrTemplate;
|
|
@@ -147582,7 +147580,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147582
147580
|
}
|
|
147583
147581
|
return factory.createTaggedTemplateExpression(tag, typeArguments, template);
|
|
147584
147582
|
}, factoryDeprecation);
|
|
147585
|
-
updateTaggedTemplate =
|
|
147583
|
+
updateTaggedTemplate = deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
|
|
147586
147584
|
let typeArguments;
|
|
147587
147585
|
if (template) {
|
|
147588
147586
|
typeArguments = typeArgumentsOrTemplate;
|
|
@@ -147591,16 +147589,16 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147591
147589
|
}
|
|
147592
147590
|
return factory.updateTaggedTemplateExpression(node, tag, typeArguments, template);
|
|
147593
147591
|
}, factoryDeprecation);
|
|
147594
|
-
updateBinary =
|
|
147592
|
+
updateBinary = deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
|
|
147595
147593
|
if (typeof operator === "number") {
|
|
147596
147594
|
operator = operator === node.operatorToken.kind ? node.operatorToken : factory.createToken(operator);
|
|
147597
147595
|
}
|
|
147598
147596
|
return factory.updateBinaryExpression(node, left, operator, right);
|
|
147599
147597
|
}, factoryDeprecation);
|
|
147600
|
-
createConditional =
|
|
147598
|
+
createConditional = deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
|
|
147601
147599
|
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");
|
|
147602
147600
|
}, factoryDeprecation);
|
|
147603
|
-
createYield =
|
|
147601
|
+
createYield = deprecate(function createYield2(asteriskTokenOrExpression, expression) {
|
|
147604
147602
|
let asteriskToken;
|
|
147605
147603
|
if (expression) {
|
|
147606
147604
|
asteriskToken = asteriskTokenOrExpression;
|
|
@@ -147609,18 +147607,18 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147609
147607
|
}
|
|
147610
147608
|
return factory.createYieldExpression(asteriskToken, expression);
|
|
147611
147609
|
}, factoryDeprecation);
|
|
147612
|
-
createClassExpression =
|
|
147610
|
+
createClassExpression = deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
|
|
147613
147611
|
return factory.createClassExpression(void 0, modifiers, name, typeParameters, heritageClauses, members);
|
|
147614
147612
|
}, factoryDeprecation);
|
|
147615
|
-
updateClassExpression =
|
|
147613
|
+
updateClassExpression = deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
|
|
147616
147614
|
return factory.updateClassExpression(node, void 0, modifiers, name, typeParameters, heritageClauses, members);
|
|
147617
147615
|
}, factoryDeprecation);
|
|
147618
|
-
createPropertySignature =
|
|
147616
|
+
createPropertySignature = deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
|
|
147619
147617
|
const node = factory.createPropertySignature(modifiers, name, questionToken, type);
|
|
147620
147618
|
node.initializer = initializer;
|
|
147621
147619
|
return node;
|
|
147622
147620
|
}, factoryDeprecation);
|
|
147623
|
-
updatePropertySignature =
|
|
147621
|
+
updatePropertySignature = deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
|
|
147624
147622
|
let updated = factory.updatePropertySignature(node, modifiers, name, questionToken, type);
|
|
147625
147623
|
if (node.initializer !== initializer) {
|
|
147626
147624
|
if (updated === node) {
|
|
@@ -147630,80 +147628,80 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147630
147628
|
}
|
|
147631
147629
|
return updated;
|
|
147632
147630
|
}, factoryDeprecation);
|
|
147633
|
-
createExpressionWithTypeArguments =
|
|
147631
|
+
createExpressionWithTypeArguments = deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
|
|
147634
147632
|
return factory.createExpressionWithTypeArguments(expression, typeArguments);
|
|
147635
147633
|
}, factoryDeprecation);
|
|
147636
|
-
updateExpressionWithTypeArguments =
|
|
147634
|
+
updateExpressionWithTypeArguments = deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
|
|
147637
147635
|
return factory.updateExpressionWithTypeArguments(node, expression, typeArguments);
|
|
147638
147636
|
}, factoryDeprecation);
|
|
147639
|
-
createArrowFunction =
|
|
147637
|
+
createArrowFunction = deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
|
|
147640
147638
|
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");
|
|
147641
147639
|
}, factoryDeprecation);
|
|
147642
|
-
updateArrowFunction =
|
|
147640
|
+
updateArrowFunction = deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
|
|
147643
147641
|
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");
|
|
147644
147642
|
}, factoryDeprecation);
|
|
147645
|
-
createVariableDeclaration =
|
|
147643
|
+
createVariableDeclaration = deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
|
|
147646
147644
|
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");
|
|
147647
147645
|
}, factoryDeprecation);
|
|
147648
|
-
updateVariableDeclaration =
|
|
147646
|
+
updateVariableDeclaration = deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
|
|
147649
147647
|
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");
|
|
147650
147648
|
}, factoryDeprecation);
|
|
147651
|
-
createImportClause =
|
|
147649
|
+
createImportClause = deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
|
|
147652
147650
|
return factory.createImportClause(isTypeOnly, name, namedBindings);
|
|
147653
147651
|
}, factoryDeprecation);
|
|
147654
|
-
updateImportClause =
|
|
147652
|
+
updateImportClause = deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
|
|
147655
147653
|
return factory.updateImportClause(node, isTypeOnly, name, namedBindings);
|
|
147656
147654
|
}, factoryDeprecation);
|
|
147657
|
-
createExportDeclaration =
|
|
147655
|
+
createExportDeclaration = deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
|
|
147658
147656
|
return factory.createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);
|
|
147659
147657
|
}, factoryDeprecation);
|
|
147660
|
-
updateExportDeclaration =
|
|
147658
|
+
updateExportDeclaration = deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
|
|
147661
147659
|
return factory.updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, node.assertClause);
|
|
147662
147660
|
}, factoryDeprecation);
|
|
147663
|
-
createJSDocParamTag =
|
|
147661
|
+
createJSDocParamTag = deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
|
|
147664
147662
|
return factory.createJSDocParameterTag(void 0, name, isBracketed, typeExpression, false, comment ? factory.createNodeArray([factory.createJSDocText(comment)]) : void 0);
|
|
147665
147663
|
}, factoryDeprecation);
|
|
147666
|
-
createComma =
|
|
147664
|
+
createComma = deprecate(function createComma2(left, right) {
|
|
147667
147665
|
return factory.createComma(left, right);
|
|
147668
147666
|
}, factoryDeprecation);
|
|
147669
|
-
createLessThan =
|
|
147667
|
+
createLessThan = deprecate(function createLessThan2(left, right) {
|
|
147670
147668
|
return factory.createLessThan(left, right);
|
|
147671
147669
|
}, factoryDeprecation);
|
|
147672
|
-
createAssignment =
|
|
147670
|
+
createAssignment = deprecate(function createAssignment2(left, right) {
|
|
147673
147671
|
return factory.createAssignment(left, right);
|
|
147674
147672
|
}, factoryDeprecation);
|
|
147675
|
-
createStrictEquality =
|
|
147673
|
+
createStrictEquality = deprecate(function createStrictEquality2(left, right) {
|
|
147676
147674
|
return factory.createStrictEquality(left, right);
|
|
147677
147675
|
}, factoryDeprecation);
|
|
147678
|
-
createStrictInequality =
|
|
147676
|
+
createStrictInequality = deprecate(function createStrictInequality2(left, right) {
|
|
147679
147677
|
return factory.createStrictInequality(left, right);
|
|
147680
147678
|
}, factoryDeprecation);
|
|
147681
|
-
createAdd =
|
|
147679
|
+
createAdd = deprecate(function createAdd2(left, right) {
|
|
147682
147680
|
return factory.createAdd(left, right);
|
|
147683
147681
|
}, factoryDeprecation);
|
|
147684
|
-
createSubtract =
|
|
147682
|
+
createSubtract = deprecate(function createSubtract2(left, right) {
|
|
147685
147683
|
return factory.createSubtract(left, right);
|
|
147686
147684
|
}, factoryDeprecation);
|
|
147687
|
-
createLogicalAnd =
|
|
147685
|
+
createLogicalAnd = deprecate(function createLogicalAnd2(left, right) {
|
|
147688
147686
|
return factory.createLogicalAnd(left, right);
|
|
147689
147687
|
}, factoryDeprecation);
|
|
147690
|
-
createLogicalOr =
|
|
147688
|
+
createLogicalOr = deprecate(function createLogicalOr2(left, right) {
|
|
147691
147689
|
return factory.createLogicalOr(left, right);
|
|
147692
147690
|
}, factoryDeprecation);
|
|
147693
|
-
createPostfixIncrement =
|
|
147691
|
+
createPostfixIncrement = deprecate(function createPostfixIncrement2(operand) {
|
|
147694
147692
|
return factory.createPostfixIncrement(operand);
|
|
147695
147693
|
}, factoryDeprecation);
|
|
147696
|
-
createLogicalNot =
|
|
147694
|
+
createLogicalNot = deprecate(function createLogicalNot2(operand) {
|
|
147697
147695
|
return factory.createLogicalNot(operand);
|
|
147698
147696
|
}, factoryDeprecation);
|
|
147699
|
-
createNode2 =
|
|
147697
|
+
createNode2 = deprecate(function createNode3(kind, pos = 0, end = 0) {
|
|
147700
147698
|
return setTextRangePosEnd(
|
|
147701
147699
|
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),
|
|
147702
147700
|
pos,
|
|
147703
147701
|
end
|
|
147704
147702
|
);
|
|
147705
147703
|
}, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory` method instead." });
|
|
147706
|
-
getMutableClone =
|
|
147704
|
+
getMutableClone = deprecate(function getMutableClone2(node) {
|
|
147707
147705
|
const clone2 = factory.cloneNode(node);
|
|
147708
147706
|
setTextRange(clone2, node);
|
|
147709
147707
|
setParent(clone2, node.parent);
|
|
@@ -147718,7 +147716,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147718
147716
|
"src/deprecatedCompat/4.0/renamedNodeTests.ts"() {
|
|
147719
147717
|
"use strict";
|
|
147720
147718
|
init_ts5();
|
|
147721
|
-
|
|
147719
|
+
init_deprecate();
|
|
147720
|
+
isTypeAssertion = deprecate(function isTypeAssertion2(node) {
|
|
147722
147721
|
return node.kind === 213 /* TypeAssertionExpression */;
|
|
147723
147722
|
}, {
|
|
147724
147723
|
since: "4.0",
|
|
@@ -147734,7 +147733,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147734
147733
|
"src/deprecatedCompat/4.2/renamedNodeTests.ts"() {
|
|
147735
147734
|
"use strict";
|
|
147736
147735
|
init_ts5();
|
|
147737
|
-
|
|
147736
|
+
init_deprecate();
|
|
147737
|
+
isIdentifierOrPrivateIdentifier = deprecate(function isIdentifierOrPrivateIdentifier2(node) {
|
|
147738
147738
|
return isMemberName(node);
|
|
147739
147739
|
}, {
|
|
147740
147740
|
since: "4.2",
|
|
@@ -150656,6 +150656,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
150656
150656
|
supportedLocaleDirectories: () => supportedLocaleDirectories,
|
|
150657
150657
|
supportedTSExtensions: () => supportedTSExtensions,
|
|
150658
150658
|
supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
|
|
150659
|
+
supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
|
|
150659
150660
|
suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
|
|
150660
150661
|
suppressLeadingTrivia: () => suppressLeadingTrivia,
|
|
150661
150662
|
suppressTrailingTrivia: () => suppressTrailingTrivia,
|