typescript 5.0.0-dev.20221115 → 5.0.0-dev.20221116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/lib.es5.d.ts +1 -1
- package/lib/tsc.js +235 -299
- package/lib/tsserver.js +640 -650
- package/lib/tsserverlibrary.d.ts +0 -4
- package/lib/tsserverlibrary.js +652 -652
- package/lib/typescript.d.ts +0 -4
- package/lib/typescript.js +648 -649
- package/lib/typingsInstaller.js +147 -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.20221116`;
|
|
46
46
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
47
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
48
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -1789,15 +1789,9 @@ var ts = (() => {
|
|
|
1789
1789
|
return LogLevel2;
|
|
1790
1790
|
})(LogLevel || {});
|
|
1791
1791
|
((Debug2) => {
|
|
1792
|
-
let typeScriptVersion2;
|
|
1793
1792
|
let currentAssertionLevel = 0 /* None */;
|
|
1794
1793
|
Debug2.currentLogLevel = 2 /* Warning */;
|
|
1795
1794
|
Debug2.isDebugging = false;
|
|
1796
|
-
Debug2.enableDeprecationWarnings = true;
|
|
1797
|
-
function getTypeScriptVersion() {
|
|
1798
|
-
return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
|
|
1799
|
-
}
|
|
1800
|
-
Debug2.getTypeScriptVersion = getTypeScriptVersion;
|
|
1801
1795
|
function shouldLog(level) {
|
|
1802
1796
|
return Debug2.currentLogLevel <= level;
|
|
1803
1797
|
}
|
|
@@ -2313,52 +2307,6 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
|
|
|
2313
2307
|
isDebugInfoEnabled = true;
|
|
2314
2308
|
}
|
|
2315
2309
|
Debug2.enableDebugInfo = enableDebugInfo;
|
|
2316
|
-
function formatDeprecationMessage(name, error, errorAfter, since, message) {
|
|
2317
|
-
let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
|
|
2318
|
-
deprecationMessage += `'${name}' `;
|
|
2319
|
-
deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
|
|
2320
|
-
deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
|
|
2321
|
-
deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
|
|
2322
|
-
return deprecationMessage;
|
|
2323
|
-
}
|
|
2324
|
-
function createErrorDeprecation(name, errorAfter, since, message) {
|
|
2325
|
-
const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
|
|
2326
|
-
return () => {
|
|
2327
|
-
throw new TypeError(deprecationMessage);
|
|
2328
|
-
};
|
|
2329
|
-
}
|
|
2330
|
-
function createWarningDeprecation(name, errorAfter, since, message) {
|
|
2331
|
-
let hasWrittenDeprecation = false;
|
|
2332
|
-
return () => {
|
|
2333
|
-
if (Debug2.enableDeprecationWarnings && !hasWrittenDeprecation) {
|
|
2334
|
-
log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
|
|
2335
|
-
hasWrittenDeprecation = true;
|
|
2336
|
-
}
|
|
2337
|
-
};
|
|
2338
|
-
}
|
|
2339
|
-
function createDeprecation(name, options = {}) {
|
|
2340
|
-
var _a2, _b;
|
|
2341
|
-
const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
|
|
2342
|
-
const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
|
|
2343
|
-
const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
|
|
2344
|
-
const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
|
|
2345
|
-
const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
|
|
2346
|
-
const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
|
|
2347
|
-
return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
|
|
2348
|
-
}
|
|
2349
|
-
Debug2.createDeprecation = createDeprecation;
|
|
2350
|
-
function wrapFunction(deprecation, func) {
|
|
2351
|
-
return function() {
|
|
2352
|
-
deprecation();
|
|
2353
|
-
return func.apply(this, arguments);
|
|
2354
|
-
};
|
|
2355
|
-
}
|
|
2356
|
-
function deprecate(func, options) {
|
|
2357
|
-
var _a2;
|
|
2358
|
-
const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : getFunctionName(func), options);
|
|
2359
|
-
return wrapFunction(deprecation, func);
|
|
2360
|
-
}
|
|
2361
|
-
Debug2.deprecate = deprecate;
|
|
2362
2310
|
function formatVariance(varianceFlags) {
|
|
2363
2311
|
const variance = varianceFlags & 7 /* VarianceMask */;
|
|
2364
2312
|
let result = variance === 0 /* Invariant */ ? "in out" : variance === 3 /* Bivariant */ ? "[bivariant]" : variance === 2 /* Contravariant */ ? "in" : variance === 1 /* Covariant */ ? "out" : variance === 4 /* Independent */ ? "[independent]" : "";
|
|
@@ -8112,10 +8060,10 @@ ${lanes.join("\n")}
|
|
|
8112
8060
|
Module_name_0_matched_pattern_1: diag(6092, 3 /* Message */, "Module_name_0_matched_pattern_1_6092", "Module name '{0}', matched pattern '{1}'."),
|
|
8113
8061
|
Trying_substitution_0_candidate_module_location_Colon_1: diag(6093, 3 /* Message */, "Trying_substitution_0_candidate_module_location_Colon_1_6093", "Trying substitution '{0}', candidate module location: '{1}'."),
|
|
8114
8062
|
Resolving_module_name_0_relative_to_base_url_1_2: diag(6094, 3 /* Message */, "Resolving_module_name_0_relative_to_base_url_1_2_6094", "Resolving module name '{0}' relative to base url '{1}' - '{2}'."),
|
|
8115
|
-
|
|
8063
|
+
Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1: diag(6095, 3 /* Message */, "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095", "Loading module as file / folder, candidate module location '{0}', target file types: {1}."),
|
|
8116
8064
|
File_0_does_not_exist: diag(6096, 3 /* Message */, "File_0_does_not_exist_6096", "File '{0}' does not exist."),
|
|
8117
8065
|
File_0_exist_use_it_as_a_name_resolution_result: diag(6097, 3 /* Message */, "File_0_exist_use_it_as_a_name_resolution_result_6097", "File '{0}' exist - use it as a name resolution result."),
|
|
8118
|
-
|
|
8066
|
+
Loading_module_0_from_node_modules_folder_target_file_types_Colon_1: diag(6098, 3 /* Message */, "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098", "Loading module '{0}' from 'node_modules' folder, target file types: {1}."),
|
|
8119
8067
|
Found_package_json_at_0: diag(6099, 3 /* Message */, "Found_package_json_at_0_6099", "Found 'package.json' at '{0}'."),
|
|
8120
8068
|
package_json_does_not_have_a_0_field: diag(6100, 3 /* Message */, "package_json_does_not_have_a_0_field_6100", "'package.json' does not have a '{0}' field."),
|
|
8121
8069
|
package_json_has_0_field_1_that_references_2: diag(6101, 3 /* Message */, "package_json_has_0_field_1_that_references_2_6101", "'package.json' has '{0}' field '{1}' that references '{2}'."),
|
|
@@ -17468,7 +17416,7 @@ ${lanes.join("\n")}
|
|
|
17468
17416
|
const { isBracketed, typeExpression } = node;
|
|
17469
17417
|
return isBracketed || !!typeExpression && typeExpression.type.kind === 319 /* JSDocOptionalType */;
|
|
17470
17418
|
}
|
|
17471
|
-
var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashAMDReferencePathRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, AccessKind, objectAllocator, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, extensionsToRemove, emptyFileSystemEntries;
|
|
17419
|
+
var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashAMDReferencePathRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, AccessKind, objectAllocator, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, supportedTSImplementationExtensions, extensionsToRemove, emptyFileSystemEntries;
|
|
17472
17420
|
var init_utilities = __esm({
|
|
17473
17421
|
"src/compiler/utilities.ts"() {
|
|
17474
17422
|
"use strict";
|
|
@@ -17618,6 +17566,7 @@ ${lanes.join("\n")}
|
|
|
17618
17566
|
allSupportedExtensions = [[".ts" /* Ts */, ".tsx" /* Tsx */, ".d.ts" /* Dts */, ".js" /* Js */, ".jsx" /* Jsx */], [".cts" /* Cts */, ".d.cts" /* Dcts */, ".cjs" /* Cjs */], [".mts" /* Mts */, ".d.mts" /* Dmts */, ".mjs" /* Mjs */]];
|
|
17619
17567
|
allSupportedExtensionsWithJson = [...allSupportedExtensions, [".json" /* Json */]];
|
|
17620
17568
|
supportedDeclarationExtensions = [".d.ts" /* Dts */, ".d.cts" /* Dcts */, ".d.mts" /* Dmts */];
|
|
17569
|
+
supportedTSImplementationExtensions = [".ts" /* Ts */, ".cts" /* Cts */, ".mts" /* Mts */, ".tsx" /* Tsx */];
|
|
17621
17570
|
extensionsToRemove = [".d.ts" /* Dts */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".mjs" /* Mjs */, ".mts" /* Mts */, ".cjs" /* Cjs */, ".cts" /* Cts */, ".ts" /* Ts */, ".js" /* Js */, ".tsx" /* Tsx */, ".jsx" /* Jsx */, ".json" /* Json */];
|
|
17622
17571
|
emptyFileSystemEntries = {
|
|
17623
17572
|
files: emptyArray,
|
|
@@ -23193,7 +23142,7 @@ ${lanes.join("\n")}
|
|
|
23193
23142
|
var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
|
|
23194
23143
|
var i, p;
|
|
23195
23144
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
23196
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done:
|
|
23145
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
23197
23146
|
};`
|
|
23198
23147
|
};
|
|
23199
23148
|
asyncValues = {
|
|
@@ -34969,6 +34918,18 @@ ${lanes.join("\n")}
|
|
|
34969
34918
|
return { path: r.path, ext: r.extension };
|
|
34970
34919
|
}
|
|
34971
34920
|
}
|
|
34921
|
+
function formatExtensions(extensions) {
|
|
34922
|
+
const result = [];
|
|
34923
|
+
if (extensions & 1 /* TypeScript */)
|
|
34924
|
+
result.push("TypeScript");
|
|
34925
|
+
if (extensions & 2 /* JavaScript */)
|
|
34926
|
+
result.push("JavaScript");
|
|
34927
|
+
if (extensions & 4 /* Declaration */)
|
|
34928
|
+
result.push("Declaration");
|
|
34929
|
+
if (extensions & 8 /* Json */)
|
|
34930
|
+
result.push("JSON");
|
|
34931
|
+
return result.join(", ");
|
|
34932
|
+
}
|
|
34972
34933
|
function resolvedTypeScriptOnly(resolved) {
|
|
34973
34934
|
if (!resolved) {
|
|
34974
34935
|
return void 0;
|
|
@@ -35170,7 +35131,8 @@ ${lanes.join("\n")}
|
|
|
35170
35131
|
features,
|
|
35171
35132
|
conditions,
|
|
35172
35133
|
requestContainingDirectory: containingDirectory,
|
|
35173
|
-
reportDiagnostic: (diag2) => void diagnostics.push(diag2)
|
|
35134
|
+
reportDiagnostic: (diag2) => void diagnostics.push(diag2),
|
|
35135
|
+
isConfigLookup: false
|
|
35174
35136
|
};
|
|
35175
35137
|
let resolved = primaryLookup();
|
|
35176
35138
|
let primary = true;
|
|
@@ -35220,7 +35182,7 @@ ${lanes.join("\n")}
|
|
|
35220
35182
|
}
|
|
35221
35183
|
return resolvedTypeScriptOnly(
|
|
35222
35184
|
loadNodeModuleFromDirectory(
|
|
35223
|
-
4 /*
|
|
35185
|
+
4 /* Declaration */,
|
|
35224
35186
|
candidate,
|
|
35225
35187
|
!directoryExists,
|
|
35226
35188
|
moduleResolutionState
|
|
@@ -35241,11 +35203,11 @@ ${lanes.join("\n")}
|
|
|
35241
35203
|
}
|
|
35242
35204
|
let result2;
|
|
35243
35205
|
if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) {
|
|
35244
|
-
const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /*
|
|
35206
|
+
const searchResult = loadModuleFromNearestNodeModulesDirectory(4 /* Declaration */, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, void 0, void 0);
|
|
35245
35207
|
result2 = searchResult && searchResult.value;
|
|
35246
35208
|
} else {
|
|
35247
35209
|
const { path: candidate } = normalizePathForCJSResolution(initialLocationForSecondaryLookup, typeReferenceDirectiveName);
|
|
35248
|
-
result2 = nodeLoadModuleByRelativeName(4 /*
|
|
35210
|
+
result2 = nodeLoadModuleByRelativeName(4 /* Declaration */, candidate, false, moduleResolutionState, true);
|
|
35249
35211
|
}
|
|
35250
35212
|
return resolvedTypeScriptOnly(result2);
|
|
35251
35213
|
} else {
|
|
@@ -35762,31 +35724,39 @@ ${lanes.join("\n")}
|
|
|
35762
35724
|
function nodeNextModuleNameResolverWorker(features, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {
|
|
35763
35725
|
const containingDirectory = getDirectoryPath(containingFile);
|
|
35764
35726
|
const esmMode = resolutionMode === 99 /* ESNext */ ? 32 /* EsmMode */ : 0;
|
|
35765
|
-
let extensions = compilerOptions.noDtsResolution ?
|
|
35727
|
+
let extensions = compilerOptions.noDtsResolution ? 3 /* ImplementationFiles */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
|
|
35766
35728
|
if (compilerOptions.resolveJsonModule) {
|
|
35767
|
-
extensions
|
|
35729
|
+
extensions |= 8 /* Json */;
|
|
35768
35730
|
}
|
|
35769
|
-
return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference);
|
|
35731
|
+
return nodeModuleNameResolverWorker(features | esmMode, moduleName, containingDirectory, compilerOptions, host, cache, extensions, false, redirectedReference);
|
|
35770
35732
|
}
|
|
35771
35733
|
function tryResolveJSModuleWorker(moduleName, initialDir, host) {
|
|
35772
|
-
return nodeModuleNameResolverWorker(
|
|
35734
|
+
return nodeModuleNameResolverWorker(
|
|
35735
|
+
0 /* None */,
|
|
35736
|
+
moduleName,
|
|
35737
|
+
initialDir,
|
|
35738
|
+
{ moduleResolution: 2 /* NodeJs */, allowJs: true },
|
|
35739
|
+
host,
|
|
35740
|
+
void 0,
|
|
35741
|
+
2 /* JavaScript */,
|
|
35742
|
+
false,
|
|
35743
|
+
void 0
|
|
35744
|
+
);
|
|
35773
35745
|
}
|
|
35774
|
-
function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference,
|
|
35746
|
+
function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, isConfigLookup) {
|
|
35775
35747
|
let extensions;
|
|
35776
|
-
if (
|
|
35777
|
-
extensions =
|
|
35748
|
+
if (isConfigLookup) {
|
|
35749
|
+
extensions = 8 /* Json */;
|
|
35778
35750
|
} else if (compilerOptions.noDtsResolution) {
|
|
35779
|
-
extensions =
|
|
35780
|
-
if (compilerOptions.allowJs)
|
|
35781
|
-
extensions.push(1 /* JavaScript */);
|
|
35751
|
+
extensions = 3 /* ImplementationFiles */;
|
|
35782
35752
|
if (compilerOptions.resolveJsonModule)
|
|
35783
|
-
extensions
|
|
35753
|
+
extensions |= 8 /* Json */;
|
|
35784
35754
|
} else {
|
|
35785
|
-
extensions = compilerOptions.resolveJsonModule ?
|
|
35755
|
+
extensions = compilerOptions.resolveJsonModule ? 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */ | 8 /* Json */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */;
|
|
35786
35756
|
}
|
|
35787
|
-
return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, redirectedReference);
|
|
35757
|
+
return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, !!isConfigLookup, redirectedReference);
|
|
35788
35758
|
}
|
|
35789
|
-
function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference) {
|
|
35759
|
+
function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, isConfigLookup, redirectedReference) {
|
|
35790
35760
|
var _a2, _b;
|
|
35791
35761
|
const traceEnabled = isTraceEnabled(compilerOptions, host);
|
|
35792
35762
|
const failedLookupLocations = [];
|
|
@@ -35806,12 +35776,20 @@ ${lanes.join("\n")}
|
|
|
35806
35776
|
features,
|
|
35807
35777
|
conditions,
|
|
35808
35778
|
requestContainingDirectory: containingDirectory,
|
|
35809
|
-
reportDiagnostic: (diag2) => void diagnostics.push(diag2)
|
|
35779
|
+
reportDiagnostic: (diag2) => void diagnostics.push(diag2),
|
|
35780
|
+
isConfigLookup
|
|
35810
35781
|
};
|
|
35811
35782
|
if (traceEnabled && getEmitModuleResolutionKind(compilerOptions) >= 3 /* Node16 */ && getEmitModuleResolutionKind(compilerOptions) <= 99 /* NodeNext */) {
|
|
35812
35783
|
trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & 32 /* EsmMode */ ? "ESM" : "CJS", conditions.map((c) => `'${c}'`).join(", "));
|
|
35813
35784
|
}
|
|
35814
|
-
|
|
35785
|
+
let result;
|
|
35786
|
+
if (getEmitModuleResolutionKind(compilerOptions) === 2 /* NodeJs */) {
|
|
35787
|
+
const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
|
|
35788
|
+
const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
|
|
35789
|
+
result = priorityExtensions && tryResolve(priorityExtensions) || secondaryExtensions && tryResolve(secondaryExtensions) || void 0;
|
|
35790
|
+
} else {
|
|
35791
|
+
result = tryResolve(extensions);
|
|
35792
|
+
}
|
|
35815
35793
|
return createResolvedModuleWithFailedLookupLocations(
|
|
35816
35794
|
(_a2 = result == null ? void 0 : result.value) == null ? void 0 : _a2.resolved,
|
|
35817
35795
|
(_b = result == null ? void 0 : result.value) == null ? void 0 : _b.isExternalLibraryImport,
|
|
@@ -35836,7 +35814,7 @@ ${lanes.join("\n")}
|
|
|
35836
35814
|
}
|
|
35837
35815
|
if (!resolved2) {
|
|
35838
35816
|
if (traceEnabled) {
|
|
35839
|
-
trace(host, Diagnostics.
|
|
35817
|
+
trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions2));
|
|
35840
35818
|
}
|
|
35841
35819
|
resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state, cache, redirectedReference);
|
|
35842
35820
|
}
|
|
@@ -35877,7 +35855,7 @@ ${lanes.join("\n")}
|
|
|
35877
35855
|
}
|
|
35878
35856
|
function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
|
|
35879
35857
|
if (state.traceEnabled) {
|
|
35880
|
-
trace(state.host, Diagnostics.
|
|
35858
|
+
trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1, candidate, formatExtensions(extensions));
|
|
35881
35859
|
}
|
|
35882
35860
|
if (!hasTrailingDirectorySeparator(candidate)) {
|
|
35883
35861
|
if (!onlyRecordFailures) {
|
|
@@ -35934,10 +35912,9 @@ ${lanes.join("\n")}
|
|
|
35934
35912
|
return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state));
|
|
35935
35913
|
}
|
|
35936
35914
|
function loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) {
|
|
35937
|
-
|
|
35938
|
-
|
|
35939
|
-
|
|
35940
|
-
return extensionLess === void 0 && extensions === 2 /* Json */ ? void 0 : tryAddingExtensions(extensionLess || candidate, extensions, extension, onlyRecordFailures, state);
|
|
35915
|
+
const resolvedByReplacingExtension = loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
|
|
35916
|
+
if (resolvedByReplacingExtension) {
|
|
35917
|
+
return resolvedByReplacingExtension;
|
|
35941
35918
|
}
|
|
35942
35919
|
if (!(state.features & 32 /* EsmMode */)) {
|
|
35943
35920
|
const resolvedByAddingExtension = tryAddingExtensions(candidate, extensions, "", onlyRecordFailures, state);
|
|
@@ -35945,10 +35922,9 @@ ${lanes.join("\n")}
|
|
|
35945
35922
|
return resolvedByAddingExtension;
|
|
35946
35923
|
}
|
|
35947
35924
|
}
|
|
35948
|
-
return loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state);
|
|
35949
35925
|
}
|
|
35950
35926
|
function loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state) {
|
|
35951
|
-
if (hasJSFileExtension(candidate) || fileExtensionIs(candidate, ".json" /* Json */)
|
|
35927
|
+
if (hasJSFileExtension(candidate) || extensions & 8 /* Json */ && fileExtensionIs(candidate, ".json" /* Json */)) {
|
|
35952
35928
|
const extensionless = removeFileExtension(candidate);
|
|
35953
35929
|
const extension = candidate.substring(extensionless.length);
|
|
35954
35930
|
if (state.traceEnabled) {
|
|
@@ -35958,7 +35934,7 @@ ${lanes.join("\n")}
|
|
|
35958
35934
|
}
|
|
35959
35935
|
}
|
|
35960
35936
|
function loadJSOrExactTSFileName(extensions, candidate, onlyRecordFailures, state) {
|
|
35961
|
-
if (
|
|
35937
|
+
if (extensions & 1 /* TypeScript */ && fileExtensionIsOneOf(candidate, supportedTSImplementationExtensions) || extensions & 4 /* Declaration */ && fileExtensionIsOneOf(candidate, supportedDeclarationExtensions)) {
|
|
35962
35938
|
const result = tryFile(candidate, onlyRecordFailures, state);
|
|
35963
35939
|
return result !== void 0 ? { path: candidate, ext: tryExtractTSExtension(candidate) } : void 0;
|
|
35964
35940
|
}
|
|
@@ -35971,59 +35947,32 @@ ${lanes.join("\n")}
|
|
|
35971
35947
|
onlyRecordFailures = !directoryProbablyExists(directory, state.host);
|
|
35972
35948
|
}
|
|
35973
35949
|
}
|
|
35974
|
-
switch (
|
|
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 */);
|
|
35950
|
+
switch (originalExtension) {
|
|
35951
|
+
case ".mjs" /* Mjs */:
|
|
35952
|
+
case ".mts" /* Mts */:
|
|
35953
|
+
case ".d.mts" /* Dmts */:
|
|
35954
|
+
return extensions & 1 /* TypeScript */ && tryExtension(".mts" /* Mts */) || extensions & 4 /* Declaration */ && tryExtension(".d.mts" /* Dmts */) || extensions & 2 /* JavaScript */ && tryExtension(".mjs" /* Mjs */) || void 0;
|
|
35955
|
+
case ".cjs" /* Cjs */:
|
|
35956
|
+
case ".cts" /* Cts */:
|
|
35957
|
+
case ".d.cts" /* Dcts */:
|
|
35958
|
+
return extensions & 1 /* TypeScript */ && tryExtension(".cts" /* Cts */) || extensions & 4 /* Declaration */ && tryExtension(".d.cts" /* Dcts */) || extensions & 2 /* JavaScript */ && tryExtension(".cjs" /* Cjs */) || void 0;
|
|
35959
|
+
case ".json" /* Json */:
|
|
35960
|
+
const originalCandidate = candidate;
|
|
35961
|
+
if (extensions & 4 /* Declaration */) {
|
|
35962
|
+
candidate += ".json" /* Json */;
|
|
35963
|
+
const result = tryExtension(".d.ts" /* Dts */);
|
|
35964
|
+
if (result)
|
|
35965
|
+
return result;
|
|
35966
|
+
}
|
|
35967
|
+
if (extensions & 8 /* Json */) {
|
|
35968
|
+
candidate = originalCandidate;
|
|
35969
|
+
const result = tryExtension(".json" /* Json */);
|
|
35970
|
+
if (result)
|
|
35971
|
+
return result;
|
|
36023
35972
|
}
|
|
36024
|
-
|
|
36025
|
-
|
|
36026
|
-
return tryExtension(".json" /* Json */);
|
|
35973
|
+
return void 0;
|
|
35974
|
+
default:
|
|
35975
|
+
return extensions & 1 /* TypeScript */ && (tryExtension(".ts" /* Ts */) || tryExtension(".tsx" /* Tsx */)) || extensions & 4 /* Declaration */ && tryExtension(".d.ts" /* Dts */) || extensions & 2 /* JavaScript */ && (tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */)) || state.isConfigLookup && tryExtension(".json" /* Json */) || void 0;
|
|
36027
35976
|
}
|
|
36028
35977
|
function tryExtension(ext) {
|
|
36029
35978
|
const path = tryFile(candidate + ext, onlyRecordFailures, state);
|
|
@@ -36066,7 +36015,7 @@ ${lanes.join("\n")}
|
|
|
36066
36015
|
return packageJsonInfo.contents.resolvedEntrypoints;
|
|
36067
36016
|
}
|
|
36068
36017
|
let entrypoints;
|
|
36069
|
-
const extensions = resolveJs ?
|
|
36018
|
+
const extensions = 1 /* TypeScript */ | 4 /* Declaration */ | (resolveJs ? 2 /* JavaScript */ : 0);
|
|
36070
36019
|
const features = getDefaultNodeResolutionFeatures(options);
|
|
36071
36020
|
const requireState = getTemporaryModuleResolutionState(cache == null ? void 0 : cache.getPackageJsonInfoCache(), host, options);
|
|
36072
36021
|
requireState.conditions = ["node", "require", "types"];
|
|
@@ -36154,7 +36103,8 @@ ${lanes.join("\n")}
|
|
|
36154
36103
|
features: 0 /* None */,
|
|
36155
36104
|
conditions: emptyArray,
|
|
36156
36105
|
requestContainingDirectory: void 0,
|
|
36157
|
-
reportDiagnostic: noop
|
|
36106
|
+
reportDiagnostic: noop,
|
|
36107
|
+
isConfigLookup: false
|
|
36158
36108
|
};
|
|
36159
36109
|
}
|
|
36160
36110
|
function getPackageScopeForPath(fileName, state) {
|
|
@@ -36213,23 +36163,10 @@ ${lanes.join("\n")}
|
|
|
36213
36163
|
function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) {
|
|
36214
36164
|
let packageFile;
|
|
36215
36165
|
if (jsonContent) {
|
|
36216
|
-
|
|
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);
|
|
36166
|
+
if (state.isConfigLookup) {
|
|
36167
|
+
packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
|
|
36168
|
+
} else {
|
|
36169
|
+
packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(jsonContent, candidate, state) || void 0;
|
|
36233
36170
|
}
|
|
36234
36171
|
}
|
|
36235
36172
|
const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
|
|
@@ -36243,18 +36180,18 @@ ${lanes.join("\n")}
|
|
|
36243
36180
|
trace(state2.host, Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromFile);
|
|
36244
36181
|
}
|
|
36245
36182
|
}
|
|
36246
|
-
const
|
|
36183
|
+
const expandedExtensions = extensions2 === 4 /* Declaration */ ? 1 /* TypeScript */ | 4 /* Declaration */ : extensions2;
|
|
36247
36184
|
const features = state2.features;
|
|
36248
36185
|
if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") {
|
|
36249
36186
|
state2.features &= ~32 /* EsmMode */;
|
|
36250
36187
|
}
|
|
36251
|
-
const result = nodeLoadModuleByRelativeName(
|
|
36188
|
+
const result = nodeLoadModuleByRelativeName(expandedExtensions, candidate2, onlyRecordFailures2, state2, false);
|
|
36252
36189
|
state2.features = features;
|
|
36253
36190
|
return result;
|
|
36254
36191
|
};
|
|
36255
36192
|
const onlyRecordFailuresForPackageFile = packageFile ? !directoryProbablyExists(getDirectoryPath(packageFile), state.host) : void 0;
|
|
36256
36193
|
const onlyRecordFailuresForIndex = onlyRecordFailures || !directoryProbablyExists(candidate, state.host);
|
|
36257
|
-
const indexPath = combinePaths(candidate,
|
|
36194
|
+
const indexPath = combinePaths(candidate, state.isConfigLookup ? "tsconfig" : "index");
|
|
36258
36195
|
if (versionPaths && (!packageFile || containsPath(candidate, packageFile))) {
|
|
36259
36196
|
const moduleName = getRelativePathFromDirectory(candidate, packageFile || indexPath, false);
|
|
36260
36197
|
if (state.traceEnabled) {
|
|
@@ -36277,19 +36214,7 @@ ${lanes.join("\n")}
|
|
|
36277
36214
|
return ext !== void 0 && extensionIsOk(extensions, ext) ? { path, ext } : void 0;
|
|
36278
36215
|
}
|
|
36279
36216
|
function extensionIsOk(extensions, extension) {
|
|
36280
|
-
|
|
36281
|
-
case 1 /* JavaScript */:
|
|
36282
|
-
return extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */;
|
|
36283
|
-
case 3 /* TSConfig */:
|
|
36284
|
-
case 2 /* Json */:
|
|
36285
|
-
return extension === ".json" /* Json */;
|
|
36286
|
-
case 0 /* TypeScript */:
|
|
36287
|
-
return extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */ || extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */;
|
|
36288
|
-
case 5 /* TsOnly */:
|
|
36289
|
-
return extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */;
|
|
36290
|
-
case 4 /* DtsOnly */:
|
|
36291
|
-
return extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */;
|
|
36292
|
-
}
|
|
36217
|
+
return extensions & 2 /* JavaScript */ && (extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */) || extensions & 1 /* TypeScript */ && (extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */) || extensions & 4 /* Declaration */ && (extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */) || extensions & 8 /* Json */ && extension === ".json" /* Json */ || false;
|
|
36293
36218
|
}
|
|
36294
36219
|
function parsePackageName(moduleName) {
|
|
36295
36220
|
let idx = moduleName.indexOf(directorySeparator);
|
|
@@ -36451,7 +36376,7 @@ ${lanes.join("\n")}
|
|
|
36451
36376
|
const combinedLookup = pattern ? target.replace(/\*/g, subpath) : target + subpath;
|
|
36452
36377
|
traceIfEnabled(state, Diagnostics.Using_0_subpath_1_with_target_2, "imports", key, combinedLookup);
|
|
36453
36378
|
traceIfEnabled(state, Diagnostics.Resolving_module_0_from_1, combinedLookup, scope.packageDirectory + "/");
|
|
36454
|
-
const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache,
|
|
36379
|
+
const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache, extensions, false, redirectedReference);
|
|
36455
36380
|
return toSearchResult(result.resolvedModule ? { path: result.resolvedModule.resolvedFileName, extension: result.resolvedModule.extension, packageId: result.resolvedModule.packageId, originalPath: result.resolvedModule.originalPath } : void 0);
|
|
36456
36381
|
}
|
|
36457
36382
|
if (state.traceEnabled) {
|
|
@@ -36542,7 +36467,7 @@ ${lanes.join("\n")}
|
|
|
36542
36467
|
}
|
|
36543
36468
|
function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
|
|
36544
36469
|
var _a2, _b, _c, _d;
|
|
36545
|
-
if (
|
|
36470
|
+
if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) {
|
|
36546
36471
|
const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames });
|
|
36547
36472
|
const commonSourceDirGuesses = [];
|
|
36548
36473
|
if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
|
|
@@ -36579,10 +36504,9 @@ ${lanes.join("\n")}
|
|
|
36579
36504
|
if (fileExtensionIs(possibleInputBase, ext)) {
|
|
36580
36505
|
const inputExts = getPossibleOriginalInputExtensionForExtension(possibleInputBase);
|
|
36581
36506
|
for (const possibleExt of inputExts) {
|
|
36582
|
-
|
|
36583
|
-
if (extensions === 0 /* TypeScript */ && hasJSFileExtension(possibleInputWithInputExtension) || extensions === 1 /* JavaScript */ && hasTSFileExtension(possibleInputWithInputExtension)) {
|
|
36507
|
+
if (!extensionIsOk(extensions, possibleExt))
|
|
36584
36508
|
continue;
|
|
36585
|
-
|
|
36509
|
+
const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
|
|
36586
36510
|
if (state.host.fileExists(possibleInputWithInputExtension)) {
|
|
36587
36511
|
return toSearchResult(withPackageId(scope, loadJSOrExactTSFileName(extensions, possibleInputWithInputExtension, false, state)));
|
|
36588
36512
|
}
|
|
@@ -36623,19 +36547,31 @@ ${lanes.join("\n")}
|
|
|
36623
36547
|
return loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, false, cache, redirectedReference);
|
|
36624
36548
|
}
|
|
36625
36549
|
function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directory, state) {
|
|
36626
|
-
return loadModuleFromNearestNodeModulesDirectoryWorker(4 /*
|
|
36550
|
+
return loadModuleFromNearestNodeModulesDirectoryWorker(4 /* Declaration */, moduleName, directory, state, true, void 0, void 0);
|
|
36627
36551
|
}
|
|
36628
36552
|
function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
|
|
36629
36553
|
const perModuleNameCache = cache && cache.getOrCreateCacheForModuleName(moduleName, state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ ? 99 /* ESNext */ : 1 /* CommonJS */, redirectedReference);
|
|
36630
|
-
|
|
36631
|
-
|
|
36632
|
-
|
|
36633
|
-
|
|
36634
|
-
|
|
36554
|
+
const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
|
|
36555
|
+
const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
|
|
36556
|
+
if (priorityExtensions) {
|
|
36557
|
+
const result = lookup(priorityExtensions);
|
|
36558
|
+
if (result)
|
|
36559
|
+
return result;
|
|
36560
|
+
}
|
|
36561
|
+
if (secondaryExtensions && !typesScopeOnly) {
|
|
36562
|
+
return lookup(secondaryExtensions);
|
|
36563
|
+
}
|
|
36564
|
+
function lookup(extensions2) {
|
|
36565
|
+
return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => {
|
|
36566
|
+
if (getBaseFileName(ancestorDirectory) !== "node_modules") {
|
|
36567
|
+
const resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, ancestorDirectory, state);
|
|
36568
|
+
if (resolutionFromCache) {
|
|
36569
|
+
return resolutionFromCache;
|
|
36570
|
+
}
|
|
36571
|
+
return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions2, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference));
|
|
36635
36572
|
}
|
|
36636
|
-
|
|
36637
|
-
|
|
36638
|
-
});
|
|
36573
|
+
});
|
|
36574
|
+
}
|
|
36639
36575
|
}
|
|
36640
36576
|
function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
|
|
36641
36577
|
const nodeModulesFolder = combinePaths(directory, "node_modules");
|
|
@@ -36643,11 +36579,13 @@ ${lanes.join("\n")}
|
|
|
36643
36579
|
if (!nodeModulesFolderExists && state.traceEnabled) {
|
|
36644
36580
|
trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesFolder);
|
|
36645
36581
|
}
|
|
36646
|
-
|
|
36647
|
-
|
|
36648
|
-
|
|
36582
|
+
if (!typesScopeOnly) {
|
|
36583
|
+
const packageResult = loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference);
|
|
36584
|
+
if (packageResult) {
|
|
36585
|
+
return packageResult;
|
|
36586
|
+
}
|
|
36649
36587
|
}
|
|
36650
|
-
if (extensions
|
|
36588
|
+
if (extensions & 4 /* Declaration */) {
|
|
36651
36589
|
const nodeModulesAtTypes2 = combinePaths(nodeModulesFolder, "@types");
|
|
36652
36590
|
let nodeModulesAtTypesExists = nodeModulesFolderExists;
|
|
36653
36591
|
if (nodeModulesFolderExists && !directoryProbablyExists(nodeModulesAtTypes2, state.host)) {
|
|
@@ -36656,7 +36594,7 @@ ${lanes.join("\n")}
|
|
|
36656
36594
|
}
|
|
36657
36595
|
nodeModulesAtTypesExists = false;
|
|
36658
36596
|
}
|
|
36659
|
-
return loadModuleFromSpecificNodeModulesDirectory(4 /*
|
|
36597
|
+
return loadModuleFromSpecificNodeModulesDirectory(4 /* Declaration */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference);
|
|
36660
36598
|
}
|
|
36661
36599
|
}
|
|
36662
36600
|
function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {
|
|
@@ -36796,9 +36734,10 @@ ${lanes.join("\n")}
|
|
|
36796
36734
|
features: 0 /* None */,
|
|
36797
36735
|
conditions: [],
|
|
36798
36736
|
requestContainingDirectory: containingDirectory,
|
|
36799
|
-
reportDiagnostic: (diag2) => void diagnostics.push(diag2)
|
|
36737
|
+
reportDiagnostic: (diag2) => void diagnostics.push(diag2),
|
|
36738
|
+
isConfigLookup: false
|
|
36800
36739
|
};
|
|
36801
|
-
const resolved = tryResolve(
|
|
36740
|
+
const resolved = tryResolve(1 /* TypeScript */ | 4 /* Declaration */) || tryResolve(2 /* JavaScript */ | (compilerOptions.resolveJsonModule ? 8 /* Json */ : 0));
|
|
36802
36741
|
return createResolvedModuleWithFailedLookupLocations(
|
|
36803
36742
|
resolved && resolved.value,
|
|
36804
36743
|
false,
|
|
@@ -36825,7 +36764,7 @@ ${lanes.join("\n")}
|
|
|
36825
36764
|
if (resolved2) {
|
|
36826
36765
|
return resolved2;
|
|
36827
36766
|
}
|
|
36828
|
-
if (extensions
|
|
36767
|
+
if (extensions & (1 /* TypeScript */ | 4 /* Declaration */)) {
|
|
36829
36768
|
return loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state);
|
|
36830
36769
|
}
|
|
36831
36770
|
} else {
|
|
@@ -36852,9 +36791,10 @@ ${lanes.join("\n")}
|
|
|
36852
36791
|
features: 0 /* None */,
|
|
36853
36792
|
conditions: [],
|
|
36854
36793
|
requestContainingDirectory: void 0,
|
|
36855
|
-
reportDiagnostic: (diag2) => void diagnostics.push(diag2)
|
|
36794
|
+
reportDiagnostic: (diag2) => void diagnostics.push(diag2),
|
|
36795
|
+
isConfigLookup: false
|
|
36856
36796
|
};
|
|
36857
|
-
const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /*
|
|
36797
|
+
const resolved = loadModuleFromImmediateNodeModulesDirectory(4 /* Declaration */, moduleName, globalCache, state, false, void 0, void 0);
|
|
36858
36798
|
return createResolvedModuleWithFailedLookupLocations(
|
|
36859
36799
|
resolved,
|
|
36860
36800
|
true,
|
|
@@ -36872,20 +36812,11 @@ ${lanes.join("\n")}
|
|
|
36872
36812
|
trace(state.host, diagnostic, ...args);
|
|
36873
36813
|
}
|
|
36874
36814
|
}
|
|
36875
|
-
var
|
|
36815
|
+
var typeScriptVersion, nodeModulesAtTypes, NodeResolutionFeatures, nodeModulesPathPart, mangledScopedPackageSeparator;
|
|
36876
36816
|
var init_moduleNameResolver = __esm({
|
|
36877
36817
|
"src/compiler/moduleNameResolver.ts"() {
|
|
36878
36818
|
"use strict";
|
|
36879
36819
|
init_ts2();
|
|
36880
|
-
Extensions = /* @__PURE__ */ ((Extensions2) => {
|
|
36881
|
-
Extensions2[Extensions2["TypeScript"] = 0] = "TypeScript";
|
|
36882
|
-
Extensions2[Extensions2["JavaScript"] = 1] = "JavaScript";
|
|
36883
|
-
Extensions2[Extensions2["Json"] = 2] = "Json";
|
|
36884
|
-
Extensions2[Extensions2["TSConfig"] = 3] = "TSConfig";
|
|
36885
|
-
Extensions2[Extensions2["DtsOnly"] = 4] = "DtsOnly";
|
|
36886
|
-
Extensions2[Extensions2["TsOnly"] = 5] = "TsOnly";
|
|
36887
|
-
return Extensions2;
|
|
36888
|
-
})(Extensions || {});
|
|
36889
36820
|
nodeModulesAtTypes = combinePaths("node_modules", "@types");
|
|
36890
36821
|
NodeResolutionFeatures = /* @__PURE__ */ ((NodeResolutionFeatures2) => {
|
|
36891
36822
|
NodeResolutionFeatures2[NodeResolutionFeatures2["None"] = 0] = "None";
|
|
@@ -36899,10 +36830,6 @@ ${lanes.join("\n")}
|
|
|
36899
36830
|
NodeResolutionFeatures2[NodeResolutionFeatures2["EsmMode"] = 32] = "EsmMode";
|
|
36900
36831
|
return NodeResolutionFeatures2;
|
|
36901
36832
|
})(NodeResolutionFeatures || {});
|
|
36902
|
-
jsOnlyExtensions = [1 /* JavaScript */];
|
|
36903
|
-
tsExtensions = [0 /* TypeScript */, 1 /* JavaScript */];
|
|
36904
|
-
tsPlusJsonExtensions = [...tsExtensions, 2 /* Json */];
|
|
36905
|
-
tsconfigExtensions = [3 /* TSConfig */];
|
|
36906
36833
|
nodeModulesPathPart = "/node_modules/";
|
|
36907
36834
|
mangledScopedPackageSeparator = "__";
|
|
36908
36835
|
}
|
|
@@ -39888,6 +39815,7 @@ ${lanes.join("\n")}
|
|
|
39888
39815
|
const importedFileIsInNodeModules = some(modulePaths, (p) => p.isInNodeModules);
|
|
39889
39816
|
let nodeModulesSpecifiers;
|
|
39890
39817
|
let pathsSpecifiers;
|
|
39818
|
+
let redirectPathsSpecifiers;
|
|
39891
39819
|
let relativeSpecifiers;
|
|
39892
39820
|
for (const modulePath of modulePaths) {
|
|
39893
39821
|
const specifier = tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, void 0, options.overrideImportMode);
|
|
@@ -39895,60 +39823,77 @@ ${lanes.join("\n")}
|
|
|
39895
39823
|
if (specifier && modulePath.isRedirect) {
|
|
39896
39824
|
return nodeModulesSpecifiers;
|
|
39897
39825
|
}
|
|
39898
|
-
if (!specifier
|
|
39899
|
-
const local = getLocalModuleSpecifier(
|
|
39900
|
-
|
|
39826
|
+
if (!specifier) {
|
|
39827
|
+
const local = getLocalModuleSpecifier(
|
|
39828
|
+
modulePath.path,
|
|
39829
|
+
info,
|
|
39830
|
+
compilerOptions,
|
|
39831
|
+
host,
|
|
39832
|
+
options.overrideImportMode || importingSourceFile.impliedNodeFormat,
|
|
39833
|
+
preferences,
|
|
39834
|
+
modulePath.isRedirect
|
|
39835
|
+
);
|
|
39836
|
+
if (!local) {
|
|
39837
|
+
continue;
|
|
39838
|
+
}
|
|
39839
|
+
if (modulePath.isRedirect) {
|
|
39840
|
+
redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
|
|
39841
|
+
} else if (pathIsBareSpecifier(local)) {
|
|
39901
39842
|
pathsSpecifiers = append(pathsSpecifiers, local);
|
|
39902
39843
|
} else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
39903
39844
|
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
39904
39845
|
}
|
|
39905
39846
|
}
|
|
39906
39847
|
}
|
|
39907
|
-
return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers : Debug.checkDefined(relativeSpecifiers);
|
|
39848
|
+
return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers : (redirectPathsSpecifiers == null ? void 0 : redirectPathsSpecifiers.length) ? redirectPathsSpecifiers : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers : Debug.checkDefined(relativeSpecifiers);
|
|
39908
39849
|
}
|
|
39909
39850
|
function getInfo(importingSourceFileName, host) {
|
|
39910
39851
|
const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : true);
|
|
39911
39852
|
const sourceDirectory = getDirectoryPath(importingSourceFileName);
|
|
39912
39853
|
return { getCanonicalFileName, importingSourceFileName, sourceDirectory };
|
|
39913
39854
|
}
|
|
39914
|
-
function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }) {
|
|
39855
|
+
function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { ending, relativePreference }, pathsOnly) {
|
|
39915
39856
|
const { baseUrl, paths, rootDirs } = compilerOptions;
|
|
39857
|
+
if (pathsOnly && !paths) {
|
|
39858
|
+
return void 0;
|
|
39859
|
+
}
|
|
39916
39860
|
const { sourceDirectory, getCanonicalFileName } = info;
|
|
39917
39861
|
const relativePath = rootDirs && tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, ending, compilerOptions) || removeExtensionAndIndexPostFix(ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceDirectory, moduleFileName, getCanonicalFileName)), ending, compilerOptions);
|
|
39918
39862
|
if (!baseUrl && !paths || relativePreference === 0 /* Relative */) {
|
|
39919
|
-
return relativePath;
|
|
39863
|
+
return pathsOnly ? void 0 : relativePath;
|
|
39920
39864
|
}
|
|
39921
39865
|
const baseDirectory = getNormalizedAbsolutePath(getPathsBasePath(compilerOptions, host) || baseUrl, host.getCurrentDirectory());
|
|
39922
39866
|
const relativeToBaseUrl = getRelativePathIfInDirectory(moduleFileName, baseDirectory, getCanonicalFileName);
|
|
39923
39867
|
if (!relativeToBaseUrl) {
|
|
39924
|
-
return relativePath;
|
|
39868
|
+
return pathsOnly ? void 0 : relativePath;
|
|
39925
39869
|
}
|
|
39926
39870
|
const fromPaths = paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, getAllowedEndings(ending, compilerOptions, importMode), host, compilerOptions);
|
|
39927
|
-
|
|
39928
|
-
|
|
39871
|
+
if (pathsOnly) {
|
|
39872
|
+
return fromPaths;
|
|
39873
|
+
}
|
|
39874
|
+
const maybeNonRelative = fromPaths === void 0 && baseUrl !== void 0 ? removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions) : fromPaths;
|
|
39875
|
+
if (!maybeNonRelative) {
|
|
39929
39876
|
return relativePath;
|
|
39930
39877
|
}
|
|
39931
|
-
if (relativePreference === 1 /* NonRelative */) {
|
|
39932
|
-
return
|
|
39878
|
+
if (relativePreference === 1 /* NonRelative */ && !pathIsRelative(maybeNonRelative)) {
|
|
39879
|
+
return maybeNonRelative;
|
|
39933
39880
|
}
|
|
39934
|
-
if (relativePreference === 3 /* ExternalNonRelative */) {
|
|
39881
|
+
if (relativePreference === 3 /* ExternalNonRelative */ && !pathIsRelative(maybeNonRelative)) {
|
|
39935
39882
|
const projectDirectory = compilerOptions.configFilePath ? toPath(getDirectoryPath(compilerOptions.configFilePath), host.getCurrentDirectory(), info.getCanonicalFileName) : info.getCanonicalFileName(host.getCurrentDirectory());
|
|
39936
39883
|
const modulePath = toPath(moduleFileName, projectDirectory, getCanonicalFileName);
|
|
39937
39884
|
const sourceIsInternal = startsWith(sourceDirectory, projectDirectory);
|
|
39938
39885
|
const targetIsInternal = startsWith(modulePath, projectDirectory);
|
|
39939
39886
|
if (sourceIsInternal && !targetIsInternal || !sourceIsInternal && targetIsInternal) {
|
|
39940
|
-
return
|
|
39887
|
+
return maybeNonRelative;
|
|
39941
39888
|
}
|
|
39942
39889
|
const nearestTargetPackageJson = getNearestAncestorDirectoryWithPackageJson(host, getDirectoryPath(modulePath));
|
|
39943
39890
|
const nearestSourcePackageJson = getNearestAncestorDirectoryWithPackageJson(host, sourceDirectory);
|
|
39944
39891
|
if (nearestSourcePackageJson !== nearestTargetPackageJson) {
|
|
39945
|
-
return
|
|
39892
|
+
return maybeNonRelative;
|
|
39946
39893
|
}
|
|
39947
39894
|
return relativePath;
|
|
39948
39895
|
}
|
|
39949
|
-
|
|
39950
|
-
Debug.assertNever(relativePreference);
|
|
39951
|
-
return isPathRelativeToParent(nonRelative) || countPathComponents(relativePath) < countPathComponents(nonRelative) ? relativePath : nonRelative;
|
|
39896
|
+
return isPathRelativeToParent(maybeNonRelative) || countPathComponents(relativePath) < countPathComponents(maybeNonRelative) ? relativePath : maybeNonRelative;
|
|
39952
39897
|
}
|
|
39953
39898
|
function countPathComponents(path) {
|
|
39954
39899
|
let count = 0;
|
|
@@ -76627,10 +76572,10 @@ ${lanes.join("\n")}
|
|
|
76627
76572
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
76628
76573
|
);
|
|
76629
76574
|
},
|
|
76630
|
-
[308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context,
|
|
76575
|
+
[308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
76631
76576
|
return context.factory.updateSourceFile(
|
|
76632
76577
|
node,
|
|
76633
|
-
visitLexicalEnvironment(node.statements, visitor, context
|
|
76578
|
+
visitLexicalEnvironment(node.statements, visitor, context)
|
|
76634
76579
|
);
|
|
76635
76580
|
},
|
|
76636
76581
|
[353 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -94939,7 +94884,7 @@ ${lanes.join("\n")}
|
|
|
94939
94884
|
const sourceMap = sourceMapGenerator.toString();
|
|
94940
94885
|
writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap, false, sourceFiles);
|
|
94941
94886
|
if (printer.bundleFileInfo)
|
|
94942
|
-
printer.bundleFileInfo.mapHash = computeSignature(sourceMap,
|
|
94887
|
+
printer.bundleFileInfo.mapHash = computeSignature(sourceMap, host);
|
|
94943
94888
|
}
|
|
94944
94889
|
} else {
|
|
94945
94890
|
writer.writeLine();
|
|
@@ -94947,7 +94892,7 @@ ${lanes.join("\n")}
|
|
|
94947
94892
|
const text = writer.getText();
|
|
94948
94893
|
writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform2.diagnostics });
|
|
94949
94894
|
if (printer.bundleFileInfo)
|
|
94950
|
-
printer.bundleFileInfo.hash = computeSignature(text,
|
|
94895
|
+
printer.bundleFileInfo.hash = computeSignature(text, host);
|
|
94951
94896
|
writer.clear();
|
|
94952
94897
|
}
|
|
94953
94898
|
function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) {
|
|
@@ -95051,7 +94996,6 @@ ${lanes.join("\n")}
|
|
|
95051
94996
|
return result;
|
|
95052
94997
|
}
|
|
95053
94998
|
function emitUsingBuildInfoWorker(config, host, getCommandLine, customTransformers) {
|
|
95054
|
-
const createHash = maybeBind(host, host.createHash);
|
|
95055
94999
|
const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle(config.options, false);
|
|
95056
95000
|
const buildInfo = host.getBuildInfo(buildInfoPath, config.options.configFilePath);
|
|
95057
95001
|
if (!buildInfo)
|
|
@@ -95061,22 +95005,22 @@ ${lanes.join("\n")}
|
|
|
95061
95005
|
const jsFileText = host.readFile(Debug.checkDefined(jsFilePath));
|
|
95062
95006
|
if (!jsFileText)
|
|
95063
95007
|
return jsFilePath;
|
|
95064
|
-
if (computeSignature(jsFileText,
|
|
95008
|
+
if (computeSignature(jsFileText, host) !== buildInfo.bundle.js.hash)
|
|
95065
95009
|
return jsFilePath;
|
|
95066
95010
|
const sourceMapText = sourceMapFilePath && host.readFile(sourceMapFilePath);
|
|
95067
95011
|
if (sourceMapFilePath && !sourceMapText || config.options.inlineSourceMap)
|
|
95068
95012
|
return sourceMapFilePath || "inline sourcemap decoding";
|
|
95069
|
-
if (sourceMapFilePath && computeSignature(sourceMapText,
|
|
95013
|
+
if (sourceMapFilePath && computeSignature(sourceMapText, host) !== buildInfo.bundle.js.mapHash)
|
|
95070
95014
|
return sourceMapFilePath;
|
|
95071
95015
|
const declarationText = declarationFilePath && host.readFile(declarationFilePath);
|
|
95072
95016
|
if (declarationFilePath && !declarationText)
|
|
95073
95017
|
return declarationFilePath;
|
|
95074
|
-
if (declarationFilePath && computeSignature(declarationText,
|
|
95018
|
+
if (declarationFilePath && computeSignature(declarationText, host) !== buildInfo.bundle.dts.hash)
|
|
95075
95019
|
return declarationFilePath;
|
|
95076
95020
|
const declarationMapText = declarationMapPath && host.readFile(declarationMapPath);
|
|
95077
95021
|
if (declarationMapPath && !declarationMapText || config.options.inlineSourceMap)
|
|
95078
95022
|
return declarationMapPath || "inline sourcemap decoding";
|
|
95079
|
-
if (declarationMapPath && computeSignature(declarationMapText,
|
|
95023
|
+
if (declarationMapPath && computeSignature(declarationMapText, host) !== buildInfo.bundle.dts.mapHash)
|
|
95080
95024
|
return declarationMapPath;
|
|
95081
95025
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
|
|
95082
95026
|
const ownPrependInput = createInputFilesWithFileTexts(
|
|
@@ -95146,7 +95090,7 @@ ${lanes.join("\n")}
|
|
|
95146
95090
|
getBuildInfo: (bundle) => {
|
|
95147
95091
|
const program = buildInfo.program;
|
|
95148
95092
|
if (program && changedDtsText !== void 0 && config.options.composite) {
|
|
95149
|
-
program.outSignature = computeSignature(changedDtsText,
|
|
95093
|
+
program.outSignature = computeSignature(changedDtsText, host, changedDtsData);
|
|
95150
95094
|
}
|
|
95151
95095
|
const { js, dts, sourceFiles } = buildInfo.bundle;
|
|
95152
95096
|
bundle.js.sources = js.sources;
|
|
@@ -95159,7 +95103,7 @@ ${lanes.join("\n")}
|
|
|
95159
95103
|
getSourceFileFromReference: returnUndefined,
|
|
95160
95104
|
redirectTargetsMap: createMultiMap(),
|
|
95161
95105
|
getFileIncludeReasons: notImplemented,
|
|
95162
|
-
createHash
|
|
95106
|
+
createHash: maybeBind(host, host.createHash)
|
|
95163
95107
|
};
|
|
95164
95108
|
emitFiles(
|
|
95165
95109
|
notImplementedResolver,
|
|
@@ -103354,7 +103298,7 @@ ${lanes.join("\n")}
|
|
|
103354
103298
|
return oldState && !oldState.referencedMap === !newReferencedMap;
|
|
103355
103299
|
}
|
|
103356
103300
|
BuilderState2.canReuseOldState = canReuseOldState;
|
|
103357
|
-
function create(newProgram,
|
|
103301
|
+
function create(newProgram, oldState, disableUseFileVersionAsSignature) {
|
|
103358
103302
|
var _a2, _b, _c;
|
|
103359
103303
|
const fileInfos = /* @__PURE__ */ new Map();
|
|
103360
103304
|
const options = newProgram.getCompilerOptions();
|
|
@@ -103362,6 +103306,7 @@ ${lanes.join("\n")}
|
|
|
103362
103306
|
const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
|
|
103363
103307
|
const exportedModulesMap = referencedMap ? createManyToManyPathMap() : void 0;
|
|
103364
103308
|
const useOldState = canReuseOldState(referencedMap, oldState);
|
|
103309
|
+
const getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames());
|
|
103365
103310
|
newProgram.getTypeChecker();
|
|
103366
103311
|
for (const sourceFile of newProgram.getSourceFiles()) {
|
|
103367
103312
|
const version2 = Debug.checkDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set");
|
|
@@ -103400,30 +103345,29 @@ ${lanes.join("\n")}
|
|
|
103400
103345
|
state.allFileNames = void 0;
|
|
103401
103346
|
}
|
|
103402
103347
|
BuilderState2.releaseCache = releaseCache2;
|
|
103403
|
-
function getFilesAffectedBy(state, programOfThisState, path, cancellationToken,
|
|
103348
|
+
function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, host) {
|
|
103404
103349
|
var _a2, _b;
|
|
103405
103350
|
const result = getFilesAffectedByWithOldState(
|
|
103406
103351
|
state,
|
|
103407
103352
|
programOfThisState,
|
|
103408
103353
|
path,
|
|
103409
103354
|
cancellationToken,
|
|
103410
|
-
|
|
103411
|
-
getCanonicalFileName
|
|
103355
|
+
host
|
|
103412
103356
|
);
|
|
103413
103357
|
(_a2 = state.oldSignatures) == null ? void 0 : _a2.clear();
|
|
103414
103358
|
(_b = state.oldExportedModulesMap) == null ? void 0 : _b.clear();
|
|
103415
103359
|
return result;
|
|
103416
103360
|
}
|
|
103417
103361
|
BuilderState2.getFilesAffectedBy = getFilesAffectedBy;
|
|
103418
|
-
function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken,
|
|
103362
|
+
function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host) {
|
|
103419
103363
|
const sourceFile = programOfThisState.getSourceFileByPath(path);
|
|
103420
103364
|
if (!sourceFile) {
|
|
103421
103365
|
return emptyArray;
|
|
103422
103366
|
}
|
|
103423
|
-
if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken,
|
|
103367
|
+
if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host)) {
|
|
103424
103368
|
return [sourceFile];
|
|
103425
103369
|
}
|
|
103426
|
-
return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken,
|
|
103370
|
+
return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host);
|
|
103427
103371
|
}
|
|
103428
103372
|
BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
|
|
103429
103373
|
function updateSignatureOfFile(state, signature, path) {
|
|
@@ -103431,7 +103375,7 @@ ${lanes.join("\n")}
|
|
|
103431
103375
|
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
|
|
103432
103376
|
}
|
|
103433
103377
|
BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
|
|
103434
|
-
function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken,
|
|
103378
|
+
function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) {
|
|
103435
103379
|
var _a2;
|
|
103436
103380
|
if ((_a2 = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a2.has(sourceFile.resolvedPath))
|
|
103437
103381
|
return false;
|
|
@@ -103444,10 +103388,10 @@ ${lanes.join("\n")}
|
|
|
103444
103388
|
(fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => {
|
|
103445
103389
|
Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`);
|
|
103446
103390
|
latestSignature = computeSignatureWithDiagnostics(
|
|
103391
|
+
programOfThisState,
|
|
103447
103392
|
sourceFile,
|
|
103448
103393
|
text,
|
|
103449
|
-
|
|
103450
|
-
getCanonicalFileName,
|
|
103394
|
+
host,
|
|
103451
103395
|
data
|
|
103452
103396
|
);
|
|
103453
103397
|
if (latestSignature !== prevSignature) {
|
|
@@ -103586,7 +103530,7 @@ ${lanes.join("\n")}
|
|
|
103586
103530
|
}
|
|
103587
103531
|
return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
|
|
103588
103532
|
}
|
|
103589
|
-
function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken,
|
|
103533
|
+
function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, host) {
|
|
103590
103534
|
if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) {
|
|
103591
103535
|
return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
|
|
103592
103536
|
}
|
|
@@ -103602,7 +103546,7 @@ ${lanes.join("\n")}
|
|
|
103602
103546
|
if (!seenFileNamesMap.has(currentPath)) {
|
|
103603
103547
|
const currentSourceFile = programOfThisState.getSourceFileByPath(currentPath);
|
|
103604
103548
|
seenFileNamesMap.set(currentPath, currentSourceFile);
|
|
103605
|
-
if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken,
|
|
103549
|
+
if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, host)) {
|
|
103606
103550
|
queue.push(...getReferencedByPaths(state, currentSourceFile.resolvedPath));
|
|
103607
103551
|
}
|
|
103608
103552
|
}
|
|
@@ -103646,9 +103590,9 @@ ${lanes.join("\n")}
|
|
|
103646
103590
|
function hasSameKeys(map1, map2) {
|
|
103647
103591
|
return map1 === map2 || map1 !== void 0 && map2 !== void 0 && map1.size === map2.size && !forEachKey(map1, (key) => !map2.has(key));
|
|
103648
103592
|
}
|
|
103649
|
-
function createBuilderProgramState(newProgram,
|
|
103593
|
+
function createBuilderProgramState(newProgram, oldState, disableUseFileVersionAsSignature) {
|
|
103650
103594
|
var _a2, _b;
|
|
103651
|
-
const state = BuilderState.create(newProgram,
|
|
103595
|
+
const state = BuilderState.create(newProgram, oldState, disableUseFileVersionAsSignature);
|
|
103652
103596
|
state.program = newProgram;
|
|
103653
103597
|
const compilerOptions = newProgram.getCompilerOptions();
|
|
103654
103598
|
state.compilerOptions = compilerOptions;
|
|
@@ -103692,7 +103636,7 @@ ${lanes.join("\n")}
|
|
|
103692
103636
|
return;
|
|
103693
103637
|
const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);
|
|
103694
103638
|
if (diagnostics) {
|
|
103695
|
-
state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram
|
|
103639
|
+
state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram) : diagnostics);
|
|
103696
103640
|
if (!state.semanticDiagnosticsFromOldState) {
|
|
103697
103641
|
state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
|
|
103698
103642
|
}
|
|
@@ -103752,10 +103696,11 @@ ${lanes.join("\n")}
|
|
|
103752
103696
|
function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) {
|
|
103753
103697
|
return !!options.declarationMap === !!oldOptions.declarationMap ? oldEmitSignature : isString(oldEmitSignature) ? [oldEmitSignature] : oldEmitSignature[0];
|
|
103754
103698
|
}
|
|
103755
|
-
function convertToDiagnostics(diagnostics, newProgram
|
|
103699
|
+
function convertToDiagnostics(diagnostics, newProgram) {
|
|
103756
103700
|
if (!diagnostics.length)
|
|
103757
103701
|
return emptyArray;
|
|
103758
|
-
|
|
103702
|
+
let buildInfoDirectory;
|
|
103703
|
+
let getCanonicalFileName;
|
|
103759
103704
|
return diagnostics.map((diagnostic) => {
|
|
103760
103705
|
const result = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3);
|
|
103761
103706
|
result.reportsUnnecessary = diagnostic.reportsUnnecessary;
|
|
@@ -103767,7 +103712,8 @@ ${lanes.join("\n")}
|
|
|
103767
103712
|
return result;
|
|
103768
103713
|
});
|
|
103769
103714
|
function toPath3(path) {
|
|
103770
|
-
|
|
103715
|
+
buildInfoDirectory != null ? buildInfoDirectory : buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
|
|
103716
|
+
return toPath(path, buildInfoDirectory, getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames()));
|
|
103771
103717
|
}
|
|
103772
103718
|
}
|
|
103773
103719
|
function convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3) {
|
|
@@ -103809,7 +103755,7 @@ ${lanes.join("\n")}
|
|
|
103809
103755
|
function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) {
|
|
103810
103756
|
Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath));
|
|
103811
103757
|
}
|
|
103812
|
-
function getNextAffectedFile(state, cancellationToken,
|
|
103758
|
+
function getNextAffectedFile(state, cancellationToken, host) {
|
|
103813
103759
|
var _a2, _b;
|
|
103814
103760
|
while (true) {
|
|
103815
103761
|
const { affectedFiles } = state;
|
|
@@ -103825,8 +103771,6 @@ ${lanes.join("\n")}
|
|
|
103825
103771
|
state,
|
|
103826
103772
|
affectedFile,
|
|
103827
103773
|
cancellationToken,
|
|
103828
|
-
computeHash,
|
|
103829
|
-
getCanonicalFileName,
|
|
103830
103774
|
host
|
|
103831
103775
|
);
|
|
103832
103776
|
return affectedFile;
|
|
@@ -103854,8 +103798,7 @@ ${lanes.join("\n")}
|
|
|
103854
103798
|
program,
|
|
103855
103799
|
nextKey.value,
|
|
103856
103800
|
cancellationToken,
|
|
103857
|
-
|
|
103858
|
-
getCanonicalFileName
|
|
103801
|
+
host
|
|
103859
103802
|
);
|
|
103860
103803
|
state.currentChangedFilePath = nextKey.value;
|
|
103861
103804
|
state.affectedFilesIndex = 0;
|
|
@@ -103907,7 +103850,7 @@ ${lanes.join("\n")}
|
|
|
103907
103850
|
);
|
|
103908
103851
|
}
|
|
103909
103852
|
}
|
|
103910
|
-
function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken,
|
|
103853
|
+
function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) {
|
|
103911
103854
|
removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath);
|
|
103912
103855
|
if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) {
|
|
103913
103856
|
removeDiagnosticsOfLibraryFiles(state);
|
|
@@ -103916,8 +103859,7 @@ ${lanes.join("\n")}
|
|
|
103916
103859
|
Debug.checkDefined(state.program),
|
|
103917
103860
|
affectedFile,
|
|
103918
103861
|
cancellationToken,
|
|
103919
|
-
|
|
103920
|
-
getCanonicalFileName
|
|
103862
|
+
host
|
|
103921
103863
|
);
|
|
103922
103864
|
return;
|
|
103923
103865
|
}
|
|
@@ -103927,12 +103869,10 @@ ${lanes.join("\n")}
|
|
|
103927
103869
|
state,
|
|
103928
103870
|
affectedFile,
|
|
103929
103871
|
cancellationToken,
|
|
103930
|
-
computeHash,
|
|
103931
|
-
getCanonicalFileName,
|
|
103932
103872
|
host
|
|
103933
103873
|
);
|
|
103934
103874
|
}
|
|
103935
|
-
function handleDtsMayChangeOf(state, path, cancellationToken,
|
|
103875
|
+
function handleDtsMayChangeOf(state, path, cancellationToken, host) {
|
|
103936
103876
|
removeSemanticDiagnosticsOf(state, path);
|
|
103937
103877
|
if (!state.changedFilesSet.has(path)) {
|
|
103938
103878
|
const program = Debug.checkDefined(state.program);
|
|
@@ -103943,8 +103883,7 @@ ${lanes.join("\n")}
|
|
|
103943
103883
|
program,
|
|
103944
103884
|
sourceFile,
|
|
103945
103885
|
cancellationToken,
|
|
103946
|
-
|
|
103947
|
-
getCanonicalFileName,
|
|
103886
|
+
host,
|
|
103948
103887
|
!host.disableUseFileVersionAsSignature
|
|
103949
103888
|
);
|
|
103950
103889
|
if (getEmitDeclarations(state.compilerOptions)) {
|
|
@@ -103966,7 +103905,7 @@ ${lanes.join("\n")}
|
|
|
103966
103905
|
const newSignature = Debug.checkDefined(state.fileInfos.get(path)).signature;
|
|
103967
103906
|
return newSignature !== oldSignature;
|
|
103968
103907
|
}
|
|
103969
|
-
function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken,
|
|
103908
|
+
function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host) {
|
|
103970
103909
|
var _a2;
|
|
103971
103910
|
if (!((_a2 = state.fileInfos.get(filePath)) == null ? void 0 : _a2.affectsGlobalScope))
|
|
103972
103911
|
return false;
|
|
@@ -103974,14 +103913,12 @@ ${lanes.join("\n")}
|
|
|
103974
103913
|
state,
|
|
103975
103914
|
file.resolvedPath,
|
|
103976
103915
|
cancellationToken,
|
|
103977
|
-
computeHash,
|
|
103978
|
-
getCanonicalFileName,
|
|
103979
103916
|
host
|
|
103980
103917
|
));
|
|
103981
103918
|
removeDiagnosticsOfLibraryFiles(state);
|
|
103982
103919
|
return true;
|
|
103983
103920
|
}
|
|
103984
|
-
function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken,
|
|
103921
|
+
function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host) {
|
|
103985
103922
|
var _a2;
|
|
103986
103923
|
if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.resolvedPath))
|
|
103987
103924
|
return;
|
|
@@ -103995,9 +103932,9 @@ ${lanes.join("\n")}
|
|
|
103995
103932
|
const currentPath = queue.pop();
|
|
103996
103933
|
if (!seenFileNamesMap.has(currentPath)) {
|
|
103997
103934
|
seenFileNamesMap.set(currentPath, true);
|
|
103998
|
-
if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken,
|
|
103935
|
+
if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, host))
|
|
103999
103936
|
return;
|
|
104000
|
-
handleDtsMayChangeOf(state, currentPath, cancellationToken,
|
|
103937
|
+
handleDtsMayChangeOf(state, currentPath, cancellationToken, host);
|
|
104001
103938
|
if (isChangedSignature(state, currentPath)) {
|
|
104002
103939
|
const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath);
|
|
104003
103940
|
queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath));
|
|
@@ -104007,7 +103944,7 @@ ${lanes.join("\n")}
|
|
|
104007
103944
|
}
|
|
104008
103945
|
const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
|
|
104009
103946
|
(_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
|
|
104010
|
-
if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken,
|
|
103947
|
+
if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, host))
|
|
104011
103948
|
return true;
|
|
104012
103949
|
const references = state.referencedMap.getKeys(exportedFromPath);
|
|
104013
103950
|
return references && forEachKey(
|
|
@@ -104017,28 +103954,24 @@ ${lanes.join("\n")}
|
|
|
104017
103954
|
filePath,
|
|
104018
103955
|
seenFileAndExportsOfFile,
|
|
104019
103956
|
cancellationToken,
|
|
104020
|
-
computeHash,
|
|
104021
|
-
getCanonicalFileName,
|
|
104022
103957
|
host
|
|
104023
103958
|
)
|
|
104024
103959
|
);
|
|
104025
103960
|
});
|
|
104026
103961
|
}
|
|
104027
|
-
function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken,
|
|
103962
|
+
function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, host) {
|
|
104028
103963
|
var _a2, _b;
|
|
104029
103964
|
if (!tryAddToSet(seenFileAndExportsOfFile, filePath))
|
|
104030
103965
|
return void 0;
|
|
104031
|
-
if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken,
|
|
103966
|
+
if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host))
|
|
104032
103967
|
return true;
|
|
104033
|
-
handleDtsMayChangeOf(state, filePath, cancellationToken,
|
|
103968
|
+
handleDtsMayChangeOf(state, filePath, cancellationToken, host);
|
|
104034
103969
|
(_a2 = state.exportedModulesMap.getKeys(filePath)) == null ? void 0 : _a2.forEach(
|
|
104035
103970
|
(exportedFromPath) => handleDtsMayChangeOfFileAndExportsOfFile(
|
|
104036
103971
|
state,
|
|
104037
103972
|
exportedFromPath,
|
|
104038
103973
|
seenFileAndExportsOfFile,
|
|
104039
103974
|
cancellationToken,
|
|
104040
|
-
computeHash,
|
|
104041
|
-
getCanonicalFileName,
|
|
104042
103975
|
host
|
|
104043
103976
|
)
|
|
104044
103977
|
);
|
|
@@ -104047,8 +103980,6 @@ ${lanes.join("\n")}
|
|
|
104047
103980
|
state,
|
|
104048
103981
|
referencingFilePath,
|
|
104049
103982
|
cancellationToken,
|
|
104050
|
-
computeHash,
|
|
104051
|
-
getCanonicalFileName,
|
|
104052
103983
|
host
|
|
104053
103984
|
)
|
|
104054
103985
|
);
|
|
@@ -104077,9 +104008,10 @@ ${lanes.join("\n")}
|
|
|
104077
104008
|
function isProgramBundleEmitBuildInfo(info) {
|
|
104078
104009
|
return !!outFile(info.options || {});
|
|
104079
104010
|
}
|
|
104080
|
-
function getBuildInfo2(state,
|
|
104011
|
+
function getBuildInfo2(state, bundle) {
|
|
104081
104012
|
var _a2, _b, _c;
|
|
104082
104013
|
const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory();
|
|
104014
|
+
const getCanonicalFileName = createGetCanonicalFileName(state.program.useCaseSensitiveFileNames());
|
|
104083
104015
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
|
|
104084
104016
|
const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
|
|
104085
104017
|
const fileNames = [];
|
|
@@ -104298,8 +104230,9 @@ ${lanes.join("\n")}
|
|
|
104298
104230
|
function getTextHandlingSourceMapForSignature(text, data) {
|
|
104299
104231
|
return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text;
|
|
104300
104232
|
}
|
|
104301
|
-
function computeSignatureWithDiagnostics(sourceFile, text,
|
|
104302
|
-
var _a2;
|
|
104233
|
+
function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) {
|
|
104234
|
+
var _a2, _b;
|
|
104235
|
+
let getCanonicalFileName;
|
|
104303
104236
|
text = getTextHandlingSourceMapForSignature(text, data);
|
|
104304
104237
|
let sourceFileDirectory;
|
|
104305
104238
|
if ((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length) {
|
|
@@ -104307,7 +104240,7 @@ ${lanes.join("\n")}
|
|
|
104307
104240
|
(diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`
|
|
104308
104241
|
).join("\n");
|
|
104309
104242
|
}
|
|
104310
|
-
return (
|
|
104243
|
+
return ((_b = host.createHash) != null ? _b : generateDjb2Hash)(text);
|
|
104311
104244
|
function flattenDiagnosticMessageText2(diagnostic) {
|
|
104312
104245
|
return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? "" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText2).join("\n");
|
|
104313
104246
|
}
|
|
@@ -104316,11 +104249,16 @@ ${lanes.join("\n")}
|
|
|
104316
104249
|
return `(${diagnostic.start},${diagnostic.length})`;
|
|
104317
104250
|
if (sourceFileDirectory === void 0)
|
|
104318
104251
|
sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath);
|
|
104319
|
-
return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(
|
|
104252
|
+
return `${ensurePathIsNonModuleName(getRelativePathFromDirectory(
|
|
104253
|
+
sourceFileDirectory,
|
|
104254
|
+
diagnostic.file.resolvedPath,
|
|
104255
|
+
getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(program.useCaseSensitiveFileNames())
|
|
104256
|
+
))}(${diagnostic.start},${diagnostic.length})`;
|
|
104320
104257
|
}
|
|
104321
104258
|
}
|
|
104322
|
-
function computeSignature(text,
|
|
104323
|
-
|
|
104259
|
+
function computeSignature(text, host, data) {
|
|
104260
|
+
var _a2;
|
|
104261
|
+
return ((_a2 = host.createHash) != null ? _a2 : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
|
|
104324
104262
|
}
|
|
104325
104263
|
function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) {
|
|
104326
104264
|
let oldState = oldProgram && oldProgram.getState();
|
|
@@ -104329,10 +104267,8 @@ ${lanes.join("\n")}
|
|
|
104329
104267
|
oldState = void 0;
|
|
104330
104268
|
return oldProgram;
|
|
104331
104269
|
}
|
|
104332
|
-
const
|
|
104333
|
-
|
|
104334
|
-
const state = createBuilderProgramState(newProgram, getCanonicalFileName, oldState, host.disableUseFileVersionAsSignature);
|
|
104335
|
-
newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, getCanonicalFileName, bundle);
|
|
104270
|
+
const state = createBuilderProgramState(newProgram, oldState, host.disableUseFileVersionAsSignature);
|
|
104271
|
+
newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, bundle);
|
|
104336
104272
|
newProgram = void 0;
|
|
104337
104273
|
oldProgram = void 0;
|
|
104338
104274
|
oldState = void 0;
|
|
@@ -104366,7 +104302,7 @@ ${lanes.join("\n")}
|
|
|
104366
104302
|
}
|
|
104367
104303
|
function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
|
|
104368
104304
|
var _a2, _b, _c, _d, _e;
|
|
104369
|
-
let affected = getNextAffectedFile(state, cancellationToken,
|
|
104305
|
+
let affected = getNextAffectedFile(state, cancellationToken, host);
|
|
104370
104306
|
const programEmitKind = getBuilderFileEmit(state.compilerOptions);
|
|
104371
104307
|
let emitKind = emitOnlyDtsFiles ? programEmitKind & 24 /* AllDts */ : programEmitKind;
|
|
104372
104308
|
if (!affected) {
|
|
@@ -104440,10 +104376,10 @@ ${lanes.join("\n")}
|
|
|
104440
104376
|
const info = state.fileInfos.get(file.resolvedPath);
|
|
104441
104377
|
if (info.signature === file.version) {
|
|
104442
104378
|
const signature = computeSignatureWithDiagnostics(
|
|
104379
|
+
state.program,
|
|
104443
104380
|
file,
|
|
104444
104381
|
text,
|
|
104445
|
-
|
|
104446
|
-
getCanonicalFileName,
|
|
104382
|
+
host,
|
|
104447
104383
|
data
|
|
104448
104384
|
);
|
|
104449
104385
|
if (!((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length))
|
|
@@ -104487,7 +104423,7 @@ ${lanes.join("\n")}
|
|
|
104487
104423
|
state.program.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
|
|
104488
104424
|
function handleNewSignature(oldSignatureFormat, newSignature) {
|
|
104489
104425
|
const oldSignature = !oldSignatureFormat || isString(oldSignatureFormat) ? oldSignatureFormat : oldSignatureFormat[0];
|
|
104490
|
-
newSignature != null ? newSignature : newSignature = computeSignature(text,
|
|
104426
|
+
newSignature != null ? newSignature : newSignature = computeSignature(text, host, data);
|
|
104491
104427
|
if (newSignature === oldSignature) {
|
|
104492
104428
|
if (oldSignatureFormat === oldSignature)
|
|
104493
104429
|
return void 0;
|
|
@@ -104543,7 +104479,7 @@ ${lanes.join("\n")}
|
|
|
104543
104479
|
}
|
|
104544
104480
|
function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) {
|
|
104545
104481
|
while (true) {
|
|
104546
|
-
const affected = getNextAffectedFile(state, cancellationToken,
|
|
104482
|
+
const affected = getNextAffectedFile(state, cancellationToken, host);
|
|
104547
104483
|
let result;
|
|
104548
104484
|
if (!affected)
|
|
104549
104485
|
return void 0;
|
|
@@ -116412,6 +116348,7 @@ ${lanes.join("\n")}
|
|
|
116412
116348
|
trace: maybeBind(host, host.trace),
|
|
116413
116349
|
resolveModuleNames: maybeBind(host, host.resolveModuleNames),
|
|
116414
116350
|
getModuleResolutionCache: maybeBind(host, host.getModuleResolutionCache),
|
|
116351
|
+
createHash: maybeBind(host, host.createHash),
|
|
116415
116352
|
resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives),
|
|
116416
116353
|
useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect),
|
|
116417
116354
|
getParsedCommandLine
|
|
@@ -146916,6 +146853,63 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146916
146853
|
}
|
|
146917
146854
|
});
|
|
146918
146855
|
|
|
146856
|
+
// src/deprecatedCompat/deprecate.ts
|
|
146857
|
+
function getTypeScriptVersion() {
|
|
146858
|
+
return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
|
|
146859
|
+
}
|
|
146860
|
+
function formatDeprecationMessage(name, error, errorAfter, since, message) {
|
|
146861
|
+
let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
|
|
146862
|
+
deprecationMessage += `'${name}' `;
|
|
146863
|
+
deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
|
|
146864
|
+
deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
|
|
146865
|
+
deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
|
|
146866
|
+
return deprecationMessage;
|
|
146867
|
+
}
|
|
146868
|
+
function createErrorDeprecation(name, errorAfter, since, message) {
|
|
146869
|
+
const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
|
|
146870
|
+
return () => {
|
|
146871
|
+
throw new TypeError(deprecationMessage);
|
|
146872
|
+
};
|
|
146873
|
+
}
|
|
146874
|
+
function createWarningDeprecation(name, errorAfter, since, message) {
|
|
146875
|
+
let hasWrittenDeprecation = false;
|
|
146876
|
+
return () => {
|
|
146877
|
+
if (enableDeprecationWarnings && !hasWrittenDeprecation) {
|
|
146878
|
+
Debug.log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
|
|
146879
|
+
hasWrittenDeprecation = true;
|
|
146880
|
+
}
|
|
146881
|
+
};
|
|
146882
|
+
}
|
|
146883
|
+
function createDeprecation(name, options = {}) {
|
|
146884
|
+
var _a2, _b;
|
|
146885
|
+
const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
|
|
146886
|
+
const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
|
|
146887
|
+
const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
|
|
146888
|
+
const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
|
|
146889
|
+
const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
|
|
146890
|
+
const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
|
|
146891
|
+
return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
|
|
146892
|
+
}
|
|
146893
|
+
function wrapFunction(deprecation, func) {
|
|
146894
|
+
return function() {
|
|
146895
|
+
deprecation();
|
|
146896
|
+
return func.apply(this, arguments);
|
|
146897
|
+
};
|
|
146898
|
+
}
|
|
146899
|
+
function deprecate(func, options) {
|
|
146900
|
+
var _a2;
|
|
146901
|
+
const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : Debug.getFunctionName(func), options);
|
|
146902
|
+
return wrapFunction(deprecation, func);
|
|
146903
|
+
}
|
|
146904
|
+
var enableDeprecationWarnings, typeScriptVersion2;
|
|
146905
|
+
var init_deprecate = __esm({
|
|
146906
|
+
"src/deprecatedCompat/deprecate.ts"() {
|
|
146907
|
+
"use strict";
|
|
146908
|
+
init_ts5();
|
|
146909
|
+
enableDeprecationWarnings = true;
|
|
146910
|
+
}
|
|
146911
|
+
});
|
|
146912
|
+
|
|
146919
146913
|
// src/deprecatedCompat/deprecations.ts
|
|
146920
146914
|
function createOverload(name, overloads, binder2, deprecations) {
|
|
146921
146915
|
Object.defineProperty(call, "name", { ...Object.getOwnPropertyDescriptor(call, "name"), value: name });
|
|
@@ -146923,7 +146917,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146923
146917
|
for (const key of Object.keys(deprecations)) {
|
|
146924
146918
|
const index = +key;
|
|
146925
146919
|
if (!isNaN(index) && hasProperty(overloads, `${index}`)) {
|
|
146926
|
-
overloads[index] =
|
|
146920
|
+
overloads[index] = deprecate(overloads[index], { ...deprecations[index], name });
|
|
146927
146921
|
}
|
|
146928
146922
|
}
|
|
146929
146923
|
}
|
|
@@ -146964,6 +146958,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146964
146958
|
"src/deprecatedCompat/deprecations.ts"() {
|
|
146965
146959
|
"use strict";
|
|
146966
146960
|
init_ts5();
|
|
146961
|
+
init_deprecate();
|
|
146967
146962
|
}
|
|
146968
146963
|
});
|
|
146969
146964
|
|
|
@@ -146973,337 +146968,338 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146973
146968
|
"src/deprecatedCompat/4.0/nodeFactoryTopLevelExports.ts"() {
|
|
146974
146969
|
"use strict";
|
|
146975
146970
|
init_ts5();
|
|
146971
|
+
init_deprecate();
|
|
146976
146972
|
factoryDeprecation = { since: "4.0", warnAfter: "4.1", message: "Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead." };
|
|
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 =
|
|
146973
|
+
createNodeArray = deprecate(factory.createNodeArray, factoryDeprecation);
|
|
146974
|
+
createNumericLiteral = deprecate(factory.createNumericLiteral, factoryDeprecation);
|
|
146975
|
+
createBigIntLiteral = deprecate(factory.createBigIntLiteral, factoryDeprecation);
|
|
146976
|
+
createStringLiteral = deprecate(factory.createStringLiteral, factoryDeprecation);
|
|
146977
|
+
createStringLiteralFromNode = deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
|
|
146978
|
+
createRegularExpressionLiteral = deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
|
|
146979
|
+
createLoopVariable = deprecate(factory.createLoopVariable, factoryDeprecation);
|
|
146980
|
+
createUniqueName = deprecate(factory.createUniqueName, factoryDeprecation);
|
|
146981
|
+
createPrivateIdentifier = deprecate(factory.createPrivateIdentifier, factoryDeprecation);
|
|
146982
|
+
createSuper = deprecate(factory.createSuper, factoryDeprecation);
|
|
146983
|
+
createThis = deprecate(factory.createThis, factoryDeprecation);
|
|
146984
|
+
createNull = deprecate(factory.createNull, factoryDeprecation);
|
|
146985
|
+
createTrue = deprecate(factory.createTrue, factoryDeprecation);
|
|
146986
|
+
createFalse = deprecate(factory.createFalse, factoryDeprecation);
|
|
146987
|
+
createModifier = deprecate(factory.createModifier, factoryDeprecation);
|
|
146988
|
+
createModifiersFromModifierFlags = deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
|
|
146989
|
+
createQualifiedName = deprecate(factory.createQualifiedName, factoryDeprecation);
|
|
146990
|
+
updateQualifiedName = deprecate(factory.updateQualifiedName, factoryDeprecation);
|
|
146991
|
+
createComputedPropertyName = deprecate(factory.createComputedPropertyName, factoryDeprecation);
|
|
146992
|
+
updateComputedPropertyName = deprecate(factory.updateComputedPropertyName, factoryDeprecation);
|
|
146993
|
+
createTypeParameterDeclaration = deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
|
|
146994
|
+
updateTypeParameterDeclaration = deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
|
|
146995
|
+
createParameter = deprecate(factory.createParameterDeclaration, factoryDeprecation);
|
|
146996
|
+
updateParameter = deprecate(factory.updateParameterDeclaration, factoryDeprecation);
|
|
146997
|
+
createDecorator = deprecate(factory.createDecorator, factoryDeprecation);
|
|
146998
|
+
updateDecorator = deprecate(factory.updateDecorator, factoryDeprecation);
|
|
146999
|
+
createProperty = deprecate(factory.createPropertyDeclaration, factoryDeprecation);
|
|
147000
|
+
updateProperty = deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
|
|
147001
|
+
createMethod = deprecate(factory.createMethodDeclaration, factoryDeprecation);
|
|
147002
|
+
updateMethod = deprecate(factory.updateMethodDeclaration, factoryDeprecation);
|
|
147003
|
+
createConstructor = deprecate(factory.createConstructorDeclaration, factoryDeprecation);
|
|
147004
|
+
updateConstructor = deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
|
|
147005
|
+
createGetAccessor = deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
|
|
147006
|
+
updateGetAccessor = deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
|
|
147007
|
+
createSetAccessor = deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
|
|
147008
|
+
updateSetAccessor = deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
|
|
147009
|
+
createCallSignature = deprecate(factory.createCallSignature, factoryDeprecation);
|
|
147010
|
+
updateCallSignature = deprecate(factory.updateCallSignature, factoryDeprecation);
|
|
147011
|
+
createConstructSignature = deprecate(factory.createConstructSignature, factoryDeprecation);
|
|
147012
|
+
updateConstructSignature = deprecate(factory.updateConstructSignature, factoryDeprecation);
|
|
147013
|
+
updateIndexSignature = deprecate(factory.updateIndexSignature, factoryDeprecation);
|
|
147014
|
+
createKeywordTypeNode = deprecate(factory.createKeywordTypeNode, factoryDeprecation);
|
|
147015
|
+
createTypePredicateNodeWithModifier = deprecate(factory.createTypePredicateNode, factoryDeprecation);
|
|
147016
|
+
updateTypePredicateNodeWithModifier = deprecate(factory.updateTypePredicateNode, factoryDeprecation);
|
|
147017
|
+
createTypeReferenceNode = deprecate(factory.createTypeReferenceNode, factoryDeprecation);
|
|
147018
|
+
updateTypeReferenceNode = deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
|
|
147019
|
+
createFunctionTypeNode = deprecate(factory.createFunctionTypeNode, factoryDeprecation);
|
|
147020
|
+
updateFunctionTypeNode = deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
|
|
147021
|
+
createConstructorTypeNode = deprecate((typeParameters, parameters, type) => {
|
|
147026
147022
|
return factory.createConstructorTypeNode(void 0, typeParameters, parameters, type);
|
|
147027
147023
|
}, factoryDeprecation);
|
|
147028
|
-
updateConstructorTypeNode =
|
|
147024
|
+
updateConstructorTypeNode = deprecate((node, typeParameters, parameters, type) => {
|
|
147029
147025
|
return factory.updateConstructorTypeNode(node, node.modifiers, typeParameters, parameters, type);
|
|
147030
147026
|
}, 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 =
|
|
147027
|
+
createTypeQueryNode = deprecate(factory.createTypeQueryNode, factoryDeprecation);
|
|
147028
|
+
updateTypeQueryNode = deprecate(factory.updateTypeQueryNode, factoryDeprecation);
|
|
147029
|
+
createTypeLiteralNode = deprecate(factory.createTypeLiteralNode, factoryDeprecation);
|
|
147030
|
+
updateTypeLiteralNode = deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
|
|
147031
|
+
createArrayTypeNode = deprecate(factory.createArrayTypeNode, factoryDeprecation);
|
|
147032
|
+
updateArrayTypeNode = deprecate(factory.updateArrayTypeNode, factoryDeprecation);
|
|
147033
|
+
createTupleTypeNode = deprecate(factory.createTupleTypeNode, factoryDeprecation);
|
|
147034
|
+
updateTupleTypeNode = deprecate(factory.updateTupleTypeNode, factoryDeprecation);
|
|
147035
|
+
createOptionalTypeNode = deprecate(factory.createOptionalTypeNode, factoryDeprecation);
|
|
147036
|
+
updateOptionalTypeNode = deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
|
|
147037
|
+
createRestTypeNode = deprecate(factory.createRestTypeNode, factoryDeprecation);
|
|
147038
|
+
updateRestTypeNode = deprecate(factory.updateRestTypeNode, factoryDeprecation);
|
|
147039
|
+
createUnionTypeNode = deprecate(factory.createUnionTypeNode, factoryDeprecation);
|
|
147040
|
+
updateUnionTypeNode = deprecate(factory.updateUnionTypeNode, factoryDeprecation);
|
|
147041
|
+
createIntersectionTypeNode = deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
|
|
147042
|
+
updateIntersectionTypeNode = deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
|
|
147043
|
+
createConditionalTypeNode = deprecate(factory.createConditionalTypeNode, factoryDeprecation);
|
|
147044
|
+
updateConditionalTypeNode = deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
|
|
147045
|
+
createInferTypeNode = deprecate(factory.createInferTypeNode, factoryDeprecation);
|
|
147046
|
+
updateInferTypeNode = deprecate(factory.updateInferTypeNode, factoryDeprecation);
|
|
147047
|
+
createImportTypeNode = deprecate(factory.createImportTypeNode, factoryDeprecation);
|
|
147048
|
+
updateImportTypeNode = deprecate(factory.updateImportTypeNode, factoryDeprecation);
|
|
147049
|
+
createParenthesizedType = deprecate(factory.createParenthesizedType, factoryDeprecation);
|
|
147050
|
+
updateParenthesizedType = deprecate(factory.updateParenthesizedType, factoryDeprecation);
|
|
147051
|
+
createThisTypeNode = deprecate(factory.createThisTypeNode, factoryDeprecation);
|
|
147052
|
+
updateTypeOperatorNode = deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
|
|
147053
|
+
createIndexedAccessTypeNode = deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
|
|
147054
|
+
updateIndexedAccessTypeNode = deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
|
|
147055
|
+
createMappedTypeNode = deprecate(factory.createMappedTypeNode, factoryDeprecation);
|
|
147056
|
+
updateMappedTypeNode = deprecate(factory.updateMappedTypeNode, factoryDeprecation);
|
|
147057
|
+
createLiteralTypeNode = deprecate(factory.createLiteralTypeNode, factoryDeprecation);
|
|
147058
|
+
updateLiteralTypeNode = deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
|
|
147059
|
+
createObjectBindingPattern = deprecate(factory.createObjectBindingPattern, factoryDeprecation);
|
|
147060
|
+
updateObjectBindingPattern = deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
|
|
147061
|
+
createArrayBindingPattern = deprecate(factory.createArrayBindingPattern, factoryDeprecation);
|
|
147062
|
+
updateArrayBindingPattern = deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
|
|
147063
|
+
createBindingElement = deprecate(factory.createBindingElement, factoryDeprecation);
|
|
147064
|
+
updateBindingElement = deprecate(factory.updateBindingElement, factoryDeprecation);
|
|
147065
|
+
createArrayLiteral = deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
|
|
147066
|
+
updateArrayLiteral = deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
|
|
147067
|
+
createObjectLiteral = deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
|
|
147068
|
+
updateObjectLiteral = deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
|
|
147069
|
+
createPropertyAccess = deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
|
|
147070
|
+
updatePropertyAccess = deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
|
|
147071
|
+
createPropertyAccessChain = deprecate(factory.createPropertyAccessChain, factoryDeprecation);
|
|
147072
|
+
updatePropertyAccessChain = deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
|
|
147073
|
+
createElementAccess = deprecate(factory.createElementAccessExpression, factoryDeprecation);
|
|
147074
|
+
updateElementAccess = deprecate(factory.updateElementAccessExpression, factoryDeprecation);
|
|
147075
|
+
createElementAccessChain = deprecate(factory.createElementAccessChain, factoryDeprecation);
|
|
147076
|
+
updateElementAccessChain = deprecate(factory.updateElementAccessChain, factoryDeprecation);
|
|
147077
|
+
createCall = deprecate(factory.createCallExpression, factoryDeprecation);
|
|
147078
|
+
updateCall = deprecate(factory.updateCallExpression, factoryDeprecation);
|
|
147079
|
+
createCallChain = deprecate(factory.createCallChain, factoryDeprecation);
|
|
147080
|
+
updateCallChain = deprecate(factory.updateCallChain, factoryDeprecation);
|
|
147081
|
+
createNew = deprecate(factory.createNewExpression, factoryDeprecation);
|
|
147082
|
+
updateNew = deprecate(factory.updateNewExpression, factoryDeprecation);
|
|
147083
|
+
createTypeAssertion = deprecate(factory.createTypeAssertion, factoryDeprecation);
|
|
147084
|
+
updateTypeAssertion = deprecate(factory.updateTypeAssertion, factoryDeprecation);
|
|
147085
|
+
createParen = deprecate(factory.createParenthesizedExpression, factoryDeprecation);
|
|
147086
|
+
updateParen = deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
|
|
147087
|
+
createFunctionExpression = deprecate(factory.createFunctionExpression, factoryDeprecation);
|
|
147088
|
+
updateFunctionExpression = deprecate(factory.updateFunctionExpression, factoryDeprecation);
|
|
147089
|
+
createDelete = deprecate(factory.createDeleteExpression, factoryDeprecation);
|
|
147090
|
+
updateDelete = deprecate(factory.updateDeleteExpression, factoryDeprecation);
|
|
147091
|
+
createTypeOf = deprecate(factory.createTypeOfExpression, factoryDeprecation);
|
|
147092
|
+
updateTypeOf = deprecate(factory.updateTypeOfExpression, factoryDeprecation);
|
|
147093
|
+
createVoid = deprecate(factory.createVoidExpression, factoryDeprecation);
|
|
147094
|
+
updateVoid = deprecate(factory.updateVoidExpression, factoryDeprecation);
|
|
147095
|
+
createAwait = deprecate(factory.createAwaitExpression, factoryDeprecation);
|
|
147096
|
+
updateAwait = deprecate(factory.updateAwaitExpression, factoryDeprecation);
|
|
147097
|
+
createPrefix = deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
|
|
147098
|
+
updatePrefix = deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
|
|
147099
|
+
createPostfix = deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
|
|
147100
|
+
updatePostfix = deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
|
|
147101
|
+
createBinary = deprecate(factory.createBinaryExpression, factoryDeprecation);
|
|
147102
|
+
updateConditional = deprecate(factory.updateConditionalExpression, factoryDeprecation);
|
|
147103
|
+
createTemplateExpression = deprecate(factory.createTemplateExpression, factoryDeprecation);
|
|
147104
|
+
updateTemplateExpression = deprecate(factory.updateTemplateExpression, factoryDeprecation);
|
|
147105
|
+
createTemplateHead = deprecate(factory.createTemplateHead, factoryDeprecation);
|
|
147106
|
+
createTemplateMiddle = deprecate(factory.createTemplateMiddle, factoryDeprecation);
|
|
147107
|
+
createTemplateTail = deprecate(factory.createTemplateTail, factoryDeprecation);
|
|
147108
|
+
createNoSubstitutionTemplateLiteral = deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
|
|
147109
|
+
updateYield = deprecate(factory.updateYieldExpression, factoryDeprecation);
|
|
147110
|
+
createSpread = deprecate(factory.createSpreadElement, factoryDeprecation);
|
|
147111
|
+
updateSpread = deprecate(factory.updateSpreadElement, factoryDeprecation);
|
|
147112
|
+
createOmittedExpression = deprecate(factory.createOmittedExpression, factoryDeprecation);
|
|
147113
|
+
createAsExpression = deprecate(factory.createAsExpression, factoryDeprecation);
|
|
147114
|
+
updateAsExpression = deprecate(factory.updateAsExpression, factoryDeprecation);
|
|
147115
|
+
createNonNullExpression = deprecate(factory.createNonNullExpression, factoryDeprecation);
|
|
147116
|
+
updateNonNullExpression = deprecate(factory.updateNonNullExpression, factoryDeprecation);
|
|
147117
|
+
createNonNullChain = deprecate(factory.createNonNullChain, factoryDeprecation);
|
|
147118
|
+
updateNonNullChain = deprecate(factory.updateNonNullChain, factoryDeprecation);
|
|
147119
|
+
createMetaProperty = deprecate(factory.createMetaProperty, factoryDeprecation);
|
|
147120
|
+
updateMetaProperty = deprecate(factory.updateMetaProperty, factoryDeprecation);
|
|
147121
|
+
createTemplateSpan = deprecate(factory.createTemplateSpan, factoryDeprecation);
|
|
147122
|
+
updateTemplateSpan = deprecate(factory.updateTemplateSpan, factoryDeprecation);
|
|
147123
|
+
createSemicolonClassElement = deprecate(factory.createSemicolonClassElement, factoryDeprecation);
|
|
147124
|
+
createBlock = deprecate(factory.createBlock, factoryDeprecation);
|
|
147125
|
+
updateBlock = deprecate(factory.updateBlock, factoryDeprecation);
|
|
147126
|
+
createVariableStatement = deprecate(factory.createVariableStatement, factoryDeprecation);
|
|
147127
|
+
updateVariableStatement = deprecate(factory.updateVariableStatement, factoryDeprecation);
|
|
147128
|
+
createEmptyStatement = deprecate(factory.createEmptyStatement, factoryDeprecation);
|
|
147129
|
+
createExpressionStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
|
|
147130
|
+
updateExpressionStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
|
|
147131
|
+
createStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
|
|
147132
|
+
updateStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
|
|
147133
|
+
createIf = deprecate(factory.createIfStatement, factoryDeprecation);
|
|
147134
|
+
updateIf = deprecate(factory.updateIfStatement, factoryDeprecation);
|
|
147135
|
+
createDo = deprecate(factory.createDoStatement, factoryDeprecation);
|
|
147136
|
+
updateDo = deprecate(factory.updateDoStatement, factoryDeprecation);
|
|
147137
|
+
createWhile = deprecate(factory.createWhileStatement, factoryDeprecation);
|
|
147138
|
+
updateWhile = deprecate(factory.updateWhileStatement, factoryDeprecation);
|
|
147139
|
+
createFor = deprecate(factory.createForStatement, factoryDeprecation);
|
|
147140
|
+
updateFor = deprecate(factory.updateForStatement, factoryDeprecation);
|
|
147141
|
+
createForIn = deprecate(factory.createForInStatement, factoryDeprecation);
|
|
147142
|
+
updateForIn = deprecate(factory.updateForInStatement, factoryDeprecation);
|
|
147143
|
+
createForOf = deprecate(factory.createForOfStatement, factoryDeprecation);
|
|
147144
|
+
updateForOf = deprecate(factory.updateForOfStatement, factoryDeprecation);
|
|
147145
|
+
createContinue = deprecate(factory.createContinueStatement, factoryDeprecation);
|
|
147146
|
+
updateContinue = deprecate(factory.updateContinueStatement, factoryDeprecation);
|
|
147147
|
+
createBreak = deprecate(factory.createBreakStatement, factoryDeprecation);
|
|
147148
|
+
updateBreak = deprecate(factory.updateBreakStatement, factoryDeprecation);
|
|
147149
|
+
createReturn = deprecate(factory.createReturnStatement, factoryDeprecation);
|
|
147150
|
+
updateReturn = deprecate(factory.updateReturnStatement, factoryDeprecation);
|
|
147151
|
+
createWith = deprecate(factory.createWithStatement, factoryDeprecation);
|
|
147152
|
+
updateWith = deprecate(factory.updateWithStatement, factoryDeprecation);
|
|
147153
|
+
createSwitch = deprecate(factory.createSwitchStatement, factoryDeprecation);
|
|
147154
|
+
updateSwitch = deprecate(factory.updateSwitchStatement, factoryDeprecation);
|
|
147155
|
+
createLabel = deprecate(factory.createLabeledStatement, factoryDeprecation);
|
|
147156
|
+
updateLabel = deprecate(factory.updateLabeledStatement, factoryDeprecation);
|
|
147157
|
+
createThrow = deprecate(factory.createThrowStatement, factoryDeprecation);
|
|
147158
|
+
updateThrow = deprecate(factory.updateThrowStatement, factoryDeprecation);
|
|
147159
|
+
createTry = deprecate(factory.createTryStatement, factoryDeprecation);
|
|
147160
|
+
updateTry = deprecate(factory.updateTryStatement, factoryDeprecation);
|
|
147161
|
+
createDebuggerStatement = deprecate(factory.createDebuggerStatement, factoryDeprecation);
|
|
147162
|
+
createVariableDeclarationList = deprecate(factory.createVariableDeclarationList, factoryDeprecation);
|
|
147163
|
+
updateVariableDeclarationList = deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
|
|
147164
|
+
createFunctionDeclaration = deprecate(factory.createFunctionDeclaration, factoryDeprecation);
|
|
147165
|
+
updateFunctionDeclaration = deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
|
|
147166
|
+
createClassDeclaration = deprecate(factory.createClassDeclaration, factoryDeprecation);
|
|
147167
|
+
updateClassDeclaration = deprecate(factory.updateClassDeclaration, factoryDeprecation);
|
|
147168
|
+
createInterfaceDeclaration = deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
|
|
147169
|
+
updateInterfaceDeclaration = deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
|
|
147170
|
+
createTypeAliasDeclaration = deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
|
|
147171
|
+
updateTypeAliasDeclaration = deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
|
|
147172
|
+
createEnumDeclaration = deprecate(factory.createEnumDeclaration, factoryDeprecation);
|
|
147173
|
+
updateEnumDeclaration = deprecate(factory.updateEnumDeclaration, factoryDeprecation);
|
|
147174
|
+
createModuleDeclaration = deprecate(factory.createModuleDeclaration, factoryDeprecation);
|
|
147175
|
+
updateModuleDeclaration = deprecate(factory.updateModuleDeclaration, factoryDeprecation);
|
|
147176
|
+
createModuleBlock = deprecate(factory.createModuleBlock, factoryDeprecation);
|
|
147177
|
+
updateModuleBlock = deprecate(factory.updateModuleBlock, factoryDeprecation);
|
|
147178
|
+
createCaseBlock = deprecate(factory.createCaseBlock, factoryDeprecation);
|
|
147179
|
+
updateCaseBlock = deprecate(factory.updateCaseBlock, factoryDeprecation);
|
|
147180
|
+
createNamespaceExportDeclaration = deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
|
|
147181
|
+
updateNamespaceExportDeclaration = deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
|
|
147182
|
+
createImportEqualsDeclaration = deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
|
|
147183
|
+
updateImportEqualsDeclaration = deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
|
|
147184
|
+
createImportDeclaration = deprecate(factory.createImportDeclaration, factoryDeprecation);
|
|
147185
|
+
updateImportDeclaration = deprecate(factory.updateImportDeclaration, factoryDeprecation);
|
|
147186
|
+
createNamespaceImport = deprecate(factory.createNamespaceImport, factoryDeprecation);
|
|
147187
|
+
updateNamespaceImport = deprecate(factory.updateNamespaceImport, factoryDeprecation);
|
|
147188
|
+
createNamedImports = deprecate(factory.createNamedImports, factoryDeprecation);
|
|
147189
|
+
updateNamedImports = deprecate(factory.updateNamedImports, factoryDeprecation);
|
|
147190
|
+
createImportSpecifier = deprecate(factory.createImportSpecifier, factoryDeprecation);
|
|
147191
|
+
updateImportSpecifier = deprecate(factory.updateImportSpecifier, factoryDeprecation);
|
|
147192
|
+
createExportAssignment2 = deprecate(factory.createExportAssignment, factoryDeprecation);
|
|
147193
|
+
updateExportAssignment = deprecate(factory.updateExportAssignment, factoryDeprecation);
|
|
147194
|
+
createNamedExports = deprecate(factory.createNamedExports, factoryDeprecation);
|
|
147195
|
+
updateNamedExports = deprecate(factory.updateNamedExports, factoryDeprecation);
|
|
147196
|
+
createExportSpecifier = deprecate(factory.createExportSpecifier, factoryDeprecation);
|
|
147197
|
+
updateExportSpecifier = deprecate(factory.updateExportSpecifier, factoryDeprecation);
|
|
147198
|
+
createExternalModuleReference = deprecate(factory.createExternalModuleReference, factoryDeprecation);
|
|
147199
|
+
updateExternalModuleReference = deprecate(factory.updateExternalModuleReference, factoryDeprecation);
|
|
147200
|
+
createJSDocTypeExpression = deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
|
|
147201
|
+
createJSDocTypeTag = deprecate(factory.createJSDocTypeTag, factoryDeprecation);
|
|
147202
|
+
createJSDocReturnTag = deprecate(factory.createJSDocReturnTag, factoryDeprecation);
|
|
147203
|
+
createJSDocThisTag = deprecate(factory.createJSDocThisTag, factoryDeprecation);
|
|
147204
|
+
createJSDocComment = deprecate(factory.createJSDocComment, factoryDeprecation);
|
|
147205
|
+
createJSDocParameterTag = deprecate(factory.createJSDocParameterTag, factoryDeprecation);
|
|
147206
|
+
createJSDocClassTag = deprecate(factory.createJSDocClassTag, factoryDeprecation);
|
|
147207
|
+
createJSDocAugmentsTag = deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
|
|
147208
|
+
createJSDocEnumTag = deprecate(factory.createJSDocEnumTag, factoryDeprecation);
|
|
147209
|
+
createJSDocTemplateTag = deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
|
|
147210
|
+
createJSDocTypedefTag = deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
|
|
147211
|
+
createJSDocCallbackTag = deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
|
|
147212
|
+
createJSDocSignature = deprecate(factory.createJSDocSignature, factoryDeprecation);
|
|
147213
|
+
createJSDocPropertyTag = deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
|
|
147214
|
+
createJSDocTypeLiteral = deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
|
|
147215
|
+
createJSDocImplementsTag = deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
|
|
147216
|
+
createJSDocAuthorTag = deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
|
|
147217
|
+
createJSDocPublicTag = deprecate(factory.createJSDocPublicTag, factoryDeprecation);
|
|
147218
|
+
createJSDocPrivateTag = deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
|
|
147219
|
+
createJSDocProtectedTag = deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
|
|
147220
|
+
createJSDocReadonlyTag = deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
|
|
147221
|
+
createJSDocTag = deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
|
|
147222
|
+
createJsxElement = deprecate(factory.createJsxElement, factoryDeprecation);
|
|
147223
|
+
updateJsxElement = deprecate(factory.updateJsxElement, factoryDeprecation);
|
|
147224
|
+
createJsxSelfClosingElement = deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
|
|
147225
|
+
updateJsxSelfClosingElement = deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
|
|
147226
|
+
createJsxOpeningElement = deprecate(factory.createJsxOpeningElement, factoryDeprecation);
|
|
147227
|
+
updateJsxOpeningElement = deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
|
|
147228
|
+
createJsxClosingElement = deprecate(factory.createJsxClosingElement, factoryDeprecation);
|
|
147229
|
+
updateJsxClosingElement = deprecate(factory.updateJsxClosingElement, factoryDeprecation);
|
|
147230
|
+
createJsxFragment = deprecate(factory.createJsxFragment, factoryDeprecation);
|
|
147231
|
+
createJsxText = deprecate(factory.createJsxText, factoryDeprecation);
|
|
147232
|
+
updateJsxText = deprecate(factory.updateJsxText, factoryDeprecation);
|
|
147233
|
+
createJsxOpeningFragment = deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
|
|
147234
|
+
createJsxJsxClosingFragment = deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
|
|
147235
|
+
updateJsxFragment = deprecate(factory.updateJsxFragment, factoryDeprecation);
|
|
147236
|
+
createJsxAttribute = deprecate(factory.createJsxAttribute, factoryDeprecation);
|
|
147237
|
+
updateJsxAttribute = deprecate(factory.updateJsxAttribute, factoryDeprecation);
|
|
147238
|
+
createJsxAttributes = deprecate(factory.createJsxAttributes, factoryDeprecation);
|
|
147239
|
+
updateJsxAttributes = deprecate(factory.updateJsxAttributes, factoryDeprecation);
|
|
147240
|
+
createJsxSpreadAttribute = deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
|
|
147241
|
+
updateJsxSpreadAttribute = deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
|
|
147242
|
+
createJsxExpression = deprecate(factory.createJsxExpression, factoryDeprecation);
|
|
147243
|
+
updateJsxExpression = deprecate(factory.updateJsxExpression, factoryDeprecation);
|
|
147244
|
+
createCaseClause = deprecate(factory.createCaseClause, factoryDeprecation);
|
|
147245
|
+
updateCaseClause = deprecate(factory.updateCaseClause, factoryDeprecation);
|
|
147246
|
+
createDefaultClause = deprecate(factory.createDefaultClause, factoryDeprecation);
|
|
147247
|
+
updateDefaultClause = deprecate(factory.updateDefaultClause, factoryDeprecation);
|
|
147248
|
+
createHeritageClause = deprecate(factory.createHeritageClause, factoryDeprecation);
|
|
147249
|
+
updateHeritageClause = deprecate(factory.updateHeritageClause, factoryDeprecation);
|
|
147250
|
+
createCatchClause = deprecate(factory.createCatchClause, factoryDeprecation);
|
|
147251
|
+
updateCatchClause = deprecate(factory.updateCatchClause, factoryDeprecation);
|
|
147252
|
+
createPropertyAssignment = deprecate(factory.createPropertyAssignment, factoryDeprecation);
|
|
147253
|
+
updatePropertyAssignment = deprecate(factory.updatePropertyAssignment, factoryDeprecation);
|
|
147254
|
+
createShorthandPropertyAssignment = deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
|
|
147255
|
+
updateShorthandPropertyAssignment = deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
|
|
147256
|
+
createSpreadAssignment = deprecate(factory.createSpreadAssignment, factoryDeprecation);
|
|
147257
|
+
updateSpreadAssignment = deprecate(factory.updateSpreadAssignment, factoryDeprecation);
|
|
147258
|
+
createEnumMember = deprecate(factory.createEnumMember, factoryDeprecation);
|
|
147259
|
+
updateEnumMember = deprecate(factory.updateEnumMember, factoryDeprecation);
|
|
147260
|
+
updateSourceFileNode = deprecate(factory.updateSourceFile, factoryDeprecation);
|
|
147261
|
+
createNotEmittedStatement = deprecate(factory.createNotEmittedStatement, factoryDeprecation);
|
|
147262
|
+
createPartiallyEmittedExpression = deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
|
|
147263
|
+
updatePartiallyEmittedExpression = deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
|
|
147264
|
+
createCommaList = deprecate(factory.createCommaListExpression, factoryDeprecation);
|
|
147265
|
+
updateCommaList = deprecate(factory.updateCommaListExpression, factoryDeprecation);
|
|
147266
|
+
createBundle = deprecate(factory.createBundle, factoryDeprecation);
|
|
147267
|
+
updateBundle = deprecate(factory.updateBundle, factoryDeprecation);
|
|
147268
|
+
createImmediatelyInvokedFunctionExpression = deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
|
|
147269
|
+
createImmediatelyInvokedArrowFunction = deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
|
|
147270
|
+
createVoidZero = deprecate(factory.createVoidZero, factoryDeprecation);
|
|
147271
|
+
createExportDefault = deprecate(factory.createExportDefault, factoryDeprecation);
|
|
147272
|
+
createExternalModuleExport = deprecate(factory.createExternalModuleExport, factoryDeprecation);
|
|
147273
|
+
createNamespaceExport = deprecate(factory.createNamespaceExport, factoryDeprecation);
|
|
147274
|
+
updateNamespaceExport = deprecate(factory.updateNamespaceExport, factoryDeprecation);
|
|
147275
|
+
createToken = deprecate(function createToken2(kind) {
|
|
147280
147276
|
return factory.createToken(kind);
|
|
147281
147277
|
}, factoryDeprecation);
|
|
147282
|
-
createIdentifier =
|
|
147278
|
+
createIdentifier = deprecate(function createIdentifier2(text) {
|
|
147283
147279
|
return factory.createIdentifier(text, void 0, void 0);
|
|
147284
147280
|
}, factoryDeprecation);
|
|
147285
|
-
createTempVariable =
|
|
147281
|
+
createTempVariable = deprecate(function createTempVariable2(recordTempVariable) {
|
|
147286
147282
|
return factory.createTempVariable(recordTempVariable, void 0);
|
|
147287
147283
|
}, factoryDeprecation);
|
|
147288
|
-
getGeneratedNameForNode =
|
|
147284
|
+
getGeneratedNameForNode = deprecate(function getGeneratedNameForNode2(node) {
|
|
147289
147285
|
return factory.getGeneratedNameForNode(node, void 0);
|
|
147290
147286
|
}, factoryDeprecation);
|
|
147291
|
-
createOptimisticUniqueName =
|
|
147287
|
+
createOptimisticUniqueName = deprecate(function createOptimisticUniqueName2(text) {
|
|
147292
147288
|
return factory.createUniqueName(text, 16 /* Optimistic */);
|
|
147293
147289
|
}, factoryDeprecation);
|
|
147294
|
-
createFileLevelUniqueName =
|
|
147290
|
+
createFileLevelUniqueName = deprecate(function createFileLevelUniqueName2(text) {
|
|
147295
147291
|
return factory.createUniqueName(text, 16 /* Optimistic */ | 32 /* FileLevel */);
|
|
147296
147292
|
}, factoryDeprecation);
|
|
147297
|
-
createIndexSignature =
|
|
147293
|
+
createIndexSignature = deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
|
|
147298
147294
|
return factory.createIndexSignature(decorators, modifiers, parameters, type);
|
|
147299
147295
|
}, factoryDeprecation);
|
|
147300
|
-
createTypePredicateNode =
|
|
147296
|
+
createTypePredicateNode = deprecate(function createTypePredicateNode2(parameterName, type) {
|
|
147301
147297
|
return factory.createTypePredicateNode(void 0, parameterName, type);
|
|
147302
147298
|
}, factoryDeprecation);
|
|
147303
|
-
updateTypePredicateNode =
|
|
147299
|
+
updateTypePredicateNode = deprecate(function updateTypePredicateNode2(node, parameterName, type) {
|
|
147304
147300
|
return factory.updateTypePredicateNode(node, void 0, parameterName, type);
|
|
147305
147301
|
}, factoryDeprecation);
|
|
147306
|
-
createLiteral =
|
|
147302
|
+
createLiteral = deprecate(function createLiteral2(value) {
|
|
147307
147303
|
if (typeof value === "number") {
|
|
147308
147304
|
return factory.createNumericLiteral(value);
|
|
147309
147305
|
}
|
|
@@ -147318,13 +147314,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147318
147314
|
}
|
|
147319
147315
|
return factory.createStringLiteralFromNode(value);
|
|
147320
147316
|
}, { since: "4.0", warnAfter: "4.1", message: "Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead." });
|
|
147321
|
-
createMethodSignature =
|
|
147317
|
+
createMethodSignature = deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
|
|
147322
147318
|
return factory.createMethodSignature(void 0, name, questionToken, typeParameters, parameters, type);
|
|
147323
147319
|
}, factoryDeprecation);
|
|
147324
|
-
updateMethodSignature =
|
|
147320
|
+
updateMethodSignature = deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
|
|
147325
147321
|
return factory.updateMethodSignature(node, node.modifiers, name, questionToken, typeParameters, parameters, type);
|
|
147326
147322
|
}, factoryDeprecation);
|
|
147327
|
-
createTypeOperatorNode =
|
|
147323
|
+
createTypeOperatorNode = deprecate(function createTypeOperatorNode2(operatorOrType, type) {
|
|
147328
147324
|
let operator;
|
|
147329
147325
|
if (type) {
|
|
147330
147326
|
operator = operatorOrType;
|
|
@@ -147334,7 +147330,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147334
147330
|
}
|
|
147335
147331
|
return factory.createTypeOperatorNode(operator, type);
|
|
147336
147332
|
}, factoryDeprecation);
|
|
147337
|
-
createTaggedTemplate =
|
|
147333
|
+
createTaggedTemplate = deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
|
|
147338
147334
|
let typeArguments;
|
|
147339
147335
|
if (template) {
|
|
147340
147336
|
typeArguments = typeArgumentsOrTemplate;
|
|
@@ -147343,7 +147339,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147343
147339
|
}
|
|
147344
147340
|
return factory.createTaggedTemplateExpression(tag, typeArguments, template);
|
|
147345
147341
|
}, factoryDeprecation);
|
|
147346
|
-
updateTaggedTemplate =
|
|
147342
|
+
updateTaggedTemplate = deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
|
|
147347
147343
|
let typeArguments;
|
|
147348
147344
|
if (template) {
|
|
147349
147345
|
typeArguments = typeArgumentsOrTemplate;
|
|
@@ -147352,16 +147348,16 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147352
147348
|
}
|
|
147353
147349
|
return factory.updateTaggedTemplateExpression(node, tag, typeArguments, template);
|
|
147354
147350
|
}, factoryDeprecation);
|
|
147355
|
-
updateBinary =
|
|
147351
|
+
updateBinary = deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
|
|
147356
147352
|
if (typeof operator === "number") {
|
|
147357
147353
|
operator = operator === node.operatorToken.kind ? node.operatorToken : factory.createToken(operator);
|
|
147358
147354
|
}
|
|
147359
147355
|
return factory.updateBinaryExpression(node, left, operator, right);
|
|
147360
147356
|
}, factoryDeprecation);
|
|
147361
|
-
createConditional =
|
|
147357
|
+
createConditional = deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
|
|
147362
147358
|
return arguments.length === 5 ? factory.createConditionalExpression(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) : arguments.length === 3 ? factory.createConditionalExpression(condition, factory.createToken(57 /* QuestionToken */), questionTokenOrWhenTrue, factory.createToken(58 /* ColonToken */), whenTrueOrWhenFalse) : Debug.fail("Argument count mismatch");
|
|
147363
147359
|
}, factoryDeprecation);
|
|
147364
|
-
createYield =
|
|
147360
|
+
createYield = deprecate(function createYield2(asteriskTokenOrExpression, expression) {
|
|
147365
147361
|
let asteriskToken;
|
|
147366
147362
|
if (expression) {
|
|
147367
147363
|
asteriskToken = asteriskTokenOrExpression;
|
|
@@ -147370,18 +147366,18 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147370
147366
|
}
|
|
147371
147367
|
return factory.createYieldExpression(asteriskToken, expression);
|
|
147372
147368
|
}, factoryDeprecation);
|
|
147373
|
-
createClassExpression =
|
|
147369
|
+
createClassExpression = deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
|
|
147374
147370
|
return factory.createClassExpression(void 0, modifiers, name, typeParameters, heritageClauses, members);
|
|
147375
147371
|
}, factoryDeprecation);
|
|
147376
|
-
updateClassExpression =
|
|
147372
|
+
updateClassExpression = deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
|
|
147377
147373
|
return factory.updateClassExpression(node, void 0, modifiers, name, typeParameters, heritageClauses, members);
|
|
147378
147374
|
}, factoryDeprecation);
|
|
147379
|
-
createPropertySignature =
|
|
147375
|
+
createPropertySignature = deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
|
|
147380
147376
|
const node = factory.createPropertySignature(modifiers, name, questionToken, type);
|
|
147381
147377
|
node.initializer = initializer;
|
|
147382
147378
|
return node;
|
|
147383
147379
|
}, factoryDeprecation);
|
|
147384
|
-
updatePropertySignature =
|
|
147380
|
+
updatePropertySignature = deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
|
|
147385
147381
|
let updated = factory.updatePropertySignature(node, modifiers, name, questionToken, type);
|
|
147386
147382
|
if (node.initializer !== initializer) {
|
|
147387
147383
|
if (updated === node) {
|
|
@@ -147391,80 +147387,80 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147391
147387
|
}
|
|
147392
147388
|
return updated;
|
|
147393
147389
|
}, factoryDeprecation);
|
|
147394
|
-
createExpressionWithTypeArguments =
|
|
147390
|
+
createExpressionWithTypeArguments = deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
|
|
147395
147391
|
return factory.createExpressionWithTypeArguments(expression, typeArguments);
|
|
147396
147392
|
}, factoryDeprecation);
|
|
147397
|
-
updateExpressionWithTypeArguments =
|
|
147393
|
+
updateExpressionWithTypeArguments = deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
|
|
147398
147394
|
return factory.updateExpressionWithTypeArguments(node, expression, typeArguments);
|
|
147399
147395
|
}, factoryDeprecation);
|
|
147400
|
-
createArrowFunction =
|
|
147396
|
+
createArrowFunction = deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
|
|
147401
147397
|
return arguments.length === 6 ? factory.createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) : arguments.length === 5 ? factory.createArrowFunction(modifiers, typeParameters, parameters, type, void 0, equalsGreaterThanTokenOrBody) : Debug.fail("Argument count mismatch");
|
|
147402
147398
|
}, factoryDeprecation);
|
|
147403
|
-
updateArrowFunction =
|
|
147399
|
+
updateArrowFunction = deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
|
|
147404
147400
|
return arguments.length === 7 ? factory.updateArrowFunction(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) : arguments.length === 6 ? factory.updateArrowFunction(node, modifiers, typeParameters, parameters, type, node.equalsGreaterThanToken, equalsGreaterThanTokenOrBody) : Debug.fail("Argument count mismatch");
|
|
147405
147401
|
}, factoryDeprecation);
|
|
147406
|
-
createVariableDeclaration =
|
|
147402
|
+
createVariableDeclaration = deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
|
|
147407
147403
|
return arguments.length === 4 ? factory.createVariableDeclaration(name, exclamationTokenOrType, typeOrInitializer, initializer) : arguments.length >= 1 && arguments.length <= 3 ? factory.createVariableDeclaration(name, void 0, exclamationTokenOrType, typeOrInitializer) : Debug.fail("Argument count mismatch");
|
|
147408
147404
|
}, factoryDeprecation);
|
|
147409
|
-
updateVariableDeclaration =
|
|
147405
|
+
updateVariableDeclaration = deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
|
|
147410
147406
|
return arguments.length === 5 ? factory.updateVariableDeclaration(node, name, exclamationTokenOrType, typeOrInitializer, initializer) : arguments.length === 4 ? factory.updateVariableDeclaration(node, name, node.exclamationToken, exclamationTokenOrType, typeOrInitializer) : Debug.fail("Argument count mismatch");
|
|
147411
147407
|
}, factoryDeprecation);
|
|
147412
|
-
createImportClause =
|
|
147408
|
+
createImportClause = deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
|
|
147413
147409
|
return factory.createImportClause(isTypeOnly, name, namedBindings);
|
|
147414
147410
|
}, factoryDeprecation);
|
|
147415
|
-
updateImportClause =
|
|
147411
|
+
updateImportClause = deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
|
|
147416
147412
|
return factory.updateImportClause(node, isTypeOnly, name, namedBindings);
|
|
147417
147413
|
}, factoryDeprecation);
|
|
147418
|
-
createExportDeclaration =
|
|
147414
|
+
createExportDeclaration = deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
|
|
147419
147415
|
return factory.createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);
|
|
147420
147416
|
}, factoryDeprecation);
|
|
147421
|
-
updateExportDeclaration =
|
|
147417
|
+
updateExportDeclaration = deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
|
|
147422
147418
|
return factory.updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, node.assertClause);
|
|
147423
147419
|
}, factoryDeprecation);
|
|
147424
|
-
createJSDocParamTag =
|
|
147420
|
+
createJSDocParamTag = deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
|
|
147425
147421
|
return factory.createJSDocParameterTag(void 0, name, isBracketed, typeExpression, false, comment ? factory.createNodeArray([factory.createJSDocText(comment)]) : void 0);
|
|
147426
147422
|
}, factoryDeprecation);
|
|
147427
|
-
createComma =
|
|
147423
|
+
createComma = deprecate(function createComma2(left, right) {
|
|
147428
147424
|
return factory.createComma(left, right);
|
|
147429
147425
|
}, factoryDeprecation);
|
|
147430
|
-
createLessThan =
|
|
147426
|
+
createLessThan = deprecate(function createLessThan2(left, right) {
|
|
147431
147427
|
return factory.createLessThan(left, right);
|
|
147432
147428
|
}, factoryDeprecation);
|
|
147433
|
-
createAssignment =
|
|
147429
|
+
createAssignment = deprecate(function createAssignment2(left, right) {
|
|
147434
147430
|
return factory.createAssignment(left, right);
|
|
147435
147431
|
}, factoryDeprecation);
|
|
147436
|
-
createStrictEquality =
|
|
147432
|
+
createStrictEquality = deprecate(function createStrictEquality2(left, right) {
|
|
147437
147433
|
return factory.createStrictEquality(left, right);
|
|
147438
147434
|
}, factoryDeprecation);
|
|
147439
|
-
createStrictInequality =
|
|
147435
|
+
createStrictInequality = deprecate(function createStrictInequality2(left, right) {
|
|
147440
147436
|
return factory.createStrictInequality(left, right);
|
|
147441
147437
|
}, factoryDeprecation);
|
|
147442
|
-
createAdd =
|
|
147438
|
+
createAdd = deprecate(function createAdd2(left, right) {
|
|
147443
147439
|
return factory.createAdd(left, right);
|
|
147444
147440
|
}, factoryDeprecation);
|
|
147445
|
-
createSubtract =
|
|
147441
|
+
createSubtract = deprecate(function createSubtract2(left, right) {
|
|
147446
147442
|
return factory.createSubtract(left, right);
|
|
147447
147443
|
}, factoryDeprecation);
|
|
147448
|
-
createLogicalAnd =
|
|
147444
|
+
createLogicalAnd = deprecate(function createLogicalAnd2(left, right) {
|
|
147449
147445
|
return factory.createLogicalAnd(left, right);
|
|
147450
147446
|
}, factoryDeprecation);
|
|
147451
|
-
createLogicalOr =
|
|
147447
|
+
createLogicalOr = deprecate(function createLogicalOr2(left, right) {
|
|
147452
147448
|
return factory.createLogicalOr(left, right);
|
|
147453
147449
|
}, factoryDeprecation);
|
|
147454
|
-
createPostfixIncrement =
|
|
147450
|
+
createPostfixIncrement = deprecate(function createPostfixIncrement2(operand) {
|
|
147455
147451
|
return factory.createPostfixIncrement(operand);
|
|
147456
147452
|
}, factoryDeprecation);
|
|
147457
|
-
createLogicalNot =
|
|
147453
|
+
createLogicalNot = deprecate(function createLogicalNot2(operand) {
|
|
147458
147454
|
return factory.createLogicalNot(operand);
|
|
147459
147455
|
}, factoryDeprecation);
|
|
147460
|
-
createNode2 =
|
|
147456
|
+
createNode2 = deprecate(function createNode3(kind, pos = 0, end = 0) {
|
|
147461
147457
|
return setTextRangePosEnd(
|
|
147462
147458
|
kind === 308 /* SourceFile */ ? parseBaseNodeFactory.createBaseSourceFileNode(kind) : kind === 79 /* Identifier */ ? parseBaseNodeFactory.createBaseIdentifierNode(kind) : kind === 80 /* PrivateIdentifier */ ? parseBaseNodeFactory.createBasePrivateIdentifierNode(kind) : !isNodeKind(kind) ? parseBaseNodeFactory.createBaseTokenNode(kind) : parseBaseNodeFactory.createBaseNode(kind),
|
|
147463
147459
|
pos,
|
|
147464
147460
|
end
|
|
147465
147461
|
);
|
|
147466
147462
|
}, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory` method instead." });
|
|
147467
|
-
getMutableClone =
|
|
147463
|
+
getMutableClone = deprecate(function getMutableClone2(node) {
|
|
147468
147464
|
const clone2 = factory.cloneNode(node);
|
|
147469
147465
|
setTextRange(clone2, node);
|
|
147470
147466
|
setParent(clone2, node.parent);
|
|
@@ -147479,7 +147475,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147479
147475
|
"src/deprecatedCompat/4.0/renamedNodeTests.ts"() {
|
|
147480
147476
|
"use strict";
|
|
147481
147477
|
init_ts5();
|
|
147482
|
-
|
|
147478
|
+
init_deprecate();
|
|
147479
|
+
isTypeAssertion = deprecate(function isTypeAssertion2(node) {
|
|
147483
147480
|
return node.kind === 213 /* TypeAssertionExpression */;
|
|
147484
147481
|
}, {
|
|
147485
147482
|
since: "4.0",
|
|
@@ -147495,7 +147492,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147495
147492
|
"src/deprecatedCompat/4.2/renamedNodeTests.ts"() {
|
|
147496
147493
|
"use strict";
|
|
147497
147494
|
init_ts5();
|
|
147498
|
-
|
|
147495
|
+
init_deprecate();
|
|
147496
|
+
isIdentifierOrPrivateIdentifier = deprecate(function isIdentifierOrPrivateIdentifier2(node) {
|
|
147499
147497
|
return isMemberName(node);
|
|
147500
147498
|
}, {
|
|
147501
147499
|
since: "4.2",
|
|
@@ -150413,6 +150411,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
150413
150411
|
supportedLocaleDirectories: () => supportedLocaleDirectories,
|
|
150414
150412
|
supportedTSExtensions: () => supportedTSExtensions,
|
|
150415
150413
|
supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
|
|
150414
|
+
supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
|
|
150416
150415
|
suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
|
|
150417
150416
|
suppressLeadingTrivia: () => suppressLeadingTrivia,
|
|
150418
150417
|
suppressTrailingTrivia: () => suppressTrailingTrivia,
|