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/tsserverlibrary.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 LogLevel3;
|
|
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;
|
|
@@ -116398,6 +116334,7 @@ ${lanes.join("\n")}
|
|
|
116398
116334
|
trace: maybeBind(host, host.trace),
|
|
116399
116335
|
resolveModuleNames: maybeBind(host, host.resolveModuleNames),
|
|
116400
116336
|
getModuleResolutionCache: maybeBind(host, host.getModuleResolutionCache),
|
|
116337
|
+
createHash: maybeBind(host, host.createHash),
|
|
116401
116338
|
resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives),
|
|
116402
116339
|
useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect),
|
|
116403
116340
|
getParsedCommandLine
|
|
@@ -146902,6 +146839,63 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146902
146839
|
}
|
|
146903
146840
|
});
|
|
146904
146841
|
|
|
146842
|
+
// src/deprecatedCompat/deprecate.ts
|
|
146843
|
+
function getTypeScriptVersion() {
|
|
146844
|
+
return typeScriptVersion2 != null ? typeScriptVersion2 : typeScriptVersion2 = new Version(version);
|
|
146845
|
+
}
|
|
146846
|
+
function formatDeprecationMessage(name, error, errorAfter, since, message) {
|
|
146847
|
+
let deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
|
|
146848
|
+
deprecationMessage += `'${name}' `;
|
|
146849
|
+
deprecationMessage += since ? `has been deprecated since v${since}` : "is deprecated";
|
|
146850
|
+
deprecationMessage += error ? " and can no longer be used." : errorAfter ? ` and will no longer be usable after v${errorAfter}.` : ".";
|
|
146851
|
+
deprecationMessage += message ? ` ${formatStringFromArgs(message, [name], 0)}` : "";
|
|
146852
|
+
return deprecationMessage;
|
|
146853
|
+
}
|
|
146854
|
+
function createErrorDeprecation(name, errorAfter, since, message) {
|
|
146855
|
+
const deprecationMessage = formatDeprecationMessage(name, true, errorAfter, since, message);
|
|
146856
|
+
return () => {
|
|
146857
|
+
throw new TypeError(deprecationMessage);
|
|
146858
|
+
};
|
|
146859
|
+
}
|
|
146860
|
+
function createWarningDeprecation(name, errorAfter, since, message) {
|
|
146861
|
+
let hasWrittenDeprecation = false;
|
|
146862
|
+
return () => {
|
|
146863
|
+
if (enableDeprecationWarnings && !hasWrittenDeprecation) {
|
|
146864
|
+
Debug.log.warn(formatDeprecationMessage(name, false, errorAfter, since, message));
|
|
146865
|
+
hasWrittenDeprecation = true;
|
|
146866
|
+
}
|
|
146867
|
+
};
|
|
146868
|
+
}
|
|
146869
|
+
function createDeprecation(name, options = {}) {
|
|
146870
|
+
var _a2, _b;
|
|
146871
|
+
const version2 = typeof options.typeScriptVersion === "string" ? new Version(options.typeScriptVersion) : (_a2 = options.typeScriptVersion) != null ? _a2 : getTypeScriptVersion();
|
|
146872
|
+
const errorAfter = typeof options.errorAfter === "string" ? new Version(options.errorAfter) : options.errorAfter;
|
|
146873
|
+
const warnAfter = typeof options.warnAfter === "string" ? new Version(options.warnAfter) : options.warnAfter;
|
|
146874
|
+
const since = typeof options.since === "string" ? new Version(options.since) : (_b = options.since) != null ? _b : warnAfter;
|
|
146875
|
+
const error = options.error || errorAfter && version2.compareTo(errorAfter) <= 0;
|
|
146876
|
+
const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
|
|
146877
|
+
return error ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
|
|
146878
|
+
}
|
|
146879
|
+
function wrapFunction(deprecation, func) {
|
|
146880
|
+
return function() {
|
|
146881
|
+
deprecation();
|
|
146882
|
+
return func.apply(this, arguments);
|
|
146883
|
+
};
|
|
146884
|
+
}
|
|
146885
|
+
function deprecate(func, options) {
|
|
146886
|
+
var _a2;
|
|
146887
|
+
const deprecation = createDeprecation((_a2 = options == null ? void 0 : options.name) != null ? _a2 : Debug.getFunctionName(func), options);
|
|
146888
|
+
return wrapFunction(deprecation, func);
|
|
146889
|
+
}
|
|
146890
|
+
var enableDeprecationWarnings, typeScriptVersion2;
|
|
146891
|
+
var init_deprecate = __esm({
|
|
146892
|
+
"src/deprecatedCompat/deprecate.ts"() {
|
|
146893
|
+
"use strict";
|
|
146894
|
+
init_ts5();
|
|
146895
|
+
enableDeprecationWarnings = true;
|
|
146896
|
+
}
|
|
146897
|
+
});
|
|
146898
|
+
|
|
146905
146899
|
// src/deprecatedCompat/deprecations.ts
|
|
146906
146900
|
function createOverload(name, overloads, binder2, deprecations) {
|
|
146907
146901
|
Object.defineProperty(call, "name", { ...Object.getOwnPropertyDescriptor(call, "name"), value: name });
|
|
@@ -146909,7 +146903,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146909
146903
|
for (const key of Object.keys(deprecations)) {
|
|
146910
146904
|
const index = +key;
|
|
146911
146905
|
if (!isNaN(index) && hasProperty(overloads, `${index}`)) {
|
|
146912
|
-
overloads[index] =
|
|
146906
|
+
overloads[index] = deprecate(overloads[index], { ...deprecations[index], name });
|
|
146913
146907
|
}
|
|
146914
146908
|
}
|
|
146915
146909
|
}
|
|
@@ -146950,6 +146944,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146950
146944
|
"src/deprecatedCompat/deprecations.ts"() {
|
|
146951
146945
|
"use strict";
|
|
146952
146946
|
init_ts5();
|
|
146947
|
+
init_deprecate();
|
|
146953
146948
|
}
|
|
146954
146949
|
});
|
|
146955
146950
|
|
|
@@ -146959,337 +146954,338 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146959
146954
|
"src/deprecatedCompat/4.0/nodeFactoryTopLevelExports.ts"() {
|
|
146960
146955
|
"use strict";
|
|
146961
146956
|
init_ts5();
|
|
146957
|
+
init_deprecate();
|
|
146962
146958
|
factoryDeprecation = { since: "4.0", warnAfter: "4.1", message: "Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead." };
|
|
146963
|
-
createNodeArray =
|
|
146964
|
-
createNumericLiteral =
|
|
146965
|
-
createBigIntLiteral =
|
|
146966
|
-
createStringLiteral =
|
|
146967
|
-
createStringLiteralFromNode =
|
|
146968
|
-
createRegularExpressionLiteral =
|
|
146969
|
-
createLoopVariable =
|
|
146970
|
-
createUniqueName =
|
|
146971
|
-
createPrivateIdentifier =
|
|
146972
|
-
createSuper =
|
|
146973
|
-
createThis =
|
|
146974
|
-
createNull =
|
|
146975
|
-
createTrue =
|
|
146976
|
-
createFalse =
|
|
146977
|
-
createModifier =
|
|
146978
|
-
createModifiersFromModifierFlags =
|
|
146979
|
-
createQualifiedName =
|
|
146980
|
-
updateQualifiedName =
|
|
146981
|
-
createComputedPropertyName =
|
|
146982
|
-
updateComputedPropertyName =
|
|
146983
|
-
createTypeParameterDeclaration =
|
|
146984
|
-
updateTypeParameterDeclaration =
|
|
146985
|
-
createParameter =
|
|
146986
|
-
updateParameter =
|
|
146987
|
-
createDecorator =
|
|
146988
|
-
updateDecorator =
|
|
146989
|
-
createProperty =
|
|
146990
|
-
updateProperty =
|
|
146991
|
-
createMethod =
|
|
146992
|
-
updateMethod =
|
|
146993
|
-
createConstructor =
|
|
146994
|
-
updateConstructor =
|
|
146995
|
-
createGetAccessor =
|
|
146996
|
-
updateGetAccessor =
|
|
146997
|
-
createSetAccessor =
|
|
146998
|
-
updateSetAccessor =
|
|
146999
|
-
createCallSignature =
|
|
147000
|
-
updateCallSignature =
|
|
147001
|
-
createConstructSignature =
|
|
147002
|
-
updateConstructSignature =
|
|
147003
|
-
updateIndexSignature =
|
|
147004
|
-
createKeywordTypeNode =
|
|
147005
|
-
createTypePredicateNodeWithModifier =
|
|
147006
|
-
updateTypePredicateNodeWithModifier =
|
|
147007
|
-
createTypeReferenceNode =
|
|
147008
|
-
updateTypeReferenceNode =
|
|
147009
|
-
createFunctionTypeNode =
|
|
147010
|
-
updateFunctionTypeNode =
|
|
147011
|
-
createConstructorTypeNode =
|
|
146959
|
+
createNodeArray = deprecate(factory.createNodeArray, factoryDeprecation);
|
|
146960
|
+
createNumericLiteral = deprecate(factory.createNumericLiteral, factoryDeprecation);
|
|
146961
|
+
createBigIntLiteral = deprecate(factory.createBigIntLiteral, factoryDeprecation);
|
|
146962
|
+
createStringLiteral = deprecate(factory.createStringLiteral, factoryDeprecation);
|
|
146963
|
+
createStringLiteralFromNode = deprecate(factory.createStringLiteralFromNode, factoryDeprecation);
|
|
146964
|
+
createRegularExpressionLiteral = deprecate(factory.createRegularExpressionLiteral, factoryDeprecation);
|
|
146965
|
+
createLoopVariable = deprecate(factory.createLoopVariable, factoryDeprecation);
|
|
146966
|
+
createUniqueName = deprecate(factory.createUniqueName, factoryDeprecation);
|
|
146967
|
+
createPrivateIdentifier = deprecate(factory.createPrivateIdentifier, factoryDeprecation);
|
|
146968
|
+
createSuper = deprecate(factory.createSuper, factoryDeprecation);
|
|
146969
|
+
createThis = deprecate(factory.createThis, factoryDeprecation);
|
|
146970
|
+
createNull = deprecate(factory.createNull, factoryDeprecation);
|
|
146971
|
+
createTrue = deprecate(factory.createTrue, factoryDeprecation);
|
|
146972
|
+
createFalse = deprecate(factory.createFalse, factoryDeprecation);
|
|
146973
|
+
createModifier = deprecate(factory.createModifier, factoryDeprecation);
|
|
146974
|
+
createModifiersFromModifierFlags = deprecate(factory.createModifiersFromModifierFlags, factoryDeprecation);
|
|
146975
|
+
createQualifiedName = deprecate(factory.createQualifiedName, factoryDeprecation);
|
|
146976
|
+
updateQualifiedName = deprecate(factory.updateQualifiedName, factoryDeprecation);
|
|
146977
|
+
createComputedPropertyName = deprecate(factory.createComputedPropertyName, factoryDeprecation);
|
|
146978
|
+
updateComputedPropertyName = deprecate(factory.updateComputedPropertyName, factoryDeprecation);
|
|
146979
|
+
createTypeParameterDeclaration = deprecate(factory.createTypeParameterDeclaration, factoryDeprecation);
|
|
146980
|
+
updateTypeParameterDeclaration = deprecate(factory.updateTypeParameterDeclaration, factoryDeprecation);
|
|
146981
|
+
createParameter = deprecate(factory.createParameterDeclaration, factoryDeprecation);
|
|
146982
|
+
updateParameter = deprecate(factory.updateParameterDeclaration, factoryDeprecation);
|
|
146983
|
+
createDecorator = deprecate(factory.createDecorator, factoryDeprecation);
|
|
146984
|
+
updateDecorator = deprecate(factory.updateDecorator, factoryDeprecation);
|
|
146985
|
+
createProperty = deprecate(factory.createPropertyDeclaration, factoryDeprecation);
|
|
146986
|
+
updateProperty = deprecate(factory.updatePropertyDeclaration, factoryDeprecation);
|
|
146987
|
+
createMethod = deprecate(factory.createMethodDeclaration, factoryDeprecation);
|
|
146988
|
+
updateMethod = deprecate(factory.updateMethodDeclaration, factoryDeprecation);
|
|
146989
|
+
createConstructor = deprecate(factory.createConstructorDeclaration, factoryDeprecation);
|
|
146990
|
+
updateConstructor = deprecate(factory.updateConstructorDeclaration, factoryDeprecation);
|
|
146991
|
+
createGetAccessor = deprecate(factory.createGetAccessorDeclaration, factoryDeprecation);
|
|
146992
|
+
updateGetAccessor = deprecate(factory.updateGetAccessorDeclaration, factoryDeprecation);
|
|
146993
|
+
createSetAccessor = deprecate(factory.createSetAccessorDeclaration, factoryDeprecation);
|
|
146994
|
+
updateSetAccessor = deprecate(factory.updateSetAccessorDeclaration, factoryDeprecation);
|
|
146995
|
+
createCallSignature = deprecate(factory.createCallSignature, factoryDeprecation);
|
|
146996
|
+
updateCallSignature = deprecate(factory.updateCallSignature, factoryDeprecation);
|
|
146997
|
+
createConstructSignature = deprecate(factory.createConstructSignature, factoryDeprecation);
|
|
146998
|
+
updateConstructSignature = deprecate(factory.updateConstructSignature, factoryDeprecation);
|
|
146999
|
+
updateIndexSignature = deprecate(factory.updateIndexSignature, factoryDeprecation);
|
|
147000
|
+
createKeywordTypeNode = deprecate(factory.createKeywordTypeNode, factoryDeprecation);
|
|
147001
|
+
createTypePredicateNodeWithModifier = deprecate(factory.createTypePredicateNode, factoryDeprecation);
|
|
147002
|
+
updateTypePredicateNodeWithModifier = deprecate(factory.updateTypePredicateNode, factoryDeprecation);
|
|
147003
|
+
createTypeReferenceNode = deprecate(factory.createTypeReferenceNode, factoryDeprecation);
|
|
147004
|
+
updateTypeReferenceNode = deprecate(factory.updateTypeReferenceNode, factoryDeprecation);
|
|
147005
|
+
createFunctionTypeNode = deprecate(factory.createFunctionTypeNode, factoryDeprecation);
|
|
147006
|
+
updateFunctionTypeNode = deprecate(factory.updateFunctionTypeNode, factoryDeprecation);
|
|
147007
|
+
createConstructorTypeNode = deprecate((typeParameters, parameters, type) => {
|
|
147012
147008
|
return factory.createConstructorTypeNode(void 0, typeParameters, parameters, type);
|
|
147013
147009
|
}, factoryDeprecation);
|
|
147014
|
-
updateConstructorTypeNode =
|
|
147010
|
+
updateConstructorTypeNode = deprecate((node, typeParameters, parameters, type) => {
|
|
147015
147011
|
return factory.updateConstructorTypeNode(node, node.modifiers, typeParameters, parameters, type);
|
|
147016
147012
|
}, factoryDeprecation);
|
|
147017
|
-
createTypeQueryNode =
|
|
147018
|
-
updateTypeQueryNode =
|
|
147019
|
-
createTypeLiteralNode =
|
|
147020
|
-
updateTypeLiteralNode =
|
|
147021
|
-
createArrayTypeNode =
|
|
147022
|
-
updateArrayTypeNode =
|
|
147023
|
-
createTupleTypeNode =
|
|
147024
|
-
updateTupleTypeNode =
|
|
147025
|
-
createOptionalTypeNode =
|
|
147026
|
-
updateOptionalTypeNode =
|
|
147027
|
-
createRestTypeNode =
|
|
147028
|
-
updateRestTypeNode =
|
|
147029
|
-
createUnionTypeNode =
|
|
147030
|
-
updateUnionTypeNode =
|
|
147031
|
-
createIntersectionTypeNode =
|
|
147032
|
-
updateIntersectionTypeNode =
|
|
147033
|
-
createConditionalTypeNode =
|
|
147034
|
-
updateConditionalTypeNode =
|
|
147035
|
-
createInferTypeNode =
|
|
147036
|
-
updateInferTypeNode =
|
|
147037
|
-
createImportTypeNode =
|
|
147038
|
-
updateImportTypeNode =
|
|
147039
|
-
createParenthesizedType =
|
|
147040
|
-
updateParenthesizedType =
|
|
147041
|
-
createThisTypeNode =
|
|
147042
|
-
updateTypeOperatorNode =
|
|
147043
|
-
createIndexedAccessTypeNode =
|
|
147044
|
-
updateIndexedAccessTypeNode =
|
|
147045
|
-
createMappedTypeNode =
|
|
147046
|
-
updateMappedTypeNode =
|
|
147047
|
-
createLiteralTypeNode =
|
|
147048
|
-
updateLiteralTypeNode =
|
|
147049
|
-
createObjectBindingPattern =
|
|
147050
|
-
updateObjectBindingPattern =
|
|
147051
|
-
createArrayBindingPattern =
|
|
147052
|
-
updateArrayBindingPattern =
|
|
147053
|
-
createBindingElement =
|
|
147054
|
-
updateBindingElement =
|
|
147055
|
-
createArrayLiteral =
|
|
147056
|
-
updateArrayLiteral =
|
|
147057
|
-
createObjectLiteral =
|
|
147058
|
-
updateObjectLiteral =
|
|
147059
|
-
createPropertyAccess =
|
|
147060
|
-
updatePropertyAccess =
|
|
147061
|
-
createPropertyAccessChain =
|
|
147062
|
-
updatePropertyAccessChain =
|
|
147063
|
-
createElementAccess =
|
|
147064
|
-
updateElementAccess =
|
|
147065
|
-
createElementAccessChain =
|
|
147066
|
-
updateElementAccessChain =
|
|
147067
|
-
createCall =
|
|
147068
|
-
updateCall =
|
|
147069
|
-
createCallChain =
|
|
147070
|
-
updateCallChain =
|
|
147071
|
-
createNew =
|
|
147072
|
-
updateNew =
|
|
147073
|
-
createTypeAssertion =
|
|
147074
|
-
updateTypeAssertion =
|
|
147075
|
-
createParen =
|
|
147076
|
-
updateParen =
|
|
147077
|
-
createFunctionExpression =
|
|
147078
|
-
updateFunctionExpression =
|
|
147079
|
-
createDelete =
|
|
147080
|
-
updateDelete =
|
|
147081
|
-
createTypeOf =
|
|
147082
|
-
updateTypeOf =
|
|
147083
|
-
createVoid =
|
|
147084
|
-
updateVoid =
|
|
147085
|
-
createAwait =
|
|
147086
|
-
updateAwait =
|
|
147087
|
-
createPrefix =
|
|
147088
|
-
updatePrefix =
|
|
147089
|
-
createPostfix =
|
|
147090
|
-
updatePostfix =
|
|
147091
|
-
createBinary =
|
|
147092
|
-
updateConditional =
|
|
147093
|
-
createTemplateExpression =
|
|
147094
|
-
updateTemplateExpression =
|
|
147095
|
-
createTemplateHead =
|
|
147096
|
-
createTemplateMiddle =
|
|
147097
|
-
createTemplateTail =
|
|
147098
|
-
createNoSubstitutionTemplateLiteral =
|
|
147099
|
-
updateYield =
|
|
147100
|
-
createSpread =
|
|
147101
|
-
updateSpread =
|
|
147102
|
-
createOmittedExpression =
|
|
147103
|
-
createAsExpression =
|
|
147104
|
-
updateAsExpression =
|
|
147105
|
-
createNonNullExpression =
|
|
147106
|
-
updateNonNullExpression =
|
|
147107
|
-
createNonNullChain =
|
|
147108
|
-
updateNonNullChain =
|
|
147109
|
-
createMetaProperty =
|
|
147110
|
-
updateMetaProperty =
|
|
147111
|
-
createTemplateSpan =
|
|
147112
|
-
updateTemplateSpan =
|
|
147113
|
-
createSemicolonClassElement =
|
|
147114
|
-
createBlock =
|
|
147115
|
-
updateBlock =
|
|
147116
|
-
createVariableStatement =
|
|
147117
|
-
updateVariableStatement =
|
|
147118
|
-
createEmptyStatement =
|
|
147119
|
-
createExpressionStatement =
|
|
147120
|
-
updateExpressionStatement =
|
|
147121
|
-
createStatement =
|
|
147122
|
-
updateStatement =
|
|
147123
|
-
createIf =
|
|
147124
|
-
updateIf =
|
|
147125
|
-
createDo =
|
|
147126
|
-
updateDo =
|
|
147127
|
-
createWhile =
|
|
147128
|
-
updateWhile =
|
|
147129
|
-
createFor =
|
|
147130
|
-
updateFor =
|
|
147131
|
-
createForIn =
|
|
147132
|
-
updateForIn =
|
|
147133
|
-
createForOf =
|
|
147134
|
-
updateForOf =
|
|
147135
|
-
createContinue =
|
|
147136
|
-
updateContinue =
|
|
147137
|
-
createBreak =
|
|
147138
|
-
updateBreak =
|
|
147139
|
-
createReturn =
|
|
147140
|
-
updateReturn =
|
|
147141
|
-
createWith =
|
|
147142
|
-
updateWith =
|
|
147143
|
-
createSwitch =
|
|
147144
|
-
updateSwitch =
|
|
147145
|
-
createLabel =
|
|
147146
|
-
updateLabel =
|
|
147147
|
-
createThrow =
|
|
147148
|
-
updateThrow =
|
|
147149
|
-
createTry =
|
|
147150
|
-
updateTry =
|
|
147151
|
-
createDebuggerStatement =
|
|
147152
|
-
createVariableDeclarationList =
|
|
147153
|
-
updateVariableDeclarationList =
|
|
147154
|
-
createFunctionDeclaration =
|
|
147155
|
-
updateFunctionDeclaration =
|
|
147156
|
-
createClassDeclaration =
|
|
147157
|
-
updateClassDeclaration =
|
|
147158
|
-
createInterfaceDeclaration =
|
|
147159
|
-
updateInterfaceDeclaration =
|
|
147160
|
-
createTypeAliasDeclaration =
|
|
147161
|
-
updateTypeAliasDeclaration =
|
|
147162
|
-
createEnumDeclaration =
|
|
147163
|
-
updateEnumDeclaration =
|
|
147164
|
-
createModuleDeclaration =
|
|
147165
|
-
updateModuleDeclaration =
|
|
147166
|
-
createModuleBlock =
|
|
147167
|
-
updateModuleBlock =
|
|
147168
|
-
createCaseBlock =
|
|
147169
|
-
updateCaseBlock =
|
|
147170
|
-
createNamespaceExportDeclaration =
|
|
147171
|
-
updateNamespaceExportDeclaration =
|
|
147172
|
-
createImportEqualsDeclaration =
|
|
147173
|
-
updateImportEqualsDeclaration =
|
|
147174
|
-
createImportDeclaration =
|
|
147175
|
-
updateImportDeclaration =
|
|
147176
|
-
createNamespaceImport =
|
|
147177
|
-
updateNamespaceImport =
|
|
147178
|
-
createNamedImports =
|
|
147179
|
-
updateNamedImports =
|
|
147180
|
-
createImportSpecifier =
|
|
147181
|
-
updateImportSpecifier =
|
|
147182
|
-
createExportAssignment2 =
|
|
147183
|
-
updateExportAssignment =
|
|
147184
|
-
createNamedExports =
|
|
147185
|
-
updateNamedExports =
|
|
147186
|
-
createExportSpecifier =
|
|
147187
|
-
updateExportSpecifier =
|
|
147188
|
-
createExternalModuleReference =
|
|
147189
|
-
updateExternalModuleReference =
|
|
147190
|
-
createJSDocTypeExpression =
|
|
147191
|
-
createJSDocTypeTag =
|
|
147192
|
-
createJSDocReturnTag =
|
|
147193
|
-
createJSDocThisTag =
|
|
147194
|
-
createJSDocComment =
|
|
147195
|
-
createJSDocParameterTag =
|
|
147196
|
-
createJSDocClassTag =
|
|
147197
|
-
createJSDocAugmentsTag =
|
|
147198
|
-
createJSDocEnumTag =
|
|
147199
|
-
createJSDocTemplateTag =
|
|
147200
|
-
createJSDocTypedefTag =
|
|
147201
|
-
createJSDocCallbackTag =
|
|
147202
|
-
createJSDocSignature =
|
|
147203
|
-
createJSDocPropertyTag =
|
|
147204
|
-
createJSDocTypeLiteral =
|
|
147205
|
-
createJSDocImplementsTag =
|
|
147206
|
-
createJSDocAuthorTag =
|
|
147207
|
-
createJSDocPublicTag =
|
|
147208
|
-
createJSDocPrivateTag =
|
|
147209
|
-
createJSDocProtectedTag =
|
|
147210
|
-
createJSDocReadonlyTag =
|
|
147211
|
-
createJSDocTag =
|
|
147212
|
-
createJsxElement =
|
|
147213
|
-
updateJsxElement =
|
|
147214
|
-
createJsxSelfClosingElement =
|
|
147215
|
-
updateJsxSelfClosingElement =
|
|
147216
|
-
createJsxOpeningElement =
|
|
147217
|
-
updateJsxOpeningElement =
|
|
147218
|
-
createJsxClosingElement =
|
|
147219
|
-
updateJsxClosingElement =
|
|
147220
|
-
createJsxFragment =
|
|
147221
|
-
createJsxText =
|
|
147222
|
-
updateJsxText =
|
|
147223
|
-
createJsxOpeningFragment =
|
|
147224
|
-
createJsxJsxClosingFragment =
|
|
147225
|
-
updateJsxFragment =
|
|
147226
|
-
createJsxAttribute =
|
|
147227
|
-
updateJsxAttribute =
|
|
147228
|
-
createJsxAttributes =
|
|
147229
|
-
updateJsxAttributes =
|
|
147230
|
-
createJsxSpreadAttribute =
|
|
147231
|
-
updateJsxSpreadAttribute =
|
|
147232
|
-
createJsxExpression =
|
|
147233
|
-
updateJsxExpression =
|
|
147234
|
-
createCaseClause =
|
|
147235
|
-
updateCaseClause =
|
|
147236
|
-
createDefaultClause =
|
|
147237
|
-
updateDefaultClause =
|
|
147238
|
-
createHeritageClause =
|
|
147239
|
-
updateHeritageClause =
|
|
147240
|
-
createCatchClause =
|
|
147241
|
-
updateCatchClause =
|
|
147242
|
-
createPropertyAssignment =
|
|
147243
|
-
updatePropertyAssignment =
|
|
147244
|
-
createShorthandPropertyAssignment =
|
|
147245
|
-
updateShorthandPropertyAssignment =
|
|
147246
|
-
createSpreadAssignment =
|
|
147247
|
-
updateSpreadAssignment =
|
|
147248
|
-
createEnumMember =
|
|
147249
|
-
updateEnumMember =
|
|
147250
|
-
updateSourceFileNode =
|
|
147251
|
-
createNotEmittedStatement =
|
|
147252
|
-
createPartiallyEmittedExpression =
|
|
147253
|
-
updatePartiallyEmittedExpression =
|
|
147254
|
-
createCommaList =
|
|
147255
|
-
updateCommaList =
|
|
147256
|
-
createBundle =
|
|
147257
|
-
updateBundle =
|
|
147258
|
-
createImmediatelyInvokedFunctionExpression =
|
|
147259
|
-
createImmediatelyInvokedArrowFunction =
|
|
147260
|
-
createVoidZero =
|
|
147261
|
-
createExportDefault =
|
|
147262
|
-
createExternalModuleExport =
|
|
147263
|
-
createNamespaceExport =
|
|
147264
|
-
updateNamespaceExport =
|
|
147265
|
-
createToken =
|
|
147013
|
+
createTypeQueryNode = deprecate(factory.createTypeQueryNode, factoryDeprecation);
|
|
147014
|
+
updateTypeQueryNode = deprecate(factory.updateTypeQueryNode, factoryDeprecation);
|
|
147015
|
+
createTypeLiteralNode = deprecate(factory.createTypeLiteralNode, factoryDeprecation);
|
|
147016
|
+
updateTypeLiteralNode = deprecate(factory.updateTypeLiteralNode, factoryDeprecation);
|
|
147017
|
+
createArrayTypeNode = deprecate(factory.createArrayTypeNode, factoryDeprecation);
|
|
147018
|
+
updateArrayTypeNode = deprecate(factory.updateArrayTypeNode, factoryDeprecation);
|
|
147019
|
+
createTupleTypeNode = deprecate(factory.createTupleTypeNode, factoryDeprecation);
|
|
147020
|
+
updateTupleTypeNode = deprecate(factory.updateTupleTypeNode, factoryDeprecation);
|
|
147021
|
+
createOptionalTypeNode = deprecate(factory.createOptionalTypeNode, factoryDeprecation);
|
|
147022
|
+
updateOptionalTypeNode = deprecate(factory.updateOptionalTypeNode, factoryDeprecation);
|
|
147023
|
+
createRestTypeNode = deprecate(factory.createRestTypeNode, factoryDeprecation);
|
|
147024
|
+
updateRestTypeNode = deprecate(factory.updateRestTypeNode, factoryDeprecation);
|
|
147025
|
+
createUnionTypeNode = deprecate(factory.createUnionTypeNode, factoryDeprecation);
|
|
147026
|
+
updateUnionTypeNode = deprecate(factory.updateUnionTypeNode, factoryDeprecation);
|
|
147027
|
+
createIntersectionTypeNode = deprecate(factory.createIntersectionTypeNode, factoryDeprecation);
|
|
147028
|
+
updateIntersectionTypeNode = deprecate(factory.updateIntersectionTypeNode, factoryDeprecation);
|
|
147029
|
+
createConditionalTypeNode = deprecate(factory.createConditionalTypeNode, factoryDeprecation);
|
|
147030
|
+
updateConditionalTypeNode = deprecate(factory.updateConditionalTypeNode, factoryDeprecation);
|
|
147031
|
+
createInferTypeNode = deprecate(factory.createInferTypeNode, factoryDeprecation);
|
|
147032
|
+
updateInferTypeNode = deprecate(factory.updateInferTypeNode, factoryDeprecation);
|
|
147033
|
+
createImportTypeNode = deprecate(factory.createImportTypeNode, factoryDeprecation);
|
|
147034
|
+
updateImportTypeNode = deprecate(factory.updateImportTypeNode, factoryDeprecation);
|
|
147035
|
+
createParenthesizedType = deprecate(factory.createParenthesizedType, factoryDeprecation);
|
|
147036
|
+
updateParenthesizedType = deprecate(factory.updateParenthesizedType, factoryDeprecation);
|
|
147037
|
+
createThisTypeNode = deprecate(factory.createThisTypeNode, factoryDeprecation);
|
|
147038
|
+
updateTypeOperatorNode = deprecate(factory.updateTypeOperatorNode, factoryDeprecation);
|
|
147039
|
+
createIndexedAccessTypeNode = deprecate(factory.createIndexedAccessTypeNode, factoryDeprecation);
|
|
147040
|
+
updateIndexedAccessTypeNode = deprecate(factory.updateIndexedAccessTypeNode, factoryDeprecation);
|
|
147041
|
+
createMappedTypeNode = deprecate(factory.createMappedTypeNode, factoryDeprecation);
|
|
147042
|
+
updateMappedTypeNode = deprecate(factory.updateMappedTypeNode, factoryDeprecation);
|
|
147043
|
+
createLiteralTypeNode = deprecate(factory.createLiteralTypeNode, factoryDeprecation);
|
|
147044
|
+
updateLiteralTypeNode = deprecate(factory.updateLiteralTypeNode, factoryDeprecation);
|
|
147045
|
+
createObjectBindingPattern = deprecate(factory.createObjectBindingPattern, factoryDeprecation);
|
|
147046
|
+
updateObjectBindingPattern = deprecate(factory.updateObjectBindingPattern, factoryDeprecation);
|
|
147047
|
+
createArrayBindingPattern = deprecate(factory.createArrayBindingPattern, factoryDeprecation);
|
|
147048
|
+
updateArrayBindingPattern = deprecate(factory.updateArrayBindingPattern, factoryDeprecation);
|
|
147049
|
+
createBindingElement = deprecate(factory.createBindingElement, factoryDeprecation);
|
|
147050
|
+
updateBindingElement = deprecate(factory.updateBindingElement, factoryDeprecation);
|
|
147051
|
+
createArrayLiteral = deprecate(factory.createArrayLiteralExpression, factoryDeprecation);
|
|
147052
|
+
updateArrayLiteral = deprecate(factory.updateArrayLiteralExpression, factoryDeprecation);
|
|
147053
|
+
createObjectLiteral = deprecate(factory.createObjectLiteralExpression, factoryDeprecation);
|
|
147054
|
+
updateObjectLiteral = deprecate(factory.updateObjectLiteralExpression, factoryDeprecation);
|
|
147055
|
+
createPropertyAccess = deprecate(factory.createPropertyAccessExpression, factoryDeprecation);
|
|
147056
|
+
updatePropertyAccess = deprecate(factory.updatePropertyAccessExpression, factoryDeprecation);
|
|
147057
|
+
createPropertyAccessChain = deprecate(factory.createPropertyAccessChain, factoryDeprecation);
|
|
147058
|
+
updatePropertyAccessChain = deprecate(factory.updatePropertyAccessChain, factoryDeprecation);
|
|
147059
|
+
createElementAccess = deprecate(factory.createElementAccessExpression, factoryDeprecation);
|
|
147060
|
+
updateElementAccess = deprecate(factory.updateElementAccessExpression, factoryDeprecation);
|
|
147061
|
+
createElementAccessChain = deprecate(factory.createElementAccessChain, factoryDeprecation);
|
|
147062
|
+
updateElementAccessChain = deprecate(factory.updateElementAccessChain, factoryDeprecation);
|
|
147063
|
+
createCall = deprecate(factory.createCallExpression, factoryDeprecation);
|
|
147064
|
+
updateCall = deprecate(factory.updateCallExpression, factoryDeprecation);
|
|
147065
|
+
createCallChain = deprecate(factory.createCallChain, factoryDeprecation);
|
|
147066
|
+
updateCallChain = deprecate(factory.updateCallChain, factoryDeprecation);
|
|
147067
|
+
createNew = deprecate(factory.createNewExpression, factoryDeprecation);
|
|
147068
|
+
updateNew = deprecate(factory.updateNewExpression, factoryDeprecation);
|
|
147069
|
+
createTypeAssertion = deprecate(factory.createTypeAssertion, factoryDeprecation);
|
|
147070
|
+
updateTypeAssertion = deprecate(factory.updateTypeAssertion, factoryDeprecation);
|
|
147071
|
+
createParen = deprecate(factory.createParenthesizedExpression, factoryDeprecation);
|
|
147072
|
+
updateParen = deprecate(factory.updateParenthesizedExpression, factoryDeprecation);
|
|
147073
|
+
createFunctionExpression = deprecate(factory.createFunctionExpression, factoryDeprecation);
|
|
147074
|
+
updateFunctionExpression = deprecate(factory.updateFunctionExpression, factoryDeprecation);
|
|
147075
|
+
createDelete = deprecate(factory.createDeleteExpression, factoryDeprecation);
|
|
147076
|
+
updateDelete = deprecate(factory.updateDeleteExpression, factoryDeprecation);
|
|
147077
|
+
createTypeOf = deprecate(factory.createTypeOfExpression, factoryDeprecation);
|
|
147078
|
+
updateTypeOf = deprecate(factory.updateTypeOfExpression, factoryDeprecation);
|
|
147079
|
+
createVoid = deprecate(factory.createVoidExpression, factoryDeprecation);
|
|
147080
|
+
updateVoid = deprecate(factory.updateVoidExpression, factoryDeprecation);
|
|
147081
|
+
createAwait = deprecate(factory.createAwaitExpression, factoryDeprecation);
|
|
147082
|
+
updateAwait = deprecate(factory.updateAwaitExpression, factoryDeprecation);
|
|
147083
|
+
createPrefix = deprecate(factory.createPrefixUnaryExpression, factoryDeprecation);
|
|
147084
|
+
updatePrefix = deprecate(factory.updatePrefixUnaryExpression, factoryDeprecation);
|
|
147085
|
+
createPostfix = deprecate(factory.createPostfixUnaryExpression, factoryDeprecation);
|
|
147086
|
+
updatePostfix = deprecate(factory.updatePostfixUnaryExpression, factoryDeprecation);
|
|
147087
|
+
createBinary = deprecate(factory.createBinaryExpression, factoryDeprecation);
|
|
147088
|
+
updateConditional = deprecate(factory.updateConditionalExpression, factoryDeprecation);
|
|
147089
|
+
createTemplateExpression = deprecate(factory.createTemplateExpression, factoryDeprecation);
|
|
147090
|
+
updateTemplateExpression = deprecate(factory.updateTemplateExpression, factoryDeprecation);
|
|
147091
|
+
createTemplateHead = deprecate(factory.createTemplateHead, factoryDeprecation);
|
|
147092
|
+
createTemplateMiddle = deprecate(factory.createTemplateMiddle, factoryDeprecation);
|
|
147093
|
+
createTemplateTail = deprecate(factory.createTemplateTail, factoryDeprecation);
|
|
147094
|
+
createNoSubstitutionTemplateLiteral = deprecate(factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);
|
|
147095
|
+
updateYield = deprecate(factory.updateYieldExpression, factoryDeprecation);
|
|
147096
|
+
createSpread = deprecate(factory.createSpreadElement, factoryDeprecation);
|
|
147097
|
+
updateSpread = deprecate(factory.updateSpreadElement, factoryDeprecation);
|
|
147098
|
+
createOmittedExpression = deprecate(factory.createOmittedExpression, factoryDeprecation);
|
|
147099
|
+
createAsExpression = deprecate(factory.createAsExpression, factoryDeprecation);
|
|
147100
|
+
updateAsExpression = deprecate(factory.updateAsExpression, factoryDeprecation);
|
|
147101
|
+
createNonNullExpression = deprecate(factory.createNonNullExpression, factoryDeprecation);
|
|
147102
|
+
updateNonNullExpression = deprecate(factory.updateNonNullExpression, factoryDeprecation);
|
|
147103
|
+
createNonNullChain = deprecate(factory.createNonNullChain, factoryDeprecation);
|
|
147104
|
+
updateNonNullChain = deprecate(factory.updateNonNullChain, factoryDeprecation);
|
|
147105
|
+
createMetaProperty = deprecate(factory.createMetaProperty, factoryDeprecation);
|
|
147106
|
+
updateMetaProperty = deprecate(factory.updateMetaProperty, factoryDeprecation);
|
|
147107
|
+
createTemplateSpan = deprecate(factory.createTemplateSpan, factoryDeprecation);
|
|
147108
|
+
updateTemplateSpan = deprecate(factory.updateTemplateSpan, factoryDeprecation);
|
|
147109
|
+
createSemicolonClassElement = deprecate(factory.createSemicolonClassElement, factoryDeprecation);
|
|
147110
|
+
createBlock = deprecate(factory.createBlock, factoryDeprecation);
|
|
147111
|
+
updateBlock = deprecate(factory.updateBlock, factoryDeprecation);
|
|
147112
|
+
createVariableStatement = deprecate(factory.createVariableStatement, factoryDeprecation);
|
|
147113
|
+
updateVariableStatement = deprecate(factory.updateVariableStatement, factoryDeprecation);
|
|
147114
|
+
createEmptyStatement = deprecate(factory.createEmptyStatement, factoryDeprecation);
|
|
147115
|
+
createExpressionStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
|
|
147116
|
+
updateExpressionStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
|
|
147117
|
+
createStatement = deprecate(factory.createExpressionStatement, factoryDeprecation);
|
|
147118
|
+
updateStatement = deprecate(factory.updateExpressionStatement, factoryDeprecation);
|
|
147119
|
+
createIf = deprecate(factory.createIfStatement, factoryDeprecation);
|
|
147120
|
+
updateIf = deprecate(factory.updateIfStatement, factoryDeprecation);
|
|
147121
|
+
createDo = deprecate(factory.createDoStatement, factoryDeprecation);
|
|
147122
|
+
updateDo = deprecate(factory.updateDoStatement, factoryDeprecation);
|
|
147123
|
+
createWhile = deprecate(factory.createWhileStatement, factoryDeprecation);
|
|
147124
|
+
updateWhile = deprecate(factory.updateWhileStatement, factoryDeprecation);
|
|
147125
|
+
createFor = deprecate(factory.createForStatement, factoryDeprecation);
|
|
147126
|
+
updateFor = deprecate(factory.updateForStatement, factoryDeprecation);
|
|
147127
|
+
createForIn = deprecate(factory.createForInStatement, factoryDeprecation);
|
|
147128
|
+
updateForIn = deprecate(factory.updateForInStatement, factoryDeprecation);
|
|
147129
|
+
createForOf = deprecate(factory.createForOfStatement, factoryDeprecation);
|
|
147130
|
+
updateForOf = deprecate(factory.updateForOfStatement, factoryDeprecation);
|
|
147131
|
+
createContinue = deprecate(factory.createContinueStatement, factoryDeprecation);
|
|
147132
|
+
updateContinue = deprecate(factory.updateContinueStatement, factoryDeprecation);
|
|
147133
|
+
createBreak = deprecate(factory.createBreakStatement, factoryDeprecation);
|
|
147134
|
+
updateBreak = deprecate(factory.updateBreakStatement, factoryDeprecation);
|
|
147135
|
+
createReturn = deprecate(factory.createReturnStatement, factoryDeprecation);
|
|
147136
|
+
updateReturn = deprecate(factory.updateReturnStatement, factoryDeprecation);
|
|
147137
|
+
createWith = deprecate(factory.createWithStatement, factoryDeprecation);
|
|
147138
|
+
updateWith = deprecate(factory.updateWithStatement, factoryDeprecation);
|
|
147139
|
+
createSwitch = deprecate(factory.createSwitchStatement, factoryDeprecation);
|
|
147140
|
+
updateSwitch = deprecate(factory.updateSwitchStatement, factoryDeprecation);
|
|
147141
|
+
createLabel = deprecate(factory.createLabeledStatement, factoryDeprecation);
|
|
147142
|
+
updateLabel = deprecate(factory.updateLabeledStatement, factoryDeprecation);
|
|
147143
|
+
createThrow = deprecate(factory.createThrowStatement, factoryDeprecation);
|
|
147144
|
+
updateThrow = deprecate(factory.updateThrowStatement, factoryDeprecation);
|
|
147145
|
+
createTry = deprecate(factory.createTryStatement, factoryDeprecation);
|
|
147146
|
+
updateTry = deprecate(factory.updateTryStatement, factoryDeprecation);
|
|
147147
|
+
createDebuggerStatement = deprecate(factory.createDebuggerStatement, factoryDeprecation);
|
|
147148
|
+
createVariableDeclarationList = deprecate(factory.createVariableDeclarationList, factoryDeprecation);
|
|
147149
|
+
updateVariableDeclarationList = deprecate(factory.updateVariableDeclarationList, factoryDeprecation);
|
|
147150
|
+
createFunctionDeclaration = deprecate(factory.createFunctionDeclaration, factoryDeprecation);
|
|
147151
|
+
updateFunctionDeclaration = deprecate(factory.updateFunctionDeclaration, factoryDeprecation);
|
|
147152
|
+
createClassDeclaration = deprecate(factory.createClassDeclaration, factoryDeprecation);
|
|
147153
|
+
updateClassDeclaration = deprecate(factory.updateClassDeclaration, factoryDeprecation);
|
|
147154
|
+
createInterfaceDeclaration = deprecate(factory.createInterfaceDeclaration, factoryDeprecation);
|
|
147155
|
+
updateInterfaceDeclaration = deprecate(factory.updateInterfaceDeclaration, factoryDeprecation);
|
|
147156
|
+
createTypeAliasDeclaration = deprecate(factory.createTypeAliasDeclaration, factoryDeprecation);
|
|
147157
|
+
updateTypeAliasDeclaration = deprecate(factory.updateTypeAliasDeclaration, factoryDeprecation);
|
|
147158
|
+
createEnumDeclaration = deprecate(factory.createEnumDeclaration, factoryDeprecation);
|
|
147159
|
+
updateEnumDeclaration = deprecate(factory.updateEnumDeclaration, factoryDeprecation);
|
|
147160
|
+
createModuleDeclaration = deprecate(factory.createModuleDeclaration, factoryDeprecation);
|
|
147161
|
+
updateModuleDeclaration = deprecate(factory.updateModuleDeclaration, factoryDeprecation);
|
|
147162
|
+
createModuleBlock = deprecate(factory.createModuleBlock, factoryDeprecation);
|
|
147163
|
+
updateModuleBlock = deprecate(factory.updateModuleBlock, factoryDeprecation);
|
|
147164
|
+
createCaseBlock = deprecate(factory.createCaseBlock, factoryDeprecation);
|
|
147165
|
+
updateCaseBlock = deprecate(factory.updateCaseBlock, factoryDeprecation);
|
|
147166
|
+
createNamespaceExportDeclaration = deprecate(factory.createNamespaceExportDeclaration, factoryDeprecation);
|
|
147167
|
+
updateNamespaceExportDeclaration = deprecate(factory.updateNamespaceExportDeclaration, factoryDeprecation);
|
|
147168
|
+
createImportEqualsDeclaration = deprecate(factory.createImportEqualsDeclaration, factoryDeprecation);
|
|
147169
|
+
updateImportEqualsDeclaration = deprecate(factory.updateImportEqualsDeclaration, factoryDeprecation);
|
|
147170
|
+
createImportDeclaration = deprecate(factory.createImportDeclaration, factoryDeprecation);
|
|
147171
|
+
updateImportDeclaration = deprecate(factory.updateImportDeclaration, factoryDeprecation);
|
|
147172
|
+
createNamespaceImport = deprecate(factory.createNamespaceImport, factoryDeprecation);
|
|
147173
|
+
updateNamespaceImport = deprecate(factory.updateNamespaceImport, factoryDeprecation);
|
|
147174
|
+
createNamedImports = deprecate(factory.createNamedImports, factoryDeprecation);
|
|
147175
|
+
updateNamedImports = deprecate(factory.updateNamedImports, factoryDeprecation);
|
|
147176
|
+
createImportSpecifier = deprecate(factory.createImportSpecifier, factoryDeprecation);
|
|
147177
|
+
updateImportSpecifier = deprecate(factory.updateImportSpecifier, factoryDeprecation);
|
|
147178
|
+
createExportAssignment2 = deprecate(factory.createExportAssignment, factoryDeprecation);
|
|
147179
|
+
updateExportAssignment = deprecate(factory.updateExportAssignment, factoryDeprecation);
|
|
147180
|
+
createNamedExports = deprecate(factory.createNamedExports, factoryDeprecation);
|
|
147181
|
+
updateNamedExports = deprecate(factory.updateNamedExports, factoryDeprecation);
|
|
147182
|
+
createExportSpecifier = deprecate(factory.createExportSpecifier, factoryDeprecation);
|
|
147183
|
+
updateExportSpecifier = deprecate(factory.updateExportSpecifier, factoryDeprecation);
|
|
147184
|
+
createExternalModuleReference = deprecate(factory.createExternalModuleReference, factoryDeprecation);
|
|
147185
|
+
updateExternalModuleReference = deprecate(factory.updateExternalModuleReference, factoryDeprecation);
|
|
147186
|
+
createJSDocTypeExpression = deprecate(factory.createJSDocTypeExpression, factoryDeprecation);
|
|
147187
|
+
createJSDocTypeTag = deprecate(factory.createJSDocTypeTag, factoryDeprecation);
|
|
147188
|
+
createJSDocReturnTag = deprecate(factory.createJSDocReturnTag, factoryDeprecation);
|
|
147189
|
+
createJSDocThisTag = deprecate(factory.createJSDocThisTag, factoryDeprecation);
|
|
147190
|
+
createJSDocComment = deprecate(factory.createJSDocComment, factoryDeprecation);
|
|
147191
|
+
createJSDocParameterTag = deprecate(factory.createJSDocParameterTag, factoryDeprecation);
|
|
147192
|
+
createJSDocClassTag = deprecate(factory.createJSDocClassTag, factoryDeprecation);
|
|
147193
|
+
createJSDocAugmentsTag = deprecate(factory.createJSDocAugmentsTag, factoryDeprecation);
|
|
147194
|
+
createJSDocEnumTag = deprecate(factory.createJSDocEnumTag, factoryDeprecation);
|
|
147195
|
+
createJSDocTemplateTag = deprecate(factory.createJSDocTemplateTag, factoryDeprecation);
|
|
147196
|
+
createJSDocTypedefTag = deprecate(factory.createJSDocTypedefTag, factoryDeprecation);
|
|
147197
|
+
createJSDocCallbackTag = deprecate(factory.createJSDocCallbackTag, factoryDeprecation);
|
|
147198
|
+
createJSDocSignature = deprecate(factory.createJSDocSignature, factoryDeprecation);
|
|
147199
|
+
createJSDocPropertyTag = deprecate(factory.createJSDocPropertyTag, factoryDeprecation);
|
|
147200
|
+
createJSDocTypeLiteral = deprecate(factory.createJSDocTypeLiteral, factoryDeprecation);
|
|
147201
|
+
createJSDocImplementsTag = deprecate(factory.createJSDocImplementsTag, factoryDeprecation);
|
|
147202
|
+
createJSDocAuthorTag = deprecate(factory.createJSDocAuthorTag, factoryDeprecation);
|
|
147203
|
+
createJSDocPublicTag = deprecate(factory.createJSDocPublicTag, factoryDeprecation);
|
|
147204
|
+
createJSDocPrivateTag = deprecate(factory.createJSDocPrivateTag, factoryDeprecation);
|
|
147205
|
+
createJSDocProtectedTag = deprecate(factory.createJSDocProtectedTag, factoryDeprecation);
|
|
147206
|
+
createJSDocReadonlyTag = deprecate(factory.createJSDocReadonlyTag, factoryDeprecation);
|
|
147207
|
+
createJSDocTag = deprecate(factory.createJSDocUnknownTag, factoryDeprecation);
|
|
147208
|
+
createJsxElement = deprecate(factory.createJsxElement, factoryDeprecation);
|
|
147209
|
+
updateJsxElement = deprecate(factory.updateJsxElement, factoryDeprecation);
|
|
147210
|
+
createJsxSelfClosingElement = deprecate(factory.createJsxSelfClosingElement, factoryDeprecation);
|
|
147211
|
+
updateJsxSelfClosingElement = deprecate(factory.updateJsxSelfClosingElement, factoryDeprecation);
|
|
147212
|
+
createJsxOpeningElement = deprecate(factory.createJsxOpeningElement, factoryDeprecation);
|
|
147213
|
+
updateJsxOpeningElement = deprecate(factory.updateJsxOpeningElement, factoryDeprecation);
|
|
147214
|
+
createJsxClosingElement = deprecate(factory.createJsxClosingElement, factoryDeprecation);
|
|
147215
|
+
updateJsxClosingElement = deprecate(factory.updateJsxClosingElement, factoryDeprecation);
|
|
147216
|
+
createJsxFragment = deprecate(factory.createJsxFragment, factoryDeprecation);
|
|
147217
|
+
createJsxText = deprecate(factory.createJsxText, factoryDeprecation);
|
|
147218
|
+
updateJsxText = deprecate(factory.updateJsxText, factoryDeprecation);
|
|
147219
|
+
createJsxOpeningFragment = deprecate(factory.createJsxOpeningFragment, factoryDeprecation);
|
|
147220
|
+
createJsxJsxClosingFragment = deprecate(factory.createJsxJsxClosingFragment, factoryDeprecation);
|
|
147221
|
+
updateJsxFragment = deprecate(factory.updateJsxFragment, factoryDeprecation);
|
|
147222
|
+
createJsxAttribute = deprecate(factory.createJsxAttribute, factoryDeprecation);
|
|
147223
|
+
updateJsxAttribute = deprecate(factory.updateJsxAttribute, factoryDeprecation);
|
|
147224
|
+
createJsxAttributes = deprecate(factory.createJsxAttributes, factoryDeprecation);
|
|
147225
|
+
updateJsxAttributes = deprecate(factory.updateJsxAttributes, factoryDeprecation);
|
|
147226
|
+
createJsxSpreadAttribute = deprecate(factory.createJsxSpreadAttribute, factoryDeprecation);
|
|
147227
|
+
updateJsxSpreadAttribute = deprecate(factory.updateJsxSpreadAttribute, factoryDeprecation);
|
|
147228
|
+
createJsxExpression = deprecate(factory.createJsxExpression, factoryDeprecation);
|
|
147229
|
+
updateJsxExpression = deprecate(factory.updateJsxExpression, factoryDeprecation);
|
|
147230
|
+
createCaseClause = deprecate(factory.createCaseClause, factoryDeprecation);
|
|
147231
|
+
updateCaseClause = deprecate(factory.updateCaseClause, factoryDeprecation);
|
|
147232
|
+
createDefaultClause = deprecate(factory.createDefaultClause, factoryDeprecation);
|
|
147233
|
+
updateDefaultClause = deprecate(factory.updateDefaultClause, factoryDeprecation);
|
|
147234
|
+
createHeritageClause = deprecate(factory.createHeritageClause, factoryDeprecation);
|
|
147235
|
+
updateHeritageClause = deprecate(factory.updateHeritageClause, factoryDeprecation);
|
|
147236
|
+
createCatchClause = deprecate(factory.createCatchClause, factoryDeprecation);
|
|
147237
|
+
updateCatchClause = deprecate(factory.updateCatchClause, factoryDeprecation);
|
|
147238
|
+
createPropertyAssignment = deprecate(factory.createPropertyAssignment, factoryDeprecation);
|
|
147239
|
+
updatePropertyAssignment = deprecate(factory.updatePropertyAssignment, factoryDeprecation);
|
|
147240
|
+
createShorthandPropertyAssignment = deprecate(factory.createShorthandPropertyAssignment, factoryDeprecation);
|
|
147241
|
+
updateShorthandPropertyAssignment = deprecate(factory.updateShorthandPropertyAssignment, factoryDeprecation);
|
|
147242
|
+
createSpreadAssignment = deprecate(factory.createSpreadAssignment, factoryDeprecation);
|
|
147243
|
+
updateSpreadAssignment = deprecate(factory.updateSpreadAssignment, factoryDeprecation);
|
|
147244
|
+
createEnumMember = deprecate(factory.createEnumMember, factoryDeprecation);
|
|
147245
|
+
updateEnumMember = deprecate(factory.updateEnumMember, factoryDeprecation);
|
|
147246
|
+
updateSourceFileNode = deprecate(factory.updateSourceFile, factoryDeprecation);
|
|
147247
|
+
createNotEmittedStatement = deprecate(factory.createNotEmittedStatement, factoryDeprecation);
|
|
147248
|
+
createPartiallyEmittedExpression = deprecate(factory.createPartiallyEmittedExpression, factoryDeprecation);
|
|
147249
|
+
updatePartiallyEmittedExpression = deprecate(factory.updatePartiallyEmittedExpression, factoryDeprecation);
|
|
147250
|
+
createCommaList = deprecate(factory.createCommaListExpression, factoryDeprecation);
|
|
147251
|
+
updateCommaList = deprecate(factory.updateCommaListExpression, factoryDeprecation);
|
|
147252
|
+
createBundle = deprecate(factory.createBundle, factoryDeprecation);
|
|
147253
|
+
updateBundle = deprecate(factory.updateBundle, factoryDeprecation);
|
|
147254
|
+
createImmediatelyInvokedFunctionExpression = deprecate(factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);
|
|
147255
|
+
createImmediatelyInvokedArrowFunction = deprecate(factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);
|
|
147256
|
+
createVoidZero = deprecate(factory.createVoidZero, factoryDeprecation);
|
|
147257
|
+
createExportDefault = deprecate(factory.createExportDefault, factoryDeprecation);
|
|
147258
|
+
createExternalModuleExport = deprecate(factory.createExternalModuleExport, factoryDeprecation);
|
|
147259
|
+
createNamespaceExport = deprecate(factory.createNamespaceExport, factoryDeprecation);
|
|
147260
|
+
updateNamespaceExport = deprecate(factory.updateNamespaceExport, factoryDeprecation);
|
|
147261
|
+
createToken = deprecate(function createToken2(kind) {
|
|
147266
147262
|
return factory.createToken(kind);
|
|
147267
147263
|
}, factoryDeprecation);
|
|
147268
|
-
createIdentifier =
|
|
147264
|
+
createIdentifier = deprecate(function createIdentifier2(text) {
|
|
147269
147265
|
return factory.createIdentifier(text, void 0, void 0);
|
|
147270
147266
|
}, factoryDeprecation);
|
|
147271
|
-
createTempVariable =
|
|
147267
|
+
createTempVariable = deprecate(function createTempVariable2(recordTempVariable) {
|
|
147272
147268
|
return factory.createTempVariable(recordTempVariable, void 0);
|
|
147273
147269
|
}, factoryDeprecation);
|
|
147274
|
-
getGeneratedNameForNode =
|
|
147270
|
+
getGeneratedNameForNode = deprecate(function getGeneratedNameForNode2(node) {
|
|
147275
147271
|
return factory.getGeneratedNameForNode(node, void 0);
|
|
147276
147272
|
}, factoryDeprecation);
|
|
147277
|
-
createOptimisticUniqueName =
|
|
147273
|
+
createOptimisticUniqueName = deprecate(function createOptimisticUniqueName2(text) {
|
|
147278
147274
|
return factory.createUniqueName(text, 16 /* Optimistic */);
|
|
147279
147275
|
}, factoryDeprecation);
|
|
147280
|
-
createFileLevelUniqueName =
|
|
147276
|
+
createFileLevelUniqueName = deprecate(function createFileLevelUniqueName2(text) {
|
|
147281
147277
|
return factory.createUniqueName(text, 16 /* Optimistic */ | 32 /* FileLevel */);
|
|
147282
147278
|
}, factoryDeprecation);
|
|
147283
|
-
createIndexSignature =
|
|
147279
|
+
createIndexSignature = deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
|
|
147284
147280
|
return factory.createIndexSignature(decorators, modifiers, parameters, type);
|
|
147285
147281
|
}, factoryDeprecation);
|
|
147286
|
-
createTypePredicateNode =
|
|
147282
|
+
createTypePredicateNode = deprecate(function createTypePredicateNode2(parameterName, type) {
|
|
147287
147283
|
return factory.createTypePredicateNode(void 0, parameterName, type);
|
|
147288
147284
|
}, factoryDeprecation);
|
|
147289
|
-
updateTypePredicateNode =
|
|
147285
|
+
updateTypePredicateNode = deprecate(function updateTypePredicateNode2(node, parameterName, type) {
|
|
147290
147286
|
return factory.updateTypePredicateNode(node, void 0, parameterName, type);
|
|
147291
147287
|
}, factoryDeprecation);
|
|
147292
|
-
createLiteral =
|
|
147288
|
+
createLiteral = deprecate(function createLiteral2(value) {
|
|
147293
147289
|
if (typeof value === "number") {
|
|
147294
147290
|
return factory.createNumericLiteral(value);
|
|
147295
147291
|
}
|
|
@@ -147304,13 +147300,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147304
147300
|
}
|
|
147305
147301
|
return factory.createStringLiteralFromNode(value);
|
|
147306
147302
|
}, { 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." });
|
|
147307
|
-
createMethodSignature =
|
|
147303
|
+
createMethodSignature = deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
|
|
147308
147304
|
return factory.createMethodSignature(void 0, name, questionToken, typeParameters, parameters, type);
|
|
147309
147305
|
}, factoryDeprecation);
|
|
147310
|
-
updateMethodSignature =
|
|
147306
|
+
updateMethodSignature = deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
|
|
147311
147307
|
return factory.updateMethodSignature(node, node.modifiers, name, questionToken, typeParameters, parameters, type);
|
|
147312
147308
|
}, factoryDeprecation);
|
|
147313
|
-
createTypeOperatorNode =
|
|
147309
|
+
createTypeOperatorNode = deprecate(function createTypeOperatorNode2(operatorOrType, type) {
|
|
147314
147310
|
let operator;
|
|
147315
147311
|
if (type) {
|
|
147316
147312
|
operator = operatorOrType;
|
|
@@ -147320,7 +147316,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147320
147316
|
}
|
|
147321
147317
|
return factory.createTypeOperatorNode(operator, type);
|
|
147322
147318
|
}, factoryDeprecation);
|
|
147323
|
-
createTaggedTemplate =
|
|
147319
|
+
createTaggedTemplate = deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
|
|
147324
147320
|
let typeArguments;
|
|
147325
147321
|
if (template) {
|
|
147326
147322
|
typeArguments = typeArgumentsOrTemplate;
|
|
@@ -147329,7 +147325,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147329
147325
|
}
|
|
147330
147326
|
return factory.createTaggedTemplateExpression(tag, typeArguments, template);
|
|
147331
147327
|
}, factoryDeprecation);
|
|
147332
|
-
updateTaggedTemplate =
|
|
147328
|
+
updateTaggedTemplate = deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
|
|
147333
147329
|
let typeArguments;
|
|
147334
147330
|
if (template) {
|
|
147335
147331
|
typeArguments = typeArgumentsOrTemplate;
|
|
@@ -147338,16 +147334,16 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147338
147334
|
}
|
|
147339
147335
|
return factory.updateTaggedTemplateExpression(node, tag, typeArguments, template);
|
|
147340
147336
|
}, factoryDeprecation);
|
|
147341
|
-
updateBinary =
|
|
147337
|
+
updateBinary = deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
|
|
147342
147338
|
if (typeof operator === "number") {
|
|
147343
147339
|
operator = operator === node.operatorToken.kind ? node.operatorToken : factory.createToken(operator);
|
|
147344
147340
|
}
|
|
147345
147341
|
return factory.updateBinaryExpression(node, left, operator, right);
|
|
147346
147342
|
}, factoryDeprecation);
|
|
147347
|
-
createConditional =
|
|
147343
|
+
createConditional = deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
|
|
147348
147344
|
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");
|
|
147349
147345
|
}, factoryDeprecation);
|
|
147350
|
-
createYield =
|
|
147346
|
+
createYield = deprecate(function createYield2(asteriskTokenOrExpression, expression) {
|
|
147351
147347
|
let asteriskToken;
|
|
147352
147348
|
if (expression) {
|
|
147353
147349
|
asteriskToken = asteriskTokenOrExpression;
|
|
@@ -147356,18 +147352,18 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147356
147352
|
}
|
|
147357
147353
|
return factory.createYieldExpression(asteriskToken, expression);
|
|
147358
147354
|
}, factoryDeprecation);
|
|
147359
|
-
createClassExpression =
|
|
147355
|
+
createClassExpression = deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
|
|
147360
147356
|
return factory.createClassExpression(void 0, modifiers, name, typeParameters, heritageClauses, members);
|
|
147361
147357
|
}, factoryDeprecation);
|
|
147362
|
-
updateClassExpression =
|
|
147358
|
+
updateClassExpression = deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
|
|
147363
147359
|
return factory.updateClassExpression(node, void 0, modifiers, name, typeParameters, heritageClauses, members);
|
|
147364
147360
|
}, factoryDeprecation);
|
|
147365
|
-
createPropertySignature =
|
|
147361
|
+
createPropertySignature = deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
|
|
147366
147362
|
const node = factory.createPropertySignature(modifiers, name, questionToken, type);
|
|
147367
147363
|
node.initializer = initializer;
|
|
147368
147364
|
return node;
|
|
147369
147365
|
}, factoryDeprecation);
|
|
147370
|
-
updatePropertySignature =
|
|
147366
|
+
updatePropertySignature = deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
|
|
147371
147367
|
let updated = factory.updatePropertySignature(node, modifiers, name, questionToken, type);
|
|
147372
147368
|
if (node.initializer !== initializer) {
|
|
147373
147369
|
if (updated === node) {
|
|
@@ -147377,80 +147373,80 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147377
147373
|
}
|
|
147378
147374
|
return updated;
|
|
147379
147375
|
}, factoryDeprecation);
|
|
147380
|
-
createExpressionWithTypeArguments =
|
|
147376
|
+
createExpressionWithTypeArguments = deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
|
|
147381
147377
|
return factory.createExpressionWithTypeArguments(expression, typeArguments);
|
|
147382
147378
|
}, factoryDeprecation);
|
|
147383
|
-
updateExpressionWithTypeArguments =
|
|
147379
|
+
updateExpressionWithTypeArguments = deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
|
|
147384
147380
|
return factory.updateExpressionWithTypeArguments(node, expression, typeArguments);
|
|
147385
147381
|
}, factoryDeprecation);
|
|
147386
|
-
createArrowFunction =
|
|
147382
|
+
createArrowFunction = deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
|
|
147387
147383
|
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");
|
|
147388
147384
|
}, factoryDeprecation);
|
|
147389
|
-
updateArrowFunction =
|
|
147385
|
+
updateArrowFunction = deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
|
|
147390
147386
|
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");
|
|
147391
147387
|
}, factoryDeprecation);
|
|
147392
|
-
createVariableDeclaration =
|
|
147388
|
+
createVariableDeclaration = deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
|
|
147393
147389
|
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");
|
|
147394
147390
|
}, factoryDeprecation);
|
|
147395
|
-
updateVariableDeclaration =
|
|
147391
|
+
updateVariableDeclaration = deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
|
|
147396
147392
|
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");
|
|
147397
147393
|
}, factoryDeprecation);
|
|
147398
|
-
createImportClause =
|
|
147394
|
+
createImportClause = deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
|
|
147399
147395
|
return factory.createImportClause(isTypeOnly, name, namedBindings);
|
|
147400
147396
|
}, factoryDeprecation);
|
|
147401
|
-
updateImportClause =
|
|
147397
|
+
updateImportClause = deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
|
|
147402
147398
|
return factory.updateImportClause(node, isTypeOnly, name, namedBindings);
|
|
147403
147399
|
}, factoryDeprecation);
|
|
147404
|
-
createExportDeclaration =
|
|
147400
|
+
createExportDeclaration = deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
|
|
147405
147401
|
return factory.createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);
|
|
147406
147402
|
}, factoryDeprecation);
|
|
147407
|
-
updateExportDeclaration =
|
|
147403
|
+
updateExportDeclaration = deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
|
|
147408
147404
|
return factory.updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, node.assertClause);
|
|
147409
147405
|
}, factoryDeprecation);
|
|
147410
|
-
createJSDocParamTag =
|
|
147406
|
+
createJSDocParamTag = deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
|
|
147411
147407
|
return factory.createJSDocParameterTag(void 0, name, isBracketed, typeExpression, false, comment ? factory.createNodeArray([factory.createJSDocText(comment)]) : void 0);
|
|
147412
147408
|
}, factoryDeprecation);
|
|
147413
|
-
createComma =
|
|
147409
|
+
createComma = deprecate(function createComma2(left, right) {
|
|
147414
147410
|
return factory.createComma(left, right);
|
|
147415
147411
|
}, factoryDeprecation);
|
|
147416
|
-
createLessThan =
|
|
147412
|
+
createLessThan = deprecate(function createLessThan2(left, right) {
|
|
147417
147413
|
return factory.createLessThan(left, right);
|
|
147418
147414
|
}, factoryDeprecation);
|
|
147419
|
-
createAssignment =
|
|
147415
|
+
createAssignment = deprecate(function createAssignment2(left, right) {
|
|
147420
147416
|
return factory.createAssignment(left, right);
|
|
147421
147417
|
}, factoryDeprecation);
|
|
147422
|
-
createStrictEquality =
|
|
147418
|
+
createStrictEquality = deprecate(function createStrictEquality2(left, right) {
|
|
147423
147419
|
return factory.createStrictEquality(left, right);
|
|
147424
147420
|
}, factoryDeprecation);
|
|
147425
|
-
createStrictInequality =
|
|
147421
|
+
createStrictInequality = deprecate(function createStrictInequality2(left, right) {
|
|
147426
147422
|
return factory.createStrictInequality(left, right);
|
|
147427
147423
|
}, factoryDeprecation);
|
|
147428
|
-
createAdd =
|
|
147424
|
+
createAdd = deprecate(function createAdd2(left, right) {
|
|
147429
147425
|
return factory.createAdd(left, right);
|
|
147430
147426
|
}, factoryDeprecation);
|
|
147431
|
-
createSubtract =
|
|
147427
|
+
createSubtract = deprecate(function createSubtract2(left, right) {
|
|
147432
147428
|
return factory.createSubtract(left, right);
|
|
147433
147429
|
}, factoryDeprecation);
|
|
147434
|
-
createLogicalAnd =
|
|
147430
|
+
createLogicalAnd = deprecate(function createLogicalAnd2(left, right) {
|
|
147435
147431
|
return factory.createLogicalAnd(left, right);
|
|
147436
147432
|
}, factoryDeprecation);
|
|
147437
|
-
createLogicalOr =
|
|
147433
|
+
createLogicalOr = deprecate(function createLogicalOr2(left, right) {
|
|
147438
147434
|
return factory.createLogicalOr(left, right);
|
|
147439
147435
|
}, factoryDeprecation);
|
|
147440
|
-
createPostfixIncrement =
|
|
147436
|
+
createPostfixIncrement = deprecate(function createPostfixIncrement2(operand) {
|
|
147441
147437
|
return factory.createPostfixIncrement(operand);
|
|
147442
147438
|
}, factoryDeprecation);
|
|
147443
|
-
createLogicalNot =
|
|
147439
|
+
createLogicalNot = deprecate(function createLogicalNot2(operand) {
|
|
147444
147440
|
return factory.createLogicalNot(operand);
|
|
147445
147441
|
}, factoryDeprecation);
|
|
147446
|
-
createNode2 =
|
|
147442
|
+
createNode2 = deprecate(function createNode3(kind, pos = 0, end = 0) {
|
|
147447
147443
|
return setTextRangePosEnd(
|
|
147448
147444
|
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),
|
|
147449
147445
|
pos,
|
|
147450
147446
|
end
|
|
147451
147447
|
);
|
|
147452
147448
|
}, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory` method instead." });
|
|
147453
|
-
getMutableClone =
|
|
147449
|
+
getMutableClone = deprecate(function getMutableClone2(node) {
|
|
147454
147450
|
const clone2 = factory.cloneNode(node);
|
|
147455
147451
|
setTextRange(clone2, node);
|
|
147456
147452
|
setParent(clone2, node.parent);
|
|
@@ -147465,7 +147461,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147465
147461
|
"src/deprecatedCompat/4.0/renamedNodeTests.ts"() {
|
|
147466
147462
|
"use strict";
|
|
147467
147463
|
init_ts5();
|
|
147468
|
-
|
|
147464
|
+
init_deprecate();
|
|
147465
|
+
isTypeAssertion = deprecate(function isTypeAssertion2(node) {
|
|
147469
147466
|
return node.kind === 213 /* TypeAssertionExpression */;
|
|
147470
147467
|
}, {
|
|
147471
147468
|
since: "4.0",
|
|
@@ -147481,7 +147478,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147481
147478
|
"src/deprecatedCompat/4.2/renamedNodeTests.ts"() {
|
|
147482
147479
|
"use strict";
|
|
147483
147480
|
init_ts5();
|
|
147484
|
-
|
|
147481
|
+
init_deprecate();
|
|
147482
|
+
isIdentifierOrPrivateIdentifier = deprecate(function isIdentifierOrPrivateIdentifier2(node) {
|
|
147485
147483
|
return isMemberName(node);
|
|
147486
147484
|
}, {
|
|
147487
147485
|
since: "4.2",
|
|
@@ -149317,6 +149315,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
149317
149315
|
this.dirty = false;
|
|
149318
149316
|
this.typingFiles = emptyArray2;
|
|
149319
149317
|
this.moduleSpecifierCache = createModuleSpecifierCache(this);
|
|
149318
|
+
this.createHash = maybeBind(this.projectService.host, this.projectService.host.createHash);
|
|
149320
149319
|
this.globalCacheResolutionModuleName = ts_JsTyping_exports.nonRelativeModuleNameForTypingCache;
|
|
149321
149320
|
this.projectName = projectName;
|
|
149322
149321
|
this.directoryStructureHost = directoryStructureHost;
|
|
@@ -149645,15 +149644,14 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
149645
149644
|
return [];
|
|
149646
149645
|
}
|
|
149647
149646
|
updateProjectIfDirty(this);
|
|
149648
|
-
this.builderState = BuilderState.create(this.program, this.
|
|
149647
|
+
this.builderState = BuilderState.create(this.program, this.builderState, true);
|
|
149649
149648
|
return mapDefined(
|
|
149650
149649
|
BuilderState.getFilesAffectedBy(
|
|
149651
149650
|
this.builderState,
|
|
149652
149651
|
this.program,
|
|
149653
149652
|
scriptInfo.path,
|
|
149654
149653
|
this.cancellationToken,
|
|
149655
|
-
|
|
149656
|
-
this.getCanonicalFileName
|
|
149654
|
+
this.projectService.host
|
|
149657
149655
|
),
|
|
149658
149656
|
(sourceFile) => this.shouldEmitFile(this.projectService.getScriptInfoForPath(sourceFile.path)) ? sourceFile.fileName : void 0
|
|
149659
149657
|
);
|
|
@@ -160026,6 +160024,7 @@ ${e.message}`;
|
|
|
160026
160024
|
supportedLocaleDirectories: () => supportedLocaleDirectories,
|
|
160027
160025
|
supportedTSExtensions: () => supportedTSExtensions,
|
|
160028
160026
|
supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
|
|
160027
|
+
supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
|
|
160029
160028
|
suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
|
|
160030
160029
|
suppressLeadingTrivia: () => suppressLeadingTrivia,
|
|
160031
160030
|
suppressTrailingTrivia: () => suppressTrailingTrivia,
|
|
@@ -162640,6 +162639,7 @@ ${e.message}`;
|
|
|
162640
162639
|
supportedLocaleDirectories: () => supportedLocaleDirectories,
|
|
162641
162640
|
supportedTSExtensions: () => supportedTSExtensions,
|
|
162642
162641
|
supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
|
|
162642
|
+
supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
|
|
162643
162643
|
suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
|
|
162644
162644
|
suppressLeadingTrivia: () => suppressLeadingTrivia,
|
|
162645
162645
|
suppressTrailingTrivia: () => suppressTrailingTrivia,
|