typescript 5.0.0-dev.20221114 → 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.es2015.core.d.ts +2 -2
- package/lib/lib.es5.d.ts +1 -1
- package/lib/tsc.js +254 -320
- package/lib/tsserver.js +659 -671
- package/lib/tsserverlibrary.d.ts +0 -4
- package/lib/tsserverlibrary.js +671 -673
- package/lib/typescript.d.ts +0 -4
- package/lib/typescript.js +667 -670
- 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
|
-
case 0 /* TypeScript */:
|
|
35992
|
-
case 5 /* TsOnly */:
|
|
35993
|
-
const useDts = extensions === 0 /* TypeScript */;
|
|
35994
|
-
switch (originalExtension) {
|
|
35995
|
-
case ".mjs" /* Mjs */:
|
|
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;
|
|
36023
35966
|
}
|
|
36024
|
-
|
|
36025
|
-
|
|
36026
|
-
|
|
35967
|
+
if (extensions & 8 /* Json */) {
|
|
35968
|
+
candidate = originalCandidate;
|
|
35969
|
+
const result = tryExtension(".json" /* Json */);
|
|
35970
|
+
if (result)
|
|
35971
|
+
return result;
|
|
35972
|
+
}
|
|
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;
|
|
@@ -44082,25 +44027,22 @@ ${lanes.join("\n")}
|
|
|
44082
44027
|
const context = {
|
|
44083
44028
|
enclosingDeclaration,
|
|
44084
44029
|
flags: flags || 0 /* None */,
|
|
44085
|
-
tracker: tracker && tracker.trackSymbol ? tracker : {
|
|
44086
|
-
|
|
44087
|
-
|
|
44088
|
-
|
|
44089
|
-
|
|
44090
|
-
|
|
44091
|
-
getPackageJsonInfoCache: ()
|
|
44092
|
-
|
|
44093
|
-
|
|
44094
|
-
|
|
44095
|
-
|
|
44096
|
-
|
|
44097
|
-
|
|
44098
|
-
|
|
44099
|
-
|
|
44100
|
-
|
|
44101
|
-
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
44102
|
-
} : void 0
|
|
44103
|
-
},
|
|
44030
|
+
tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: () => false, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
|
|
44031
|
+
getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
|
|
44032
|
+
getCurrentDirectory: () => host.getCurrentDirectory(),
|
|
44033
|
+
getSymlinkCache: maybeBind(host, host.getSymlinkCache),
|
|
44034
|
+
getPackageJsonInfoCache: () => {
|
|
44035
|
+
var _a3;
|
|
44036
|
+
return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
|
|
44037
|
+
},
|
|
44038
|
+
useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
|
|
44039
|
+
redirectTargetsMap: host.redirectTargetsMap,
|
|
44040
|
+
getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
|
|
44041
|
+
isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
|
|
44042
|
+
fileExists: (fileName) => host.fileExists(fileName),
|
|
44043
|
+
getFileIncludeReasons: () => host.getFileIncludeReasons(),
|
|
44044
|
+
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
44045
|
+
} : void 0 },
|
|
44104
44046
|
encounteredError: false,
|
|
44105
44047
|
reportedDiagnostic: false,
|
|
44106
44048
|
visitedTypes: void 0,
|
|
@@ -70476,8 +70418,9 @@ ${lanes.join("\n")}
|
|
|
70476
70418
|
});
|
|
70477
70419
|
const containsArguments = containsArgumentsReference(node);
|
|
70478
70420
|
if (containsArguments) {
|
|
70479
|
-
const
|
|
70480
|
-
|
|
70421
|
+
const lastJSDocParamIndex = jsdocParameters.length - 1;
|
|
70422
|
+
const lastJSDocParam = jsdocParameters[lastJSDocParamIndex];
|
|
70423
|
+
if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
|
|
70481
70424
|
error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name));
|
|
70482
70425
|
}
|
|
70483
70426
|
} else {
|
|
@@ -76629,10 +76572,10 @@ ${lanes.join("\n")}
|
|
|
76629
76572
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
76630
76573
|
);
|
|
76631
76574
|
},
|
|
76632
|
-
[308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context,
|
|
76575
|
+
[308 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
76633
76576
|
return context.factory.updateSourceFile(
|
|
76634
76577
|
node,
|
|
76635
|
-
visitLexicalEnvironment(node.statements, visitor, context
|
|
76578
|
+
visitLexicalEnvironment(node.statements, visitor, context)
|
|
76636
76579
|
);
|
|
76637
76580
|
},
|
|
76638
76581
|
[353 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -94941,7 +94884,7 @@ ${lanes.join("\n")}
|
|
|
94941
94884
|
const sourceMap = sourceMapGenerator.toString();
|
|
94942
94885
|
writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap, false, sourceFiles);
|
|
94943
94886
|
if (printer.bundleFileInfo)
|
|
94944
|
-
printer.bundleFileInfo.mapHash = computeSignature(sourceMap,
|
|
94887
|
+
printer.bundleFileInfo.mapHash = computeSignature(sourceMap, host);
|
|
94945
94888
|
}
|
|
94946
94889
|
} else {
|
|
94947
94890
|
writer.writeLine();
|
|
@@ -94949,7 +94892,7 @@ ${lanes.join("\n")}
|
|
|
94949
94892
|
const text = writer.getText();
|
|
94950
94893
|
writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform2.diagnostics });
|
|
94951
94894
|
if (printer.bundleFileInfo)
|
|
94952
|
-
printer.bundleFileInfo.hash = computeSignature(text,
|
|
94895
|
+
printer.bundleFileInfo.hash = computeSignature(text, host);
|
|
94953
94896
|
writer.clear();
|
|
94954
94897
|
}
|
|
94955
94898
|
function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) {
|
|
@@ -95053,7 +94996,6 @@ ${lanes.join("\n")}
|
|
|
95053
94996
|
return result;
|
|
95054
94997
|
}
|
|
95055
94998
|
function emitUsingBuildInfoWorker(config, host, getCommandLine, customTransformers) {
|
|
95056
|
-
const createHash = maybeBind(host, host.createHash);
|
|
95057
94999
|
const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle(config.options, false);
|
|
95058
95000
|
const buildInfo = host.getBuildInfo(buildInfoPath, config.options.configFilePath);
|
|
95059
95001
|
if (!buildInfo)
|
|
@@ -95063,22 +95005,22 @@ ${lanes.join("\n")}
|
|
|
95063
95005
|
const jsFileText = host.readFile(Debug.checkDefined(jsFilePath));
|
|
95064
95006
|
if (!jsFileText)
|
|
95065
95007
|
return jsFilePath;
|
|
95066
|
-
if (computeSignature(jsFileText,
|
|
95008
|
+
if (computeSignature(jsFileText, host) !== buildInfo.bundle.js.hash)
|
|
95067
95009
|
return jsFilePath;
|
|
95068
95010
|
const sourceMapText = sourceMapFilePath && host.readFile(sourceMapFilePath);
|
|
95069
95011
|
if (sourceMapFilePath && !sourceMapText || config.options.inlineSourceMap)
|
|
95070
95012
|
return sourceMapFilePath || "inline sourcemap decoding";
|
|
95071
|
-
if (sourceMapFilePath && computeSignature(sourceMapText,
|
|
95013
|
+
if (sourceMapFilePath && computeSignature(sourceMapText, host) !== buildInfo.bundle.js.mapHash)
|
|
95072
95014
|
return sourceMapFilePath;
|
|
95073
95015
|
const declarationText = declarationFilePath && host.readFile(declarationFilePath);
|
|
95074
95016
|
if (declarationFilePath && !declarationText)
|
|
95075
95017
|
return declarationFilePath;
|
|
95076
|
-
if (declarationFilePath && computeSignature(declarationText,
|
|
95018
|
+
if (declarationFilePath && computeSignature(declarationText, host) !== buildInfo.bundle.dts.hash)
|
|
95077
95019
|
return declarationFilePath;
|
|
95078
95020
|
const declarationMapText = declarationMapPath && host.readFile(declarationMapPath);
|
|
95079
95021
|
if (declarationMapPath && !declarationMapText || config.options.inlineSourceMap)
|
|
95080
95022
|
return declarationMapPath || "inline sourcemap decoding";
|
|
95081
|
-
if (declarationMapPath && computeSignature(declarationMapText,
|
|
95023
|
+
if (declarationMapPath && computeSignature(declarationMapText, host) !== buildInfo.bundle.dts.mapHash)
|
|
95082
95024
|
return declarationMapPath;
|
|
95083
95025
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
|
|
95084
95026
|
const ownPrependInput = createInputFilesWithFileTexts(
|
|
@@ -95148,7 +95090,7 @@ ${lanes.join("\n")}
|
|
|
95148
95090
|
getBuildInfo: (bundle) => {
|
|
95149
95091
|
const program = buildInfo.program;
|
|
95150
95092
|
if (program && changedDtsText !== void 0 && config.options.composite) {
|
|
95151
|
-
program.outSignature = computeSignature(changedDtsText,
|
|
95093
|
+
program.outSignature = computeSignature(changedDtsText, host, changedDtsData);
|
|
95152
95094
|
}
|
|
95153
95095
|
const { js, dts, sourceFiles } = buildInfo.bundle;
|
|
95154
95096
|
bundle.js.sources = js.sources;
|
|
@@ -95161,7 +95103,7 @@ ${lanes.join("\n")}
|
|
|
95161
95103
|
getSourceFileFromReference: returnUndefined,
|
|
95162
95104
|
redirectTargetsMap: createMultiMap(),
|
|
95163
95105
|
getFileIncludeReasons: notImplemented,
|
|
95164
|
-
createHash
|
|
95106
|
+
createHash: maybeBind(host, host.createHash)
|
|
95165
95107
|
};
|
|
95166
95108
|
emitFiles(
|
|
95167
95109
|
notImplementedResolver,
|
|
@@ -103356,7 +103298,7 @@ ${lanes.join("\n")}
|
|
|
103356
103298
|
return oldState && !oldState.referencedMap === !newReferencedMap;
|
|
103357
103299
|
}
|
|
103358
103300
|
BuilderState2.canReuseOldState = canReuseOldState;
|
|
103359
|
-
function create(newProgram,
|
|
103301
|
+
function create(newProgram, oldState, disableUseFileVersionAsSignature) {
|
|
103360
103302
|
var _a2, _b, _c;
|
|
103361
103303
|
const fileInfos = /* @__PURE__ */ new Map();
|
|
103362
103304
|
const options = newProgram.getCompilerOptions();
|
|
@@ -103364,6 +103306,7 @@ ${lanes.join("\n")}
|
|
|
103364
103306
|
const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
|
|
103365
103307
|
const exportedModulesMap = referencedMap ? createManyToManyPathMap() : void 0;
|
|
103366
103308
|
const useOldState = canReuseOldState(referencedMap, oldState);
|
|
103309
|
+
const getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames());
|
|
103367
103310
|
newProgram.getTypeChecker();
|
|
103368
103311
|
for (const sourceFile of newProgram.getSourceFiles()) {
|
|
103369
103312
|
const version2 = Debug.checkDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set");
|
|
@@ -103402,30 +103345,29 @@ ${lanes.join("\n")}
|
|
|
103402
103345
|
state.allFileNames = void 0;
|
|
103403
103346
|
}
|
|
103404
103347
|
BuilderState2.releaseCache = releaseCache2;
|
|
103405
|
-
function getFilesAffectedBy(state, programOfThisState, path, cancellationToken,
|
|
103348
|
+
function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, host) {
|
|
103406
103349
|
var _a2, _b;
|
|
103407
103350
|
const result = getFilesAffectedByWithOldState(
|
|
103408
103351
|
state,
|
|
103409
103352
|
programOfThisState,
|
|
103410
103353
|
path,
|
|
103411
103354
|
cancellationToken,
|
|
103412
|
-
|
|
103413
|
-
getCanonicalFileName
|
|
103355
|
+
host
|
|
103414
103356
|
);
|
|
103415
103357
|
(_a2 = state.oldSignatures) == null ? void 0 : _a2.clear();
|
|
103416
103358
|
(_b = state.oldExportedModulesMap) == null ? void 0 : _b.clear();
|
|
103417
103359
|
return result;
|
|
103418
103360
|
}
|
|
103419
103361
|
BuilderState2.getFilesAffectedBy = getFilesAffectedBy;
|
|
103420
|
-
function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken,
|
|
103362
|
+
function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host) {
|
|
103421
103363
|
const sourceFile = programOfThisState.getSourceFileByPath(path);
|
|
103422
103364
|
if (!sourceFile) {
|
|
103423
103365
|
return emptyArray;
|
|
103424
103366
|
}
|
|
103425
|
-
if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken,
|
|
103367
|
+
if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host)) {
|
|
103426
103368
|
return [sourceFile];
|
|
103427
103369
|
}
|
|
103428
|
-
return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken,
|
|
103370
|
+
return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host);
|
|
103429
103371
|
}
|
|
103430
103372
|
BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
|
|
103431
103373
|
function updateSignatureOfFile(state, signature, path) {
|
|
@@ -103433,7 +103375,7 @@ ${lanes.join("\n")}
|
|
|
103433
103375
|
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
|
|
103434
103376
|
}
|
|
103435
103377
|
BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
|
|
103436
|
-
function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken,
|
|
103378
|
+
function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) {
|
|
103437
103379
|
var _a2;
|
|
103438
103380
|
if ((_a2 = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a2.has(sourceFile.resolvedPath))
|
|
103439
103381
|
return false;
|
|
@@ -103446,10 +103388,10 @@ ${lanes.join("\n")}
|
|
|
103446
103388
|
(fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => {
|
|
103447
103389
|
Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`);
|
|
103448
103390
|
latestSignature = computeSignatureWithDiagnostics(
|
|
103391
|
+
programOfThisState,
|
|
103449
103392
|
sourceFile,
|
|
103450
103393
|
text,
|
|
103451
|
-
|
|
103452
|
-
getCanonicalFileName,
|
|
103394
|
+
host,
|
|
103453
103395
|
data
|
|
103454
103396
|
);
|
|
103455
103397
|
if (latestSignature !== prevSignature) {
|
|
@@ -103588,7 +103530,7 @@ ${lanes.join("\n")}
|
|
|
103588
103530
|
}
|
|
103589
103531
|
return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
|
|
103590
103532
|
}
|
|
103591
|
-
function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken,
|
|
103533
|
+
function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, host) {
|
|
103592
103534
|
if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) {
|
|
103593
103535
|
return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
|
|
103594
103536
|
}
|
|
@@ -103604,7 +103546,7 @@ ${lanes.join("\n")}
|
|
|
103604
103546
|
if (!seenFileNamesMap.has(currentPath)) {
|
|
103605
103547
|
const currentSourceFile = programOfThisState.getSourceFileByPath(currentPath);
|
|
103606
103548
|
seenFileNamesMap.set(currentPath, currentSourceFile);
|
|
103607
|
-
if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken,
|
|
103549
|
+
if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, host)) {
|
|
103608
103550
|
queue.push(...getReferencedByPaths(state, currentSourceFile.resolvedPath));
|
|
103609
103551
|
}
|
|
103610
103552
|
}
|
|
@@ -103648,9 +103590,9 @@ ${lanes.join("\n")}
|
|
|
103648
103590
|
function hasSameKeys(map1, map2) {
|
|
103649
103591
|
return map1 === map2 || map1 !== void 0 && map2 !== void 0 && map1.size === map2.size && !forEachKey(map1, (key) => !map2.has(key));
|
|
103650
103592
|
}
|
|
103651
|
-
function createBuilderProgramState(newProgram,
|
|
103593
|
+
function createBuilderProgramState(newProgram, oldState, disableUseFileVersionAsSignature) {
|
|
103652
103594
|
var _a2, _b;
|
|
103653
|
-
const state = BuilderState.create(newProgram,
|
|
103595
|
+
const state = BuilderState.create(newProgram, oldState, disableUseFileVersionAsSignature);
|
|
103654
103596
|
state.program = newProgram;
|
|
103655
103597
|
const compilerOptions = newProgram.getCompilerOptions();
|
|
103656
103598
|
state.compilerOptions = compilerOptions;
|
|
@@ -103694,7 +103636,7 @@ ${lanes.join("\n")}
|
|
|
103694
103636
|
return;
|
|
103695
103637
|
const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);
|
|
103696
103638
|
if (diagnostics) {
|
|
103697
|
-
state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram
|
|
103639
|
+
state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram) : diagnostics);
|
|
103698
103640
|
if (!state.semanticDiagnosticsFromOldState) {
|
|
103699
103641
|
state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
|
|
103700
103642
|
}
|
|
@@ -103754,10 +103696,11 @@ ${lanes.join("\n")}
|
|
|
103754
103696
|
function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) {
|
|
103755
103697
|
return !!options.declarationMap === !!oldOptions.declarationMap ? oldEmitSignature : isString(oldEmitSignature) ? [oldEmitSignature] : oldEmitSignature[0];
|
|
103756
103698
|
}
|
|
103757
|
-
function convertToDiagnostics(diagnostics, newProgram
|
|
103699
|
+
function convertToDiagnostics(diagnostics, newProgram) {
|
|
103758
103700
|
if (!diagnostics.length)
|
|
103759
103701
|
return emptyArray;
|
|
103760
|
-
|
|
103702
|
+
let buildInfoDirectory;
|
|
103703
|
+
let getCanonicalFileName;
|
|
103761
103704
|
return diagnostics.map((diagnostic) => {
|
|
103762
103705
|
const result = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3);
|
|
103763
103706
|
result.reportsUnnecessary = diagnostic.reportsUnnecessary;
|
|
@@ -103769,7 +103712,8 @@ ${lanes.join("\n")}
|
|
|
103769
103712
|
return result;
|
|
103770
103713
|
});
|
|
103771
103714
|
function toPath3(path) {
|
|
103772
|
-
|
|
103715
|
+
buildInfoDirectory != null ? buildInfoDirectory : buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));
|
|
103716
|
+
return toPath(path, buildInfoDirectory, getCanonicalFileName != null ? getCanonicalFileName : getCanonicalFileName = createGetCanonicalFileName(newProgram.useCaseSensitiveFileNames()));
|
|
103773
103717
|
}
|
|
103774
103718
|
}
|
|
103775
103719
|
function convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath3) {
|
|
@@ -103811,7 +103755,7 @@ ${lanes.join("\n")}
|
|
|
103811
103755
|
function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) {
|
|
103812
103756
|
Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath));
|
|
103813
103757
|
}
|
|
103814
|
-
function getNextAffectedFile(state, cancellationToken,
|
|
103758
|
+
function getNextAffectedFile(state, cancellationToken, host) {
|
|
103815
103759
|
var _a2, _b;
|
|
103816
103760
|
while (true) {
|
|
103817
103761
|
const { affectedFiles } = state;
|
|
@@ -103827,8 +103771,6 @@ ${lanes.join("\n")}
|
|
|
103827
103771
|
state,
|
|
103828
103772
|
affectedFile,
|
|
103829
103773
|
cancellationToken,
|
|
103830
|
-
computeHash,
|
|
103831
|
-
getCanonicalFileName,
|
|
103832
103774
|
host
|
|
103833
103775
|
);
|
|
103834
103776
|
return affectedFile;
|
|
@@ -103856,8 +103798,7 @@ ${lanes.join("\n")}
|
|
|
103856
103798
|
program,
|
|
103857
103799
|
nextKey.value,
|
|
103858
103800
|
cancellationToken,
|
|
103859
|
-
|
|
103860
|
-
getCanonicalFileName
|
|
103801
|
+
host
|
|
103861
103802
|
);
|
|
103862
103803
|
state.currentChangedFilePath = nextKey.value;
|
|
103863
103804
|
state.affectedFilesIndex = 0;
|
|
@@ -103909,7 +103850,7 @@ ${lanes.join("\n")}
|
|
|
103909
103850
|
);
|
|
103910
103851
|
}
|
|
103911
103852
|
}
|
|
103912
|
-
function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken,
|
|
103853
|
+
function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) {
|
|
103913
103854
|
removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath);
|
|
103914
103855
|
if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) {
|
|
103915
103856
|
removeDiagnosticsOfLibraryFiles(state);
|
|
@@ -103918,8 +103859,7 @@ ${lanes.join("\n")}
|
|
|
103918
103859
|
Debug.checkDefined(state.program),
|
|
103919
103860
|
affectedFile,
|
|
103920
103861
|
cancellationToken,
|
|
103921
|
-
|
|
103922
|
-
getCanonicalFileName
|
|
103862
|
+
host
|
|
103923
103863
|
);
|
|
103924
103864
|
return;
|
|
103925
103865
|
}
|
|
@@ -103929,12 +103869,10 @@ ${lanes.join("\n")}
|
|
|
103929
103869
|
state,
|
|
103930
103870
|
affectedFile,
|
|
103931
103871
|
cancellationToken,
|
|
103932
|
-
computeHash,
|
|
103933
|
-
getCanonicalFileName,
|
|
103934
103872
|
host
|
|
103935
103873
|
);
|
|
103936
103874
|
}
|
|
103937
|
-
function handleDtsMayChangeOf(state, path, cancellationToken,
|
|
103875
|
+
function handleDtsMayChangeOf(state, path, cancellationToken, host) {
|
|
103938
103876
|
removeSemanticDiagnosticsOf(state, path);
|
|
103939
103877
|
if (!state.changedFilesSet.has(path)) {
|
|
103940
103878
|
const program = Debug.checkDefined(state.program);
|
|
@@ -103945,8 +103883,7 @@ ${lanes.join("\n")}
|
|
|
103945
103883
|
program,
|
|
103946
103884
|
sourceFile,
|
|
103947
103885
|
cancellationToken,
|
|
103948
|
-
|
|
103949
|
-
getCanonicalFileName,
|
|
103886
|
+
host,
|
|
103950
103887
|
!host.disableUseFileVersionAsSignature
|
|
103951
103888
|
);
|
|
103952
103889
|
if (getEmitDeclarations(state.compilerOptions)) {
|
|
@@ -103968,7 +103905,7 @@ ${lanes.join("\n")}
|
|
|
103968
103905
|
const newSignature = Debug.checkDefined(state.fileInfos.get(path)).signature;
|
|
103969
103906
|
return newSignature !== oldSignature;
|
|
103970
103907
|
}
|
|
103971
|
-
function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken,
|
|
103908
|
+
function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host) {
|
|
103972
103909
|
var _a2;
|
|
103973
103910
|
if (!((_a2 = state.fileInfos.get(filePath)) == null ? void 0 : _a2.affectsGlobalScope))
|
|
103974
103911
|
return false;
|
|
@@ -103976,14 +103913,12 @@ ${lanes.join("\n")}
|
|
|
103976
103913
|
state,
|
|
103977
103914
|
file.resolvedPath,
|
|
103978
103915
|
cancellationToken,
|
|
103979
|
-
computeHash,
|
|
103980
|
-
getCanonicalFileName,
|
|
103981
103916
|
host
|
|
103982
103917
|
));
|
|
103983
103918
|
removeDiagnosticsOfLibraryFiles(state);
|
|
103984
103919
|
return true;
|
|
103985
103920
|
}
|
|
103986
|
-
function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken,
|
|
103921
|
+
function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host) {
|
|
103987
103922
|
var _a2;
|
|
103988
103923
|
if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.resolvedPath))
|
|
103989
103924
|
return;
|
|
@@ -103997,9 +103932,9 @@ ${lanes.join("\n")}
|
|
|
103997
103932
|
const currentPath = queue.pop();
|
|
103998
103933
|
if (!seenFileNamesMap.has(currentPath)) {
|
|
103999
103934
|
seenFileNamesMap.set(currentPath, true);
|
|
104000
|
-
if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken,
|
|
103935
|
+
if (handleDtsMayChangeOfGlobalScope(state, currentPath, cancellationToken, host))
|
|
104001
103936
|
return;
|
|
104002
|
-
handleDtsMayChangeOf(state, currentPath, cancellationToken,
|
|
103937
|
+
handleDtsMayChangeOf(state, currentPath, cancellationToken, host);
|
|
104003
103938
|
if (isChangedSignature(state, currentPath)) {
|
|
104004
103939
|
const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath);
|
|
104005
103940
|
queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath));
|
|
@@ -104009,7 +103944,7 @@ ${lanes.join("\n")}
|
|
|
104009
103944
|
}
|
|
104010
103945
|
const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
|
|
104011
103946
|
(_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
|
|
104012
|
-
if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken,
|
|
103947
|
+
if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, host))
|
|
104013
103948
|
return true;
|
|
104014
103949
|
const references = state.referencedMap.getKeys(exportedFromPath);
|
|
104015
103950
|
return references && forEachKey(
|
|
@@ -104019,28 +103954,24 @@ ${lanes.join("\n")}
|
|
|
104019
103954
|
filePath,
|
|
104020
103955
|
seenFileAndExportsOfFile,
|
|
104021
103956
|
cancellationToken,
|
|
104022
|
-
computeHash,
|
|
104023
|
-
getCanonicalFileName,
|
|
104024
103957
|
host
|
|
104025
103958
|
)
|
|
104026
103959
|
);
|
|
104027
103960
|
});
|
|
104028
103961
|
}
|
|
104029
|
-
function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken,
|
|
103962
|
+
function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, cancellationToken, host) {
|
|
104030
103963
|
var _a2, _b;
|
|
104031
103964
|
if (!tryAddToSet(seenFileAndExportsOfFile, filePath))
|
|
104032
103965
|
return void 0;
|
|
104033
|
-
if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken,
|
|
103966
|
+
if (handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, host))
|
|
104034
103967
|
return true;
|
|
104035
|
-
handleDtsMayChangeOf(state, filePath, cancellationToken,
|
|
103968
|
+
handleDtsMayChangeOf(state, filePath, cancellationToken, host);
|
|
104036
103969
|
(_a2 = state.exportedModulesMap.getKeys(filePath)) == null ? void 0 : _a2.forEach(
|
|
104037
103970
|
(exportedFromPath) => handleDtsMayChangeOfFileAndExportsOfFile(
|
|
104038
103971
|
state,
|
|
104039
103972
|
exportedFromPath,
|
|
104040
103973
|
seenFileAndExportsOfFile,
|
|
104041
103974
|
cancellationToken,
|
|
104042
|
-
computeHash,
|
|
104043
|
-
getCanonicalFileName,
|
|
104044
103975
|
host
|
|
104045
103976
|
)
|
|
104046
103977
|
);
|
|
@@ -104049,8 +103980,6 @@ ${lanes.join("\n")}
|
|
|
104049
103980
|
state,
|
|
104050
103981
|
referencingFilePath,
|
|
104051
103982
|
cancellationToken,
|
|
104052
|
-
computeHash,
|
|
104053
|
-
getCanonicalFileName,
|
|
104054
103983
|
host
|
|
104055
103984
|
)
|
|
104056
103985
|
);
|
|
@@ -104079,9 +104008,10 @@ ${lanes.join("\n")}
|
|
|
104079
104008
|
function isProgramBundleEmitBuildInfo(info) {
|
|
104080
104009
|
return !!outFile(info.options || {});
|
|
104081
104010
|
}
|
|
104082
|
-
function getBuildInfo2(state,
|
|
104011
|
+
function getBuildInfo2(state, bundle) {
|
|
104083
104012
|
var _a2, _b, _c;
|
|
104084
104013
|
const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory();
|
|
104014
|
+
const getCanonicalFileName = createGetCanonicalFileName(state.program.useCaseSensitiveFileNames());
|
|
104085
104015
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
|
|
104086
104016
|
const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
|
|
104087
104017
|
const fileNames = [];
|
|
@@ -104300,8 +104230,9 @@ ${lanes.join("\n")}
|
|
|
104300
104230
|
function getTextHandlingSourceMapForSignature(text, data) {
|
|
104301
104231
|
return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text;
|
|
104302
104232
|
}
|
|
104303
|
-
function computeSignatureWithDiagnostics(sourceFile, text,
|
|
104304
|
-
var _a2;
|
|
104233
|
+
function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) {
|
|
104234
|
+
var _a2, _b;
|
|
104235
|
+
let getCanonicalFileName;
|
|
104305
104236
|
text = getTextHandlingSourceMapForSignature(text, data);
|
|
104306
104237
|
let sourceFileDirectory;
|
|
104307
104238
|
if ((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length) {
|
|
@@ -104309,7 +104240,7 @@ ${lanes.join("\n")}
|
|
|
104309
104240
|
(diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`
|
|
104310
104241
|
).join("\n");
|
|
104311
104242
|
}
|
|
104312
|
-
return (
|
|
104243
|
+
return ((_b = host.createHash) != null ? _b : generateDjb2Hash)(text);
|
|
104313
104244
|
function flattenDiagnosticMessageText2(diagnostic) {
|
|
104314
104245
|
return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? "" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText2).join("\n");
|
|
104315
104246
|
}
|
|
@@ -104318,11 +104249,16 @@ ${lanes.join("\n")}
|
|
|
104318
104249
|
return `(${diagnostic.start},${diagnostic.length})`;
|
|
104319
104250
|
if (sourceFileDirectory === void 0)
|
|
104320
104251
|
sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath);
|
|
104321
|
-
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})`;
|
|
104322
104257
|
}
|
|
104323
104258
|
}
|
|
104324
|
-
function computeSignature(text,
|
|
104325
|
-
|
|
104259
|
+
function computeSignature(text, host, data) {
|
|
104260
|
+
var _a2;
|
|
104261
|
+
return ((_a2 = host.createHash) != null ? _a2 : generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data));
|
|
104326
104262
|
}
|
|
104327
104263
|
function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) {
|
|
104328
104264
|
let oldState = oldProgram && oldProgram.getState();
|
|
@@ -104331,10 +104267,8 @@ ${lanes.join("\n")}
|
|
|
104331
104267
|
oldState = void 0;
|
|
104332
104268
|
return oldProgram;
|
|
104333
104269
|
}
|
|
104334
|
-
const
|
|
104335
|
-
|
|
104336
|
-
const state = createBuilderProgramState(newProgram, getCanonicalFileName, oldState, host.disableUseFileVersionAsSignature);
|
|
104337
|
-
newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, getCanonicalFileName, bundle);
|
|
104270
|
+
const state = createBuilderProgramState(newProgram, oldState, host.disableUseFileVersionAsSignature);
|
|
104271
|
+
newProgram.getBuildInfo = (bundle) => getBuildInfo2(state, bundle);
|
|
104338
104272
|
newProgram = void 0;
|
|
104339
104273
|
oldProgram = void 0;
|
|
104340
104274
|
oldState = void 0;
|
|
@@ -104368,7 +104302,7 @@ ${lanes.join("\n")}
|
|
|
104368
104302
|
}
|
|
104369
104303
|
function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) {
|
|
104370
104304
|
var _a2, _b, _c, _d, _e;
|
|
104371
|
-
let affected = getNextAffectedFile(state, cancellationToken,
|
|
104305
|
+
let affected = getNextAffectedFile(state, cancellationToken, host);
|
|
104372
104306
|
const programEmitKind = getBuilderFileEmit(state.compilerOptions);
|
|
104373
104307
|
let emitKind = emitOnlyDtsFiles ? programEmitKind & 24 /* AllDts */ : programEmitKind;
|
|
104374
104308
|
if (!affected) {
|
|
@@ -104442,10 +104376,10 @@ ${lanes.join("\n")}
|
|
|
104442
104376
|
const info = state.fileInfos.get(file.resolvedPath);
|
|
104443
104377
|
if (info.signature === file.version) {
|
|
104444
104378
|
const signature = computeSignatureWithDiagnostics(
|
|
104379
|
+
state.program,
|
|
104445
104380
|
file,
|
|
104446
104381
|
text,
|
|
104447
|
-
|
|
104448
|
-
getCanonicalFileName,
|
|
104382
|
+
host,
|
|
104449
104383
|
data
|
|
104450
104384
|
);
|
|
104451
104385
|
if (!((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length))
|
|
@@ -104489,7 +104423,7 @@ ${lanes.join("\n")}
|
|
|
104489
104423
|
state.program.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
|
|
104490
104424
|
function handleNewSignature(oldSignatureFormat, newSignature) {
|
|
104491
104425
|
const oldSignature = !oldSignatureFormat || isString(oldSignatureFormat) ? oldSignatureFormat : oldSignatureFormat[0];
|
|
104492
|
-
newSignature != null ? newSignature : newSignature = computeSignature(text,
|
|
104426
|
+
newSignature != null ? newSignature : newSignature = computeSignature(text, host, data);
|
|
104493
104427
|
if (newSignature === oldSignature) {
|
|
104494
104428
|
if (oldSignatureFormat === oldSignature)
|
|
104495
104429
|
return void 0;
|
|
@@ -104545,7 +104479,7 @@ ${lanes.join("\n")}
|
|
|
104545
104479
|
}
|
|
104546
104480
|
function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) {
|
|
104547
104481
|
while (true) {
|
|
104548
|
-
const affected = getNextAffectedFile(state, cancellationToken,
|
|
104482
|
+
const affected = getNextAffectedFile(state, cancellationToken, host);
|
|
104549
104483
|
let result;
|
|
104550
104484
|
if (!affected)
|
|
104551
104485
|
return void 0;
|
|
@@ -116400,6 +116334,7 @@ ${lanes.join("\n")}
|
|
|
116400
116334
|
trace: maybeBind(host, host.trace),
|
|
116401
116335
|
resolveModuleNames: maybeBind(host, host.resolveModuleNames),
|
|
116402
116336
|
getModuleResolutionCache: maybeBind(host, host.getModuleResolutionCache),
|
|
116337
|
+
createHash: maybeBind(host, host.createHash),
|
|
116403
116338
|
resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives),
|
|
116404
116339
|
useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect),
|
|
116405
116340
|
getParsedCommandLine
|
|
@@ -146904,6 +146839,63 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146904
146839
|
}
|
|
146905
146840
|
});
|
|
146906
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
|
+
|
|
146907
146899
|
// src/deprecatedCompat/deprecations.ts
|
|
146908
146900
|
function createOverload(name, overloads, binder2, deprecations) {
|
|
146909
146901
|
Object.defineProperty(call, "name", { ...Object.getOwnPropertyDescriptor(call, "name"), value: name });
|
|
@@ -146911,7 +146903,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146911
146903
|
for (const key of Object.keys(deprecations)) {
|
|
146912
146904
|
const index = +key;
|
|
146913
146905
|
if (!isNaN(index) && hasProperty(overloads, `${index}`)) {
|
|
146914
|
-
overloads[index] =
|
|
146906
|
+
overloads[index] = deprecate(overloads[index], { ...deprecations[index], name });
|
|
146915
146907
|
}
|
|
146916
146908
|
}
|
|
146917
146909
|
}
|
|
@@ -146952,6 +146944,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146952
146944
|
"src/deprecatedCompat/deprecations.ts"() {
|
|
146953
146945
|
"use strict";
|
|
146954
146946
|
init_ts5();
|
|
146947
|
+
init_deprecate();
|
|
146955
146948
|
}
|
|
146956
146949
|
});
|
|
146957
146950
|
|
|
@@ -146961,337 +146954,338 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
146961
146954
|
"src/deprecatedCompat/4.0/nodeFactoryTopLevelExports.ts"() {
|
|
146962
146955
|
"use strict";
|
|
146963
146956
|
init_ts5();
|
|
146957
|
+
init_deprecate();
|
|
146964
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." };
|
|
146965
|
-
createNodeArray =
|
|
146966
|
-
createNumericLiteral =
|
|
146967
|
-
createBigIntLiteral =
|
|
146968
|
-
createStringLiteral =
|
|
146969
|
-
createStringLiteralFromNode =
|
|
146970
|
-
createRegularExpressionLiteral =
|
|
146971
|
-
createLoopVariable =
|
|
146972
|
-
createUniqueName =
|
|
146973
|
-
createPrivateIdentifier =
|
|
146974
|
-
createSuper =
|
|
146975
|
-
createThis =
|
|
146976
|
-
createNull =
|
|
146977
|
-
createTrue =
|
|
146978
|
-
createFalse =
|
|
146979
|
-
createModifier =
|
|
146980
|
-
createModifiersFromModifierFlags =
|
|
146981
|
-
createQualifiedName =
|
|
146982
|
-
updateQualifiedName =
|
|
146983
|
-
createComputedPropertyName =
|
|
146984
|
-
updateComputedPropertyName =
|
|
146985
|
-
createTypeParameterDeclaration =
|
|
146986
|
-
updateTypeParameterDeclaration =
|
|
146987
|
-
createParameter =
|
|
146988
|
-
updateParameter =
|
|
146989
|
-
createDecorator =
|
|
146990
|
-
updateDecorator =
|
|
146991
|
-
createProperty =
|
|
146992
|
-
updateProperty =
|
|
146993
|
-
createMethod =
|
|
146994
|
-
updateMethod =
|
|
146995
|
-
createConstructor =
|
|
146996
|
-
updateConstructor =
|
|
146997
|
-
createGetAccessor =
|
|
146998
|
-
updateGetAccessor =
|
|
146999
|
-
createSetAccessor =
|
|
147000
|
-
updateSetAccessor =
|
|
147001
|
-
createCallSignature =
|
|
147002
|
-
updateCallSignature =
|
|
147003
|
-
createConstructSignature =
|
|
147004
|
-
updateConstructSignature =
|
|
147005
|
-
updateIndexSignature =
|
|
147006
|
-
createKeywordTypeNode =
|
|
147007
|
-
createTypePredicateNodeWithModifier =
|
|
147008
|
-
updateTypePredicateNodeWithModifier =
|
|
147009
|
-
createTypeReferenceNode =
|
|
147010
|
-
updateTypeReferenceNode =
|
|
147011
|
-
createFunctionTypeNode =
|
|
147012
|
-
updateFunctionTypeNode =
|
|
147013
|
-
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) => {
|
|
147014
147008
|
return factory.createConstructorTypeNode(void 0, typeParameters, parameters, type);
|
|
147015
147009
|
}, factoryDeprecation);
|
|
147016
|
-
updateConstructorTypeNode =
|
|
147010
|
+
updateConstructorTypeNode = deprecate((node, typeParameters, parameters, type) => {
|
|
147017
147011
|
return factory.updateConstructorTypeNode(node, node.modifiers, typeParameters, parameters, type);
|
|
147018
147012
|
}, factoryDeprecation);
|
|
147019
|
-
createTypeQueryNode =
|
|
147020
|
-
updateTypeQueryNode =
|
|
147021
|
-
createTypeLiteralNode =
|
|
147022
|
-
updateTypeLiteralNode =
|
|
147023
|
-
createArrayTypeNode =
|
|
147024
|
-
updateArrayTypeNode =
|
|
147025
|
-
createTupleTypeNode =
|
|
147026
|
-
updateTupleTypeNode =
|
|
147027
|
-
createOptionalTypeNode =
|
|
147028
|
-
updateOptionalTypeNode =
|
|
147029
|
-
createRestTypeNode =
|
|
147030
|
-
updateRestTypeNode =
|
|
147031
|
-
createUnionTypeNode =
|
|
147032
|
-
updateUnionTypeNode =
|
|
147033
|
-
createIntersectionTypeNode =
|
|
147034
|
-
updateIntersectionTypeNode =
|
|
147035
|
-
createConditionalTypeNode =
|
|
147036
|
-
updateConditionalTypeNode =
|
|
147037
|
-
createInferTypeNode =
|
|
147038
|
-
updateInferTypeNode =
|
|
147039
|
-
createImportTypeNode =
|
|
147040
|
-
updateImportTypeNode =
|
|
147041
|
-
createParenthesizedType =
|
|
147042
|
-
updateParenthesizedType =
|
|
147043
|
-
createThisTypeNode =
|
|
147044
|
-
updateTypeOperatorNode =
|
|
147045
|
-
createIndexedAccessTypeNode =
|
|
147046
|
-
updateIndexedAccessTypeNode =
|
|
147047
|
-
createMappedTypeNode =
|
|
147048
|
-
updateMappedTypeNode =
|
|
147049
|
-
createLiteralTypeNode =
|
|
147050
|
-
updateLiteralTypeNode =
|
|
147051
|
-
createObjectBindingPattern =
|
|
147052
|
-
updateObjectBindingPattern =
|
|
147053
|
-
createArrayBindingPattern =
|
|
147054
|
-
updateArrayBindingPattern =
|
|
147055
|
-
createBindingElement =
|
|
147056
|
-
updateBindingElement =
|
|
147057
|
-
createArrayLiteral =
|
|
147058
|
-
updateArrayLiteral =
|
|
147059
|
-
createObjectLiteral =
|
|
147060
|
-
updateObjectLiteral =
|
|
147061
|
-
createPropertyAccess =
|
|
147062
|
-
updatePropertyAccess =
|
|
147063
|
-
createPropertyAccessChain =
|
|
147064
|
-
updatePropertyAccessChain =
|
|
147065
|
-
createElementAccess =
|
|
147066
|
-
updateElementAccess =
|
|
147067
|
-
createElementAccessChain =
|
|
147068
|
-
updateElementAccessChain =
|
|
147069
|
-
createCall =
|
|
147070
|
-
updateCall =
|
|
147071
|
-
createCallChain =
|
|
147072
|
-
updateCallChain =
|
|
147073
|
-
createNew =
|
|
147074
|
-
updateNew =
|
|
147075
|
-
createTypeAssertion =
|
|
147076
|
-
updateTypeAssertion =
|
|
147077
|
-
createParen =
|
|
147078
|
-
updateParen =
|
|
147079
|
-
createFunctionExpression =
|
|
147080
|
-
updateFunctionExpression =
|
|
147081
|
-
createDelete =
|
|
147082
|
-
updateDelete =
|
|
147083
|
-
createTypeOf =
|
|
147084
|
-
updateTypeOf =
|
|
147085
|
-
createVoid =
|
|
147086
|
-
updateVoid =
|
|
147087
|
-
createAwait =
|
|
147088
|
-
updateAwait =
|
|
147089
|
-
createPrefix =
|
|
147090
|
-
updatePrefix =
|
|
147091
|
-
createPostfix =
|
|
147092
|
-
updatePostfix =
|
|
147093
|
-
createBinary =
|
|
147094
|
-
updateConditional =
|
|
147095
|
-
createTemplateExpression =
|
|
147096
|
-
updateTemplateExpression =
|
|
147097
|
-
createTemplateHead =
|
|
147098
|
-
createTemplateMiddle =
|
|
147099
|
-
createTemplateTail =
|
|
147100
|
-
createNoSubstitutionTemplateLiteral =
|
|
147101
|
-
updateYield =
|
|
147102
|
-
createSpread =
|
|
147103
|
-
updateSpread =
|
|
147104
|
-
createOmittedExpression =
|
|
147105
|
-
createAsExpression =
|
|
147106
|
-
updateAsExpression =
|
|
147107
|
-
createNonNullExpression =
|
|
147108
|
-
updateNonNullExpression =
|
|
147109
|
-
createNonNullChain =
|
|
147110
|
-
updateNonNullChain =
|
|
147111
|
-
createMetaProperty =
|
|
147112
|
-
updateMetaProperty =
|
|
147113
|
-
createTemplateSpan =
|
|
147114
|
-
updateTemplateSpan =
|
|
147115
|
-
createSemicolonClassElement =
|
|
147116
|
-
createBlock =
|
|
147117
|
-
updateBlock =
|
|
147118
|
-
createVariableStatement =
|
|
147119
|
-
updateVariableStatement =
|
|
147120
|
-
createEmptyStatement =
|
|
147121
|
-
createExpressionStatement =
|
|
147122
|
-
updateExpressionStatement =
|
|
147123
|
-
createStatement =
|
|
147124
|
-
updateStatement =
|
|
147125
|
-
createIf =
|
|
147126
|
-
updateIf =
|
|
147127
|
-
createDo =
|
|
147128
|
-
updateDo =
|
|
147129
|
-
createWhile =
|
|
147130
|
-
updateWhile =
|
|
147131
|
-
createFor =
|
|
147132
|
-
updateFor =
|
|
147133
|
-
createForIn =
|
|
147134
|
-
updateForIn =
|
|
147135
|
-
createForOf =
|
|
147136
|
-
updateForOf =
|
|
147137
|
-
createContinue =
|
|
147138
|
-
updateContinue =
|
|
147139
|
-
createBreak =
|
|
147140
|
-
updateBreak =
|
|
147141
|
-
createReturn =
|
|
147142
|
-
updateReturn =
|
|
147143
|
-
createWith =
|
|
147144
|
-
updateWith =
|
|
147145
|
-
createSwitch =
|
|
147146
|
-
updateSwitch =
|
|
147147
|
-
createLabel =
|
|
147148
|
-
updateLabel =
|
|
147149
|
-
createThrow =
|
|
147150
|
-
updateThrow =
|
|
147151
|
-
createTry =
|
|
147152
|
-
updateTry =
|
|
147153
|
-
createDebuggerStatement =
|
|
147154
|
-
createVariableDeclarationList =
|
|
147155
|
-
updateVariableDeclarationList =
|
|
147156
|
-
createFunctionDeclaration =
|
|
147157
|
-
updateFunctionDeclaration =
|
|
147158
|
-
createClassDeclaration =
|
|
147159
|
-
updateClassDeclaration =
|
|
147160
|
-
createInterfaceDeclaration =
|
|
147161
|
-
updateInterfaceDeclaration =
|
|
147162
|
-
createTypeAliasDeclaration =
|
|
147163
|
-
updateTypeAliasDeclaration =
|
|
147164
|
-
createEnumDeclaration =
|
|
147165
|
-
updateEnumDeclaration =
|
|
147166
|
-
createModuleDeclaration =
|
|
147167
|
-
updateModuleDeclaration =
|
|
147168
|
-
createModuleBlock =
|
|
147169
|
-
updateModuleBlock =
|
|
147170
|
-
createCaseBlock =
|
|
147171
|
-
updateCaseBlock =
|
|
147172
|
-
createNamespaceExportDeclaration =
|
|
147173
|
-
updateNamespaceExportDeclaration =
|
|
147174
|
-
createImportEqualsDeclaration =
|
|
147175
|
-
updateImportEqualsDeclaration =
|
|
147176
|
-
createImportDeclaration =
|
|
147177
|
-
updateImportDeclaration =
|
|
147178
|
-
createNamespaceImport =
|
|
147179
|
-
updateNamespaceImport =
|
|
147180
|
-
createNamedImports =
|
|
147181
|
-
updateNamedImports =
|
|
147182
|
-
createImportSpecifier =
|
|
147183
|
-
updateImportSpecifier =
|
|
147184
|
-
createExportAssignment2 =
|
|
147185
|
-
updateExportAssignment =
|
|
147186
|
-
createNamedExports =
|
|
147187
|
-
updateNamedExports =
|
|
147188
|
-
createExportSpecifier =
|
|
147189
|
-
updateExportSpecifier =
|
|
147190
|
-
createExternalModuleReference =
|
|
147191
|
-
updateExternalModuleReference =
|
|
147192
|
-
createJSDocTypeExpression =
|
|
147193
|
-
createJSDocTypeTag =
|
|
147194
|
-
createJSDocReturnTag =
|
|
147195
|
-
createJSDocThisTag =
|
|
147196
|
-
createJSDocComment =
|
|
147197
|
-
createJSDocParameterTag =
|
|
147198
|
-
createJSDocClassTag =
|
|
147199
|
-
createJSDocAugmentsTag =
|
|
147200
|
-
createJSDocEnumTag =
|
|
147201
|
-
createJSDocTemplateTag =
|
|
147202
|
-
createJSDocTypedefTag =
|
|
147203
|
-
createJSDocCallbackTag =
|
|
147204
|
-
createJSDocSignature =
|
|
147205
|
-
createJSDocPropertyTag =
|
|
147206
|
-
createJSDocTypeLiteral =
|
|
147207
|
-
createJSDocImplementsTag =
|
|
147208
|
-
createJSDocAuthorTag =
|
|
147209
|
-
createJSDocPublicTag =
|
|
147210
|
-
createJSDocPrivateTag =
|
|
147211
|
-
createJSDocProtectedTag =
|
|
147212
|
-
createJSDocReadonlyTag =
|
|
147213
|
-
createJSDocTag =
|
|
147214
|
-
createJsxElement =
|
|
147215
|
-
updateJsxElement =
|
|
147216
|
-
createJsxSelfClosingElement =
|
|
147217
|
-
updateJsxSelfClosingElement =
|
|
147218
|
-
createJsxOpeningElement =
|
|
147219
|
-
updateJsxOpeningElement =
|
|
147220
|
-
createJsxClosingElement =
|
|
147221
|
-
updateJsxClosingElement =
|
|
147222
|
-
createJsxFragment =
|
|
147223
|
-
createJsxText =
|
|
147224
|
-
updateJsxText =
|
|
147225
|
-
createJsxOpeningFragment =
|
|
147226
|
-
createJsxJsxClosingFragment =
|
|
147227
|
-
updateJsxFragment =
|
|
147228
|
-
createJsxAttribute =
|
|
147229
|
-
updateJsxAttribute =
|
|
147230
|
-
createJsxAttributes =
|
|
147231
|
-
updateJsxAttributes =
|
|
147232
|
-
createJsxSpreadAttribute =
|
|
147233
|
-
updateJsxSpreadAttribute =
|
|
147234
|
-
createJsxExpression =
|
|
147235
|
-
updateJsxExpression =
|
|
147236
|
-
createCaseClause =
|
|
147237
|
-
updateCaseClause =
|
|
147238
|
-
createDefaultClause =
|
|
147239
|
-
updateDefaultClause =
|
|
147240
|
-
createHeritageClause =
|
|
147241
|
-
updateHeritageClause =
|
|
147242
|
-
createCatchClause =
|
|
147243
|
-
updateCatchClause =
|
|
147244
|
-
createPropertyAssignment =
|
|
147245
|
-
updatePropertyAssignment =
|
|
147246
|
-
createShorthandPropertyAssignment =
|
|
147247
|
-
updateShorthandPropertyAssignment =
|
|
147248
|
-
createSpreadAssignment =
|
|
147249
|
-
updateSpreadAssignment =
|
|
147250
|
-
createEnumMember =
|
|
147251
|
-
updateEnumMember =
|
|
147252
|
-
updateSourceFileNode =
|
|
147253
|
-
createNotEmittedStatement =
|
|
147254
|
-
createPartiallyEmittedExpression =
|
|
147255
|
-
updatePartiallyEmittedExpression =
|
|
147256
|
-
createCommaList =
|
|
147257
|
-
updateCommaList =
|
|
147258
|
-
createBundle =
|
|
147259
|
-
updateBundle =
|
|
147260
|
-
createImmediatelyInvokedFunctionExpression =
|
|
147261
|
-
createImmediatelyInvokedArrowFunction =
|
|
147262
|
-
createVoidZero =
|
|
147263
|
-
createExportDefault =
|
|
147264
|
-
createExternalModuleExport =
|
|
147265
|
-
createNamespaceExport =
|
|
147266
|
-
updateNamespaceExport =
|
|
147267
|
-
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) {
|
|
147268
147262
|
return factory.createToken(kind);
|
|
147269
147263
|
}, factoryDeprecation);
|
|
147270
|
-
createIdentifier =
|
|
147264
|
+
createIdentifier = deprecate(function createIdentifier2(text) {
|
|
147271
147265
|
return factory.createIdentifier(text, void 0, void 0);
|
|
147272
147266
|
}, factoryDeprecation);
|
|
147273
|
-
createTempVariable =
|
|
147267
|
+
createTempVariable = deprecate(function createTempVariable2(recordTempVariable) {
|
|
147274
147268
|
return factory.createTempVariable(recordTempVariable, void 0);
|
|
147275
147269
|
}, factoryDeprecation);
|
|
147276
|
-
getGeneratedNameForNode =
|
|
147270
|
+
getGeneratedNameForNode = deprecate(function getGeneratedNameForNode2(node) {
|
|
147277
147271
|
return factory.getGeneratedNameForNode(node, void 0);
|
|
147278
147272
|
}, factoryDeprecation);
|
|
147279
|
-
createOptimisticUniqueName =
|
|
147273
|
+
createOptimisticUniqueName = deprecate(function createOptimisticUniqueName2(text) {
|
|
147280
147274
|
return factory.createUniqueName(text, 16 /* Optimistic */);
|
|
147281
147275
|
}, factoryDeprecation);
|
|
147282
|
-
createFileLevelUniqueName =
|
|
147276
|
+
createFileLevelUniqueName = deprecate(function createFileLevelUniqueName2(text) {
|
|
147283
147277
|
return factory.createUniqueName(text, 16 /* Optimistic */ | 32 /* FileLevel */);
|
|
147284
147278
|
}, factoryDeprecation);
|
|
147285
|
-
createIndexSignature =
|
|
147279
|
+
createIndexSignature = deprecate(function createIndexSignature2(decorators, modifiers, parameters, type) {
|
|
147286
147280
|
return factory.createIndexSignature(decorators, modifiers, parameters, type);
|
|
147287
147281
|
}, factoryDeprecation);
|
|
147288
|
-
createTypePredicateNode =
|
|
147282
|
+
createTypePredicateNode = deprecate(function createTypePredicateNode2(parameterName, type) {
|
|
147289
147283
|
return factory.createTypePredicateNode(void 0, parameterName, type);
|
|
147290
147284
|
}, factoryDeprecation);
|
|
147291
|
-
updateTypePredicateNode =
|
|
147285
|
+
updateTypePredicateNode = deprecate(function updateTypePredicateNode2(node, parameterName, type) {
|
|
147292
147286
|
return factory.updateTypePredicateNode(node, void 0, parameterName, type);
|
|
147293
147287
|
}, factoryDeprecation);
|
|
147294
|
-
createLiteral =
|
|
147288
|
+
createLiteral = deprecate(function createLiteral2(value) {
|
|
147295
147289
|
if (typeof value === "number") {
|
|
147296
147290
|
return factory.createNumericLiteral(value);
|
|
147297
147291
|
}
|
|
@@ -147306,13 +147300,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147306
147300
|
}
|
|
147307
147301
|
return factory.createStringLiteralFromNode(value);
|
|
147308
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." });
|
|
147309
|
-
createMethodSignature =
|
|
147303
|
+
createMethodSignature = deprecate(function createMethodSignature2(typeParameters, parameters, type, name, questionToken) {
|
|
147310
147304
|
return factory.createMethodSignature(void 0, name, questionToken, typeParameters, parameters, type);
|
|
147311
147305
|
}, factoryDeprecation);
|
|
147312
|
-
updateMethodSignature =
|
|
147306
|
+
updateMethodSignature = deprecate(function updateMethodSignature2(node, typeParameters, parameters, type, name, questionToken) {
|
|
147313
147307
|
return factory.updateMethodSignature(node, node.modifiers, name, questionToken, typeParameters, parameters, type);
|
|
147314
147308
|
}, factoryDeprecation);
|
|
147315
|
-
createTypeOperatorNode =
|
|
147309
|
+
createTypeOperatorNode = deprecate(function createTypeOperatorNode2(operatorOrType, type) {
|
|
147316
147310
|
let operator;
|
|
147317
147311
|
if (type) {
|
|
147318
147312
|
operator = operatorOrType;
|
|
@@ -147322,7 +147316,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147322
147316
|
}
|
|
147323
147317
|
return factory.createTypeOperatorNode(operator, type);
|
|
147324
147318
|
}, factoryDeprecation);
|
|
147325
|
-
createTaggedTemplate =
|
|
147319
|
+
createTaggedTemplate = deprecate(function createTaggedTemplate2(tag, typeArgumentsOrTemplate, template) {
|
|
147326
147320
|
let typeArguments;
|
|
147327
147321
|
if (template) {
|
|
147328
147322
|
typeArguments = typeArgumentsOrTemplate;
|
|
@@ -147331,7 +147325,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147331
147325
|
}
|
|
147332
147326
|
return factory.createTaggedTemplateExpression(tag, typeArguments, template);
|
|
147333
147327
|
}, factoryDeprecation);
|
|
147334
|
-
updateTaggedTemplate =
|
|
147328
|
+
updateTaggedTemplate = deprecate(function updateTaggedTemplate2(node, tag, typeArgumentsOrTemplate, template) {
|
|
147335
147329
|
let typeArguments;
|
|
147336
147330
|
if (template) {
|
|
147337
147331
|
typeArguments = typeArgumentsOrTemplate;
|
|
@@ -147340,16 +147334,16 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147340
147334
|
}
|
|
147341
147335
|
return factory.updateTaggedTemplateExpression(node, tag, typeArguments, template);
|
|
147342
147336
|
}, factoryDeprecation);
|
|
147343
|
-
updateBinary =
|
|
147337
|
+
updateBinary = deprecate(function updateBinary2(node, left, right, operator = node.operatorToken) {
|
|
147344
147338
|
if (typeof operator === "number") {
|
|
147345
147339
|
operator = operator === node.operatorToken.kind ? node.operatorToken : factory.createToken(operator);
|
|
147346
147340
|
}
|
|
147347
147341
|
return factory.updateBinaryExpression(node, left, operator, right);
|
|
147348
147342
|
}, factoryDeprecation);
|
|
147349
|
-
createConditional =
|
|
147343
|
+
createConditional = deprecate(function createConditional2(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {
|
|
147350
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");
|
|
147351
147345
|
}, factoryDeprecation);
|
|
147352
|
-
createYield =
|
|
147346
|
+
createYield = deprecate(function createYield2(asteriskTokenOrExpression, expression) {
|
|
147353
147347
|
let asteriskToken;
|
|
147354
147348
|
if (expression) {
|
|
147355
147349
|
asteriskToken = asteriskTokenOrExpression;
|
|
@@ -147358,18 +147352,18 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147358
147352
|
}
|
|
147359
147353
|
return factory.createYieldExpression(asteriskToken, expression);
|
|
147360
147354
|
}, factoryDeprecation);
|
|
147361
|
-
createClassExpression =
|
|
147355
|
+
createClassExpression = deprecate(function createClassExpression2(modifiers, name, typeParameters, heritageClauses, members) {
|
|
147362
147356
|
return factory.createClassExpression(void 0, modifiers, name, typeParameters, heritageClauses, members);
|
|
147363
147357
|
}, factoryDeprecation);
|
|
147364
|
-
updateClassExpression =
|
|
147358
|
+
updateClassExpression = deprecate(function updateClassExpression2(node, modifiers, name, typeParameters, heritageClauses, members) {
|
|
147365
147359
|
return factory.updateClassExpression(node, void 0, modifiers, name, typeParameters, heritageClauses, members);
|
|
147366
147360
|
}, factoryDeprecation);
|
|
147367
|
-
createPropertySignature =
|
|
147361
|
+
createPropertySignature = deprecate(function createPropertySignature2(modifiers, name, questionToken, type, initializer) {
|
|
147368
147362
|
const node = factory.createPropertySignature(modifiers, name, questionToken, type);
|
|
147369
147363
|
node.initializer = initializer;
|
|
147370
147364
|
return node;
|
|
147371
147365
|
}, factoryDeprecation);
|
|
147372
|
-
updatePropertySignature =
|
|
147366
|
+
updatePropertySignature = deprecate(function updatePropertySignature2(node, modifiers, name, questionToken, type, initializer) {
|
|
147373
147367
|
let updated = factory.updatePropertySignature(node, modifiers, name, questionToken, type);
|
|
147374
147368
|
if (node.initializer !== initializer) {
|
|
147375
147369
|
if (updated === node) {
|
|
@@ -147379,80 +147373,80 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147379
147373
|
}
|
|
147380
147374
|
return updated;
|
|
147381
147375
|
}, factoryDeprecation);
|
|
147382
|
-
createExpressionWithTypeArguments =
|
|
147376
|
+
createExpressionWithTypeArguments = deprecate(function createExpressionWithTypeArguments2(typeArguments, expression) {
|
|
147383
147377
|
return factory.createExpressionWithTypeArguments(expression, typeArguments);
|
|
147384
147378
|
}, factoryDeprecation);
|
|
147385
|
-
updateExpressionWithTypeArguments =
|
|
147379
|
+
updateExpressionWithTypeArguments = deprecate(function updateExpressionWithTypeArguments2(node, typeArguments, expression) {
|
|
147386
147380
|
return factory.updateExpressionWithTypeArguments(node, expression, typeArguments);
|
|
147387
147381
|
}, factoryDeprecation);
|
|
147388
|
-
createArrowFunction =
|
|
147382
|
+
createArrowFunction = deprecate(function createArrowFunction2(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
|
|
147389
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");
|
|
147390
147384
|
}, factoryDeprecation);
|
|
147391
|
-
updateArrowFunction =
|
|
147385
|
+
updateArrowFunction = deprecate(function updateArrowFunction2(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {
|
|
147392
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");
|
|
147393
147387
|
}, factoryDeprecation);
|
|
147394
|
-
createVariableDeclaration =
|
|
147388
|
+
createVariableDeclaration = deprecate(function createVariableDeclaration2(name, exclamationTokenOrType, typeOrInitializer, initializer) {
|
|
147395
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");
|
|
147396
147390
|
}, factoryDeprecation);
|
|
147397
|
-
updateVariableDeclaration =
|
|
147391
|
+
updateVariableDeclaration = deprecate(function updateVariableDeclaration2(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {
|
|
147398
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");
|
|
147399
147393
|
}, factoryDeprecation);
|
|
147400
|
-
createImportClause =
|
|
147394
|
+
createImportClause = deprecate(function createImportClause2(name, namedBindings, isTypeOnly = false) {
|
|
147401
147395
|
return factory.createImportClause(isTypeOnly, name, namedBindings);
|
|
147402
147396
|
}, factoryDeprecation);
|
|
147403
|
-
updateImportClause =
|
|
147397
|
+
updateImportClause = deprecate(function updateImportClause2(node, name, namedBindings, isTypeOnly) {
|
|
147404
147398
|
return factory.updateImportClause(node, isTypeOnly, name, namedBindings);
|
|
147405
147399
|
}, factoryDeprecation);
|
|
147406
|
-
createExportDeclaration =
|
|
147400
|
+
createExportDeclaration = deprecate(function createExportDeclaration2(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly = false) {
|
|
147407
147401
|
return factory.createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);
|
|
147408
147402
|
}, factoryDeprecation);
|
|
147409
|
-
updateExportDeclaration =
|
|
147403
|
+
updateExportDeclaration = deprecate(function updateExportDeclaration2(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {
|
|
147410
147404
|
return factory.updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, node.assertClause);
|
|
147411
147405
|
}, factoryDeprecation);
|
|
147412
|
-
createJSDocParamTag =
|
|
147406
|
+
createJSDocParamTag = deprecate(function createJSDocParamTag2(name, isBracketed, typeExpression, comment) {
|
|
147413
147407
|
return factory.createJSDocParameterTag(void 0, name, isBracketed, typeExpression, false, comment ? factory.createNodeArray([factory.createJSDocText(comment)]) : void 0);
|
|
147414
147408
|
}, factoryDeprecation);
|
|
147415
|
-
createComma =
|
|
147409
|
+
createComma = deprecate(function createComma2(left, right) {
|
|
147416
147410
|
return factory.createComma(left, right);
|
|
147417
147411
|
}, factoryDeprecation);
|
|
147418
|
-
createLessThan =
|
|
147412
|
+
createLessThan = deprecate(function createLessThan2(left, right) {
|
|
147419
147413
|
return factory.createLessThan(left, right);
|
|
147420
147414
|
}, factoryDeprecation);
|
|
147421
|
-
createAssignment =
|
|
147415
|
+
createAssignment = deprecate(function createAssignment2(left, right) {
|
|
147422
147416
|
return factory.createAssignment(left, right);
|
|
147423
147417
|
}, factoryDeprecation);
|
|
147424
|
-
createStrictEquality =
|
|
147418
|
+
createStrictEquality = deprecate(function createStrictEquality2(left, right) {
|
|
147425
147419
|
return factory.createStrictEquality(left, right);
|
|
147426
147420
|
}, factoryDeprecation);
|
|
147427
|
-
createStrictInequality =
|
|
147421
|
+
createStrictInequality = deprecate(function createStrictInequality2(left, right) {
|
|
147428
147422
|
return factory.createStrictInequality(left, right);
|
|
147429
147423
|
}, factoryDeprecation);
|
|
147430
|
-
createAdd =
|
|
147424
|
+
createAdd = deprecate(function createAdd2(left, right) {
|
|
147431
147425
|
return factory.createAdd(left, right);
|
|
147432
147426
|
}, factoryDeprecation);
|
|
147433
|
-
createSubtract =
|
|
147427
|
+
createSubtract = deprecate(function createSubtract2(left, right) {
|
|
147434
147428
|
return factory.createSubtract(left, right);
|
|
147435
147429
|
}, factoryDeprecation);
|
|
147436
|
-
createLogicalAnd =
|
|
147430
|
+
createLogicalAnd = deprecate(function createLogicalAnd2(left, right) {
|
|
147437
147431
|
return factory.createLogicalAnd(left, right);
|
|
147438
147432
|
}, factoryDeprecation);
|
|
147439
|
-
createLogicalOr =
|
|
147433
|
+
createLogicalOr = deprecate(function createLogicalOr2(left, right) {
|
|
147440
147434
|
return factory.createLogicalOr(left, right);
|
|
147441
147435
|
}, factoryDeprecation);
|
|
147442
|
-
createPostfixIncrement =
|
|
147436
|
+
createPostfixIncrement = deprecate(function createPostfixIncrement2(operand) {
|
|
147443
147437
|
return factory.createPostfixIncrement(operand);
|
|
147444
147438
|
}, factoryDeprecation);
|
|
147445
|
-
createLogicalNot =
|
|
147439
|
+
createLogicalNot = deprecate(function createLogicalNot2(operand) {
|
|
147446
147440
|
return factory.createLogicalNot(operand);
|
|
147447
147441
|
}, factoryDeprecation);
|
|
147448
|
-
createNode2 =
|
|
147442
|
+
createNode2 = deprecate(function createNode3(kind, pos = 0, end = 0) {
|
|
147449
147443
|
return setTextRangePosEnd(
|
|
147450
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),
|
|
147451
147445
|
pos,
|
|
147452
147446
|
end
|
|
147453
147447
|
);
|
|
147454
147448
|
}, { since: "4.0", warnAfter: "4.1", message: "Use an appropriate `factory` method instead." });
|
|
147455
|
-
getMutableClone =
|
|
147449
|
+
getMutableClone = deprecate(function getMutableClone2(node) {
|
|
147456
147450
|
const clone2 = factory.cloneNode(node);
|
|
147457
147451
|
setTextRange(clone2, node);
|
|
147458
147452
|
setParent(clone2, node.parent);
|
|
@@ -147467,7 +147461,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147467
147461
|
"src/deprecatedCompat/4.0/renamedNodeTests.ts"() {
|
|
147468
147462
|
"use strict";
|
|
147469
147463
|
init_ts5();
|
|
147470
|
-
|
|
147464
|
+
init_deprecate();
|
|
147465
|
+
isTypeAssertion = deprecate(function isTypeAssertion2(node) {
|
|
147471
147466
|
return node.kind === 213 /* TypeAssertionExpression */;
|
|
147472
147467
|
}, {
|
|
147473
147468
|
since: "4.0",
|
|
@@ -147483,7 +147478,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147483
147478
|
"src/deprecatedCompat/4.2/renamedNodeTests.ts"() {
|
|
147484
147479
|
"use strict";
|
|
147485
147480
|
init_ts5();
|
|
147486
|
-
|
|
147481
|
+
init_deprecate();
|
|
147482
|
+
isIdentifierOrPrivateIdentifier = deprecate(function isIdentifierOrPrivateIdentifier2(node) {
|
|
147487
147483
|
return isMemberName(node);
|
|
147488
147484
|
}, {
|
|
147489
147485
|
since: "4.2",
|
|
@@ -149319,6 +149315,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
149319
149315
|
this.dirty = false;
|
|
149320
149316
|
this.typingFiles = emptyArray2;
|
|
149321
149317
|
this.moduleSpecifierCache = createModuleSpecifierCache(this);
|
|
149318
|
+
this.createHash = maybeBind(this.projectService.host, this.projectService.host.createHash);
|
|
149322
149319
|
this.globalCacheResolutionModuleName = ts_JsTyping_exports.nonRelativeModuleNameForTypingCache;
|
|
149323
149320
|
this.projectName = projectName;
|
|
149324
149321
|
this.directoryStructureHost = directoryStructureHost;
|
|
@@ -149647,15 +149644,14 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
149647
149644
|
return [];
|
|
149648
149645
|
}
|
|
149649
149646
|
updateProjectIfDirty(this);
|
|
149650
|
-
this.builderState = BuilderState.create(this.program, this.
|
|
149647
|
+
this.builderState = BuilderState.create(this.program, this.builderState, true);
|
|
149651
149648
|
return mapDefined(
|
|
149652
149649
|
BuilderState.getFilesAffectedBy(
|
|
149653
149650
|
this.builderState,
|
|
149654
149651
|
this.program,
|
|
149655
149652
|
scriptInfo.path,
|
|
149656
149653
|
this.cancellationToken,
|
|
149657
|
-
|
|
149658
|
-
this.getCanonicalFileName
|
|
149654
|
+
this.projectService.host
|
|
149659
149655
|
),
|
|
149660
149656
|
(sourceFile) => this.shouldEmitFile(this.projectService.getScriptInfoForPath(sourceFile.path)) ? sourceFile.fileName : void 0
|
|
149661
149657
|
);
|
|
@@ -160028,6 +160024,7 @@ ${e.message}`;
|
|
|
160028
160024
|
supportedLocaleDirectories: () => supportedLocaleDirectories,
|
|
160029
160025
|
supportedTSExtensions: () => supportedTSExtensions,
|
|
160030
160026
|
supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
|
|
160027
|
+
supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
|
|
160031
160028
|
suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
|
|
160032
160029
|
suppressLeadingTrivia: () => suppressLeadingTrivia,
|
|
160033
160030
|
suppressTrailingTrivia: () => suppressTrailingTrivia,
|
|
@@ -162642,6 +162639,7 @@ ${e.message}`;
|
|
|
162642
162639
|
supportedLocaleDirectories: () => supportedLocaleDirectories,
|
|
162643
162640
|
supportedTSExtensions: () => supportedTSExtensions,
|
|
162644
162641
|
supportedTSExtensionsFlat: () => supportedTSExtensionsFlat,
|
|
162642
|
+
supportedTSImplementationExtensions: () => supportedTSImplementationExtensions,
|
|
162645
162643
|
suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia,
|
|
162646
162644
|
suppressLeadingTrivia: () => suppressLeadingTrivia,
|
|
162647
162645
|
suppressTrailingTrivia: () => suppressTrailingTrivia,
|