typescript 5.0.0-dev.20221115 → 5.0.0-dev.20221117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/lib.es5.d.ts +1 -1
- package/lib/tsc.js +317 -377
- package/lib/tsserver.js +748 -750
- package/lib/tsserverlibrary.d.ts +2 -4
- package/lib/tsserverlibrary.js +760 -752
- package/lib/typescript.d.ts +2 -4
- package/lib/typescript.js +756 -749
- 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-dev.
|
|
45
|
+
version = `${versionMajorMinor}.0-dev.20221117`;
|
|
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";
|
|
@@ -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}'."),
|
|
@@ -17468,7 +17420,7 @@ ${lanes.join("\n")}
|
|
|
17468
17420
|
const { isBracketed, typeExpression } = node;
|
|
17469
17421
|
return isBracketed || !!typeExpression && typeExpression.type.kind === 319 /* JSDocOptionalType */;
|
|
17470
17422
|
}
|
|
17471
|
-
var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashAMDReferencePathRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, AccessKind, objectAllocator, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, extensionsToRemove, emptyFileSystemEntries;
|
|
17423
|
+
var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashAMDReferencePathRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, AccessKind, objectAllocator, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, supportedTSImplementationExtensions, extensionsToRemove, emptyFileSystemEntries;
|
|
17472
17424
|
var init_utilities = __esm({
|
|
17473
17425
|
"src/compiler/utilities.ts"() {
|
|
17474
17426
|
"use strict";
|
|
@@ -17618,6 +17570,7 @@ ${lanes.join("\n")}
|
|
|
17618
17570
|
allSupportedExtensions = [[".ts" /* Ts */, ".tsx" /* Tsx */, ".d.ts" /* Dts */, ".js" /* Js */, ".jsx" /* Jsx */], [".cts" /* Cts */, ".d.cts" /* Dcts */, ".cjs" /* Cjs */], [".mts" /* Mts */, ".d.mts" /* Dmts */, ".mjs" /* Mjs */]];
|
|
17619
17571
|
allSupportedExtensionsWithJson = [...allSupportedExtensions, [".json" /* Json */]];
|
|
17620
17572
|
supportedDeclarationExtensions = [".d.ts" /* Dts */, ".d.cts" /* Dcts */, ".d.mts" /* Dmts */];
|
|
17573
|
+
supportedTSImplementationExtensions = [".ts" /* Ts */, ".cts" /* Cts */, ".mts" /* Mts */, ".tsx" /* Tsx */];
|
|
17621
17574
|
extensionsToRemove = [".d.ts" /* Dts */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".mjs" /* Mjs */, ".mts" /* Mts */, ".cjs" /* Cjs */, ".cts" /* Cts */, ".ts" /* Ts */, ".js" /* Js */, ".tsx" /* Tsx */, ".jsx" /* Jsx */, ".json" /* Json */];
|
|
17622
17575
|
emptyFileSystemEntries = {
|
|
17623
17576
|
files: emptyArray,
|
|
@@ -23193,7 +23146,7 @@ ${lanes.join("\n")}
|
|
|
23193
23146
|
var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
|
|
23194
23147
|
var i, p;
|
|
23195
23148
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
23196
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done:
|
|
23149
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
23197
23150
|
};`
|
|
23198
23151
|
};
|
|
23199
23152
|
asyncValues = {
|
|
@@ -34969,6 +34922,18 @@ ${lanes.join("\n")}
|
|
|
34969
34922
|
return { path: r.path, ext: r.extension };
|
|
34970
34923
|
}
|
|
34971
34924
|
}
|
|
34925
|
+
function formatExtensions(extensions) {
|
|
34926
|
+
const result = [];
|
|
34927
|
+
if (extensions & 1 /* TypeScript */)
|
|
34928
|
+
result.push("TypeScript");
|
|
34929
|
+
if (extensions & 2 /* JavaScript */)
|
|
34930
|
+
result.push("JavaScript");
|
|
34931
|
+
if (extensions & 4 /* Declaration */)
|
|
34932
|
+
result.push("Declaration");
|
|
34933
|
+
if (extensions & 8 /* Json */)
|
|
34934
|
+
result.push("JSON");
|
|
34935
|
+
return result.join(", ");
|
|
34936
|
+
}
|
|
34972
34937
|
function resolvedTypeScriptOnly(resolved) {
|
|
34973
34938
|
if (!resolved) {
|
|
34974
34939
|
return void 0;
|
|
@@ -35170,7 +35135,8 @@ ${lanes.join("\n")}
|
|
|
35170
35135
|
features,
|
|
35171
35136
|
conditions,
|
|
35172
35137
|
requestContainingDirectory: containingDirectory,
|
|
35173
|
-
reportDiagnostic: (diag2) => void diagnostics.push(diag2)
|
|
35138
|
+
reportDiagnostic: (diag2) => void diagnostics.push(diag2),
|
|
35139
|
+
isConfigLookup: false
|
|
35174
35140
|
};
|
|
35175
35141
|
let resolved = primaryLookup();
|
|
35176
35142
|
let primary = true;
|
|
@@ -35220,7 +35186,7 @@ ${lanes.join("\n")}
|
|
|
35220
35186
|
}
|
|
35221
35187
|
return resolvedTypeScriptOnly(
|
|
35222
35188
|
loadNodeModuleFromDirectory(
|
|
35223
|
-
4 /*
|
|
35189
|
+
4 /* Declaration */,
|
|
35224
35190
|
candidate,
|
|
35225
35191
|
!directoryExists,
|
|
35226
35192
|
moduleResolutionState
|
|
@@ -35241,11 +35207,11 @@ ${lanes.join("\n")}
|
|
|
35241
35207
|
}
|
|
35242
35208
|
let result2;
|
|
35243
35209
|
if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) {
|
|
35244
|
-
const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /*
|
|
35210
|
+
const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /* Declaration */, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);
|
|
35245
35211
|
result2 = searchResult && searchResult.value;
|
|
35246
35212
|
} else {
|
|
35247
35213
|
const { path: candidate } = normalizePathForCJSResolution(initialLocationForSecondaryLookup, typeReferenceDirectiveName);
|
|
35248
|
-
result2 = nodeLoadModuleByRelativeName(4 /*
|
|
35214
|
+
result2 = nodeLoadModuleByRelativeName(4 /* Declaration */, candidate, false, moduleResolutionState, true);
|
|
35249
35215
|
}
|
|
35250
35216
|
return resolvedTypeScriptOnly(result2);
|
|
35251
35217
|
} else {
|
|
@@ -35762,31 +35728,39 @@ ${lanes.join("\n")}
|
|
|
35762
35728
|
function nodeNextModuleNameResolverWorker(features, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {
|
|
35763
35729
|
const containingDirectory = getDirectoryPath(containingFile);
|
|
35764
35730
|
const esmMode = resolutionMode === 99 /* ESNext */ ? 32 /* EsmMode */ : 0;
|
|
35765
|
-
let extensions = compilerOptions.noDtsResolution ?
|
|
35731
|
+
let extensions = compilerOptions.noDtsResolution ? 3 /* ImplementationFiles */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
|
|
35766
35732
|
if (compilerOptions.resolveJsonModule) {
|
|
35767
|
-
extensions
|
|
35733
|
+
extensions |= 8 /* Json */;
|
|
35768
35734
|
}
|
|
35769
|
-
return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference);
|
|
35735
|
+
return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, false, redirectedReference);
|
|
35770
35736
|
}
|
|
35771
35737
|
function tryResolveJSModuleWorker(moduleName, initialDir, host) {
|
|
35772
|
-
return nodeModuleNameResolverWorker(
|
|
35738
|
+
return nodeModuleNameResolverWorker(
|
|
35739
|
+
0 /* None */,
|
|
35740
|
+
moduleName,
|
|
35741
|
+
initialDir,
|
|
35742
|
+
{ moduleResolution: 2 /* NodeJs */, allowJs: true },
|
|
35743
|
+
host,
|
|
35744
|
+
void 0,
|
|
35745
|
+
2 /* JavaScript */,
|
|
35746
|
+
false,
|
|
35747
|
+
void 0
|
|
35748
|
+
);
|
|
35773
35749
|
}
|
|
35774
|
-
function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference,
|
|
35750
|
+
function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, isConfigLookup) {
|
|
35775
35751
|
let extensions;
|
|
35776
|
-
if (
|
|
35777
|
-
extensions =
|
|
35752
|
+
if (isConfigLookup) {
|
|
35753
|
+
extensions = 8 /* Json */;
|
|
35778
35754
|
} else if (compilerOptions.noDtsResolution) {
|
|
35779
|
-
extensions =
|
|
35780
|
-
if (compilerOptions.allowJs)
|
|
35781
|
-
extensions.push(1 /* JavaScript */);
|
|
35755
|
+
extensions = 3 /* ImplementationFiles */;
|
|
35782
35756
|
if (compilerOptions.resolveJsonModule)
|
|
35783
|
-
extensions
|
|
35757
|
+
extensions |= 8 /* Json */;
|
|
35784
35758
|
} else {
|
|
35785
|
-
extensions = compilerOptions.resolveJsonModule ?
|
|
35759
|
+
extensions = compilerOptions.resolveJsonModule ? 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */ | 8 /* Json */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
|
|
35786
35760
|
}
|
|
35787
|
-
return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, redirectedReference);
|
|
35761
|
+
return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, !!isConfigLookup, redirectedReference);
|
|
35788
35762
|
}
|
|
35789
|
-
function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference) {
|
|
35763
|
+
function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, isConfigLookup, redirectedReference) {
|
|
35790
35764
|
var _a2, _b;
|
|
35791
35765
|
const traceEnabled = isTraceEnabled(compilerOptions, host);
|
|
35792
35766
|
const failedLookupLocations = [];
|
|
@@ -35806,12 +35780,20 @@ ${lanes.join("\n")}
|
|
|
35806
35780
|
features,
|
|
35807
35781
|
conditions,
|
|
35808
35782
|
requestContainingDirectory: containingDirectory,
|
|
35809
|
-
reportDiagnostic: (diag2) => void diagnostics.push(diag2)
|
|
35783
|
+
reportDiagnostic: (diag2) => void diagnostics.push(diag2),
|
|
35784
|
+
isConfigLookup
|
|
35810
35785
|
};
|
|
35811
35786
|
if (traceEnabled && getEmitModuleResolutionKind(compilerOptions) >= 3 /* Node16 */ && getEmitModuleResolutionKind(compilerOptions) <= 99 /* NodeNext */) {
|
|
35812
35787
|
trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & 32 /* EsmMode */ ? "ESM" : "CJS", conditions.map((c) => `'${c}'`).join(", "));
|
|
35813
35788
|
}
|
|
35814
|
-
|
|
35789
|
+
let result;
|
|
35790
|
+
if (getEmitModuleResolutionKind(compilerOptions) === 2 /* NodeJs */) {
|
|
35791
|
+
const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
|
|
35792
|
+
const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
|
|
35793
|
+
result = priorityExtensions && tryResolve(priorityExtensions) || secondaryExtensions && tryResolve(secondaryExtensions) || void 0;
|
|
35794
|
+
} else {
|
|
35795
|
+
result = tryResolve(extensions);
|
|
35796
|
+
}
|
|
35815
35797
|
return createResolvedModuleWithFailedLookupLocations(
|
|
35816
35798
|
(_a2 = result == null ? void 0 : result.value) == null ? void 0 : _a2.resolved,
|
|
35817
35799
|
(_b = result == null ? void 0 : result.value) == null ? void 0 : _b.isExternalLibraryImport,
|
|
@@ -35836,7 +35818,7 @@ ${lanes.join("\n")}
|
|
|
35836
35818
|
}
|
|
35837
35819
|
if (!resolved2) {
|
|
35838
35820
|
if (traceEnabled) {
|
|
35839
|
-
trace(host, Diagnostics.
|
|
35821
|
+
trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions2));
|
|
35840
35822
|
}
|
|
35841
35823
|
resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state, cache, redirectedReference);
|
|
35842
35824
|
}
|
|
@@ -35877,7 +35859,7 @@ ${lanes.join("\n")}
|
|
|
35877
35859
|
}
|
|
35878
35860
|
function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
|
|
35879
35861
|
if (state.traceEnabled) {
|
|
35880
|
-
trace(state.host, Diagnostics.
|
|
35862
|
+
trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1, candidate, formatExtensions(extensions));
|
|
35881
35863
|
}
|
|
35882
35864
|
if (!hasTrailingDirectorySeparator(candidate)) {
|
|
35883
35865
|
if (!onlyRecordFailures) {
|
|
@@ -35934,10 +35916,9 @@ ${lanes.join("\n")}
|
|
|
35934
35916
|
return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state));
|
|
35935
35917
|
}
|
|
35936
35918
|
function loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) {
|
|
35937
|
-
|
|
35938
|
-
|
|
35939
|
-
|
|
35940
|
-
return extensionLess === void 0 && extensions === 2 /* Json */ ? void 0 : tryAddingExtensions(extensionLess || candidate, extensions, extension, onlyRecordFailures, state);
|
|
35919
|
+
const resolvedByReplacingExtension = loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
|
|
35920
|
+
if (resolvedByReplacingExtension) {
|
|
35921
|
+
return resolvedByReplacingExtension;
|
|
35941
35922
|
}
|
|
35942
35923
|
if (!(state.features & 32 /* EsmMode */)) {
|
|
35943
35924
|
const resolvedByAddingExtension = tryAddingExtensions(candidate, extensions, "", onlyRecordFailures, state);
|
|
@@ -35945,10 +35926,9 @@ ${lanes.join("\n")}
|
|
|
35945
35926
|
return resolvedByAddingExtension;
|
|
35946
35927
|
}
|
|
35947
35928
|
}
|
|
35948
|
-
return loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
|
|
35949
35929
|
}
|
|
35950
35930
|
function loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state) {
|
|
35951
|
-
if (hasJSFileExtension(candidate) || fileExtensionIs(candidate, ".json" /* Json */)
|
|
35931
|
+
if (hasJSFileExtension(candidate) || extensions & 8 /* Json */ && fileExtensionIs(candidate, ".json" /* Json */)) {
|
|
35952
35932
|
const extensionless = removeFileExtension(candidate);
|
|
35953
35933
|
const extension = candidate.substring(extensionless.length);
|
|
35954
35934
|
if (state.traceEnabled) {
|
|
@@ -35958,7 +35938,7 @@ ${lanes.join("\n")}
|
|
|
35958
35938
|
}
|
|
35959
35939
|
}
|
|
35960
35940
|
function loadJSOrExactTSFileName(extensions, candidate, onlyRecordFailures, state) {
|
|
35961
|
-
if (
|
|
35941
|
+
if (extensions & 1 /* TypeScript */ && fileExtensionIsOneOf(candidate, supportedTSImplementationExtensions) || extensions & 4 /* Declaration */ && fileExtensionIsOneOf(candidate, supportedDeclarationExtensions)) {
|
|
35962
35942
|
const result = tryFile(candidate, onlyRecordFailures, state);
|
|
35963
35943
|
return result !== void 0 ? { path: candidate, ext: tryExtractTSExtension(candidate) } : void 0;
|
|
35964
35944
|
}
|
|
@@ -35971,59 +35951,32 @@ ${lanes.join("\n")}
|
|
|
35971
35951
|
onlyRecordFailures = !directoryProbablyExists(directory, state.host);
|
|
35972
35952
|
}
|
|
35973
35953
|
}
|
|
35974
|
-
switch (
|
|
35975
|
-
case
|
|
35976
|
-
|
|
35977
|
-
|
|
35978
|
-
|
|
35979
|
-
|
|
35980
|
-
|
|
35981
|
-
|
|
35982
|
-
|
|
35983
|
-
|
|
35984
|
-
|
|
35985
|
-
|
|
35986
|
-
|
|
35987
|
-
|
|
35988
|
-
|
|
35989
|
-
return
|
|
35990
|
-
}
|
|
35991
|
-
|
|
35992
|
-
|
|
35993
|
-
|
|
35994
|
-
|
|
35995
|
-
|
|
35996
|
-
case ".mts" /* Mts */:
|
|
35997
|
-
case ".d.mts" /* Dmts */:
|
|
35998
|
-
return tryExtension(".mts" /* Mts */) || (useDts ? tryExtension(".d.mts" /* Dmts */) : void 0);
|
|
35999
|
-
case ".cjs" /* Cjs */:
|
|
36000
|
-
case ".cts" /* Cts */:
|
|
36001
|
-
case ".d.cts" /* Dcts */:
|
|
36002
|
-
return tryExtension(".cts" /* Cts */) || (useDts ? tryExtension(".d.cts" /* Dcts */) : void 0);
|
|
36003
|
-
case ".json" /* Json */:
|
|
36004
|
-
candidate += ".json" /* Json */;
|
|
36005
|
-
return useDts ? tryExtension(".d.ts" /* Dts */) : void 0;
|
|
36006
|
-
default:
|
|
36007
|
-
return tryExtension(".ts" /* Ts */) || tryExtension(".tsx" /* Tsx */) || (useDts ? tryExtension(".d.ts" /* Dts */) : void 0);
|
|
36008
|
-
}
|
|
36009
|
-
case 1 /* JavaScript */:
|
|
36010
|
-
switch (originalExtension) {
|
|
36011
|
-
case ".mjs" /* Mjs */:
|
|
36012
|
-
case ".mts" /* Mts */:
|
|
36013
|
-
case ".d.mts" /* Dmts */:
|
|
36014
|
-
return tryExtension(".mjs" /* Mjs */);
|
|
36015
|
-
case ".cjs" /* Cjs */:
|
|
36016
|
-
case ".cts" /* Cts */:
|
|
36017
|
-
case ".d.cts" /* Dcts */:
|
|
36018
|
-
return tryExtension(".cjs" /* Cjs */);
|
|
36019
|
-
case ".json" /* Json */:
|
|
36020
|
-
return tryExtension(".json" /* Json */);
|
|
36021
|
-
default:
|
|
36022
|
-
return tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */);
|
|
35954
|
+
switch (originalExtension) {
|
|
35955
|
+
case ".mjs" /* Mjs */:
|
|
35956
|
+
case ".mts" /* Mts */:
|
|
35957
|
+
case ".d.mts" /* Dmts */:
|
|
35958
|
+
return extensions & 1 /* TypeScript */ && tryExtension(".mts" /* Mts */) || extensions & 4 /* Declaration */ && tryExtension(".d.mts" /* Dmts */) || extensions & 2 /* JavaScript */ && tryExtension(".mjs" /* Mjs */) || void 0;
|
|
35959
|
+
case ".cjs" /* Cjs */:
|
|
35960
|
+
case ".cts" /* Cts */:
|
|
35961
|
+
case ".d.cts" /* Dcts */:
|
|
35962
|
+
return extensions & 1 /* TypeScript */ && tryExtension(".cts" /* Cts */) || extensions & 4 /* Declaration */ && tryExtension(".d.cts" /* Dcts */) || extensions & 2 /* JavaScript */ && tryExtension(".cjs" /* Cjs */) || void 0;
|
|
35963
|
+
case ".json" /* Json */:
|
|
35964
|
+
const originalCandidate = candidate;
|
|
35965
|
+
if (extensions & 4 /* Declaration */) {
|
|
35966
|
+
candidate += ".json" /* Json */;
|
|
35967
|
+
const result = tryExtension(".d.ts" /* Dts */);
|
|
35968
|
+
if (result)
|
|
35969
|
+
return result;
|
|
35970
|
+
}
|
|
35971
|
+
if (extensions & 8 /* Json */) {
|
|
35972
|
+
candidate = originalCandidate;
|
|
35973
|
+
const result = tryExtension(".json" /* Json */);
|
|
35974
|
+
if (result)
|
|
35975
|
+
return result;
|
|
36023
35976
|
}
|
|
36024
|
-
|
|
36025
|
-
|
|
36026
|
-
return tryExtension(".json" /* Json */);
|
|
35977
|
+
return void 0;
|
|
35978
|
+
default:
|
|
35979
|
+
return extensions & 1 /* TypeScript */ && (tryExtension(".ts" /* Ts */) || tryExtension(".tsx" /* Tsx */)) || extensions & 4 /* Declaration */ && tryExtension(".d.ts" /* Dts */) || extensions & 2 /* JavaScript */ && (tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */)) || state.isConfigLookup && tryExtension(".json" /* Json */) || void 0;
|
|
36027
35980
|
}
|
|
36028
35981
|
function tryExtension(ext) {
|
|
36029
35982
|
const path = tryFile(candidate + ext, onlyRecordFailures, state);
|
|
@@ -36066,7 +36019,7 @@ ${lanes.join("\n")}
|
|
|
36066
36019
|
return packageJsonInfo.contents.resolvedEntrypoints;
|
|
36067
36020
|
}
|
|
36068
36021
|
let entrypoints;
|
|
36069
|
-
const extensions = resolveJs ?
|
|
36022
|
+
const extensions = 1 /* TypeScript */ | 4 /* Declaration */ | (resolveJs ? 2 /* JavaScript */ : 0);
|
|
36070
36023
|
const features = getDefaultNodeResolutionFeatures(options);
|
|
36071
36024
|
const requireState = getTemporaryModuleResolutionState(cache == null ? void 0 : cache.getPackageJsonInfoCache(), host, options);
|
|
36072
36025
|
requireState.conditions = ["node", "require", "types"];
|
|
@@ -36154,7 +36107,8 @@ ${lanes.join("\n")}
|
|
|
36154
36107
|
features: 0 /* None */,
|
|
36155
36108
|
conditions: emptyArray,
|
|
36156
36109
|
requestContainingDirectory: void 0,
|
|
36157
|
-
reportDiagnostic: noop
|
|
36110
|
+
reportDiagnostic: noop,
|
|
36111
|
+
isConfigLookup: false
|
|
36158
36112
|
};
|
|
36159
36113
|
}
|
|
36160
36114
|
function getPackageScopeForPath(fileName, state) {
|
|
@@ -36213,23 +36167,10 @@ ${lanes.join("\n")}
|
|
|
36213
36167
|
function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) {
|
|
36214
36168
|
let packageFile;
|
|
36215
36169
|
if (jsonContent) {
|
|
36216
|
-
|
|
36217
|
-
|
|
36218
|
-
|
|
36219
|
-
|
|
36220
|
-
packageFile = readPackageJsonMainField(jsonContent, candidate, state);
|
|
36221
|
-
break;
|
|
36222
|
-
case 0 /* TypeScript */:
|
|
36223
|
-
packageFile = readPackageJsonTypesFields(jsonContent, candidate, state) || readPackageJsonMainField(jsonContent, candidate, state);
|
|
36224
|
-
break;
|
|
36225
|
-
case 4 /* DtsOnly */:
|
|
36226
|
-
packageFile = readPackageJsonTypesFields(jsonContent, candidate, state);
|
|
36227
|
-
break;
|
|
36228
|
-
case 3 /* TSConfig */:
|
|
36229
|
-
packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
|
|
36230
|
-
break;
|
|
36231
|
-
default:
|
|
36232
|
-
return Debug.assertNever(extensions);
|
|
36170
|
+
if (state.isConfigLookup) {
|
|
36171
|
+
packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
|
|
36172
|
+
} else {
|
|
36173
|
+
packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(jsonContent, candidate, state) || void 0;
|
|
36233
36174
|
}
|
|
36234
36175
|
}
|
|
36235
36176
|
const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
|
|
@@ -36243,18 +36184,18 @@ ${lanes.join("\n")}
|
|
|
36243
36184
|
trace(state2.host, Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromFile);
|
|
36244
36185
|
}
|
|
36245
36186
|
}
|
|
36246
|
-
const
|
|
36187
|
+
const expandedExtensions = extensions2 === 4 /* Declaration */ ? 1 /* TypeScript */ | 4 /* Declaration */ : extensions2;
|
|
36247
36188
|
const features = state2.features;
|
|
36248
36189
|
if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") {
|
|
36249
36190
|
state2.features &= ~32 /* EsmMode */;
|
|
36250
36191
|
}
|
|
36251
|
-
const result = nodeLoadModuleByRelativeName(
|
|
36192
|
+
const result = nodeLoadModuleByRelativeName(expandedExtensions, candidate2, onlyRecordFailures2, state2, false);
|
|
36252
36193
|
state2.features = features;
|
|
36253
36194
|
return result;
|
|
36254
36195
|
};
|
|
36255
36196
|
const onlyRecordFailuresForPackageFile = packageFile ? !directoryProbablyExists(getDirectoryPath(packageFile), state.host) : void 0;
|
|
36256
36197
|
const onlyRecordFailuresForIndex = onlyRecordFailures || !directoryProbablyExists(candidate, state.host);
|
|
36257
|
-
const indexPath = combinePaths(candidate,
|
|
36198
|
+
const indexPath = combinePaths(candidate, state.isConfigLookup ? "tsconfig" : "index");
|
|
36258
36199
|
if (versionPaths && (!packageFile || containsPath(candidate, packageFile))) {
|
|
36259
36200
|
const moduleName = getRelativePathFromDirectory(candidate, packageFile || indexPath, false);
|
|
36260
36201
|
if (state.traceEnabled) {
|
|
@@ -36277,19 +36218,7 @@ ${lanes.join("\n")}
|
|
|
36277
36218
|
return ext !== void 0 && extensionIsOk(extensions, ext) ? { path, ext } : void 0;
|
|
36278
36219
|
}
|
|
36279
36220
|
function extensionIsOk(extensions, extension) {
|
|
36280
|
-
|
|
36281
|
-
case 1 /* JavaScript */:
|
|
36282
|
-
return extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */;
|
|
36283
|
-
case 3 /* TSConfig */:
|
|
36284
|
-
case 2 /* Json */:
|
|
36285
|
-
return extension === ".json" /* Json */;
|
|
36286
|
-
case 0 /* TypeScript */:
|
|
36287
|
-
return extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */ || extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */;
|
|
36288
|
-
case 5 /* TsOnly */:
|
|
36289
|
-
return extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */;
|
|
36290
|
-
case 4 /* DtsOnly */:
|
|
36291
|
-
return extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */;
|
|
36292
|
-
}
|
|
36221
|
+
return extensions & 2 /* JavaScript */ && (extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */) || extensions & 1 /* TypeScript */ && (extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */) || extensions & 4 /* Declaration */ && (extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */) || extensions & 8 /* Json */ && extension === ".json" /* Json */ || false;
|
|
36293
36222
|
}
|
|
36294
36223
|
function parsePackageName(moduleName) {
|
|
36295
36224
|
let idx = moduleName.indexOf(directorySeparator);
|
|
@@ -36451,7 +36380,7 @@ ${lanes.join("\n")}
|
|
|
36451
36380
|
const combinedLookup = pattern ? target.replace(/\*/g, subpath) : target + subpath;
|
|
36452
36381
|
traceIfEnabled(state, Diagnostics.Using_0_subpath_1_with_target_2, "imports", key, combinedLookup);
|
|
36453
36382
|
traceIfEnabled(state, Diagnostics.Resolving_module_0_from_1, combinedLookup, scope.packageDirectory + "/");
|
|
36454
|
-
const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache,
|
|
36383
|
+
const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache, extensions, false, redirectedReference);
|
|
36455
36384
|
return toSearchResult(result.resolvedModule ? { path: result.resolvedModule.resolvedFileName, extension: result.resolvedModule.extension, packageId: result.resolvedModule.packageId, originalPath: result.resolvedModule.originalPath } : void 0);
|
|
36456
36385
|
}
|
|
36457
36386
|
if (state.traceEnabled) {
|
|
@@ -36542,7 +36471,7 @@ ${lanes.join("\n")}
|
|
|
36542
36471
|
}
|
|
36543
36472
|
function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
|
|
36544
36473
|
var _a2, _b, _c, _d;
|
|
36545
|
-
if (
|
|
36474
|
+
if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) {
|
|
36546
36475
|
const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames });
|
|
36547
36476
|
const commonSourceDirGuesses = [];
|
|
36548
36477
|
if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
|
|
@@ -36579,10 +36508,9 @@ ${lanes.join("\n")}
|
|
|
36579
36508
|
if (fileExtensionIs(possibleInputBase, ext)) {
|
|
36580
36509
|
const inputExts = getPossibleOriginalInputExtensionForExtension(possibleInputBase);
|
|
36581
36510
|
for (const possibleExt of inputExts) {
|
|
36582
|
-
|
|
36583
|
-
if (extensions === 0 /* TypeScript */ && hasJSFileExtension(possibleInputWithInputExtension) || extensions === 1 /* JavaScript */ && hasTSFileExtension(possibleInputWithInputExtension)) {
|
|
36511
|
+
if (!extensionIsOk(extensions, possibleExt))
|
|
36584
36512
|
continue;
|
|
36585
|
-
|
|
36513
|
+
const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
|
|
36586
36514
|
if (state.host.fileExists(possibleInputWithInputExtension)) {
|
|
36587
36515
|
return toSearchResult(withPackageId(scope, loadJSOrExactTSFileName(extensions, possibleInputWithInputExtension, false, state)));
|
|
36588
36516
|
}
|
|
@@ -36623,19 +36551,31 @@ ${lanes.join("\n")}
|
|
|
36623
36551
|
return loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, false, cache, redirectedReference);
|
|
36624
36552
|
}
|
|
36625
36553
|
function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directory, state) {
|
|
36626
|
-
return loadModuleFromNearestNodeModulesDirectoryWorker(4 /*
|
|
36554
|
+
return loadModuleFromNearestNodeModulesDirectoryWorker(4 /* Declaration */, moduleName, directory, state, true, void 0, void 0);
|
|
36627
36555
|
}
|
|
36628
36556
|
function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
|
|
36629
36557
|
const perModuleNameCache = cache && cache.getOrCreateCacheForModuleName(moduleName, state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ ? 99 /* ESNext */ : 1 /* CommonJS */, redirectedReference);
|
|
36630
|
-
|
|
36631
|
-
|
|
36632
|
-
|
|
36633
|
-
|
|
36634
|
-
|
|
36558
|
+
const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
|
|
36559
|
+
const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
|
|
36560
|
+
if (priorityExtensions) {
|
|
36561
|
+
const result = lookup(priorityExtensions);
|
|
36562
|
+
if (result)
|
|
36563
|
+
return result;
|
|
36564
|
+
}
|
|
36565
|
+
if (secondaryExtensions && !typesScopeOnly) {
|
|
36566
|
+
return lookup(secondaryExtensions);
|
|
36567
|
+
}
|
|
36568
|
+
function lookup(extensions2) {
|
|
36569
|
+
return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => {
|
|
36570
|
+
if (getBaseFileName(ancestorDirectory) !== "node_modules") {
|
|
36571
|
+
const resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, ancestorDirectory, state);
|
|
36572
|
+
if (resolutionFromCache) {
|
|
36573
|
+
return resolutionFromCache;
|
|
36574
|
+
}
|
|
36575
|
+
return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions2, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));
|
|
36635
36576
|
}
|
|
36636
|
-
|
|
36637
|
-
|
|
36638
|
-
});
|
|
36577
|
+
});
|
|
36578
|
+
}
|
|
36639
36579
|
}
|
|
36640
36580
|
function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
|
|
36641
36581
|
const nodeModulesFolder = combinePaths(directory, "node_modules");
|
|
@@ -36643,11 +36583,13 @@ ${lanes.join("\n")}
|
|
|
36643
36583
|
if (!nodeModulesFolderExists && state.traceEnabled) {
|
|
36644
36584
|
trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesFolder);
|
|
36645
36585
|
}
|
|
36646
|
-
|
|
36647
|
-
|
|
36648
|
-
|
|
36586
|
+
if (!typesScopeOnly) {
|
|
36587
|
+
const packageResult = loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);
|
|
36588
|
+
if (packageResult) {
|
|
36589
|
+
return packageResult;
|
|
36590
|
+
}
|
|
36649
36591
|
}
|
|
36650
|
-
if (extensions
|
|
36592
|
+
if (extensions & 4 /* Declaration */) {
|
|
36651
36593
|
const nodeModulesAtTypes2 = combinePaths(nodeModulesFolder, "@types");
|
|
36652
36594
|
let nodeModulesAtTypesExists = nodeModulesFolderExists;
|
|
36653
36595
|
if (nodeModulesFolderExists && !directoryProbablyExists(nodeModulesAtTypes2, state.host)) {
|
|
@@ -36656,7 +36598,7 @@ ${lanes.join("\n")}
|
|
|
36656
36598
|
}
|
|
36657
36599
|
nodeModulesAtTypesExists = false;
|
|
36658
36600
|
}
|
|
36659
|
-
return loadModuleFromSpecificNodeModulesDirectory(4 /*
|
|
36601
|
+
return loadModuleFromSpecificNodeModulesDirectory(4 /* Declaration */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);
|
|
36660
36602
|
}
|
|
36661
36603
|
}
|
|
36662
36604
|
function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {
|
|
@@ -36796,9 +36738,10 @@ ${lanes.join("\n")}
|
|
|
36796
36738
|
features: 0 /* None */,
|
|
36797
36739
|
conditions: [],
|
|
36798
36740
|
requestContainingDirectory: containingDirectory,
|
|
36799
|
-
reportDiagnostic: (diag2) => void diagnostics.push(diag2)
|
|
36741
|
+
reportDiagnostic: (diag2) => void diagnostics.push(diag2),
|
|
36742
|
+
isConfigLookup: false
|
|
36800
36743
|
};
|
|
36801
|
-
const resolved = tryResolve(
|
|
36744
|
+
const resolved = tryResolve(1 /* TypeScript */ | 4 /* Declaration */) || tryResolve(2 /* JavaScript */ | (compilerOptions.resolveJsonModule ? 8 /* Json */ : 0));
|
|
36802
36745
|
return createResolvedModuleWithFailedLookupLocations(
|
|
36803
36746
|
resolved && resolved.value,
|
|
36804
36747
|
false,
|
|
@@ -36825,7 +36768,7 @@ ${lanes.join("\n")}
|
|
|
36825
36768
|
if (resolved2) {
|
|
36826
36769
|
return resolved2;
|
|
36827
36770
|
}
|
|
36828
|
-
if (extensions
|
|
36771
|
+
if (extensions & (1 /* TypeScript */ | 4 /* Declaration */)) {
|
|
36829
36772
|
return loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state);
|
|
36830
36773
|
}
|
|
36831
36774
|
} else {
|
|
@@ -36852,9 +36795,10 @@ ${lanes.join("\n")}
|
|
|
36852
36795
|
features: 0 /* None */,
|
|
36853
36796
|
conditions: [],
|
|
36854
36797
|
requestContainingDirectory: void 0,
|
|
36855
|
-
reportDiagnostic: (diag2) => void diagnostics.push(diag2)
|
|
36798
|
+
reportDiagnostic: (diag2) => void diagnostics.push(diag2),
|
|
36799
|
+
isConfigLookup: false
|
|
36856
36800
|
};
|
|
36857
|
-
const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /*
|
|
36801
|
+
const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /* Declaration */, moduleName, globalCache, state, false, void 0, void 0);
|
|
36858
36802
|
return createResolvedModuleWithFailedLookupLocations(
|
|
36859
36803
|
resolved,
|
|
36860
36804
|
true,
|
|
@@ -36872,20 +36816,11 @@ ${lanes.join("\n")}
|
|
|
36872
36816
|
trace(state.host, diagnostic, ...args);
|
|
36873
36817
|
}
|
|
36874
36818
|
}
|
|
36875
|
-
var
|
|
36819
|
+
var typeScriptVersion, nodeModulesAtTypes, NodeResolutionFeatures, nodeModulesPathPart, mangledScopedPackageSeparator;
|
|
36876
36820
|
var init_moduleNameResolver = __esm({
|
|
36877
36821
|
"src/compiler/moduleNameResolver.ts"() {
|
|
36878
36822
|
"use strict";
|
|
36879
36823
|
init_ts2();
|
|
36880
|
-
Extensions = /* @__PURE__ */ ((Extensions2) => {
|
|
36881
|
-
Extensions2[Extensions2["TypeScript"] = 0] = "TypeScript";
|
|
36882
|
-
Extensions2[Extensions2["JavaScript"] = 1] = "JavaScript";
|
|
36883
|
-
Extensions2[Extensions2["Json"] = 2] = "Json";
|
|
36884
|
-
Extensions2[Extensions2["TSConfig"] = 3] = "TSConfig";
|
|
36885
|
-
Extensions2[Extensions2["DtsOnly"] = 4] = "DtsOnly";
|
|
36886
|
-
Extensions2[Extensions2["TsOnly"] = 5] = "TsOnly";
|
|
36887
|
-
return Extensions2;
|
|
36888
|
-
})(Extensions || {});
|
|
36889
36824
|
nodeModulesAtTypes = combinePaths("node_modules", "@types");
|
|
36890
36825
|
NodeResolutionFeatures = /* @__PURE__ */ ((NodeResolutionFeatures2) => {
|
|
36891
36826
|
NodeResolutionFeatures2[NodeResolutionFeatures2["None"] = 0] = "None";
|
|
@@ -36899,10 +36834,6 @@ ${lanes.join("\n")}
|
|
|
36899
36834
|
NodeResolutionFeatures2[NodeResolutionFeatures2["EsmMode"] = 32] = "EsmMode";
|
|
36900
36835
|
return NodeResolutionFeatures2;
|
|
36901
36836
|
})(NodeResolutionFeatures || {});
|
|
36902
|
-
jsOnlyExtensions = [1 /* JavaScript */];
|
|
36903
|
-
tsExtensions = [0 /* TypeScript */, 1 /* JavaScript */];
|
|
36904
|
-
tsPlusJsonExtensions = [...tsExtensions, 2 /* Json */];
|
|
36905
|
-
tsconfigExtensions = [3 /* TSConfig */];
|
|
36906
36837
|
nodeModulesPathPart = "/node_modules/";
|
|
36907
36838
|
mangledScopedPackageSeparator = "__";
|
|
36908
36839
|
}
|
|
@@ -39888,6 +39819,7 @@ ${lanes.join("\n")}
|
|
|
39888
39819
|
const importedFileIsInNodeModules = some(modulePaths, (p) => p.isInNodeModules);
|
|
39889
39820
|
let nodeModulesSpecifiers;
|
|
39890
39821
|
let pathsSpecifiers;
|
|
39822
|
+
let redirectPathsSpecifiers;
|
|
39891
39823
|
let relativeSpecifiers;
|
|
39892
39824
|
for (const modulePath of modulePaths) {
|
|
39893
39825
|
const specifier = tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, void 0, options.overrideImportMode);
|
|
@@ -39895,60 +39827,77 @@ ${lanes.join("\n")}
|
|
|
39895
39827
|
if (specifier && modulePath.isRedirect) {
|
|
39896
39828
|
return nodeModulesSpecifiers;
|
|
39897
39829
|
}
|
|
39898
|
-
if (!specifier
|
|
39899
|
-
const local = getLocalModuleSpecifier(
|
|
39900
|
-
|
|
39830
|
+
if (!specifier) {
|
|
39831
|
+
const local = getLocalModuleSpecifier(
|
|
39832
|
+
modulePath.path,
|
|
39833
|
+
info,
|
|
39834
|
+
compilerOptions,
|
|
39835
|
+
host,
|
|
39836
|
+
options.overrideImportMode || importingSourceFile.impliedNodeFormat,
|
|
39837
|
+
preferences,
|
|
39838
|
+
modulePath.isRedirect
|
|
39839
|
+
);
|
|
39840
|
+
if (!local) {
|
|
39841
|
+
continue;
|
|
39842
|
+
}
|
|
39843
|
+
if (modulePath.isRedirect) {
|
|
39844
|
+
redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
|
|
39845
|
+
} else if (pathIsBareSpecifier(local)) {
|
|
39901
39846
|
pathsSpecifiers = append(pathsSpecifiers, local);
|
|
39902
39847
|
} else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
39903
39848
|
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
39904
39849
|
}
|
|
39905
39850
|
}
|
|
39906
39851
|
}
|
|
39907
|
-
return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers : Debug.checkDefined(relativeSpecifiers);
|
|
39852
|
+
return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers : (redirectPathsSpecifiers == null ? void 0 : redirectPathsSpecifiers.length) ? redirectPathsSpecifiers : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers : Debug.checkDefined(relativeSpecifiers);
|
|
39908
39853
|
}
|
|
39909
39854
|
function getInfo(importingSourceFileName, host) {
|
|
39910
39855
|
const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : true);
|
|
39911
39856
|
const sourceDirectory = getDirectoryPath(importingSourceFileName);
|
|
39912
39857
|
return { getCanonicalFileName, importingSourceFileName, sourceDirectory };
|
|
39913
39858
|
}
|
|
39914
|
-
function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }) {
|
|
39859
|
+
function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }, pathsOnly) {
|
|
39915
39860
|
const { baseUrl, paths, rootDirs } = compilerOptions;
|
|
39861
|
+
if (pathsOnly && !paths) {
|
|
39862
|
+
return void 0;
|
|
39863
|
+
}
|
|
39916
39864
|
const { sourceDirectory, getCanonicalFileName } = info;
|
|
39917
39865
|
const relativePath = rootDirs && tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, ending, compilerOptions) || removeExtensionAndIndexPostFix(ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceDirectory, moduleFileName, getCanonicalFileName)), ending, compilerOptions);
|
|
39918
39866
|
if (!baseUrl && !paths || relativePreference === 0 /* Relative */) {
|
|
39919
|
-
return relativePath;
|
|
39867
|
+
return pathsOnly ? void 0 : relativePath;
|
|
39920
39868
|
}
|
|
39921
39869
|
const baseDirectory = getNormalizedAbsolutePath(getPathsBasePath(compilerOptions, host) || baseUrl, host.getCurrentDirectory());
|
|
39922
39870
|
const relativeToBaseUrl = getRelativePathIfInDirectory(moduleFileName, baseDirectory, getCanonicalFileName);
|
|
39923
39871
|
if (!relativeToBaseUrl) {
|
|
39924
|
-
return relativePath;
|
|
39872
|
+
return pathsOnly ? void 0 : relativePath;
|
|
39925
39873
|
}
|
|
39926
39874
|
const fromPaths = paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, getAllowedEndings(ending, compilerOptions, importMode), host, compilerOptions);
|
|
39927
|
-
|
|
39928
|
-
|
|
39875
|
+
if (pathsOnly) {
|
|
39876
|
+
return fromPaths;
|
|
39877
|
+
}
|
|
39878
|
+
const maybeNonRelative = fromPaths === void 0 && baseUrl !== void 0 ? removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) : fromPaths;
|
|
39879
|
+
if (!maybeNonRelative) {
|
|
39929
39880
|
return relativePath;
|
|
39930
39881
|
}
|
|
39931
|
-
if (relativePreference === 1 /* NonRelative */) {
|
|
39932
|
-
return
|
|
39882
|
+
if (relativePreference === 1 /* NonRelative */ && !pathIsRelative(maybeNonRelative)) {
|
|
39883
|
+
return maybeNonRelative;
|
|
39933
39884
|
}
|
|
39934
|
-
if (relativePreference === 3 /* ExternalNonRelative */) {
|
|
39885
|
+
if (relativePreference === 3 /* ExternalNonRelative */ && !pathIsRelative(maybeNonRelative)) {
|
|
39935
39886
|
const projectDirectory = compilerOptions.configFilePath ? toPath(getDirectoryPath(compilerOptions.configFilePath), host.getCurrentDirectory(), info.getCanonicalFileName) : info.getCanonicalFileName(host.getCurrentDirectory());
|
|
39936
39887
|
const modulePath = toPath(moduleFileName, projectDirectory, getCanonicalFileName);
|
|
39937
39888
|
const sourceIsInternal = startsWith(sourceDirectory, projectDirectory);
|
|
39938
39889
|
const targetIsInternal = startsWith(modulePath, projectDirectory);
|
|
39939
39890
|
if (sourceIsInternal && !targetIsInternal || !sourceIsInternal && targetIsInternal) {
|
|
39940
|
-
return
|
|
39891
|
+
return maybeNonRelative;
|
|
39941
39892
|
}
|
|
39942
39893
|
const nearestTargetPackageJson = getNearestAncestorDirectoryWithPackageJson(host, getDirectoryPath(modulePath));
|
|
39943
39894
|
const nearestSourcePackageJson = getNearestAncestorDirectoryWithPackageJson(host, sourceDirectory);
|
|
39944
39895
|
if (nearestSourcePackageJson !== nearestTargetPackageJson) {
|
|
39945
|
-
return
|
|
39896
|
+
return maybeNonRelative;
|
|
39946
39897
|
}
|
|
39947
39898
|
return relativePath;
|
|
39948
39899
|
}
|
|
39949
|
-
|
|
39950
|
-
Debug.assertNever(relativePreference);
|
|
39951
|
-
return isPathRelativeToParent(nonRelative) || countPathComponents(relativePath) < countPathComponents(nonRelative) ? relativePath : nonRelative;
|
|
39900
|
+
return isPathRelativeToParent(maybeNonRelative) || countPathComponents(relativePath) < countPathComponents(maybeNonRelative) ? relativePath : maybeNonRelative;
|
|
39952
39901
|
}
|
|
39953
39902
|
function countPathComponents(path) {
|
|
39954
39903
|
let count = 0;
|
|
@@ -40431,7 +40380,7 @@ ${lanes.join("\n")}
|
|
|
40431
40380
|
function SymbolLinks() {
|
|
40432
40381
|
}
|
|
40433
40382
|
function NodeLinks() {
|
|
40434
|
-
this.flags = 0
|
|
40383
|
+
this.flags = 0 /* None */;
|
|
40435
40384
|
}
|
|
40436
40385
|
function getNodeId(node) {
|
|
40437
40386
|
if (!node.id) {
|
|
@@ -41276,7 +41225,7 @@ ${lanes.join("\n")}
|
|
|
41276
41225
|
function createSymbol(flags, name, checkFlags) {
|
|
41277
41226
|
symbolCount++;
|
|
41278
41227
|
const symbol = new Symbol46(flags | 33554432 /* Transient */, name);
|
|
41279
|
-
symbol.checkFlags = checkFlags || 0
|
|
41228
|
+
symbol.checkFlags = checkFlags || 0 /* None */;
|
|
41280
41229
|
return symbol;
|
|
41281
41230
|
}
|
|
41282
41231
|
function getExcludedSymbolFlags(flags) {
|
|
@@ -43587,7 +43536,7 @@ ${lanes.join("\n")}
|
|
|
43587
43536
|
function createOriginType(flags) {
|
|
43588
43537
|
return new Type27(checker, flags);
|
|
43589
43538
|
}
|
|
43590
|
-
function createIntrinsicType(kind, intrinsicName, objectFlags = 0) {
|
|
43539
|
+
function createIntrinsicType(kind, intrinsicName, objectFlags = 0 /* None */) {
|
|
43591
43540
|
const type = createType(kind);
|
|
43592
43541
|
type.intrinsicName = intrinsicName;
|
|
43593
43542
|
type.objectFlags = objectFlags;
|
|
@@ -50428,7 +50377,7 @@ ${lanes.join("\n")}
|
|
|
50428
50377
|
function containsArgumentsReference(declaration) {
|
|
50429
50378
|
const links = getNodeLinks(declaration);
|
|
50430
50379
|
if (links.containsArgumentsReference === void 0) {
|
|
50431
|
-
if (links.flags &
|
|
50380
|
+
if (links.flags & 512 /* CaptureArguments */) {
|
|
50432
50381
|
links.containsArgumentsReference = true;
|
|
50433
50382
|
} else {
|
|
50434
50383
|
links.containsArgumentsReference = traverse(declaration.body);
|
|
@@ -54328,7 +54277,7 @@ ${lanes.join("\n")}
|
|
|
54328
54277
|
return compareSignaturesRelated(
|
|
54329
54278
|
source,
|
|
54330
54279
|
target,
|
|
54331
|
-
ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0
|
|
54280
|
+
ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0 /* None */,
|
|
54332
54281
|
false,
|
|
54333
54282
|
void 0,
|
|
54334
54283
|
void 0,
|
|
@@ -54562,7 +54511,9 @@ ${lanes.join("\n")}
|
|
|
54562
54511
|
if (relation === assignableRelation || relation === comparableRelation) {
|
|
54563
54512
|
if (s & 1 /* Any */)
|
|
54564
54513
|
return true;
|
|
54565
|
-
if (s &
|
|
54514
|
+
if (s & 8 /* Number */ && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */))
|
|
54515
|
+
return true;
|
|
54516
|
+
if (s & 256 /* NumberLiteral */ && !(s & 1024 /* EnumLiteral */) && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */ && source.value === target.value))
|
|
54566
54517
|
return true;
|
|
54567
54518
|
if (isUnknownLikeUnionType(target))
|
|
54568
54519
|
return true;
|
|
@@ -57625,7 +57576,7 @@ ${lanes.join("\n")}
|
|
|
57625
57576
|
pos = p;
|
|
57626
57577
|
}
|
|
57627
57578
|
}
|
|
57628
|
-
function inferTypes(inferences, originalSource, originalTarget, priority = 0
|
|
57579
|
+
function inferTypes(inferences, originalSource, originalTarget, priority = 0 /* None */, contravariant = false) {
|
|
57629
57580
|
let bivariant = false;
|
|
57630
57581
|
let propagationType;
|
|
57631
57582
|
let inferencePriority = 2048 /* MaxValue */;
|
|
@@ -60067,8 +60018,8 @@ ${lanes.join("\n")}
|
|
|
60067
60018
|
}
|
|
60068
60019
|
const parent2 = getRootDeclaration(symbol.valueDeclaration).parent;
|
|
60069
60020
|
const links = getNodeLinks(parent2);
|
|
60070
|
-
if (!(links.flags &
|
|
60071
|
-
links.flags |=
|
|
60021
|
+
if (!(links.flags & 524288 /* AssignmentsMarked */)) {
|
|
60022
|
+
links.flags |= 524288 /* AssignmentsMarked */;
|
|
60072
60023
|
if (!hasParentWithAssignmentsMarked(parent2)) {
|
|
60073
60024
|
markNodeAssignments(parent2);
|
|
60074
60025
|
}
|
|
@@ -60076,7 +60027,7 @@ ${lanes.join("\n")}
|
|
|
60076
60027
|
return symbol.isAssigned || false;
|
|
60077
60028
|
}
|
|
60078
60029
|
function hasParentWithAssignmentsMarked(node) {
|
|
60079
|
-
return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags &
|
|
60030
|
+
return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 524288 /* AssignmentsMarked */));
|
|
60080
60031
|
}
|
|
60081
60032
|
function markNodeAssignments(node) {
|
|
60082
60033
|
if (node.kind === 79 /* Identifier */) {
|
|
@@ -60155,11 +60106,11 @@ ${lanes.join("\n")}
|
|
|
60155
60106
|
const parent2 = declaration.parent.parent;
|
|
60156
60107
|
if (parent2.kind === 257 /* VariableDeclaration */ && getCombinedNodeFlags(declaration) & 2 /* Const */ || parent2.kind === 166 /* Parameter */) {
|
|
60157
60108
|
const links = getNodeLinks(parent2);
|
|
60158
|
-
if (!(links.flags &
|
|
60159
|
-
links.flags |=
|
|
60109
|
+
if (!(links.flags & 16777216 /* InCheckIdentifier */)) {
|
|
60110
|
+
links.flags |= 16777216 /* InCheckIdentifier */;
|
|
60160
60111
|
const parentType = getTypeForBindingElementParent(parent2, 0 /* Normal */);
|
|
60161
60112
|
const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
|
|
60162
|
-
links.flags &= ~
|
|
60113
|
+
links.flags &= ~16777216 /* InCheckIdentifier */;
|
|
60163
60114
|
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(parent2.kind === 166 /* Parameter */ && isSymbolAssigned(symbol))) {
|
|
60164
60115
|
const pattern = declaration.parent;
|
|
60165
60116
|
const narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, void 0, location.flowNode);
|
|
@@ -60209,7 +60160,7 @@ ${lanes.join("\n")}
|
|
|
60209
60160
|
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);
|
|
60210
60161
|
}
|
|
60211
60162
|
}
|
|
60212
|
-
getNodeLinks(container).flags |=
|
|
60163
|
+
getNodeLinks(container).flags |= 512 /* CaptureArguments */;
|
|
60213
60164
|
return getTypeOfSymbol(symbol);
|
|
60214
60165
|
}
|
|
60215
60166
|
if (shouldMarkIdentifierAliasReferenced(node)) {
|
|
@@ -60226,8 +60177,8 @@ ${lanes.join("\n")}
|
|
|
60226
60177
|
let container = getContainingClass(node);
|
|
60227
60178
|
while (container !== void 0) {
|
|
60228
60179
|
if (container === declaration && container.name !== node) {
|
|
60229
|
-
getNodeLinks(declaration).flags |=
|
|
60230
|
-
getNodeLinks(node).flags |=
|
|
60180
|
+
getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */;
|
|
60181
|
+
getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */;
|
|
60231
60182
|
break;
|
|
60232
60183
|
}
|
|
60233
60184
|
container = getContainingClass(container);
|
|
@@ -60237,8 +60188,8 @@ ${lanes.join("\n")}
|
|
|
60237
60188
|
while (container.kind !== 308 /* SourceFile */) {
|
|
60238
60189
|
if (container.parent === declaration) {
|
|
60239
60190
|
if (isPropertyDeclaration(container) && isStatic(container) || isClassStaticBlockDeclaration(container)) {
|
|
60240
|
-
getNodeLinks(declaration).flags |=
|
|
60241
|
-
getNodeLinks(node).flags |=
|
|
60191
|
+
getNodeLinks(declaration).flags |= 1048576 /* ClassWithConstructorReference */;
|
|
60192
|
+
getNodeLinks(node).flags |= 2097152 /* ConstructorReferenceInClass */;
|
|
60242
60193
|
}
|
|
60243
60194
|
break;
|
|
60244
60195
|
}
|
|
@@ -60352,7 +60303,7 @@ ${lanes.join("\n")}
|
|
|
60352
60303
|
const part = getPartOfForStatementContainingNode(node.parent, container);
|
|
60353
60304
|
if (part) {
|
|
60354
60305
|
const links = getNodeLinks(part);
|
|
60355
|
-
links.flags |=
|
|
60306
|
+
links.flags |= 8192 /* ContainsCapturedBlockScopeBinding */;
|
|
60356
60307
|
const capturedBindings = links.capturedBlockScopeBindings || (links.capturedBlockScopeBindings = []);
|
|
60357
60308
|
pushIfUnique(capturedBindings, symbol);
|
|
60358
60309
|
if (part === container.initializer) {
|
|
@@ -60362,19 +60313,19 @@ ${lanes.join("\n")}
|
|
|
60362
60313
|
}
|
|
60363
60314
|
}
|
|
60364
60315
|
if (capturesBlockScopeBindingInLoopBody) {
|
|
60365
|
-
getNodeLinks(enclosingIterationStatement).flags |=
|
|
60316
|
+
getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
|
|
60366
60317
|
}
|
|
60367
60318
|
}
|
|
60368
60319
|
if (isForStatement(container)) {
|
|
60369
60320
|
const varDeclList = getAncestor(symbol.valueDeclaration, 258 /* VariableDeclarationList */);
|
|
60370
60321
|
if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) {
|
|
60371
|
-
getNodeLinks(symbol.valueDeclaration).flags |=
|
|
60322
|
+
getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* NeedsLoopOutParameter */;
|
|
60372
60323
|
}
|
|
60373
60324
|
}
|
|
60374
|
-
getNodeLinks(symbol.valueDeclaration).flags |=
|
|
60325
|
+
getNodeLinks(symbol.valueDeclaration).flags |= 32768 /* BlockScopedBindingInLoop */;
|
|
60375
60326
|
}
|
|
60376
60327
|
if (isCaptured) {
|
|
60377
|
-
getNodeLinks(symbol.valueDeclaration).flags |=
|
|
60328
|
+
getNodeLinks(symbol.valueDeclaration).flags |= 16384 /* CapturedBlockScopedBinding */;
|
|
60378
60329
|
}
|
|
60379
60330
|
}
|
|
60380
60331
|
function isBindingCapturedByNode(node, decl) {
|
|
@@ -60591,23 +60542,23 @@ ${lanes.join("\n")}
|
|
|
60591
60542
|
checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class);
|
|
60592
60543
|
}
|
|
60593
60544
|
if (isStatic(container) || isCallExpression2) {
|
|
60594
|
-
nodeCheckFlag =
|
|
60545
|
+
nodeCheckFlag = 32 /* SuperStatic */;
|
|
60595
60546
|
if (!isCallExpression2 && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && (isPropertyDeclaration(container) || isClassStaticBlockDeclaration(container))) {
|
|
60596
60547
|
forEachEnclosingBlockScopeContainer(node.parent, (current) => {
|
|
60597
60548
|
if (!isSourceFile(current) || isExternalOrCommonJsModule(current)) {
|
|
60598
|
-
getNodeLinks(current).flags |=
|
|
60549
|
+
getNodeLinks(current).flags |= 8388608 /* ContainsSuperPropertyInStaticInitializer */;
|
|
60599
60550
|
}
|
|
60600
60551
|
});
|
|
60601
60552
|
}
|
|
60602
60553
|
} else {
|
|
60603
|
-
nodeCheckFlag =
|
|
60554
|
+
nodeCheckFlag = 16 /* SuperInstance */;
|
|
60604
60555
|
}
|
|
60605
60556
|
getNodeLinks(node).flags |= nodeCheckFlag;
|
|
60606
60557
|
if (container.kind === 171 /* MethodDeclaration */ && inAsyncFunction) {
|
|
60607
60558
|
if (isSuperProperty(node.parent) && isAssignmentTarget(node.parent)) {
|
|
60608
|
-
getNodeLinks(container).flags |=
|
|
60559
|
+
getNodeLinks(container).flags |= 256 /* MethodWithSuperPropertyAssignmentInAsync */;
|
|
60609
60560
|
} else {
|
|
60610
|
-
getNodeLinks(container).flags |=
|
|
60561
|
+
getNodeLinks(container).flags |= 128 /* MethodWithSuperPropertyAccessInAsync */;
|
|
60611
60562
|
}
|
|
60612
60563
|
}
|
|
60613
60564
|
if (needToCaptureLexicalThis) {
|
|
@@ -60635,7 +60586,7 @@ ${lanes.join("\n")}
|
|
|
60635
60586
|
error(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments);
|
|
60636
60587
|
return errorType;
|
|
60637
60588
|
}
|
|
60638
|
-
return nodeCheckFlag ===
|
|
60589
|
+
return nodeCheckFlag === 32 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType);
|
|
60639
60590
|
function isLegalUsageOfSuperExpression(container2) {
|
|
60640
60591
|
if (!container2) {
|
|
60641
60592
|
return false;
|
|
@@ -61650,9 +61601,9 @@ ${lanes.join("\n")}
|
|
|
61650
61601
|
const container = getEnclosingBlockScopeContainer(node.parent.parent);
|
|
61651
61602
|
const enclosingIterationStatement = getEnclosingIterationStatement(container);
|
|
61652
61603
|
if (enclosingIterationStatement) {
|
|
61653
|
-
getNodeLinks(enclosingIterationStatement).flags |=
|
|
61654
|
-
getNodeLinks(node).flags |=
|
|
61655
|
-
getNodeLinks(node.parent.parent).flags |=
|
|
61604
|
+
getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
|
|
61605
|
+
getNodeLinks(node).flags |= 32768 /* BlockScopedBindingInLoop */;
|
|
61606
|
+
getNodeLinks(node.parent.parent).flags |= 32768 /* BlockScopedBindingInLoop */;
|
|
61656
61607
|
}
|
|
61657
61608
|
}
|
|
61658
61609
|
if (links.resolvedType.flags & 98304 /* Nullable */ || !isTypeAssignableToKind(links.resolvedType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */) && !isTypeAssignableTo(links.resolvedType, stringNumberSymbolType)) {
|
|
@@ -65639,10 +65590,10 @@ ${lanes.join("\n")}
|
|
|
65639
65590
|
}
|
|
65640
65591
|
function contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode) {
|
|
65641
65592
|
const links = getNodeLinks(node);
|
|
65642
|
-
if (!(links.flags &
|
|
65593
|
+
if (!(links.flags & 64 /* ContextChecked */)) {
|
|
65643
65594
|
const contextualSignature = getContextualSignature(node);
|
|
65644
|
-
if (!(links.flags &
|
|
65645
|
-
links.flags |=
|
|
65595
|
+
if (!(links.flags & 64 /* ContextChecked */)) {
|
|
65596
|
+
links.flags |= 64 /* ContextChecked */;
|
|
65646
65597
|
const signature = firstOrUndefined(getSignaturesOfType(getTypeOfSymbol(getSymbolOfNode(node)), 0 /* Call */));
|
|
65647
65598
|
if (!signature) {
|
|
65648
65599
|
return;
|
|
@@ -67632,13 +67583,13 @@ ${lanes.join("\n")}
|
|
|
67632
67583
|
function setNodeLinksForPrivateIdentifierScope(node) {
|
|
67633
67584
|
if (isPrivateIdentifier(node.name) && languageVersion < 99 /* ESNext */) {
|
|
67634
67585
|
for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) {
|
|
67635
|
-
getNodeLinks(lexicalScope).flags |=
|
|
67586
|
+
getNodeLinks(lexicalScope).flags |= 4194304 /* ContainsClassWithPrivateIdentifiers */;
|
|
67636
67587
|
}
|
|
67637
67588
|
if (isClassExpression(node.parent)) {
|
|
67638
67589
|
const enclosingIterationStatement = getEnclosingIterationStatement(node.parent);
|
|
67639
67590
|
if (enclosingIterationStatement) {
|
|
67640
|
-
getNodeLinks(node.name).flags |=
|
|
67641
|
-
getNodeLinks(enclosingIterationStatement).flags |=
|
|
67591
|
+
getNodeLinks(node.name).flags |= 32768 /* BlockScopedBindingInLoop */;
|
|
67592
|
+
getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */;
|
|
67642
67593
|
}
|
|
67643
67594
|
}
|
|
67644
67595
|
}
|
|
@@ -69233,7 +69184,7 @@ ${lanes.join("\n")}
|
|
|
69233
69184
|
}
|
|
69234
69185
|
function checkWeakMapSetCollision(node) {
|
|
69235
69186
|
const enclosingBlockScope = getEnclosingBlockScopeContainer(node);
|
|
69236
|
-
if (getNodeCheckFlags(enclosingBlockScope) &
|
|
69187
|
+
if (getNodeCheckFlags(enclosingBlockScope) & 4194304 /* ContainsClassWithPrivateIdentifiers */) {
|
|
69237
69188
|
Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name) && typeof node.name.escapedText === "string", "The target of a WeakMap/WeakSet collision check should be an identifier");
|
|
69238
69189
|
errorSkippedOn("noEmit", node, Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText);
|
|
69239
69190
|
}
|
|
@@ -69247,18 +69198,18 @@ ${lanes.join("\n")}
|
|
|
69247
69198
|
let hasCollision = false;
|
|
69248
69199
|
if (isClassExpression(node)) {
|
|
69249
69200
|
for (const member of node.members) {
|
|
69250
|
-
if (getNodeCheckFlags(member) &
|
|
69201
|
+
if (getNodeCheckFlags(member) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
|
|
69251
69202
|
hasCollision = true;
|
|
69252
69203
|
break;
|
|
69253
69204
|
}
|
|
69254
69205
|
}
|
|
69255
69206
|
} else if (isFunctionExpression(node)) {
|
|
69256
|
-
if (getNodeCheckFlags(node) &
|
|
69207
|
+
if (getNodeCheckFlags(node) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
|
|
69257
69208
|
hasCollision = true;
|
|
69258
69209
|
}
|
|
69259
69210
|
} else {
|
|
69260
69211
|
const container = getEnclosingBlockScopeContainer(node);
|
|
69261
|
-
if (container && getNodeCheckFlags(container) &
|
|
69212
|
+
if (container && getNodeCheckFlags(container) & 8388608 /* ContainsSuperPropertyInStaticInitializer */) {
|
|
69262
69213
|
hasCollision = true;
|
|
69263
69214
|
}
|
|
69264
69215
|
}
|
|
@@ -71143,8 +71094,8 @@ ${lanes.join("\n")}
|
|
|
71143
71094
|
}
|
|
71144
71095
|
function computeEnumMemberValues(node) {
|
|
71145
71096
|
const nodeLinks2 = getNodeLinks(node);
|
|
71146
|
-
if (!(nodeLinks2.flags &
|
|
71147
|
-
nodeLinks2.flags |=
|
|
71097
|
+
if (!(nodeLinks2.flags & 1024 /* EnumValuesComputed */)) {
|
|
71098
|
+
nodeLinks2.flags |= 1024 /* EnumValuesComputed */;
|
|
71148
71099
|
let autoValue = 0;
|
|
71149
71100
|
for (const member of node.members) {
|
|
71150
71101
|
const value = computeMemberValue(member, autoValue);
|
|
@@ -71420,7 +71371,7 @@ ${lanes.join("\n")}
|
|
|
71420
71371
|
}
|
|
71421
71372
|
const mergedClass = getDeclarationOfKind(symbol, 260 /* ClassDeclaration */);
|
|
71422
71373
|
if (mergedClass && inSameLexicalScope(node, mergedClass)) {
|
|
71423
|
-
getNodeLinks(node).flags |=
|
|
71374
|
+
getNodeLinks(node).flags |= 2048 /* LexicalModuleMergesWithClass */;
|
|
71424
71375
|
}
|
|
71425
71376
|
}
|
|
71426
71377
|
if (isAmbientExternalModule) {
|
|
@@ -73051,8 +73002,8 @@ ${lanes.join("\n")}
|
|
|
73051
73002
|
const nodeLinks2 = getNodeLinks(symbol.valueDeclaration);
|
|
73052
73003
|
if (resolveName(container.parent, symbol.escapedName, 111551 /* Value */, void 0, void 0, false)) {
|
|
73053
73004
|
links.isDeclarationWithCollidingName = true;
|
|
73054
|
-
} else if (nodeLinks2.flags &
|
|
73055
|
-
const isDeclaredInLoop = nodeLinks2.flags &
|
|
73005
|
+
} else if (nodeLinks2.flags & 16384 /* CapturedBlockScopedBinding */) {
|
|
73006
|
+
const isDeclaredInLoop = nodeLinks2.flags & 32768 /* BlockScopedBindingInLoop */;
|
|
73056
73007
|
const inLoopInitializer = isIterationStatement(container, false);
|
|
73057
73008
|
const inLoopBodyBlock = container.kind === 238 /* Block */ && isIterationStatement(container.parent, false);
|
|
73058
73009
|
links.isDeclarationWithCollidingName = !isBlockScopedContainerTopLevel(container) && (!isDeclaredInLoop || !inLoopInitializer && !inLoopBodyBlock);
|
|
@@ -75354,6 +75305,7 @@ ${lanes.join("\n")}
|
|
|
75354
75305
|
return CheckMode3;
|
|
75355
75306
|
})(CheckMode || {});
|
|
75356
75307
|
SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => {
|
|
75308
|
+
SignatureCheckMode3[SignatureCheckMode3["None"] = 0] = "None";
|
|
75357
75309
|
SignatureCheckMode3[SignatureCheckMode3["BivariantCallback"] = 1] = "BivariantCallback";
|
|
75358
75310
|
SignatureCheckMode3[SignatureCheckMode3["StrictCallback"] = 2] = "StrictCallback";
|
|
75359
75311
|
SignatureCheckMode3[SignatureCheckMode3["IgnoreReturnTypes"] = 4] = "IgnoreReturnTypes";
|
|
@@ -76627,10 +76579,10 @@ ${lanes.join("\n")}
|
|
|
76627
76579
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
76628
76580
|
);
|
|
76629
76581
|
},
|
|
76630
|
-
[308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context,
|
|
76582
|
+
[308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
76631
76583
|
return context.factory.updateSourceFile(
|
|
76632
76584
|
node,
|
|
76633
|
-
visitLexicalEnvironment(node.statements, visitor, context
|
|
76585
|
+
visitLexicalEnvironment(node.statements, visitor, context)
|
|
76634
76586
|
);
|
|
76635
76587
|
},
|
|
76636
76588
|
[353 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -80358,12 +80310,12 @@ ${lanes.join("\n")}
|
|
|
80358
80310
|
function visitClassExpressionInNewClassLexicalEnvironment(node, facts) {
|
|
80359
80311
|
const isDecoratedClassDeclaration = !!(facts & 1 /* ClassWasDecorated */);
|
|
80360
80312
|
const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node);
|
|
80361
|
-
const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) &
|
|
80313
|
+
const isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */;
|
|
80362
80314
|
let temp;
|
|
80363
80315
|
function createClassTempVar() {
|
|
80364
80316
|
const classCheckFlags = resolver.getNodeCheckFlags(node);
|
|
80365
|
-
const isClassWithConstructorReference2 = classCheckFlags &
|
|
80366
|
-
const requiresBlockScopedVar = classCheckFlags &
|
|
80317
|
+
const isClassWithConstructorReference2 = classCheckFlags & 1048576 /* ClassWithConstructorReference */;
|
|
80318
|
+
const requiresBlockScopedVar = classCheckFlags & 32768 /* BlockScopedBindingInLoop */;
|
|
80367
80319
|
return factory2.createTempVariable(requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, !!isClassWithConstructorReference2);
|
|
80368
80320
|
}
|
|
80369
80321
|
if (facts & 2 /* NeedsClassConstructorReference */) {
|
|
@@ -80876,7 +80828,7 @@ ${lanes.join("\n")}
|
|
|
80876
80828
|
}
|
|
80877
80829
|
function trySubstituteClassAlias(node) {
|
|
80878
80830
|
if (enabledSubstitutions & 1 /* ClassAliases */) {
|
|
80879
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
80831
|
+
if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) {
|
|
80880
80832
|
const declaration = resolver.getReferencedValueDeclaration(node);
|
|
80881
80833
|
if (declaration) {
|
|
80882
80834
|
const classAlias = classAliases[declaration.id];
|
|
@@ -80899,7 +80851,7 @@ ${lanes.join("\n")}
|
|
|
80899
80851
|
const alreadyTransformed = isAssignmentExpression(innerExpression) && isGeneratedIdentifier(innerExpression.left);
|
|
80900
80852
|
if (!alreadyTransformed && !inlinable && shouldHoist) {
|
|
80901
80853
|
const generatedName = factory2.getGeneratedNameForNode(name);
|
|
80902
|
-
if (resolver.getNodeCheckFlags(name) &
|
|
80854
|
+
if (resolver.getNodeCheckFlags(name) & 32768 /* BlockScopedBindingInLoop */) {
|
|
80903
80855
|
addBlockScopedVariable(generatedName);
|
|
80904
80856
|
} else {
|
|
80905
80857
|
hoistVariableDeclaration(generatedName);
|
|
@@ -81048,7 +81000,7 @@ ${lanes.join("\n")}
|
|
|
81048
81000
|
const { className } = getPrivateIdentifierEnvironment();
|
|
81049
81001
|
const prefix = className ? { prefix: "_", node: className, suffix: "_" } : "_";
|
|
81050
81002
|
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);
|
|
81051
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
81003
|
+
if (resolver.getNodeCheckFlags(node) & 32768 /* BlockScopedBindingInLoop */) {
|
|
81052
81004
|
addBlockScopedVariable(identifier);
|
|
81053
81005
|
} else {
|
|
81054
81006
|
hoistVariableDeclaration(identifier);
|
|
@@ -81932,7 +81884,7 @@ ${lanes.join("\n")}
|
|
|
81932
81884
|
}
|
|
81933
81885
|
}
|
|
81934
81886
|
function getClassAliasIfNeeded(node) {
|
|
81935
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
81887
|
+
if (resolver.getNodeCheckFlags(node) & 1048576 /* ClassWithConstructorReference */) {
|
|
81936
81888
|
enableSubstitutionForClassAliases();
|
|
81937
81889
|
const classAlias = factory2.createUniqueName(node.name && !isGeneratedIdentifier(node.name) ? idText(node.name) : "default");
|
|
81938
81890
|
classAliases[getOriginalNodeId(node)] = classAlias;
|
|
@@ -81966,7 +81918,7 @@ ${lanes.join("\n")}
|
|
|
81966
81918
|
}
|
|
81967
81919
|
function trySubstituteClassAlias(node) {
|
|
81968
81920
|
if (classAliases) {
|
|
81969
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
81921
|
+
if (resolver.getNodeCheckFlags(node) & 2097152 /* ConstructorReferenceInClass */) {
|
|
81970
81922
|
const declaration = resolver.getReferencedValueDeclaration(node);
|
|
81971
81923
|
if (declaration) {
|
|
81972
81924
|
const classAlias = classAliases[declaration.id];
|
|
@@ -82007,7 +81959,7 @@ ${lanes.join("\n")}
|
|
|
82007
81959
|
let capturedSuperProperties;
|
|
82008
81960
|
let hasSuperElementAccess;
|
|
82009
81961
|
const substitutedSuperAccessors = [];
|
|
82010
|
-
let contextFlags = 0
|
|
81962
|
+
let contextFlags = 0 /* None */;
|
|
82011
81963
|
const previousOnEmitNode = context.onEmitNode;
|
|
82012
81964
|
const previousOnSubstituteNode = context.onSubstituteNode;
|
|
82013
81965
|
context.onEmitNode = onEmitNode;
|
|
@@ -82334,7 +82286,7 @@ ${lanes.join("\n")}
|
|
|
82334
82286
|
hasSuperElementAccess = false;
|
|
82335
82287
|
let updated = visitFunctionBody(node.body, visitor, context);
|
|
82336
82288
|
const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration);
|
|
82337
|
-
const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (
|
|
82289
|
+
const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */) && (getFunctionFlags(originalMethod) & 3 /* AsyncGenerator */) !== 3 /* AsyncGenerator */;
|
|
82338
82290
|
if (emitSuperHelpers) {
|
|
82339
82291
|
enableSubstitutionForAsyncMethodsWithSuper();
|
|
82340
82292
|
if (capturedSuperProperties.size) {
|
|
@@ -82345,9 +82297,9 @@ ${lanes.join("\n")}
|
|
|
82345
82297
|
updated = factory2.updateBlock(updated, statements);
|
|
82346
82298
|
}
|
|
82347
82299
|
if (hasSuperElementAccess) {
|
|
82348
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
82300
|
+
if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
|
|
82349
82301
|
addEmitHelper(updated, advancedAsyncSuperHelper);
|
|
82350
|
-
} else if (resolver.getNodeCheckFlags(node) &
|
|
82302
|
+
} else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
|
|
82351
82303
|
addEmitHelper(updated, asyncSuperHelper);
|
|
82352
82304
|
}
|
|
82353
82305
|
}
|
|
@@ -82362,7 +82314,7 @@ ${lanes.join("\n")}
|
|
|
82362
82314
|
const nodeType = original.type;
|
|
82363
82315
|
const promiseConstructor = languageVersion < 2 /* ES2015 */ ? getPromiseConstructor(nodeType) : void 0;
|
|
82364
82316
|
const isArrowFunction2 = node.kind === 216 /* ArrowFunction */;
|
|
82365
|
-
const hasLexicalArguments = (resolver.getNodeCheckFlags(node) &
|
|
82317
|
+
const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 512 /* CaptureArguments */) !== 0;
|
|
82366
82318
|
const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;
|
|
82367
82319
|
enclosingFunctionParameterNames = /* @__PURE__ */ new Set();
|
|
82368
82320
|
for (const parameter of node.parameters) {
|
|
@@ -82389,7 +82341,7 @@ ${lanes.join("\n")}
|
|
|
82389
82341
|
)
|
|
82390
82342
|
);
|
|
82391
82343
|
insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
|
|
82392
|
-
const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (
|
|
82344
|
+
const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */);
|
|
82393
82345
|
if (emitSuperHelpers) {
|
|
82394
82346
|
enableSubstitutionForAsyncMethodsWithSuper();
|
|
82395
82347
|
if (capturedSuperProperties.size) {
|
|
@@ -82401,9 +82353,9 @@ ${lanes.join("\n")}
|
|
|
82401
82353
|
const block = factory2.createBlock(statements, true);
|
|
82402
82354
|
setTextRange(block, node.body);
|
|
82403
82355
|
if (emitSuperHelpers && hasSuperElementAccess) {
|
|
82404
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
82356
|
+
if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
|
|
82405
82357
|
addEmitHelper(block, advancedAsyncSuperHelper);
|
|
82406
|
-
} else if (resolver.getNodeCheckFlags(node) &
|
|
82358
|
+
} else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
|
|
82407
82359
|
addEmitHelper(block, asyncSuperHelper);
|
|
82408
82360
|
}
|
|
82409
82361
|
}
|
|
@@ -82463,7 +82415,7 @@ ${lanes.join("\n")}
|
|
|
82463
82415
|
}
|
|
82464
82416
|
function onEmitNode(hint, node, emitCallback) {
|
|
82465
82417
|
if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {
|
|
82466
|
-
const superContainerFlags = resolver.getNodeCheckFlags(node) & (
|
|
82418
|
+
const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */);
|
|
82467
82419
|
if (superContainerFlags !== enclosingSuperContainerFlags) {
|
|
82468
82420
|
const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;
|
|
82469
82421
|
enclosingSuperContainerFlags = superContainerFlags;
|
|
@@ -82539,7 +82491,7 @@ ${lanes.join("\n")}
|
|
|
82539
82491
|
return kind === 260 /* ClassDeclaration */ || kind === 173 /* Constructor */ || kind === 171 /* MethodDeclaration */ || kind === 174 /* GetAccessor */ || kind === 175 /* SetAccessor */;
|
|
82540
82492
|
}
|
|
82541
82493
|
function createSuperElementAccessInAsyncMethod(argumentExpression, location) {
|
|
82542
|
-
if (enclosingSuperContainerFlags &
|
|
82494
|
+
if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
|
|
82543
82495
|
return setTextRange(
|
|
82544
82496
|
factory2.createPropertyAccessExpression(
|
|
82545
82497
|
factory2.createCallExpression(
|
|
@@ -82564,7 +82516,7 @@ ${lanes.join("\n")}
|
|
|
82564
82516
|
}
|
|
82565
82517
|
}
|
|
82566
82518
|
function createSuperAccessVariableStatement(factory2, resolver, node, names) {
|
|
82567
|
-
const hasBinding = (resolver.getNodeCheckFlags(node) &
|
|
82519
|
+
const hasBinding = (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) !== 0;
|
|
82568
82520
|
const accessors = [];
|
|
82569
82521
|
names.forEach((_, key) => {
|
|
82570
82522
|
const name = unescapeLeadingUnderscores(key);
|
|
@@ -83508,7 +83460,7 @@ ${lanes.join("\n")}
|
|
|
83508
83460
|
!!(hierarchyFacts & 1 /* HasLexicalThis */)
|
|
83509
83461
|
)
|
|
83510
83462
|
);
|
|
83511
|
-
const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (
|
|
83463
|
+
const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (256 /* MethodWithSuperPropertyAssignmentInAsync */ | 128 /* MethodWithSuperPropertyAccessInAsync */);
|
|
83512
83464
|
if (emitSuperHelpers) {
|
|
83513
83465
|
enableSubstitutionForAsyncMethodsWithSuper();
|
|
83514
83466
|
const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties);
|
|
@@ -83519,9 +83471,9 @@ ${lanes.join("\n")}
|
|
|
83519
83471
|
insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());
|
|
83520
83472
|
const block = factory2.updateBlock(node.body, statements);
|
|
83521
83473
|
if (emitSuperHelpers && hasSuperElementAccess) {
|
|
83522
|
-
if (resolver.getNodeCheckFlags(node) &
|
|
83474
|
+
if (resolver.getNodeCheckFlags(node) & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
|
|
83523
83475
|
addEmitHelper(block, advancedAsyncSuperHelper);
|
|
83524
|
-
} else if (resolver.getNodeCheckFlags(node) &
|
|
83476
|
+
} else if (resolver.getNodeCheckFlags(node) & 128 /* MethodWithSuperPropertyAccessInAsync */) {
|
|
83525
83477
|
addEmitHelper(block, asyncSuperHelper);
|
|
83526
83478
|
}
|
|
83527
83479
|
}
|
|
@@ -83631,7 +83583,7 @@ ${lanes.join("\n")}
|
|
|
83631
83583
|
}
|
|
83632
83584
|
function onEmitNode(hint, node, emitCallback) {
|
|
83633
83585
|
if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {
|
|
83634
|
-
const superContainerFlags = resolver.getNodeCheckFlags(node) & (
|
|
83586
|
+
const superContainerFlags = resolver.getNodeCheckFlags(node) & (128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */);
|
|
83635
83587
|
if (superContainerFlags !== enclosingSuperContainerFlags) {
|
|
83636
83588
|
const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;
|
|
83637
83589
|
enclosingSuperContainerFlags = superContainerFlags;
|
|
@@ -83707,7 +83659,7 @@ ${lanes.join("\n")}
|
|
|
83707
83659
|
return kind === 260 /* ClassDeclaration */ || kind === 173 /* Constructor */ || kind === 171 /* MethodDeclaration */ || kind === 174 /* GetAccessor */ || kind === 175 /* SetAccessor */;
|
|
83708
83660
|
}
|
|
83709
83661
|
function createSuperElementAccessInAsyncMethod(argumentExpression, location) {
|
|
83710
|
-
if (enclosingSuperContainerFlags &
|
|
83662
|
+
if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) {
|
|
83711
83663
|
return setTextRange(
|
|
83712
83664
|
factory2.createPropertyAccessExpression(
|
|
83713
83665
|
factory2.createCallExpression(
|
|
@@ -86106,8 +86058,8 @@ ${lanes.join("\n")}
|
|
|
86106
86058
|
}
|
|
86107
86059
|
function shouldEmitExplicitInitializerForLetDeclaration(node) {
|
|
86108
86060
|
const flags = resolver.getNodeCheckFlags(node);
|
|
86109
|
-
const isCapturedInFunction = flags &
|
|
86110
|
-
const isDeclaredInLoop = flags &
|
|
86061
|
+
const isCapturedInFunction = flags & 16384 /* CapturedBlockScopedBinding */;
|
|
86062
|
+
const isDeclaredInLoop = flags & 32768 /* BlockScopedBindingInLoop */;
|
|
86111
86063
|
const emittedAsTopLevel = (hierarchyFacts & 64 /* TopLevel */) !== 0 || isCapturedInFunction && isDeclaredInLoop && (hierarchyFacts & 512 /* IterationStatementBlock */) !== 0;
|
|
86112
86064
|
const emitExplicitInitializer = !emittedAsTopLevel && (hierarchyFacts & 4096 /* ForInOrForOfStatement */) === 0 && (!resolver.isDeclarationWithCollidingName(node) || isDeclaredInLoop && !isCapturedInFunction && (hierarchyFacts & (2048 /* ForStatement */ | 4096 /* ForInOrForOfStatement */)) === 0);
|
|
86113
86065
|
return emitExplicitInitializer;
|
|
@@ -86468,7 +86420,7 @@ ${lanes.join("\n")}
|
|
|
86468
86420
|
return factory2.inlineExpressions(expressions);
|
|
86469
86421
|
}
|
|
86470
86422
|
function shouldConvertPartOfIterationStatement(node) {
|
|
86471
|
-
return (resolver.getNodeCheckFlags(node) &
|
|
86423
|
+
return (resolver.getNodeCheckFlags(node) & 8192 /* ContainsCapturedBlockScopeBinding */) !== 0;
|
|
86472
86424
|
}
|
|
86473
86425
|
function shouldConvertInitializerOfForStatement(node) {
|
|
86474
86426
|
return isForStatement(node) && !!node.initializer && shouldConvertPartOfIterationStatement(node.initializer);
|
|
@@ -86483,7 +86435,7 @@ ${lanes.join("\n")}
|
|
|
86483
86435
|
return shouldConvertBodyOfIterationStatement(node) || shouldConvertInitializerOfForStatement(node);
|
|
86484
86436
|
}
|
|
86485
86437
|
function shouldConvertBodyOfIterationStatement(node) {
|
|
86486
|
-
return (resolver.getNodeCheckFlags(node) &
|
|
86438
|
+
return (resolver.getNodeCheckFlags(node) & 4096 /* LoopWithCapturedBlockScopedBinding */) !== 0;
|
|
86487
86439
|
}
|
|
86488
86440
|
function hoistVariableDeclarationDeclaredInConvertedLoop(state, node) {
|
|
86489
86441
|
if (!state.hoistedLocalVariables) {
|
|
@@ -86944,10 +86896,10 @@ ${lanes.join("\n")}
|
|
|
86944
86896
|
} else {
|
|
86945
86897
|
loopParameters.push(factory2.createParameterDeclaration(void 0, void 0, name));
|
|
86946
86898
|
const checkFlags = resolver.getNodeCheckFlags(decl);
|
|
86947
|
-
if (checkFlags &
|
|
86899
|
+
if (checkFlags & 262144 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForHead) {
|
|
86948
86900
|
const outParamName = factory2.createUniqueName("out_" + idText(name));
|
|
86949
|
-
let flags = 0
|
|
86950
|
-
if (checkFlags &
|
|
86901
|
+
let flags = 0 /* None */;
|
|
86902
|
+
if (checkFlags & 262144 /* NeedsLoopOutParameter */) {
|
|
86951
86903
|
flags |= 1 /* Body */;
|
|
86952
86904
|
}
|
|
86953
86905
|
if (isForStatement(container)) {
|
|
@@ -94939,7 +94891,7 @@ ${lanes.join("\n")}
|
|
|
94939
94891
|
const sourceMap = sourceMapGenerator.toString();
|
|
94940
94892
|
writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap, false, sourceFiles);
|
|
94941
94893
|
if (printer.bundleFileInfo)
|
|
94942
|
-
printer.bundleFileInfo.mapHash = computeSignature(sourceMap,
|
|
94894
|
+
printer.bundleFileInfo.mapHash = computeSignature(sourceMap, host);
|
|
94943
94895
|
}
|
|
94944
94896
|
} else {
|
|
94945
94897
|
writer.writeLine();
|
|
@@ -94947,7 +94899,7 @@ ${lanes.join("\n")}
|
|
|
94947
94899
|
const text = writer.getText();
|
|
94948
94900
|
writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform2.diagnostics });
|
|
94949
94901
|
if (printer.bundleFileInfo)
|
|
94950
|
-
printer.bundleFileInfo.hash = computeSignature(text,
|
|
94902
|
+
printer.bundleFileInfo.hash = computeSignature(text, host);
|
|
94951
94903
|
writer.clear();
|
|
94952
94904
|
}
|
|
94953
94905
|
function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) {
|
|
@@ -95051,7 +95003,6 @@ ${lanes.join("\n")}
|
|
|
95051
95003
|
return result;
|
|
95052
95004
|
}
|
|
95053
95005
|
function emitUsingBuildInfoWorker(config, host, getCommandLine, customTransformers) {
|
|
95054
|
-
const createHash = maybeBind(host, host.createHash);
|
|
95055
95006
|
const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle(config.options, false);
|
|
95056
95007
|
const buildInfo = host.getBuildInfo(buildInfoPath, config.options.configFilePath);
|
|
95057
95008
|
if (!buildInfo)
|
|
@@ -95061,22 +95012,22 @@ ${lanes.join("\n")}
|
|
|
95061
95012
|
const jsFileText = host.readFile(Debug.checkDefined(jsFilePath));
|
|
95062
95013
|
if (!jsFileText)
|
|
95063
95014
|
return jsFilePath;
|
|
95064
|
-
if (computeSignature(jsFileText,
|
|
95015
|
+
if (computeSignature(jsFileText, host) !== buildInfo.bundle.js.hash)
|
|
95065
95016
|
return jsFilePath;
|
|
95066
95017
|
const sourceMapText = sourceMapFilePath && host.readFile(sourceMapFilePath);
|
|
95067
95018
|
if (sourceMapFilePath && !sourceMapText || config.options.inlineSourceMap)
|
|
95068
95019
|
return sourceMapFilePath || "inline sourcemap decoding";
|
|
95069
|
-
if (sourceMapFilePath && computeSignature(sourceMapText,
|
|
95020
|
+
if (sourceMapFilePath && computeSignature(sourceMapText, host) !== buildInfo.bundle.js.mapHash)
|
|
95070
95021
|
return sourceMapFilePath;
|
|
95071
95022
|
const declarationText = declarationFilePath && host.readFile(declarationFilePath);
|
|
95072
95023
|
if (declarationFilePath && !declarationText)
|
|
95073
95024
|
return declarationFilePath;
|
|
95074
|
-
if (declarationFilePath && computeSignature(declarationText,
|
|
95025
|
+
if (declarationFilePath && computeSignature(declarationText, host) !== buildInfo.bundle.dts.hash)
|
|
95075
95026
|
return declarationFilePath;
|
|
95076
95027
|
const declarationMapText = declarationMapPath && host.readFile(declarationMapPath);
|
|
95077
95028
|
if (declarationMapPath && !declarationMapText || config.options.inlineSourceMap)
|
|
95078
95029
|
return declarationMapPath || "inline sourcemap decoding";
|
|
95079
|
-
if (declarationMapPath && computeSignature(declarationMapText,
|
|
95030
|
+
if (declarationMapPath && computeSignature(declarationMapText, host) !== buildInfo.bundle.dts.mapHash)
|
|
95080
95031
|
return declarationMapPath;
|
|
95081
95032
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
|
|
95082
95033
|
const ownPrependInput = createInputFilesWithFileTexts(
|
|
@@ -95146,7 +95097,7 @@ ${lanes.join("\n")}
|
|
|
95146
95097
|
getBuildInfo: (bundle) => {
|
|
95147
95098
|
const program = buildInfo.program;
|
|
95148
95099
|
if (program && changedDtsText !== void 0 && config.options.composite) {
|
|
95149
|
-
program.outSignature = computeSignature(changedDtsText,
|
|
95100
|
+
program.outSignature = computeSignature(changedDtsText, host, changedDtsData);
|
|
95150
95101
|
}
|
|
95151
95102
|
const { js, dts, sourceFiles } = buildInfo.bundle;
|
|
95152
95103
|
bundle.js.sources = js.sources;
|
|
@@ -95159,7 +95110,7 @@ ${lanes.join("\n")}
|
|
|
95159
95110
|
getSourceFileFromReference: returnUndefined,
|
|
95160
95111
|
redirectTargetsMap: createMultiMap(),
|
|
95161
95112
|
getFileIncludeReasons: notImplemented,
|
|
95162
|
-
createHash
|
|
95113
|
+
createHash: maybeBind(host, host.createHash)
|
|
95163
95114
|
};
|
|
95164
95115
|
emitFiles(
|
|
95165
95116
|
notImplementedResolver,
|
|
@@ -103354,7 +103305,7 @@ ${lanes.join("\n")}
|
|
|
103354
103305
|
return oldState && !oldState.referencedMap === !newReferencedMap;
|
|
103355
103306
|
}
|
|
103356
103307
|
BuilderState2.canReuseOldState = canReuseOldState;
|
|
103357
|
-
function create(newProgram,
|
|
103308
|
+
function create(newProgram, oldState, disableUseFileVersionAsSignature) {
|
|
103358
103309
|
var _a2, _b, _c;
|
|
103359
103310
|
const fileInfos = /* @__PURE__ */ new Map();
|
|
103360
103311
|
const options = newProgram.getCompilerOptions();
|
|
@@ -103362,6 +103313,7 @@ ${lanes.join("\n")}
|
|
|
103362
103313
|
const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
|
|
103363
103314
|
const exportedModulesMap = referencedMap ? createManyToManyPathMap() : void 0;
|
|
103364
103315
|
const useOldState = canReuseOldState(referencedMap, oldState);
|
|
103316
|
+
const getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames());
|
|
103365
103317
|
newProgram.getTypeChecker();
|
|
103366
103318
|
for (const sourceFile of newProgram.getSourceFiles()) {
|
|
103367
103319
|
const version2 = Debug.checkDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set");
|
|
@@ -103400,30 +103352,29 @@ ${lanes.join("\n")}
|
|
|
103400
103352
|
state.allFileNames = void 0;
|
|
103401
103353
|
}
|
|
103402
103354
|
BuilderState2.releaseCache = releaseCache2;
|
|
103403
|
-
function getFilesAffectedBy(state, programOfThisState, path, cancellationToken,
|
|
103355
|
+
function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, host) {
|
|
103404
103356
|
var _a2, _b;
|
|
103405
103357
|
const result = getFilesAffectedByWithOldState(
|
|
103406
103358
|
state,
|
|
103407
103359
|
programOfThisState,
|
|
103408
103360
|
path,
|
|
103409
103361
|
cancellationToken,
|
|
103410
|
-
|
|
103411
|
-
getCanonicalFileName
|
|
103362
|
+
host
|
|
103412
103363
|
);
|
|
103413
103364
|
(_a2 = state.oldSignatures) == null ? void 0 : _a2.clear();
|
|
103414
103365
|
(_b = state.oldExportedModulesMap) == null ? void 0 : _b.clear();
|
|
103415
103366
|
return result;
|
|
103416
103367
|
}
|
|
103417
103368
|
BuilderState2.getFilesAffectedBy = getFilesAffectedBy;
|
|
103418
|
-
function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken,
|
|
103369
|
+
function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host) {
|
|
103419
103370
|
const sourceFile = programOfThisState.getSourceFileByPath(path);
|
|
103420
103371
|
if (!sourceFile) {
|
|
103421
103372
|
return emptyArray;
|
|
103422
103373
|
}
|
|
103423
|
-
if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken,
|
|
103374
|
+
if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host)) {
|
|
103424
103375
|
return [sourceFile];
|
|
103425
103376
|
}
|
|
103426
|
-
return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken,
|
|
103377
|
+
return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host);
|
|
103427
103378
|
}
|
|
103428
103379
|
BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
|
|
103429
103380
|
function updateSignatureOfFile(state, signature, path) {
|
|
@@ -103431,7 +103382,7 @@ ${lanes.join("\n")}
|
|
|
103431
103382
|
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
|
|
103432
103383
|
}
|
|
103433
103384
|
BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
|
|
103434
|
-
function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken,
|
|
103385
|
+
function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) {
|
|
103435
103386
|
var _a2;
|
|
103436
103387
|
if ((_a2 = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a2.has(sourceFile.resolvedPath))
|
|
103437
103388
|
return false;
|
|
@@ -103444,10 +103395,10 @@ ${lanes.join("\n")}
|
|
|
103444
103395
|
(fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => {
|
|
103445
103396
|
Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`);
|
|
103446
103397
|
latestSignature = computeSignatureWithDiagnostics(
|
|
103398
|
+
programOfThisState,
|
|
103447
103399
|
sourceFile,
|
|
103448
103400
|
text,
|
|
103449
|
-
|
|
103450
|
-
getCanonicalFileName,
|
|
103401
|
+
host,
|
|
103451
103402
|
data
|
|
103452
103403
|
);
|
|
103453
103404
|
if (latestSignature !== prevSignature) {
|
|
@@ -103586,7 +103537,7 @@ ${lanes.join("\n")}
|
|
|
103586
103537
|
}
|
|
103587
103538
|
return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
|
|
103588
103539
|
}
|
|
103589
|
-
function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken,
|
|
103540
|
+
function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, host) {
|
|
103590
103541
|
if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) {
|
|
103591
103542
|
return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
|
|
103592
103543
|
}
|
|
@@ -103602,7 +103553,7 @@ ${lanes.join("\n")}
|
|
|
103602
103553
|
if (!seenFileNamesMap.has(currentPath)) {
|
|
103603
103554
|
const currentSourceFile = programOfThisState.getSourceFileByPath(currentPath);
|
|
103604
103555
|
seenFileNamesMap.set(currentPath, currentSourceFile);
|
|
103605
|
-
if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken,
|
|
103556
|
+
if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, host)) {
|
|
103606
103557
|
queue.push(...getReferencedByPaths(state, currentSourceFile.resolvedPath));
|
|
103607
103558
|
}
|
|
103608
103559
|
}
|
|
@@ -103646,9 +103597,9 @@ ${lanes.join("\n")}
|
|
|
103646
103597
|
function hasSameKeys(map1, map2) {
|
|
103647
103598
|
return map1 === map2 || map1 !== void 0 && map2 !== void 0 && map1.size === map2.size && !forEachKey(map1, (key) => !map2.has(key));
|
|
103648
103599
|
}
|
|
103649
|
-
function createBuilderProgramState(newProgram,
|
|
103600
|
+
function createBuilderProgramState(newProgram, oldState, disableUseFileVersionAsSignature) {
|
|
103650
103601
|
var _a2, _b;
|
|
103651
|
-
const state = BuilderState.create(newProgram,
|
|
103602
|
+
const state = BuilderState.create(newProgram, oldState, disableUseFileVersionAsSignature);
|
|
103652
103603
|
state.program = newProgram;
|
|
103653
103604
|
const compilerOptions = newProgram.getCompilerOptions();
|
|
103654
103605
|
state.compilerOptions = compilerOptions;
|
|
@@ -103692,7 +103643,7 @@ ${lanes.join("\n")}
|
|
|
103692
103643
|
return;
|
|
103693
103644
|
const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);
|
|
103694
103645
|
if (diagnostics) {
|
|
103695
|
-
state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram
|
|
103646
|
+
state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram) : diagnostics);
|
|
103696
103647
|
if (!state.semanticDiagnosticsFromOldState) {
|
|
103697
103648
|
state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
|
|
103698
103649
|
}
|
|
@@ -103752,10 +103703,11 @@ ${lanes.join("\n")}
|
|
|
103752
103703
|
function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) {
|
|
103753
103704
|
return !!options.declarationMap === !!oldOptions.declarationMap ? oldEmitSignature : isString(oldEmitSignature) ? [oldEmitSignature] : oldEmitSignature[0];
|
|
103754
103705
|
}
|
|
103755
|
-
function convertToDiagnostics(diagnostics, newProgram
|
|
103706
|
+
function convertToDiagnostics(diagnostics, newProgram) {
|
|
103756
103707
|
if (!diagnostics.length)
|
|
103757
103708
|
return emptyArray;
|
|
103758
|
-
|
|
103709
|
+
let buildInfoDirectory;
|
|
103710
|
+
let getCanonicalFileName;
|
|
103759
103711
|
return diagnostics.map((diagnostic) => {
|
|
103760
103712
|
const result = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3);
|
|
103761
103713
|
result.reportsUnnecessary = diagnostic.reportsUnnecessary;
|
|
@@ -103767,7 +103719,8 @@ ${lanes.join("\n")}
|
|
|
103767
103719
|
return result;
|
|
103768
103720
|
});
|
|
103769
103721
|
function toPath3(path) {
|
|
103770
|
-
|
|
103722
|
+
buildInfoDirectory != null ? buildInfoDirectory : buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
|
|
103723
|
+
return toPath(path, buildInfoDirectory, getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames()));
|
|
103771
103724
|
}
|
|
103772
103725
|
}
|
|
103773
103726
|
function convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3) {
|
|
@@ -103809,7 +103762,7 @@ ${lanes.join("\n")}
|
|
|
103809
103762
|
function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) {
|
|
103810
103763
|
Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath));
|
|
103811
103764
|
}
|
|
103812
|
-
function getNextAffectedFile(state, cancellationToken,
|
|
103765
|
+
function getNextAffectedFile(state, cancellationToken, host) {
|
|
103813
103766
|
var _a2, _b;
|
|
103814
103767
|
while (true) {
|
|
103815
103768
|
const { affectedFiles } = state;
|
|
@@ -103825,8 +103778,6 @@ ${lanes.join("\n")}
|
|
|
103825
103778
|
state,
|
|
103826
103779
|
affectedFile,
|
|
103827
103780
|
cancellationToken,
|
|
103828
|
-
computeHash,
|
|
103829
|
-
getCanonicalFileName,
|
|
103830
103781
|
host
|
|
103831
103782
|
);
|
|
103832
103783
|
return affectedFile;
|
|
@@ -103854,8 +103805,7 @@ ${lanes.join("\n")}
|
|
|
103854
103805
|
program,
|
|
103855
103806
|
nextKey.value,
|
|
103856
103807
|
cancellationToken,
|
|
103857
|
-
|
|
103858
|
-
getCanonicalFileName
|
|
103808
|
+
host
|
|
103859
103809
|
);
|
|
103860
103810
|
state.currentChangedFilePath = nextKey.value;
|
|
103861
103811
|
state.affectedFilesIndex = 0;
|
|
@@ -103907,7 +103857,7 @@ ${lanes.join("\n")}
|
|
|
103907
103857
|
);
|
|
103908
103858
|
}
|
|
103909
103859
|
}
|
|
103910
|
-
function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken,
|
|
103860
|
+
function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) {
|
|
103911
103861
|
removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath);
|
|
103912
103862
|
if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) {
|
|
103913
103863
|
removeDiagnosticsOfLibraryFiles(state);
|
|
@@ -103916,8 +103866,7 @@ ${lanes.join("\n")}
|
|
|
103916
103866
|
Debug.checkDefined(state.program),
|
|
103917
103867
|
affectedFile,
|
|
103918
103868
|
cancellationToken,
|
|
103919
|
-
|
|
103920
|
-
getCanonicalFileName
|
|
103869
|
+
host
|
|
103921
103870
|
);
|
|
103922
103871
|
return;
|
|
103923
103872
|
}
|
|
@@ -103927,12 +103876,10 @@ ${lanes.join("\n")}
|
|
|
103927
103876
|
state,
|
|
103928
103877
|
affectedFile,
|
|
103929
103878
|
cancellationToken,
|
|
103930
|
-
computeHash,
|
|
103931
|
-
getCanonicalFileName,
|
|
103932
103879
|
host
|
|
103933
103880
|
);
|
|
103934
103881
|
}
|
|
103935
|
-
function handleDtsMayChangeOf(state, path, cancellationToken,
|
|
103882
|
+
function handleDtsMayChangeOf(state, path, cancellationToken, host) {
|
|
103936
103883
|
removeSemanticDiagnosticsOf(state, path);
|
|
103937
103884
|
if (!state.changedFilesSet.has(path)) {
|
|
103938
103885
|
const program = Debug.checkDefined(state.program);
|
|
@@ -103943,8 +103890,7 @@ ${lanes.join("\n")}
|
|
|
103943
103890
|
program,
|
|
103944
103891
|
sourceFile,
|
|
103945
103892
|
cancellationToken,
|
|
103946
|
-
|
|
103947
|
-
getCanonicalFileName,
|
|
103893
|
+
host,
|
|
103948
103894
|
!host.disableUseFileVersionAsSignature
|
|
103949
103895
|
);
|
|
103950
103896
|
if (getEmitDeclarations(state.compilerOptions)) {
|
|
@@ -103966,7 +103912,7 @@ ${lanes.join("\n")}
|
|
|
103966
103912
|
const newSignature = Debug.checkDefined(state.fileInfos.get(path)).signature;
|
|
103967
103913
|
return newSignature !== oldSignature;
|
|
103968
103914
|
}
|
|
103969
|
-
function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken,
|
|
103915
|
+
function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host) {
|
|
103970
103916
|
var _a2;
|
|
103971
103917
|
if (!((_a2 = state.fileInfos.get(filePath)) == null ? void 0 : _a2.affectsGlobalScope))
|
|
103972
103918
|
return false;
|
|
@@ -103974,14 +103920,12 @@ ${lanes.join("\n")}
|
|
|
103974
103920
|
state,
|
|
103975
103921
|
file.resolvedPath,
|
|
103976
103922
|
cancellationToken,
|
|
103977
|
-
computeHash,
|
|
103978
|
-
getCanonicalFileName,
|
|
103979
103923
|
host
|
|
103980
103924
|
));
|
|
103981
103925
|
removeDiagnosticsOfLibraryFiles(state);
|
|
103982
103926
|
return true;
|
|
103983
103927
|
}
|
|
103984
|
-
function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken,
|
|
103928
|
+
function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host) {
|
|
103985
103929
|
var _a2;
|
|
103986
103930
|
if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.resolvedPath))
|
|
103987
103931
|
return;
|
|
@@ -103995,9 +103939,9 @@ ${lanes.join("\n")}
|
|
|
103995
103939
|
const currentPath = queue.pop();
|
|
103996
103940
|
if (!seenFileNamesMap.has(currentPath)) {
|
|
103997
103941
|
seenFileNamesMap.set(currentPath, true);
|
|
103998
|
-
if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken,
|
|
103942
|
+
if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, host))
|
|
103999
103943
|
return;
|
|
104000
|
-
handleDtsMayChangeOf(state, currentPath, cancellationToken,
|
|
103944
|
+
handleDtsMayChangeOf(state, currentPath, cancellationToken, host);
|
|
104001
103945
|
if (isChangedSignature(state, currentPath)) {
|
|
104002
103946
|
const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath);
|
|
104003
103947
|
queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath));
|
|
@@ -104007,7 +103951,7 @@ ${lanes.join("\n")}
|
|
|
104007
103951
|
}
|
|
104008
103952
|
const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
|
|
104009
103953
|
(_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
|
|
104010
|
-
if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken,
|
|
103954
|
+
if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, host))
|
|
104011
103955
|
return true;
|
|
104012
103956
|
const references = state.referencedMap.getKeys(exportedFromPath);
|
|
104013
103957
|
return references && forEachKey(
|
|
@@ -104017,28 +103961,24 @@ ${lanes.join("\n")}
|
|
|
104017
103961
|
filePath,
|
|
104018
103962
|
seenFileAndExportsOfFile,
|
|
104019
103963
|
cancellationToken,
|
|
104020
|
-
computeHash,
|
|
104021
|
-
getCanonicalFileName,
|
|
104022
103964
|
host
|
|
104023
103965
|
)
|
|
104024
103966
|
);
|
|
104025
103967
|
});
|
|
104026
103968
|
}
|
|
104027
|
-
function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken,
|
|
103969
|
+
function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, host) {
|
|
104028
103970
|
var _a2, _b;
|
|
104029
103971
|
if (!tryAddToSet(seenFileAndExportsOfFile, filePath))
|
|
104030
103972
|
return void 0;
|
|
104031
|
-
if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken,
|
|
103973
|
+
if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host))
|
|
104032
103974
|
return true;
|
|
104033
|
-
handleDtsMayChangeOf(state, filePath, cancellationToken,
|
|
103975
|
+
handleDtsMayChangeOf(state, filePath, cancellationToken, host);
|
|
104034
103976
|
(_a2 = state.exportedModulesMap.getKeys(filePath)) == null ? void 0 : _a2.forEach(
|
|
104035
103977
|
(exportedFromPath) => handleDtsMayChangeOfFileAndExportsOfFile(
|
|
104036
103978
|
state,
|
|
104037
103979
|
exportedFromPath,
|
|
104038
103980
|
seenFileAndExportsOfFile,
|
|
104039
103981
|
cancellationToken,
|
|
104040
|
-
computeHash,
|
|
104041
|
-
getCanonicalFileName,
|
|
104042
103982
|
host
|
|
104043
103983
|
)
|
|
104044
103984
|
);
|
|
@@ -104047,8 +103987,6 @@ ${lanes.join("\n")}
|
|
|
104047
103987
|
state,
|
|
104048
103988
|
referencingFilePath,
|
|
104049
103989
|
cancellationToken,
|
|
104050
|
-
computeHash,
|
|
104051
|
-
getCanonicalFileName,
|
|
104052
103990
|
host
|
|
104053
103991
|
)
|
|
104054
103992
|
);
|
|
@@ -104077,9 +104015,10 @@ ${lanes.join("\n")}
|
|
|
104077
104015
|
function isProgramBundleEmitBuildInfo(info) {
|
|
104078
104016
|
return !!outFile(info.options || {});
|
|
104079
104017
|
}
|
|
104080
|
-
function getBuildInfo2(state,
|
|
104018
|
+
function getBuildInfo2(state, bundle) {
|
|
104081
104019
|
var _a2, _b, _c;
|
|
104082
104020
|
const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory();
|
|
104021
|
+
const getCanonicalFileName = createGetCanonicalFileName(state.program.useCaseSensitiveFileNames());
|
|
104083
104022
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
|
|
104084
104023
|
const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
|
|
104085
104024
|
const fileNames = [];
|
|
@@ -104298,8 +104237,9 @@ ${lanes.join("\n")}
|
|
|
104298
104237
|
function getTextHandlingSourceMapForSignature(text, data) {
|
|
104299
104238
|
return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text;
|
|
104300
104239
|
}
|
|
104301
|
-
function computeSignatureWithDiagnostics(sourceFile, text,
|
|
104302
|
-
var _a2;
|
|
104240
|
+
function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) {
|
|
104241
|
+
var _a2, _b;
|
|
104242
|
+
let getCanonicalFileName;
|
|
104303
104243
|
text = getTextHandlingSourceMapForSignature(text, data);
|
|
104304
104244
|
let sourceFileDirectory;
|
|
104305
104245
|
if ((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length) {
|
|
@@ -104307,7 +104247,7 @@ ${lanes.join("\n")}
|
|
|
104307
104247
|
(diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`
|
|
104308
104248
|
).join("\n");
|
|
104309
104249
|
}
|
|
104310
|
-
return (
|
|
104250
|
+
return ((_b = host.createHash) != null ? _b : generateDjb2Hash)(text);
|
|
104311
104251
|
function flattenDiagnosticMessageText2(diagnostic) {
|
|
104312
104252
|
return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? "" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText2).join("\n");
|
|
104313
104253
|
}
|
|
@@ -104316,11 +104256,16 @@ ${lanes.join("\n")}
|
|
|
104316
104256
|
return `(${diagnostic.start},${diagnostic.length})`;
|
|
104317
104257
|
if (sourceFileDirectory === void 0)
|
|
104318
104258
|
sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath);
|
|
104319
|
-
return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(
|
|
104259
|
+
return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(
|
|
104260
|
+
sourceFileDirectory,
|
|
104261
|
+
diagnostic.file.resolvedPath,
|
|
104262
|
+
getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(program.useCaseSensitiveFileNames())
|
|
104263
|
+
))}(${diagnostic.start},${diagnostic.length})`;
|
|
104320
104264
|
}
|
|
104321
104265
|
}
|
|
104322
|
-
function computeSignature(text,
|
|
104323
|
-
|
|
104266
|
+
function computeSignature(text, host, data) {
|
|
104267
|
+
var _a2;
|
|
104268
|
+
return ((_a2 = host.createHash) != null ? _a2 : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
|
|
104324
104269
|
}
|
|
104325
104270
|
function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) {
|
|
104326
104271
|
let oldState = oldProgram && oldProgram.getState();
|
|
@@ -104329,10 +104274,8 @@ ${lanes.join("\n")}
|
|
|
104329
104274
|
oldState = void 0;
|
|
104330
104275
|
return oldProgram;
|
|
104331
104276
|
}
|
|
104332
|
-
const
|
|
104333
|
-
|
|
104334
|
-
const state = createBuilderProgramState(newProgram, getCanonicalFileName, oldState, host.disableUseFileVersionAsSignature);
|
|
104335
|
-
newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, getCanonicalFileName, bundle);
|
|
104277
|
+
const state = createBuilderProgramState(newProgram, oldState, host.disableUseFileVersionAsSignature);
|
|
104278
|
+
newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, bundle);
|
|
104336
104279
|
newProgram = void 0;
|
|
104337
104280
|
oldProgram = void 0;
|
|
104338
104281
|
oldState = void 0;
|
|
@@ -104366,7 +104309,7 @@ ${lanes.join("\n")}
|
|
|
104366
104309
|
}
|
|
104367
104310
|
function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
|
|
104368
104311
|
var _a2, _b, _c, _d, _e;
|
|
104369
|
-
let affected = getNextAffectedFile(state, cancellationToken,
|
|
104312
|
+
let affected = getNextAffectedFile(state, cancellationToken, host);
|
|
104370
104313
|
const programEmitKind = getBuilderFileEmit(state.compilerOptions);
|
|
104371
104314
|
let emitKind = emitOnlyDtsFiles ? programEmitKind & 24 /* AllDts */ : programEmitKind;
|
|
104372
104315
|
if (!affected) {
|
|
@@ -104440,10 +104383,10 @@ ${lanes.join("\n")}
|
|
|
104440
104383
|
const info = state.fileInfos.get(file.resolvedPath);
|
|
104441
104384
|
if (info.signature === file.version) {
|
|
104442
104385
|
const signature = computeSignatureWithDiagnostics(
|
|
104386
|
+
state.program,
|
|
104443
104387
|
file,
|
|
104444
104388
|
text,
|
|
104445
|
-
|
|
104446
|
-
getCanonicalFileName,
|
|
104389
|
+
host,
|
|
104447
104390
|
data
|
|
104448
104391
|
);
|
|
104449
104392
|
if (!((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length))
|
|
@@ -104487,7 +104430,7 @@ ${lanes.join("\n")}
|
|
|
104487
104430
|
state.program.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
|
|
104488
104431
|
function handleNewSignature(oldSignatureFormat, newSignature) {
|
|
104489
104432
|
const oldSignature = !oldSignatureFormat || isString(oldSignatureFormat) ? oldSignatureFormat : oldSignatureFormat[0];
|
|
104490
|
-
newSignature != null ? newSignature : newSignature = computeSignature(text,
|
|
104433
|
+
newSignature != null ? newSignature : newSignature = computeSignature(text, host, data);
|
|
104491
104434
|
if (newSignature === oldSignature) {
|
|
104492
104435
|
if (oldSignatureFormat === oldSignature)
|
|
104493
104436
|
return void 0;
|
|
@@ -104543,7 +104486,7 @@ ${lanes.join("\n")}
|
|
|
104543
104486
|
}
|
|
104544
104487
|
function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) {
|
|
104545
104488
|
while (true) {
|
|
104546
|
-
const affected = getNextAffectedFile(state, cancellationToken,
|
|
104489
|
+
const affected = getNextAffectedFile(state, cancellationToken, host);
|
|
104547
104490
|
let result;
|
|
104548
104491
|
if (!affected)
|
|
104549
104492
|
return void 0;
|
|
@@ -116412,6 +116355,7 @@ ${lanes.join("\n")}
|
|
|
116412
116355
|
trace: maybeBind(host, host.trace),
|
|
116413
116356
|
resolveModuleNames: maybeBind(host, host.resolveModuleNames),
|
|
116414
116357
|
getModuleResolutionCache: maybeBind(host, host.getModuleResolutionCache),
|
|
116358
|
+
createHash: maybeBind(host, host.createHash),
|
|
116415
116359
|
resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives),
|
|
116416
116360
|
useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect),
|
|
116417
116361
|
getParsedCommandLine
|
|
@@ -144672,6 +144616,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
144672
144616
|
init_ts4();
|
|
144673
144617
|
anyContext = emptyArray;
|
|
144674
144618
|
RuleAction = /* @__PURE__ */ ((RuleAction2) => {
|
|
144619
|
+
RuleAction2[RuleAction2["None"] = 0] = "None";
|
|
144675
144620
|
RuleAction2[RuleAction2["StopProcessingSpaceActions"] = 1] = "StopProcessingSpaceActions";
|
|
144676
144621
|
RuleAction2[RuleAction2["StopProcessingTokenActions"] = 2] = "StopProcessingTokenActions";
|
|
144677
144622
|
RuleAction2[RuleAction2["InsertSpace"] = 4] = "InsertSpace";
|
|
@@ -145327,7 +145272,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
145327
145272
|
return rulesMapCache;
|
|
145328
145273
|
}
|
|
145329
145274
|
function getRuleActionExclusion(ruleAction) {
|
|
145330
|
-
let mask2 = 0
|
|
145275
|
+
let mask2 = 0 /* None */;
|
|
145331
145276
|
if (ruleAction & 1 /* StopProcessingSpaceActions */) {
|
|
145332
145277
|
mask2 |= 28 /* ModifySpaceAction */;
|
|
145333
145278
|
}
|
|
@@ -146916,6 +146861,63 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146916
146861
|
}
|
|
146917
146862
|
});
|
|
146918
146863
|
|
|
146864
|
+
// src/deprecatedCompat/deprecate.ts
|
|
146865
|
+
function getTypeScriptVersion() {
|
|
146866
|
+
return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
|
|
146867
|
+
}
|
|
146868
|
+
function formatDeprecationMessage(name, error, errorAfter, since, message) {
|
|
146869
|
+
let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
|
|
146870
|
+
deprecationMessage += `'${name}' `;
|
|
146871
|
+
deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
|
|
146872
|
+
deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
|
|
146873
|
+
deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
|
|
146874
|
+
return deprecationMessage;
|
|
146875
|
+
}
|
|
146876
|
+
function createErrorDeprecation(name, errorAfter, since, message) {
|
|
146877
|
+
const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
|
|
146878
|
+
return () => {
|
|
146879
|
+
throw new TypeError(deprecationMessage);
|
|
146880
|
+
};
|
|
146881
|
+
}
|
|
146882
|
+
function createWarningDeprecation(name, errorAfter, since, message) {
|
|
146883
|
+
let hasWrittenDeprecation = false;
|
|
146884
|
+
return () => {
|
|
146885
|
+
if (enableDeprecationWarnings && !hasWrittenDeprecation) {
|
|
146886
|
+
Debug.log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
|
|
146887
|
+
hasWrittenDeprecation = true;
|
|
146888
|
+
}
|
|
146889
|
+
};
|
|
146890
|
+
}
|
|
146891
|
+
function createDeprecation(name, options = {}) {
|
|
146892
|
+
var _a2, _b;
|
|
146893
|
+
const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
|
|
146894
|
+
const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
|
|
146895
|
+
const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
|
|
146896
|
+
const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
|
|
146897
|
+
const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
|
|
146898
|
+
const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
|
|
146899
|
+
return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
|
|
146900
|
+
}
|
|
146901
|
+
function wrapFunction(deprecation, func) {
|
|
146902
|
+
return function() {
|
|
146903
|
+
deprecation();
|
|
146904
|
+
return func.apply(this, arguments);
|
|
146905
|
+
};
|
|
146906
|
+
}
|
|
146907
|
+
function deprecate(func, options) {
|
|
146908
|
+
var _a2;
|
|
146909
|
+
const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : Debug.getFunctionName(func), options);
|
|
146910
|
+
return wrapFunction(deprecation, func);
|
|
146911
|
+
}
|
|
146912
|
+
var enableDeprecationWarnings, typeScriptVersion2;
|
|
146913
|
+
var init_deprecate = __esm({
|
|
146914
|
+
"src/deprecatedCompat/deprecate.ts"() {
|
|
146915
|
+
"use strict";
|
|
146916
|
+
init_ts5();
|
|
146917
|
+
enableDeprecationWarnings = true;
|
|
146918
|
+
}
|
|
146919
|
+
});
|
|
146920
|
+
|
|
146919
146921
|
// src/deprecatedCompat/deprecations.ts
|
|
146920
146922
|
function createOverload(name, overloads, binder2, deprecations) {
|
|
146921
146923
|
Object.defineProperty(call, "name", { ...Object.getOwnPropertyDescriptor(call, "name"), value: name });
|
|
@@ -146923,7 +146925,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146923
146925
|
for (const key of Object.keys(deprecations)) {
|
|
146924
146926
|
const index = +key;
|
|
146925
146927
|
if (!isNaN(index) && hasProperty(overloads, `${index}`)) {
|
|
146926
|
-
overloads[index] =
|
|
146928
|
+
overloads[index] = deprecate(overloads[index], { ...deprecations[index], name });
|
|
146927
146929
|
}
|
|
146928
146930
|
}
|
|
146929
146931
|
}
|
|
@@ -146964,6 +146966,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146964
146966
|
"src/deprecatedCompat/deprecations.ts"() {
|
|
146965
146967
|
"use strict";
|
|
146966
146968
|
init_ts5();
|
|
146969
|
+
init_deprecate();
|
|
146967
146970
|
}
|
|
146968
146971
|
});
|
|
146969
146972
|
|
|
@@ -146973,337 +146976,338 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146973
146976
|
"src/deprecatedCompat/4.0/nodeFactoryTopLevelExports.ts"() {
|
|
146974
146977
|
"use strict";
|
|
146975
146978
|
init_ts5();
|
|
146979
|
+
init_deprecate();
|
|
146976
146980
|
factoryDeprecation = { since: "4.0", warnAfter: "4.1", message: "Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead." };
|
|
146977
|
-
createNodeArray =
|
|
146978
|
-
createNumericLiteral =
|
|
146979
|
-
createBigIntLiteral =
|
|
146980
|
-
createStringLiteral =
|
|
146981
|
-
createStringLiteralFromNode =
|
|
146982
|
-
createRegularExpressionLiteral =
|
|
146983
|
-
createLoopVariable =
|
|
146984
|
-
createUniqueName =
|
|
146985
|
-
createPrivateIdentifier =
|
|
146986
|
-
createSuper =
|
|
146987
|
-
createThis =
|
|
146988
|
-
createNull =
|
|
146989
|
-
createTrue =
|
|
146990
|
-
createFalse =
|
|
146991
|
-
createModifier =
|
|
146992
|
-
createModifiersFromModifierFlags =
|
|
146993
|
-
createQualifiedName =
|
|
146994
|
-
updateQualifiedName =
|
|
146995
|
-
createComputedPropertyName =
|
|
146996
|
-
updateComputedPropertyName =
|
|
146997
|
-
createTypeParameterDeclaration =
|
|
146998
|
-
updateTypeParameterDeclaration =
|
|
146999
|
-
createParameter =
|
|
147000
|
-
updateParameter =
|
|
147001
|
-
createDecorator =
|
|
147002
|
-
updateDecorator =
|
|
147003
|
-
createProperty =
|
|
147004
|
-
updateProperty =
|
|
147005
|
-
createMethod =
|
|
147006
|
-
updateMethod =
|
|
147007
|
-
createConstructor =
|
|
147008
|
-
updateConstructor =
|
|
147009
|
-
createGetAccessor =
|
|
147010
|
-
updateGetAccessor =
|
|
147011
|
-
createSetAccessor =
|
|
147012
|
-
updateSetAccessor =
|
|
147013
|
-
createCallSignature =
|
|
147014
|
-
updateCallSignature =
|
|
147015
|
-
createConstructSignature =
|
|
147016
|
-
updateConstructSignature =
|
|
147017
|
-
updateIndexSignature =
|
|
147018
|
-
createKeywordTypeNode =
|
|
147019
|
-
createTypePredicateNodeWithModifier =
|
|
147020
|
-
updateTypePredicateNodeWithModifier =
|
|
147021
|
-
createTypeReferenceNode =
|
|
147022
|
-
updateTypeReferenceNode =
|
|
147023
|
-
createFunctionTypeNode =
|
|
147024
|
-
updateFunctionTypeNode =
|
|
147025
|
-
createConstructorTypeNode =
|
|
146981
|
+
createNodeArray = deprecate(factory.createNodeArray, factoryDeprecation);
|
|
146982
|
+
createNumericLiteral = deprecate(factory.createNumericLiteral, factoryDeprecation);
|
|
146983
|
+
createBigIntLiteral = deprecate(factory.createBigIntLiteral, factoryDeprecation);
|
|
146984
|
+
createStringLiteral = deprecate(factory.createStringLiteral, factoryDeprecation);
|
|
146985
|
+
createStringLiteralFromNode = deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
|
|
146986
|
+
createRegularExpressionLiteral = deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
|
|
146987
|
+
createLoopVariable = deprecate(factory.createLoopVariable, factoryDeprecation);
|
|
146988
|
+
createUniqueName = deprecate(factory.createUniqueName, factoryDeprecation);
|
|
146989
|
+
createPrivateIdentifier = deprecate(factory.createPrivateIdentifier, factoryDeprecation);
|
|
146990
|
+
createSuper = deprecate(factory.createSuper, factoryDeprecation);
|
|
146991
|
+
createThis = deprecate(factory.createThis, factoryDeprecation);
|
|
146992
|
+
createNull = deprecate(factory.createNull, factoryDeprecation);
|
|
146993
|
+
createTrue = deprecate(factory.createTrue, factoryDeprecation);
|
|
146994
|
+
createFalse = deprecate(factory.createFalse, factoryDeprecation);
|
|
146995
|
+
createModifier = deprecate(factory.createModifier, factoryDeprecation);
|
|
146996
|
+
createModifiersFromModifierFlags = deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
|
|
146997
|
+
createQualifiedName = deprecate(factory.createQualifiedName, factoryDeprecation);
|
|
146998
|
+
updateQualifiedName = deprecate(factory.updateQualifiedName, factoryDeprecation);
|
|
146999
|
+
createComputedPropertyName = deprecate(factory.createComputedPropertyName, factoryDeprecation);
|
|
147000
|
+
updateComputedPropertyName = deprecate(factory.updateComputedPropertyName, factoryDeprecation);
|
|
147001
|
+
createTypeParameterDeclaration = deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
|
|
147002
|
+
updateTypeParameterDeclaration = deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
|
|
147003
|
+
createParameter = deprecate(factory.createParameterDeclaration, factoryDeprecation);
|
|
147004
|
+
updateParameter = deprecate(factory.updateParameterDeclaration, factoryDeprecation);
|
|
147005
|
+
createDecorator = deprecate(factory.createDecorator, factoryDeprecation);
|
|
147006
|
+
updateDecorator = deprecate(factory.updateDecorator, factoryDeprecation);
|
|
147007
|
+
createProperty = deprecate(factory.createPropertyDeclaration, factoryDeprecation);
|
|
147008
|
+
updateProperty = deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
|
|
147009
|
+
createMethod = deprecate(factory.createMethodDeclaration, factoryDeprecation);
|
|
147010
|
+
updateMethod = deprecate(factory.updateMethodDeclaration, factoryDeprecation);
|
|
147011
|
+
createConstructor = deprecate(factory.createConstructorDeclaration, factoryDeprecation);
|
|
147012
|
+
updateConstructor = deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
|
|
147013
|
+
createGetAccessor = deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
|
|
147014
|
+
updateGetAccessor = deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
|
|
147015
|
+
createSetAccessor = deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
|
|
147016
|
+
updateSetAccessor = deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
|
|
147017
|
+
createCallSignature = deprecate(factory.createCallSignature, factoryDeprecation);
|
|
147018
|
+
updateCallSignature = deprecate(factory.updateCallSignature, factoryDeprecation);
|
|
147019
|
+
createConstructSignature = deprecate(factory.createConstructSignature, factoryDeprecation);
|
|
147020
|
+
updateConstructSignature = deprecate(factory.updateConstructSignature, factoryDeprecation);
|
|
147021
|
+
updateIndexSignature = deprecate(factory.updateIndexSignature, factoryDeprecation);
|
|
147022
|
+
createKeywordTypeNode = deprecate(factory.createKeywordTypeNode, factoryDeprecation);
|
|
147023
|
+
createTypePredicateNodeWithModifier = deprecate(factory.createTypePredicateNode, factoryDeprecation);
|
|
147024
|
+
updateTypePredicateNodeWithModifier = deprecate(factory.updateTypePredicateNode, factoryDeprecation);
|
|
147025
|
+
createTypeReferenceNode = deprecate(factory.createTypeReferenceNode, factoryDeprecation);
|
|
147026
|
+
updateTypeReferenceNode = deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
|
|
147027
|
+
createFunctionTypeNode = deprecate(factory.createFunctionTypeNode, factoryDeprecation);
|
|
147028
|
+
updateFunctionTypeNode = deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
|
|
147029
|
+
createConstructorTypeNode = deprecate((typeParameters, parameters, type) => {
|
|
147026
147030
|
return factory.createConstructorTypeNode(void 0, typeParameters, parameters, type);
|
|
147027
147031
|
}, factoryDeprecation);
|
|
147028
|
-
updateConstructorTypeNode =
|
|
147032
|
+
updateConstructorTypeNode = deprecate((node, typeParameters, parameters, type) => {
|
|
147029
147033
|
return factory.updateConstructorTypeNode(node, node.modifiers, typeParameters, parameters, type);
|
|
147030
147034
|
}, factoryDeprecation);
|
|
147031
|
-
createTypeQueryNode =
|
|
147032
|
-
updateTypeQueryNode =
|
|
147033
|
-
createTypeLiteralNode =
|
|
147034
|
-
updateTypeLiteralNode =
|
|
147035
|
-
createArrayTypeNode =
|
|
147036
|
-
updateArrayTypeNode =
|
|
147037
|
-
createTupleTypeNode =
|
|
147038
|
-
updateTupleTypeNode =
|
|
147039
|
-
createOptionalTypeNode =
|
|
147040
|
-
updateOptionalTypeNode =
|
|
147041
|
-
createRestTypeNode =
|
|
147042
|
-
updateRestTypeNode =
|
|
147043
|
-
createUnionTypeNode =
|
|
147044
|
-
updateUnionTypeNode =
|
|
147045
|
-
createIntersectionTypeNode =
|
|
147046
|
-
updateIntersectionTypeNode =
|
|
147047
|
-
createConditionalTypeNode =
|
|
147048
|
-
updateConditionalTypeNode =
|
|
147049
|
-
createInferTypeNode =
|
|
147050
|
-
updateInferTypeNode =
|
|
147051
|
-
createImportTypeNode =
|
|
147052
|
-
updateImportTypeNode =
|
|
147053
|
-
createParenthesizedType =
|
|
147054
|
-
updateParenthesizedType =
|
|
147055
|
-
createThisTypeNode =
|
|
147056
|
-
updateTypeOperatorNode =
|
|
147057
|
-
createIndexedAccessTypeNode =
|
|
147058
|
-
updateIndexedAccessTypeNode =
|
|
147059
|
-
createMappedTypeNode =
|
|
147060
|
-
updateMappedTypeNode =
|
|
147061
|
-
createLiteralTypeNode =
|
|
147062
|
-
updateLiteralTypeNode =
|
|
147063
|
-
createObjectBindingPattern =
|
|
147064
|
-
updateObjectBindingPattern =
|
|
147065
|
-
createArrayBindingPattern =
|
|
147066
|
-
updateArrayBindingPattern =
|
|
147067
|
-
createBindingElement =
|
|
147068
|
-
updateBindingElement =
|
|
147069
|
-
createArrayLiteral =
|
|
147070
|
-
updateArrayLiteral =
|
|
147071
|
-
createObjectLiteral =
|
|
147072
|
-
updateObjectLiteral =
|
|
147073
|
-
createPropertyAccess =
|
|
147074
|
-
updatePropertyAccess =
|
|
147075
|
-
createPropertyAccessChain =
|
|
147076
|
-
updatePropertyAccessChain =
|
|
147077
|
-
createElementAccess =
|
|
147078
|
-
updateElementAccess =
|
|
147079
|
-
createElementAccessChain =
|
|
147080
|
-
updateElementAccessChain =
|
|
147081
|
-
createCall =
|
|
147082
|
-
updateCall =
|
|
147083
|
-
createCallChain =
|
|
147084
|
-
updateCallChain =
|
|
147085
|
-
createNew =
|
|
147086
|
-
updateNew =
|
|
147087
|
-
createTypeAssertion =
|
|
147088
|
-
updateTypeAssertion =
|
|
147089
|
-
createParen =
|
|
147090
|
-
updateParen =
|
|
147091
|
-
createFunctionExpression =
|
|
147092
|
-
updateFunctionExpression =
|
|
147093
|
-
createDelete =
|
|
147094
|
-
updateDelete =
|
|
147095
|
-
createTypeOf =
|
|
147096
|
-
updateTypeOf =
|
|
147097
|
-
createVoid =
|
|
147098
|
-
updateVoid =
|
|
147099
|
-
createAwait =
|
|
147100
|
-
updateAwait =
|
|
147101
|
-
createPrefix =
|
|
147102
|
-
updatePrefix =
|
|
147103
|
-
createPostfix =
|
|
147104
|
-
updatePostfix =
|
|
147105
|
-
createBinary =
|
|
147106
|
-
updateConditional =
|
|
147107
|
-
createTemplateExpression =
|
|
147108
|
-
updateTemplateExpression =
|
|
147109
|
-
createTemplateHead =
|
|
147110
|
-
createTemplateMiddle =
|
|
147111
|
-
createTemplateTail =
|
|
147112
|
-
createNoSubstitutionTemplateLiteral =
|
|
147113
|
-
updateYield =
|
|
147114
|
-
createSpread =
|
|
147115
|
-
updateSpread =
|
|
147116
|
-
createOmittedExpression =
|
|
147117
|
-
createAsExpression =
|
|
147118
|
-
updateAsExpression =
|
|
147119
|
-
createNonNullExpression =
|
|
147120
|
-
updateNonNullExpression =
|
|
147121
|
-
createNonNullChain =
|
|
147122
|
-
updateNonNullChain =
|
|
147123
|
-
createMetaProperty =
|
|
147124
|
-
updateMetaProperty =
|
|
147125
|
-
createTemplateSpan =
|
|
147126
|
-
updateTemplateSpan =
|
|
147127
|
-
createSemicolonClassElement =
|
|
147128
|
-
createBlock =
|
|
147129
|
-
updateBlock =
|
|
147130
|
-
createVariableStatement =
|
|
147131
|
-
updateVariableStatement =
|
|
147132
|
-
createEmptyStatement =
|
|
147133
|
-
createExpressionStatement =
|
|
147134
|
-
updateExpressionStatement =
|
|
147135
|
-
createStatement =
|
|
147136
|
-
updateStatement =
|
|
147137
|
-
createIf =
|
|
147138
|
-
updateIf =
|
|
147139
|
-
createDo =
|
|
147140
|
-
updateDo =
|
|
147141
|
-
createWhile =
|
|
147142
|
-
updateWhile =
|
|
147143
|
-
createFor =
|
|
147144
|
-
updateFor =
|
|
147145
|
-
createForIn =
|
|
147146
|
-
updateForIn =
|
|
147147
|
-
createForOf =
|
|
147148
|
-
updateForOf =
|
|
147149
|
-
createContinue =
|
|
147150
|
-
updateContinue =
|
|
147151
|
-
createBreak =
|
|
147152
|
-
updateBreak =
|
|
147153
|
-
createReturn =
|
|
147154
|
-
updateReturn =
|
|
147155
|
-
createWith =
|
|
147156
|
-
updateWith =
|
|
147157
|
-
createSwitch =
|
|
147158
|
-
updateSwitch =
|
|
147159
|
-
createLabel =
|
|
147160
|
-
updateLabel =
|
|
147161
|
-
createThrow =
|
|
147162
|
-
updateThrow =
|
|
147163
|
-
createTry =
|
|
147164
|
-
updateTry =
|
|
147165
|
-
createDebuggerStatement =
|
|
147166
|
-
createVariableDeclarationList =
|
|
147167
|
-
updateVariableDeclarationList =
|
|
147168
|
-
createFunctionDeclaration =
|
|
147169
|
-
updateFunctionDeclaration =
|
|
147170
|
-
createClassDeclaration =
|
|
147171
|
-
updateClassDeclaration =
|
|
147172
|
-
createInterfaceDeclaration =
|
|
147173
|
-
updateInterfaceDeclaration =
|
|
147174
|
-
createTypeAliasDeclaration =
|
|
147175
|
-
updateTypeAliasDeclaration =
|
|
147176
|
-
createEnumDeclaration =
|
|
147177
|
-
updateEnumDeclaration =
|
|
147178
|
-
createModuleDeclaration =
|
|
147179
|
-
updateModuleDeclaration =
|
|
147180
|
-
createModuleBlock =
|
|
147181
|
-
updateModuleBlock =
|
|
147182
|
-
createCaseBlock =
|
|
147183
|
-
updateCaseBlock =
|
|
147184
|
-
createNamespaceExportDeclaration =
|
|
147185
|
-
updateNamespaceExportDeclaration =
|
|
147186
|
-
createImportEqualsDeclaration =
|
|
147187
|
-
updateImportEqualsDeclaration =
|
|
147188
|
-
createImportDeclaration =
|
|
147189
|
-
updateImportDeclaration =
|
|
147190
|
-
createNamespaceImport =
|
|
147191
|
-
updateNamespaceImport =
|
|
147192
|
-
createNamedImports =
|
|
147193
|
-
updateNamedImports =
|
|
147194
|
-
createImportSpecifier =
|
|
147195
|
-
updateImportSpecifier =
|
|
147196
|
-
createExportAssignment2 =
|
|
147197
|
-
updateExportAssignment =
|
|
147198
|
-
createNamedExports =
|
|
147199
|
-
updateNamedExports =
|
|
147200
|
-
createExportSpecifier =
|
|
147201
|
-
updateExportSpecifier =
|
|
147202
|
-
createExternalModuleReference =
|
|
147203
|
-
updateExternalModuleReference =
|
|
147204
|
-
createJSDocTypeExpression =
|
|
147205
|
-
createJSDocTypeTag =
|
|
147206
|
-
createJSDocReturnTag =
|
|
147207
|
-
createJSDocThisTag =
|
|
147208
|
-
createJSDocComment =
|
|
147209
|
-
createJSDocParameterTag =
|
|
147210
|
-
createJSDocClassTag =
|
|
147211
|
-
createJSDocAugmentsTag =
|
|
147212
|
-
createJSDocEnumTag =
|
|
147213
|
-
createJSDocTemplateTag =
|
|
147214
|
-
createJSDocTypedefTag =
|
|
147215
|
-
createJSDocCallbackTag =
|
|
147216
|
-
createJSDocSignature =
|
|
147217
|
-
createJSDocPropertyTag =
|
|
147218
|
-
createJSDocTypeLiteral =
|
|
147219
|
-
createJSDocImplementsTag =
|
|
147220
|
-
createJSDocAuthorTag =
|
|
147221
|
-
createJSDocPublicTag =
|
|
147222
|
-
createJSDocPrivateTag =
|
|
147223
|
-
createJSDocProtectedTag =
|
|
147224
|
-
createJSDocReadonlyTag =
|
|
147225
|
-
createJSDocTag =
|
|
147226
|
-
createJsxElement =
|
|
147227
|
-
updateJsxElement =
|
|
147228
|
-
createJsxSelfClosingElement =
|
|
147229
|
-
updateJsxSelfClosingElement =
|
|
147230
|
-
createJsxOpeningElement =
|
|
147231
|
-
updateJsxOpeningElement =
|
|
147232
|
-
createJsxClosingElement =
|
|
147233
|
-
updateJsxClosingElement =
|
|
147234
|
-
createJsxFragment =
|
|
147235
|
-
createJsxText =
|
|
147236
|
-
updateJsxText =
|
|
147237
|
-
createJsxOpeningFragment =
|
|
147238
|
-
createJsxJsxClosingFragment =
|
|
147239
|
-
updateJsxFragment =
|
|
147240
|
-
createJsxAttribute =
|
|
147241
|
-
updateJsxAttribute =
|
|
147242
|
-
createJsxAttributes =
|
|
147243
|
-
updateJsxAttributes =
|
|
147244
|
-
createJsxSpreadAttribute =
|
|
147245
|
-
updateJsxSpreadAttribute =
|
|
147246
|
-
createJsxExpression =
|
|
147247
|
-
updateJsxExpression =
|
|
147248
|
-
createCaseClause =
|
|
147249
|
-
updateCaseClause =
|
|
147250
|
-
createDefaultClause =
|
|
147251
|
-
updateDefaultClause =
|
|
147252
|
-
createHeritageClause =
|
|
147253
|
-
updateHeritageClause =
|
|
147254
|
-
createCatchClause =
|
|
147255
|
-
updateCatchClause =
|
|
147256
|
-
createPropertyAssignment =
|
|
147257
|
-
updatePropertyAssignment =
|
|
147258
|
-
createShorthandPropertyAssignment =
|
|
147259
|
-
updateShorthandPropertyAssignment =
|
|
147260
|
-
createSpreadAssignment =
|
|
147261
|
-
updateSpreadAssignment =
|
|
147262
|
-
createEnumMember =
|
|
147263
|
-
updateEnumMember =
|
|
147264
|
-
updateSourceFileNode =
|
|
147265
|
-
createNotEmittedStatement =
|
|
147266
|
-
createPartiallyEmittedExpression =
|
|
147267
|
-
updatePartiallyEmittedExpression =
|
|
147268
|
-
createCommaList =
|
|
147269
|
-
updateCommaList =
|
|
147270
|
-
createBundle =
|
|
147271
|
-
updateBundle =
|
|
147272
|
-
createImmediatelyInvokedFunctionExpression =
|
|
147273
|
-
createImmediatelyInvokedArrowFunction =
|
|
147274
|
-
createVoidZero =
|
|
147275
|
-
createExportDefault =
|
|
147276
|
-
createExternalModuleExport =
|
|
147277
|
-
createNamespaceExport =
|
|
147278
|
-
updateNamespaceExport =
|
|
147279
|
-
createToken =
|
|
147035
|
+
createTypeQueryNode = deprecate(factory.createTypeQueryNode, factoryDeprecation);
|
|
147036
|
+
updateTypeQueryNode = deprecate(factory.updateTypeQueryNode, factoryDeprecation);
|
|
147037
|
+
createTypeLiteralNode = deprecate(factory.createTypeLiteralNode, factoryDeprecation);
|
|
147038
|
+
updateTypeLiteralNode = deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
|
|
147039
|
+
createArrayTypeNode = deprecate(factory.createArrayTypeNode, factoryDeprecation);
|
|
147040
|
+
updateArrayTypeNode = deprecate(factory.updateArrayTypeNode, factoryDeprecation);
|
|
147041
|
+
createTupleTypeNode = deprecate(factory.createTupleTypeNode, factoryDeprecation);
|
|
147042
|
+
updateTupleTypeNode = deprecate(factory.updateTupleTypeNode, factoryDeprecation);
|
|
147043
|
+
createOptionalTypeNode = deprecate(factory.createOptionalTypeNode, factoryDeprecation);
|
|
147044
|
+
updateOptionalTypeNode = deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
|
|
147045
|
+
createRestTypeNode = deprecate(factory.createRestTypeNode, factoryDeprecation);
|
|
147046
|
+
updateRestTypeNode = deprecate(factory.updateRestTypeNode, factoryDeprecation);
|
|
147047
|
+
createUnionTypeNode = deprecate(factory.createUnionTypeNode, factoryDeprecation);
|
|
147048
|
+
updateUnionTypeNode = deprecate(factory.updateUnionTypeNode, factoryDeprecation);
|
|
147049
|
+
createIntersectionTypeNode = deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
|
|
147050
|
+
updateIntersectionTypeNode = deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
|
|
147051
|
+
createConditionalTypeNode = deprecate(factory.createConditionalTypeNode, factoryDeprecation);
|
|
147052
|
+
updateConditionalTypeNode = deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
|
|
147053
|
+
createInferTypeNode = deprecate(factory.createInferTypeNode, factoryDeprecation);
|
|
147054
|
+
updateInferTypeNode = deprecate(factory.updateInferTypeNode, factoryDeprecation);
|
|
147055
|
+
createImportTypeNode = deprecate(factory.createImportTypeNode, factoryDeprecation);
|
|
147056
|
+
updateImportTypeNode = deprecate(factory.updateImportTypeNode, factoryDeprecation);
|
|
147057
|
+
createParenthesizedType = deprecate(factory.createParenthesizedType, factoryDeprecation);
|
|
147058
|
+
updateParenthesizedType = deprecate(factory.updateParenthesizedType, factoryDeprecation);
|
|
147059
|
+
createThisTypeNode = deprecate(factory.createThisTypeNode, factoryDeprecation);
|
|
147060
|
+
updateTypeOperatorNode = deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
|
|
147061
|
+
createIndexedAccessTypeNode = deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
|
|
147062
|
+
updateIndexedAccessTypeNode = deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
|
|
147063
|
+
createMappedTypeNode = deprecate(factory.createMappedTypeNode, factoryDeprecation);
|
|
147064
|
+
updateMappedTypeNode = deprecate(factory.updateMappedTypeNode, factoryDeprecation);
|
|
147065
|
+
createLiteralTypeNode = deprecate(factory.createLiteralTypeNode, factoryDeprecation);
|
|
147066
|
+
updateLiteralTypeNode = deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
|
|
147067
|
+
createObjectBindingPattern = deprecate(factory.createObjectBindingPattern, factoryDeprecation);
|
|
147068
|
+
updateObjectBindingPattern = deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
|
|
147069
|
+
createArrayBindingPattern = deprecate(factory.createArrayBindingPattern, factoryDeprecation);
|
|
147070
|
+
updateArrayBindingPattern = deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
|
|
147071
|
+
createBindingElement = deprecate(factory.createBindingElement, factoryDeprecation);
|
|
147072
|
+
updateBindingElement = deprecate(factory.updateBindingElement, factoryDeprecation);
|
|
147073
|
+
createArrayLiteral = deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
|
|
147074
|
+
updateArrayLiteral = deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
|
|
147075
|
+
createObjectLiteral = deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
|
|
147076
|
+
updateObjectLiteral = deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
|
|
147077
|
+
createPropertyAccess = deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
|
|
147078
|
+
updatePropertyAccess = deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
|
|
147079
|
+
createPropertyAccessChain = deprecate(factory.createPropertyAccessChain, factoryDeprecation);
|
|
147080
|
+
updatePropertyAccessChain = deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
|
|
147081
|
+
createElementAccess = deprecate(factory.createElementAccessExpression, factoryDeprecation);
|
|
147082
|
+
updateElementAccess = deprecate(factory.updateElementAccessExpression, factoryDeprecation);
|
|
147083
|
+
createElementAccessChain = deprecate(factory.createElementAccessChain, factoryDeprecation);
|
|
147084
|
+
updateElementAccessChain = deprecate(factory.updateElementAccessChain, factoryDeprecation);
|
|
147085
|
+
createCall = deprecate(factory.createCallExpression, factoryDeprecation);
|
|
147086
|
+
updateCall = deprecate(factory.updateCallExpression, factoryDeprecation);
|
|
147087
|
+
createCallChain = deprecate(factory.createCallChain, factoryDeprecation);
|
|
147088
|
+
updateCallChain = deprecate(factory.updateCallChain, factoryDeprecation);
|
|
147089
|
+
createNew = deprecate(factory.createNewExpression, factoryDeprecation);
|
|
147090
|
+
updateNew = deprecate(factory.updateNewExpression, factoryDeprecation);
|
|
147091
|
+
createTypeAssertion = deprecate(factory.createTypeAssertion, factoryDeprecation);
|
|
147092
|
+
updateTypeAssertion = deprecate(factory.updateTypeAssertion, factoryDeprecation);
|
|
147093
|
+
createParen = deprecate(factory.createParenthesizedExpression, factoryDeprecation);
|
|
147094
|
+
updateParen = deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
|
|
147095
|
+
createFunctionExpression = deprecate(factory.createFunctionExpression, factoryDeprecation);
|
|
147096
|
+
updateFunctionExpression = deprecate(factory.updateFunctionExpression, factoryDeprecation);
|
|
147097
|
+
createDelete = deprecate(factory.createDeleteExpression, factoryDeprecation);
|
|
147098
|
+
updateDelete = deprecate(factory.updateDeleteExpression, factoryDeprecation);
|
|
147099
|
+
createTypeOf = deprecate(factory.createTypeOfExpression, factoryDeprecation);
|
|
147100
|
+
updateTypeOf = deprecate(factory.updateTypeOfExpression, factoryDeprecation);
|
|
147101
|
+
createVoid = deprecate(factory.createVoidExpression, factoryDeprecation);
|
|
147102
|
+
updateVoid = deprecate(factory.updateVoidExpression, factoryDeprecation);
|
|
147103
|
+
createAwait = deprecate(factory.createAwaitExpression, factoryDeprecation);
|
|
147104
|
+
updateAwait = deprecate(factory.updateAwaitExpression, factoryDeprecation);
|
|
147105
|
+
createPrefix = deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
|
|
147106
|
+
updatePrefix = deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
|
|
147107
|
+
createPostfix = deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
|
|
147108
|
+
updatePostfix = deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
|
|
147109
|
+
createBinary = deprecate(factory.createBinaryExpression, factoryDeprecation);
|
|
147110
|
+
updateConditional = deprecate(factory.updateConditionalExpression, factoryDeprecation);
|
|
147111
|
+
createTemplateExpression = deprecate(factory.createTemplateExpression, factoryDeprecation);
|
|
147112
|
+
updateTemplateExpression = deprecate(factory.updateTemplateExpression, factoryDeprecation);
|
|
147113
|
+
createTemplateHead = deprecate(factory.createTemplateHead, factoryDeprecation);
|
|
147114
|
+
createTemplateMiddle = deprecate(factory.createTemplateMiddle, factoryDeprecation);
|
|
147115
|
+
createTemplateTail = deprecate(factory.createTemplateTail, factoryDeprecation);
|
|
147116
|
+
createNoSubstitutionTemplateLiteral = deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
|
|
147117
|
+
updateYield = deprecate(factory.updateYieldExpression, factoryDeprecation);
|
|
147118
|
+
createSpread = deprecate(factory.createSpreadElement, factoryDeprecation);
|
|
147119
|
+
updateSpread = deprecate(factory.updateSpreadElement, factoryDeprecation);
|
|
147120
|
+
createOmittedExpression = deprecate(factory.createOmittedExpression, factoryDeprecation);
|
|
147121
|
+
createAsExpression = deprecate(factory.createAsExpression, factoryDeprecation);
|
|
147122
|
+
updateAsExpression = deprecate(factory.updateAsExpression, factoryDeprecation);
|
|
147123
|
+
createNonNullExpression = deprecate(factory.createNonNullExpression, factoryDeprecation);
|
|
147124
|
+
updateNonNullExpression = deprecate(factory.updateNonNullExpression, factoryDeprecation);
|
|
147125
|
+
createNonNullChain = deprecate(factory.createNonNullChain, factoryDeprecation);
|
|
147126
|
+
updateNonNullChain = deprecate(factory.updateNonNullChain, factoryDeprecation);
|
|
147127
|
+
createMetaProperty = deprecate(factory.createMetaProperty, factoryDeprecation);
|
|
147128
|
+
updateMetaProperty = deprecate(factory.updateMetaProperty, factoryDeprecation);
|
|
147129
|
+
createTemplateSpan = deprecate(factory.createTemplateSpan, factoryDeprecation);
|
|
147130
|
+
updateTemplateSpan = deprecate(factory.updateTemplateSpan, factoryDeprecation);
|
|
147131
|
+
createSemicolonClassElement = deprecate(factory.createSemicolonClassElement, factoryDeprecation);
|
|
147132
|
+
createBlock = deprecate(factory.createBlock, factoryDeprecation);
|
|
147133
|
+
updateBlock = deprecate(factory.updateBlock, factoryDeprecation);
|
|
147134
|
+
createVariableStatement = deprecate(factory.createVariableStatement, factoryDeprecation);
|
|
147135
|
+
updateVariableStatement = deprecate(factory.updateVariableStatement, factoryDeprecation);
|
|
147136
|
+
createEmptyStatement = deprecate(factory.createEmptyStatement, factoryDeprecation);
|
|
147137
|
+
createExpressionStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
|
|
147138
|
+
updateExpressionStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
|
|
147139
|
+
createStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
|
|
147140
|
+
updateStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
|
|
147141
|
+
createIf = deprecate(factory.createIfStatement, factoryDeprecation);
|
|
147142
|
+
updateIf = deprecate(factory.updateIfStatement, factoryDeprecation);
|
|
147143
|
+
createDo = deprecate(factory.createDoStatement, factoryDeprecation);
|
|
147144
|
+
updateDo = deprecate(factory.updateDoStatement, factoryDeprecation);
|
|
147145
|
+
createWhile = deprecate(factory.createWhileStatement, factoryDeprecation);
|
|
147146
|
+
updateWhile = deprecate(factory.updateWhileStatement, factoryDeprecation);
|
|
147147
|
+
createFor = deprecate(factory.createForStatement, factoryDeprecation);
|
|
147148
|
+
updateFor = deprecate(factory.updateForStatement, factoryDeprecation);
|
|
147149
|
+
createForIn = deprecate(factory.createForInStatement, factoryDeprecation);
|
|
147150
|
+
updateForIn = deprecate(factory.updateForInStatement, factoryDeprecation);
|
|
147151
|
+
createForOf = deprecate(factory.createForOfStatement, factoryDeprecation);
|
|
147152
|
+
updateForOf = deprecate(factory.updateForOfStatement, factoryDeprecation);
|
|
147153
|
+
createContinue = deprecate(factory.createContinueStatement, factoryDeprecation);
|
|
147154
|
+
updateContinue = deprecate(factory.updateContinueStatement, factoryDeprecation);
|
|
147155
|
+
createBreak = deprecate(factory.createBreakStatement, factoryDeprecation);
|
|
147156
|
+
updateBreak = deprecate(factory.updateBreakStatement, factoryDeprecation);
|
|
147157
|
+
createReturn = deprecate(factory.createReturnStatement, factoryDeprecation);
|
|
147158
|
+
updateReturn = deprecate(factory.updateReturnStatement, factoryDeprecation);
|
|
147159
|
+
createWith = deprecate(factory.createWithStatement, factoryDeprecation);
|
|
147160
|
+
updateWith = deprecate(factory.updateWithStatement, factoryDeprecation);
|
|
147161
|
+
createSwitch = deprecate(factory.createSwitchStatement, factoryDeprecation);
|
|
147162
|
+
updateSwitch = deprecate(factory.updateSwitchStatement, factoryDeprecation);
|
|
147163
|
+
createLabel = deprecate(factory.createLabeledStatement, factoryDeprecation);
|
|
147164
|
+
updateLabel = deprecate(factory.updateLabeledStatement, factoryDeprecation);
|
|
147165
|
+
createThrow = deprecate(factory.createThrowStatement, factoryDeprecation);
|
|
147166
|
+
updateThrow = deprecate(factory.updateThrowStatement, factoryDeprecation);
|
|
147167
|
+
createTry = deprecate(factory.createTryStatement, factoryDeprecation);
|
|
147168
|
+
updateTry = deprecate(factory.updateTryStatement, factoryDeprecation);
|
|
147169
|
+
createDebuggerStatement = deprecate(factory.createDebuggerStatement, factoryDeprecation);
|
|
147170
|
+
createVariableDeclarationList = deprecate(factory.createVariableDeclarationList, factoryDeprecation);
|
|
147171
|
+
updateVariableDeclarationList = deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
|
|
147172
|
+
createFunctionDeclaration = deprecate(factory.createFunctionDeclaration, factoryDeprecation);
|
|
147173
|
+
updateFunctionDeclaration = deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
|
|
147174
|
+
createClassDeclaration = deprecate(factory.createClassDeclaration, factoryDeprecation);
|
|
147175
|
+
updateClassDeclaration = deprecate(factory.updateClassDeclaration, factoryDeprecation);
|
|
147176
|
+
createInterfaceDeclaration = deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
|
|
147177
|
+
updateInterfaceDeclaration = deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
|
|
147178
|
+
createTypeAliasDeclaration = deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
|
|
147179
|
+
updateTypeAliasDeclaration = deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
|
|
147180
|
+
createEnumDeclaration = deprecate(factory.createEnumDeclaration, factoryDeprecation);
|
|
147181
|
+
updateEnumDeclaration = deprecate(factory.updateEnumDeclaration, factoryDeprecation);
|
|
147182
|
+
createModuleDeclaration = deprecate(factory.createModuleDeclaration, factoryDeprecation);
|
|
147183
|
+
updateModuleDeclaration = deprecate(factory.updateModuleDeclaration, factoryDeprecation);
|
|
147184
|
+
createModuleBlock = deprecate(factory.createModuleBlock, factoryDeprecation);
|
|
147185
|
+
updateModuleBlock = deprecate(factory.updateModuleBlock, factoryDeprecation);
|
|
147186
|
+
createCaseBlock = deprecate(factory.createCaseBlock, factoryDeprecation);
|
|
147187
|
+
updateCaseBlock = deprecate(factory.updateCaseBlock, factoryDeprecation);
|
|
147188
|
+
createNamespaceExportDeclaration = deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
|
|
147189
|
+
updateNamespaceExportDeclaration = deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
|
|
147190
|
+
createImportEqualsDeclaration = deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
|
|
147191
|
+
updateImportEqualsDeclaration = deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
|
|
147192
|
+
createImportDeclaration = deprecate(factory.createImportDeclaration, factoryDeprecation);
|
|
147193
|
+
updateImportDeclaration = deprecate(factory.updateImportDeclaration, factoryDeprecation);
|
|
147194
|
+
createNamespaceImport = deprecate(factory.createNamespaceImport, factoryDeprecation);
|
|
147195
|
+
updateNamespaceImport = deprecate(factory.updateNamespaceImport, factoryDeprecation);
|
|
147196
|
+
createNamedImports = deprecate(factory.createNamedImports, factoryDeprecation);
|
|
147197
|
+
updateNamedImports = deprecate(factory.updateNamedImports, factoryDeprecation);
|
|
147198
|
+
createImportSpecifier = deprecate(factory.createImportSpecifier, factoryDeprecation);
|
|
147199
|
+
updateImportSpecifier = deprecate(factory.updateImportSpecifier, factoryDeprecation);
|
|
147200
|
+
createExportAssignment2 = deprecate(factory.createExportAssignment, factoryDeprecation);
|
|
147201
|
+
updateExportAssignment = deprecate(factory.updateExportAssignment, factoryDeprecation);
|
|
147202
|
+
createNamedExports = deprecate(factory.createNamedExports, factoryDeprecation);
|
|
147203
|
+
updateNamedExports = deprecate(factory.updateNamedExports, factoryDeprecation);
|
|
147204
|
+
createExportSpecifier = deprecate(factory.createExportSpecifier, factoryDeprecation);
|
|
147205
|
+
updateExportSpecifier = deprecate(factory.updateExportSpecifier, factoryDeprecation);
|
|
147206
|
+
createExternalModuleReference = deprecate(factory.createExternalModuleReference, factoryDeprecation);
|
|
147207
|
+
updateExternalModuleReference = deprecate(factory.updateExternalModuleReference, factoryDeprecation);
|
|
147208
|
+
createJSDocTypeExpression = deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
|
|
147209
|
+
createJSDocTypeTag = deprecate(factory.createJSDocTypeTag, factoryDeprecation);
|
|
147210
|
+
createJSDocReturnTag = deprecate(factory.createJSDocReturnTag, factoryDeprecation);
|
|
147211
|
+
createJSDocThisTag = deprecate(factory.createJSDocThisTag, factoryDeprecation);
|
|
147212
|
+
createJSDocComment = deprecate(factory.createJSDocComment, factoryDeprecation);
|
|
147213
|
+
createJSDocParameterTag = deprecate(factory.createJSDocParameterTag, factoryDeprecation);
|
|
147214
|
+
createJSDocClassTag = deprecate(factory.createJSDocClassTag, factoryDeprecation);
|
|
147215
|
+
createJSDocAugmentsTag = deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
|
|
147216
|
+
createJSDocEnumTag = deprecate(factory.createJSDocEnumTag, factoryDeprecation);
|
|
147217
|
+
createJSDocTemplateTag = deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
|
|
147218
|
+
createJSDocTypedefTag = deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
|
|
147219
|
+
createJSDocCallbackTag = deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
|
|
147220
|
+
createJSDocSignature = deprecate(factory.createJSDocSignature, factoryDeprecation);
|
|
147221
|
+
createJSDocPropertyTag = deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
|
|
147222
|
+
createJSDocTypeLiteral = deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
|
|
147223
|
+
createJSDocImplementsTag = deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
|
|
147224
|
+
createJSDocAuthorTag = deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
|
|
147225
|
+
createJSDocPublicTag = deprecate(factory.createJSDocPublicTag, factoryDeprecation);
|
|
147226
|
+
createJSDocPrivateTag = deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
|
|
147227
|
+
createJSDocProtectedTag = deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
|
|
147228
|
+
createJSDocReadonlyTag = deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
|
|
147229
|
+
createJSDocTag = deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
|
|
147230
|
+
createJsxElement = deprecate(factory.createJsxElement, factoryDeprecation);
|
|
147231
|
+
updateJsxElement = deprecate(factory.updateJsxElement, factoryDeprecation);
|
|
147232
|
+
createJsxSelfClosingElement = deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
|
|
147233
|
+
updateJsxSelfClosingElement = deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
|
|
147234
|
+
createJsxOpeningElement = deprecate(factory.createJsxOpeningElement, factoryDeprecation);
|
|
147235
|
+
updateJsxOpeningElement = deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
|
|
147236
|
+
createJsxClosingElement = deprecate(factory.createJsxClosingElement, factoryDeprecation);
|
|
147237
|
+
updateJsxClosingElement = deprecate(factory.updateJsxClosingElement, factoryDeprecation);
|
|
147238
|
+
createJsxFragment = deprecate(factory.createJsxFragment, factoryDeprecation);
|
|
147239
|
+
createJsxText = deprecate(factory.createJsxText, factoryDeprecation);
|
|
147240
|
+
updateJsxText = deprecate(factory.updateJsxText, factoryDeprecation);
|
|
147241
|
+
createJsxOpeningFragment = deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
|
|
147242
|
+
createJsxJsxClosingFragment = deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
|
|
147243
|
+
updateJsxFragment = deprecate(factory.updateJsxFragment, factoryDeprecation);
|
|
147244
|
+
createJsxAttribute = deprecate(factory.createJsxAttribute, factoryDeprecation);
|
|
147245
|
+
updateJsxAttribute = deprecate(factory.updateJsxAttribute, factoryDeprecation);
|
|
147246
|
+
createJsxAttributes = deprecate(factory.createJsxAttributes, factoryDeprecation);
|
|
147247
|
+
updateJsxAttributes = deprecate(factory.updateJsxAttributes, factoryDeprecation);
|
|
147248
|
+
createJsxSpreadAttribute = deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
|
|
147249
|
+
updateJsxSpreadAttribute = deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
|
|
147250
|
+
createJsxExpression = deprecate(factory.createJsxExpression, factoryDeprecation);
|
|
147251
|
+
updateJsxExpression = deprecate(factory.updateJsxExpression, factoryDeprecation);
|
|
147252
|
+
createCaseClause = deprecate(factory.createCaseClause, factoryDeprecation);
|
|
147253
|
+
updateCaseClause = deprecate(factory.updateCaseClause, factoryDeprecation);
|
|
147254
|
+
createDefaultClause = deprecate(factory.createDefaultClause, factoryDeprecation);
|
|
147255
|
+
updateDefaultClause = deprecate(factory.updateDefaultClause, factoryDeprecation);
|
|
147256
|
+
createHeritageClause = deprecate(factory.createHeritageClause, factoryDeprecation);
|
|
147257
|
+
updateHeritageClause = deprecate(factory.updateHeritageClause, factoryDeprecation);
|
|
147258
|
+
createCatchClause = deprecate(factory.createCatchClause, factoryDeprecation);
|
|
147259
|
+
updateCatchClause = deprecate(factory.updateCatchClause, factoryDeprecation);
|
|
147260
|
+
createPropertyAssignment = deprecate(factory.createPropertyAssignment, factoryDeprecation);
|
|
147261
|
+
updatePropertyAssignment = deprecate(factory.updatePropertyAssignment, factoryDeprecation);
|
|
147262
|
+
createShorthandPropertyAssignment = deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
|
|
147263
|
+
updateShorthandPropertyAssignment = deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
|
|
147264
|
+
createSpreadAssignment = deprecate(factory.createSpreadAssignment, factoryDeprecation);
|
|
147265
|
+
updateSpreadAssignment = deprecate(factory.updateSpreadAssignment, factoryDeprecation);
|
|
147266
|
+
createEnumMember = deprecate(factory.createEnumMember, factoryDeprecation);
|
|
147267
|
+
updateEnumMember = deprecate(factory.updateEnumMember, factoryDeprecation);
|
|
147268
|
+
updateSourceFileNode = deprecate(factory.updateSourceFile, factoryDeprecation);
|
|
147269
|
+
createNotEmittedStatement = deprecate(factory.createNotEmittedStatement, factoryDeprecation);
|
|
147270
|
+
createPartiallyEmittedExpression = deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
|
|
147271
|
+
updatePartiallyEmittedExpression = deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
|
|
147272
|
+
createCommaList = deprecate(factory.createCommaListExpression, factoryDeprecation);
|
|
147273
|
+
updateCommaList = deprecate(factory.updateCommaListExpression, factoryDeprecation);
|
|
147274
|
+
createBundle = deprecate(factory.createBundle, factoryDeprecation);
|
|
147275
|
+
updateBundle = deprecate(factory.updateBundle, factoryDeprecation);
|
|
147276
|
+
createImmediatelyInvokedFunctionExpression = deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
|
|
147277
|
+
createImmediatelyInvokedArrowFunction = deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
|
|
147278
|
+
createVoidZero = deprecate(factory.createVoidZero, factoryDeprecation);
|
|
147279
|
+
createExportDefault = deprecate(factory.createExportDefault, factoryDeprecation);
|
|
147280
|
+
createExternalModuleExport = deprecate(factory.createExternalModuleExport, factoryDeprecation);
|
|
147281
|
+
createNamespaceExport = deprecate(factory.createNamespaceExport, factoryDeprecation);
|
|
147282
|
+
updateNamespaceExport = deprecate(factory.updateNamespaceExport, factoryDeprecation);
|
|
147283
|
+
createToken = deprecate(function createToken2(kind) {
|
|
147280
147284
|
return factory.createToken(kind);
|
|
147281
147285
|
}, factoryDeprecation);
|
|
147282
|
-
createIdentifier =
|
|
147286
|
+
createIdentifier = deprecate(function createIdentifier2(text) {
|
|
147283
147287
|
return factory.createIdentifier(text, void 0, void 0);
|
|
147284
147288
|
}, factoryDeprecation);
|
|
147285
|
-
createTempVariable =
|
|
147289
|
+
createTempVariable = deprecate(function createTempVariable2(recordTempVariable) {
|
|
147286
147290
|
return factory.createTempVariable(recordTempVariable, void 0);
|
|
147287
147291
|
}, factoryDeprecation);
|
|
147288
|
-
getGeneratedNameForNode =
|
|
147292
|
+
getGeneratedNameForNode = deprecate(function getGeneratedNameForNode2(node) {
|
|
147289
147293
|
return factory.getGeneratedNameForNode(node, void 0);
|
|
147290
147294
|
}, factoryDeprecation);
|
|
147291
|
-
createOptimisticUniqueName =
|
|
147295
|
+
createOptimisticUniqueName = deprecate(function createOptimisticUniqueName2(text) {
|
|
147292
147296
|
return factory.createUniqueName(text, 16 /* Optimistic */);
|
|
147293
147297
|
}, factoryDeprecation);
|
|
147294
|
-
createFileLevelUniqueName =
|
|
147298
|
+
createFileLevelUniqueName = deprecate(function createFileLevelUniqueName2(text) {
|
|
147295
147299
|
return factory.createUniqueName(text, 16 /* Optimistic */ | 32 /* FileLevel */);
|
|
147296
147300
|
}, factoryDeprecation);
|
|
147297
|
-
createIndexSignature =
|
|
147301
|
+
createIndexSignature = deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
|
|
147298
147302
|
return factory.createIndexSignature(decorators, modifiers, parameters, type);
|
|
147299
147303
|
}, factoryDeprecation);
|
|
147300
|
-
createTypePredicateNode =
|
|
147304
|
+
createTypePredicateNode = deprecate(function createTypePredicateNode2(parameterName, type) {
|
|
147301
147305
|
return factory.createTypePredicateNode(void 0, parameterName, type);
|
|
147302
147306
|
}, factoryDeprecation);
|
|
147303
|
-
updateTypePredicateNode =
|
|
147307
|
+
updateTypePredicateNode = deprecate(function updateTypePredicateNode2(node, parameterName, type) {
|
|
147304
147308
|
return factory.updateTypePredicateNode(node, void 0, parameterName, type);
|
|
147305
147309
|
}, factoryDeprecation);
|
|
147306
|
-
createLiteral =
|
|
147310
|
+
createLiteral = deprecate(function createLiteral2(value) {
|
|
147307
147311
|
if (typeof value === "number") {
|
|
147308
147312
|
return factory.createNumericLiteral(value);
|
|
147309
147313
|
}
|
|
@@ -147318,13 +147322,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147318
147322
|
}
|
|
147319
147323
|
return factory.createStringLiteralFromNode(value);
|
|
147320
147324
|
}, { since: "4.0", warnAfter: "4.1", message: "Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead." });
|
|
147321
|
-
createMethodSignature =
|
|
147325
|
+
createMethodSignature = deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
|
|
147322
147326
|
return factory.createMethodSignature(void 0, name, questionToken, typeParameters, parameters, type);
|
|
147323
147327
|
}, factoryDeprecation);
|
|
147324
|
-
updateMethodSignature =
|
|
147328
|
+
updateMethodSignature = deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
|
|
147325
147329
|
return factory.updateMethodSignature(node, node.modifiers, name, questionToken, typeParameters, parameters, type);
|
|
147326
147330
|
}, factoryDeprecation);
|
|
147327
|
-
createTypeOperatorNode =
|
|
147331
|
+
createTypeOperatorNode = deprecate(function createTypeOperatorNode2(operatorOrType, type) {
|
|
147328
147332
|
let operator;
|
|
147329
147333
|
if (type) {
|
|
147330
147334
|
operator = operatorOrType;
|
|
@@ -147334,7 +147338,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147334
147338
|
}
|
|
147335
147339
|
return factory.createTypeOperatorNode(operator, type);
|
|
147336
147340
|
}, factoryDeprecation);
|
|
147337
|
-
createTaggedTemplate =
|
|
147341
|
+
createTaggedTemplate = deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
|
|
147338
147342
|
let typeArguments;
|
|
147339
147343
|
if (template) {
|
|
147340
147344
|
typeArguments = typeArgumentsOrTemplate;
|
|
@@ -147343,7 +147347,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147343
147347
|
}
|
|
147344
147348
|
return factory.createTaggedTemplateExpression(tag, typeArguments, template);
|
|
147345
147349
|
}, factoryDeprecation);
|
|
147346
|
-
updateTaggedTemplate =
|
|
147350
|
+
updateTaggedTemplate = deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
|
|
147347
147351
|
let typeArguments;
|
|
147348
147352
|
if (template) {
|
|
147349
147353
|
typeArguments = typeArgumentsOrTemplate;
|
|
@@ -147352,16 +147356,16 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147352
147356
|
}
|
|
147353
147357
|
return factory.updateTaggedTemplateExpression(node, tag, typeArguments, template);
|
|
147354
147358
|
}, factoryDeprecation);
|
|
147355
|
-
updateBinary =
|
|
147359
|
+
updateBinary = deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
|
|
147356
147360
|
if (typeof operator === "number") {
|
|
147357
147361
|
operator = operator === node.operatorToken.kind ? node.operatorToken : factory.createToken(operator);
|
|
147358
147362
|
}
|
|
147359
147363
|
return factory.updateBinaryExpression(node, left, operator, right);
|
|
147360
147364
|
}, factoryDeprecation);
|
|
147361
|
-
createConditional =
|
|
147365
|
+
createConditional = deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
|
|
147362
147366
|
return arguments.length === 5 ? factory.createConditionalExpression(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) : arguments.length === 3 ? factory.createConditionalExpression(condition, factory.createToken(57 /* QuestionToken */), questionTokenOrWhenTrue, factory.createToken(58 /* ColonToken */), whenTrueOrWhenFalse) : Debug.fail("Argument count mismatch");
|
|
147363
147367
|
}, factoryDeprecation);
|
|
147364
|
-
createYield =
|
|
147368
|
+
createYield = deprecate(function createYield2(asteriskTokenOrExpression, expression) {
|
|
147365
147369
|
let asteriskToken;
|
|
147366
147370
|
if (expression) {
|
|
147367
147371
|
asteriskToken = asteriskTokenOrExpression;
|
|
@@ -147370,18 +147374,18 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147370
147374
|
}
|
|
147371
147375
|
return factory.createYieldExpression(asteriskToken, expression);
|
|
147372
147376
|
}, factoryDeprecation);
|
|
147373
|
-
createClassExpression =
|
|
147377
|
+
createClassExpression = deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
|
|
147374
147378
|
return factory.createClassExpression(void 0, modifiers, name, typeParameters, heritageClauses, members);
|
|
147375
147379
|
}, factoryDeprecation);
|
|
147376
|
-
updateClassExpression =
|
|
147380
|
+
updateClassExpression = deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
|
|
147377
147381
|
return factory.updateClassExpression(node, void 0, modifiers, name, typeParameters, heritageClauses, members);
|
|
147378
147382
|
}, factoryDeprecation);
|
|
147379
|
-
createPropertySignature =
|
|
147383
|
+
createPropertySignature = deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
|
|
147380
147384
|
const node = factory.createPropertySignature(modifiers, name, questionToken, type);
|
|
147381
147385
|
node.initializer = initializer;
|
|
147382
147386
|
return node;
|
|
147383
147387
|
}, factoryDeprecation);
|
|
147384
|
-
updatePropertySignature =
|
|
147388
|
+
updatePropertySignature = deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
|
|
147385
147389
|
let updated = factory.updatePropertySignature(node, modifiers, name, questionToken, type);
|
|
147386
147390
|
if (node.initializer !== initializer) {
|
|
147387
147391
|
if (updated === node) {
|
|
@@ -147391,80 +147395,80 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147391
147395
|
}
|
|
147392
147396
|
return updated;
|
|
147393
147397
|
}, factoryDeprecation);
|
|
147394
|
-
createExpressionWithTypeArguments =
|
|
147398
|
+
createExpressionWithTypeArguments = deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
|
|
147395
147399
|
return factory.createExpressionWithTypeArguments(expression, typeArguments);
|
|
147396
147400
|
}, factoryDeprecation);
|
|
147397
|
-
updateExpressionWithTypeArguments =
|
|
147401
|
+
updateExpressionWithTypeArguments = deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
|
|
147398
147402
|
return factory.updateExpressionWithTypeArguments(node, expression, typeArguments);
|
|
147399
147403
|
}, factoryDeprecation);
|
|
147400
|
-
createArrowFunction =
|
|
147404
|
+
createArrowFunction = deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
|
|
147401
147405
|
return arguments.length === 6 ? factory.createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) : arguments.length === 5 ? factory.createArrowFunction(modifiers, typeParameters, parameters, type, void 0, equalsGreaterThanTokenOrBody) : Debug.fail("Argument count mismatch");
|
|
147402
147406
|
}, factoryDeprecation);
|
|
147403
|
-
updateArrowFunction =
|
|
147407
|
+
updateArrowFunction = deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
|
|
147404
147408
|
return arguments.length === 7 ? factory.updateArrowFunction(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) : arguments.length === 6 ? factory.updateArrowFunction(node, modifiers, typeParameters, parameters, type, node.equalsGreaterThanToken, equalsGreaterThanTokenOrBody) : Debug.fail("Argument count mismatch");
|
|
147405
147409
|
}, factoryDeprecation);
|
|
147406
|
-
createVariableDeclaration =
|
|
147410
|
+
createVariableDeclaration = deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
|
|
147407
147411
|
return arguments.length === 4 ? factory.createVariableDeclaration(name, exclamationTokenOrType, typeOrInitializer, initializer) : arguments.length >= 1 && arguments.length <= 3 ? factory.createVariableDeclaration(name, void 0, exclamationTokenOrType, typeOrInitializer) : Debug.fail("Argument count mismatch");
|
|
147408
147412
|
}, factoryDeprecation);
|
|
147409
|
-
updateVariableDeclaration =
|
|
147413
|
+
updateVariableDeclaration = deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
|
|
147410
147414
|
return arguments.length === 5 ? factory.updateVariableDeclaration(node, name, exclamationTokenOrType, typeOrInitializer, initializer) : arguments.length === 4 ? factory.updateVariableDeclaration(node, name, node.exclamationToken, exclamationTokenOrType, typeOrInitializer) : Debug.fail("Argument count mismatch");
|
|
147411
147415
|
}, factoryDeprecation);
|
|
147412
|
-
createImportClause =
|
|
147416
|
+
createImportClause = deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
|
|
147413
147417
|
return factory.createImportClause(isTypeOnly, name, namedBindings);
|
|
147414
147418
|
}, factoryDeprecation);
|
|
147415
|
-
updateImportClause =
|
|
147419
|
+
updateImportClause = deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
|
|
147416
147420
|
return factory.updateImportClause(node, isTypeOnly, name, namedBindings);
|
|
147417
147421
|
}, factoryDeprecation);
|
|
147418
|
-
createExportDeclaration =
|
|
147422
|
+
createExportDeclaration = deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
|
|
147419
147423
|
return factory.createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);
|
|
147420
147424
|
}, factoryDeprecation);
|
|
147421
|
-
updateExportDeclaration =
|
|
147425
|
+
updateExportDeclaration = deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
|
|
147422
147426
|
return factory.updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, node.assertClause);
|
|
147423
147427
|
}, factoryDeprecation);
|
|
147424
|
-
createJSDocParamTag =
|
|
147428
|
+
createJSDocParamTag = deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
|
|
147425
147429
|
return factory.createJSDocParameterTag(void 0, name, isBracketed, typeExpression, false, comment ? factory.createNodeArray([factory.createJSDocText(comment)]) : void 0);
|
|
147426
147430
|
}, factoryDeprecation);
|
|
147427
|
-
createComma =
|
|
147431
|
+
createComma = deprecate(function createComma2(left, right) {
|
|
147428
147432
|
return factory.createComma(left, right);
|
|
147429
147433
|
}, factoryDeprecation);
|
|
147430
|
-
createLessThan =
|
|
147434
|
+
createLessThan = deprecate(function createLessThan2(left, right) {
|
|
147431
147435
|
return factory.createLessThan(left, right);
|
|
147432
147436
|
}, factoryDeprecation);
|
|
147433
|
-
createAssignment =
|
|
147437
|
+
createAssignment = deprecate(function createAssignment2(left, right) {
|
|
147434
147438
|
return factory.createAssignment(left, right);
|
|
147435
147439
|
}, factoryDeprecation);
|
|
147436
|
-
createStrictEquality =
|
|
147440
|
+
createStrictEquality = deprecate(function createStrictEquality2(left, right) {
|
|
147437
147441
|
return factory.createStrictEquality(left, right);
|
|
147438
147442
|
}, factoryDeprecation);
|
|
147439
|
-
createStrictInequality =
|
|
147443
|
+
createStrictInequality = deprecate(function createStrictInequality2(left, right) {
|
|
147440
147444
|
return factory.createStrictInequality(left, right);
|
|
147441
147445
|
}, factoryDeprecation);
|
|
147442
|
-
createAdd =
|
|
147446
|
+
createAdd = deprecate(function createAdd2(left, right) {
|
|
147443
147447
|
return factory.createAdd(left, right);
|
|
147444
147448
|
}, factoryDeprecation);
|
|
147445
|
-
createSubtract =
|
|
147449
|
+
createSubtract = deprecate(function createSubtract2(left, right) {
|
|
147446
147450
|
return factory.createSubtract(left, right);
|
|
147447
147451
|
}, factoryDeprecation);
|
|
147448
|
-
createLogicalAnd =
|
|
147452
|
+
createLogicalAnd = deprecate(function createLogicalAnd2(left, right) {
|
|
147449
147453
|
return factory.createLogicalAnd(left, right);
|
|
147450
147454
|
}, factoryDeprecation);
|
|
147451
|
-
createLogicalOr =
|
|
147455
|
+
createLogicalOr = deprecate(function createLogicalOr2(left, right) {
|
|
147452
147456
|
return factory.createLogicalOr(left, right);
|
|
147453
147457
|
}, factoryDeprecation);
|
|
147454
|
-
createPostfixIncrement =
|
|
147458
|
+
createPostfixIncrement = deprecate(function createPostfixIncrement2(operand) {
|
|
147455
147459
|
return factory.createPostfixIncrement(operand);
|
|
147456
147460
|
}, factoryDeprecation);
|
|
147457
|
-
createLogicalNot =
|
|
147461
|
+
createLogicalNot = deprecate(function createLogicalNot2(operand) {
|
|
147458
147462
|
return factory.createLogicalNot(operand);
|
|
147459
147463
|
}, factoryDeprecation);
|
|
147460
|
-
createNode2 =
|
|
147464
|
+
createNode2 = deprecate(function createNode3(kind, pos = 0, end = 0) {
|
|
147461
147465
|
return setTextRangePosEnd(
|
|
147462
147466
|
kind === 308 /* SourceFile */ ? parseBaseNodeFactory.createBaseSourceFileNode(kind) : kind === 79 /* Identifier */ ? parseBaseNodeFactory.createBaseIdentifierNode(kind) : kind === 80 /* PrivateIdentifier */ ? parseBaseNodeFactory.createBasePrivateIdentifierNode(kind) : !isNodeKind(kind) ? parseBaseNodeFactory.createBaseTokenNode(kind) : parseBaseNodeFactory.createBaseNode(kind),
|
|
147463
147467
|
pos,
|
|
147464
147468
|
end
|
|
147465
147469
|
);
|
|
147466
147470
|
}, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory` method instead." });
|
|
147467
|
-
getMutableClone =
|
|
147471
|
+
getMutableClone = deprecate(function getMutableClone2(node) {
|
|
147468
147472
|
const clone2 = factory.cloneNode(node);
|
|
147469
147473
|
setTextRange(clone2, node);
|
|
147470
147474
|
setParent(clone2, node.parent);
|
|
@@ -147479,7 +147483,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147479
147483
|
"src/deprecatedCompat/4.0/renamedNodeTests.ts"() {
|
|
147480
147484
|
"use strict";
|
|
147481
147485
|
init_ts5();
|
|
147482
|
-
|
|
147486
|
+
init_deprecate();
|
|
147487
|
+
isTypeAssertion = deprecate(function isTypeAssertion2(node) {
|
|
147483
147488
|
return node.kind === 213 /* TypeAssertionExpression */;
|
|
147484
147489
|
}, {
|
|
147485
147490
|
since: "4.0",
|
|
@@ -147495,7 +147500,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147495
147500
|
"src/deprecatedCompat/4.2/renamedNodeTests.ts"() {
|
|
147496
147501
|
"use strict";
|
|
147497
147502
|
init_ts5();
|
|
147498
|
-
|
|
147503
|
+
init_deprecate();
|
|
147504
|
+
isIdentifierOrPrivateIdentifier = deprecate(function isIdentifierOrPrivateIdentifier2(node) {
|
|
147499
147505
|
return isMemberName(node);
|
|
147500
147506
|
}, {
|
|
147501
147507
|
since: "4.2",
|
|
@@ -150413,6 +150419,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
150413
150419
|
supportedLocaleDirectories: () => supportedLocaleDirectories,
|
|
150414
150420
|
supportedTSExtensions: () => supportedTSExtensions,
|
|
150415
150421
|
supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
|
|
150422
|
+
supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
|
|
150416
150423
|
suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
|
|
150417
150424
|
suppressLeadingTrivia: () => suppressLeadingTrivia,
|
|
150418
150425
|
suppressTrailingTrivia: () => suppressTrailingTrivia,
|