@typescript-deploys/pr-build 4.9.0-pr-50329-13 → 4.9.0-pr-50366-2
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/.eslintcache +1 -0
- package/lib/cs/diagnosticMessages.generated.json +1 -1
- package/lib/de/diagnosticMessages.generated.json +1 -1
- package/lib/es/diagnosticMessages.generated.json +1 -1
- package/lib/fr/diagnosticMessages.generated.json +1 -1
- package/lib/it/diagnosticMessages.generated.json +1 -1
- package/lib/ja/diagnosticMessages.generated.json +1 -1
- package/lib/ko/diagnosticMessages.generated.json +1 -1
- package/lib/lib.es2020.intl.d.ts +1 -1
- package/lib/pl/diagnosticMessages.generated.json +1 -1
- package/lib/pt-br/diagnosticMessages.generated.json +1 -1
- package/lib/ru/diagnosticMessages.generated.json +1 -1
- package/lib/tr/diagnosticMessages.generated.json +1 -1
- package/lib/tsc.js +496 -534
- package/lib/tsserver.js +518 -583
- package/lib/tsserverlibrary.js +518 -569
- package/lib/typescript.js +518 -569
- package/lib/typescriptServices.js +518 -569
- package/lib/typingsInstaller.js +518 -569
- package/lib/zh-cn/diagnosticMessages.generated.json +8 -8
- package/lib/zh-tw/diagnosticMessages.generated.json +1 -1
- package/package.json +2 -3
package/lib/tsserverlibrary.js
CHANGED
|
@@ -108,7 +108,7 @@ var ts;
|
|
|
108
108
|
// The following is baselined as a literal template type without intervention
|
|
109
109
|
/** The version of the TypeScript compiler release */
|
|
110
110
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
111
|
-
ts.version = ts.versionMajorMinor + ".0-insiders.
|
|
111
|
+
ts.version = ts.versionMajorMinor + ".0-insiders.20220819";
|
|
112
112
|
/* @internal */
|
|
113
113
|
var Comparison;
|
|
114
114
|
(function (Comparison) {
|
|
@@ -6140,7 +6140,6 @@ var ts;
|
|
|
6140
6140
|
var pollingChunkSize = createPollingIntervalBasedLevels(defaultChunkLevels);
|
|
6141
6141
|
/* @internal */
|
|
6142
6142
|
ts.unchangedPollThresholds = createPollingIntervalBasedLevels(defaultChunkLevels);
|
|
6143
|
-
/* @internal */
|
|
6144
6143
|
function setCustomPollingValues(system) {
|
|
6145
6144
|
if (!system.getEnvironmentVariable) {
|
|
6146
6145
|
return;
|
|
@@ -6183,7 +6182,6 @@ var ts;
|
|
|
6183
6182
|
createPollingIntervalBasedLevels(customLevels ? __assign(__assign({}, defaultLevels), customLevels) : defaultLevels);
|
|
6184
6183
|
}
|
|
6185
6184
|
}
|
|
6186
|
-
ts.setCustomPollingValues = setCustomPollingValues;
|
|
6187
6185
|
function pollWatchedFileQueue(host, queue, pollIndex, chunkSize, callbackOnWatchFileStat) {
|
|
6188
6186
|
var definedValueCopyToIndex = pollIndex;
|
|
6189
6187
|
// Max visit would be all elements of the queue
|
|
@@ -6229,7 +6227,6 @@ var ts;
|
|
|
6229
6227
|
}
|
|
6230
6228
|
}
|
|
6231
6229
|
}
|
|
6232
|
-
/* @internal */
|
|
6233
6230
|
function createDynamicPriorityPollingWatchFile(host) {
|
|
6234
6231
|
var watchedFiles = [];
|
|
6235
6232
|
var changedFilesInLastPoll = [];
|
|
@@ -6338,7 +6335,6 @@ var ts;
|
|
|
6338
6335
|
pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === PollingInterval.Low ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingIntervalQueue(pollingInterval));
|
|
6339
6336
|
}
|
|
6340
6337
|
}
|
|
6341
|
-
ts.createDynamicPriorityPollingWatchFile = createDynamicPriorityPollingWatchFile;
|
|
6342
6338
|
function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) {
|
|
6343
6339
|
// One file can have multiple watchers
|
|
6344
6340
|
var fileWatcherCallbacks = ts.createMultiMap();
|
|
@@ -6417,42 +6413,36 @@ var ts;
|
|
|
6417
6413
|
pollScheduled = host.setTimeout(pollQueue, PollingInterval.High);
|
|
6418
6414
|
}
|
|
6419
6415
|
}
|
|
6420
|
-
|
|
6421
|
-
function createSingleFileWatcherPerName(watchFile, useCaseSensitiveFileNames) {
|
|
6422
|
-
var cache = new ts.Map();
|
|
6423
|
-
var callbacksCache = ts.createMultiMap();
|
|
6416
|
+
function createSingleWatcherPerName(cache, useCaseSensitiveFileNames, name, callback, createWatcher) {
|
|
6424
6417
|
var toCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6418
|
+
var path = toCanonicalFileName(name);
|
|
6419
|
+
var existing = cache.get(path);
|
|
6420
|
+
if (existing) {
|
|
6421
|
+
existing.callbacks.push(callback);
|
|
6422
|
+
}
|
|
6423
|
+
else {
|
|
6424
|
+
cache.set(path, {
|
|
6425
|
+
watcher: createWatcher((
|
|
6426
|
+
// Cant infer types correctly so lets satisfy checker
|
|
6427
|
+
function (param1, param2, param3) { var _a; return (_a = cache.get(path)) === null || _a === void 0 ? void 0 : _a.callbacks.slice().forEach(function (cb) { return cb(param1, param2, param3); }); })),
|
|
6428
|
+
callbacks: [callback]
|
|
6429
|
+
});
|
|
6430
|
+
}
|
|
6431
|
+
return {
|
|
6432
|
+
close: function () {
|
|
6433
|
+
var watcher = cache.get(path);
|
|
6434
|
+
if (!watcher)
|
|
6435
|
+
return;
|
|
6436
|
+
if (!ts.orderedRemoveItem(watcher.callbacks, callback) || watcher.callbacks.length)
|
|
6437
|
+
return;
|
|
6438
|
+
cache.delete(path);
|
|
6439
|
+
ts.closeFileWatcherOf(watcher);
|
|
6436
6440
|
}
|
|
6437
|
-
callbacksCache.add(path, callback);
|
|
6438
|
-
return {
|
|
6439
|
-
close: function () {
|
|
6440
|
-
var watcher = ts.Debug.checkDefined(cache.get(path));
|
|
6441
|
-
callbacksCache.remove(path, callback);
|
|
6442
|
-
watcher.refCount--;
|
|
6443
|
-
if (watcher.refCount)
|
|
6444
|
-
return;
|
|
6445
|
-
cache.delete(path);
|
|
6446
|
-
ts.closeFileWatcherOf(watcher);
|
|
6447
|
-
}
|
|
6448
|
-
};
|
|
6449
6441
|
};
|
|
6450
6442
|
}
|
|
6451
|
-
ts.createSingleFileWatcherPerName = createSingleFileWatcherPerName;
|
|
6452
6443
|
/**
|
|
6453
6444
|
* Returns true if file status changed
|
|
6454
6445
|
*/
|
|
6455
|
-
/*@internal*/
|
|
6456
6446
|
function onWatchedFileStat(watchedFile, modifiedTime) {
|
|
6457
6447
|
var oldTime = watchedFile.mtime.getTime();
|
|
6458
6448
|
var newTime = modifiedTime.getTime();
|
|
@@ -6464,7 +6454,6 @@ var ts;
|
|
|
6464
6454
|
}
|
|
6465
6455
|
return false;
|
|
6466
6456
|
}
|
|
6467
|
-
ts.onWatchedFileStat = onWatchedFileStat;
|
|
6468
6457
|
/*@internal*/
|
|
6469
6458
|
function getFileWatcherEventKind(oldTime, newTime) {
|
|
6470
6459
|
return oldTime === 0
|
|
@@ -6492,7 +6481,6 @@ var ts;
|
|
|
6492
6481
|
* that means if this is recursive watcher, watch the children directories as well
|
|
6493
6482
|
* (eg on OS that dont support recursive watch using fs.watch use fs.watchFile)
|
|
6494
6483
|
*/
|
|
6495
|
-
/*@internal*/
|
|
6496
6484
|
function createDirectoryWatcherSupportingRecursive(_a) {
|
|
6497
6485
|
var watchDirectory = _a.watchDirectory, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, fileSystemEntryExists = _a.fileSystemEntryExists, realpath = _a.realpath, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout;
|
|
6498
6486
|
var cache = new ts.Map();
|
|
@@ -6701,18 +6689,15 @@ var ts;
|
|
|
6701
6689
|
return ts.stringContains(toCanonicalFilePath(path), searchPath);
|
|
6702
6690
|
}
|
|
6703
6691
|
}
|
|
6704
|
-
ts.createDirectoryWatcherSupportingRecursive = createDirectoryWatcherSupportingRecursive;
|
|
6705
6692
|
/*@internal*/
|
|
6706
6693
|
var FileSystemEntryKind;
|
|
6707
6694
|
(function (FileSystemEntryKind) {
|
|
6708
6695
|
FileSystemEntryKind[FileSystemEntryKind["File"] = 0] = "File";
|
|
6709
6696
|
FileSystemEntryKind[FileSystemEntryKind["Directory"] = 1] = "Directory";
|
|
6710
6697
|
})(FileSystemEntryKind = ts.FileSystemEntryKind || (ts.FileSystemEntryKind = {}));
|
|
6711
|
-
/*@internal*/
|
|
6712
6698
|
function createFileWatcherCallback(callback) {
|
|
6713
6699
|
return function (_fileName, eventKind, modifiedTime) { return callback(eventKind === FileWatcherEventKind.Changed ? "change" : "rename", "", modifiedTime); };
|
|
6714
6700
|
}
|
|
6715
|
-
ts.createFileWatcherCallback = createFileWatcherCallback;
|
|
6716
6701
|
function createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModifiedTime) {
|
|
6717
6702
|
return function (eventName, _relativeFileName, modifiedTime) {
|
|
6718
6703
|
if (eventName === "rename") {
|
|
@@ -6746,7 +6731,10 @@ var ts;
|
|
|
6746
6731
|
}
|
|
6747
6732
|
/*@internal*/
|
|
6748
6733
|
function createSystemWatchFunctions(_a) {
|
|
6749
|
-
var
|
|
6734
|
+
var pollingWatchFileWorker = _a.pollingWatchFileWorker, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatchWorker = _a.fsWatchWorker, fileSystemEntryExists = _a.fileSystemEntryExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory, defaultWatchFileKind = _a.defaultWatchFileKind, inodeWatching = _a.inodeWatching, sysLog = _a.sysLog;
|
|
6735
|
+
var pollingWatches = new ts.Map();
|
|
6736
|
+
var fsWatches = new ts.Map();
|
|
6737
|
+
var fsWatchesRecursive = new ts.Map();
|
|
6750
6738
|
var dynamicPollingWatchFile;
|
|
6751
6739
|
var fixedChunkSizePollingWatchFile;
|
|
6752
6740
|
var nonPollingWatchFile;
|
|
@@ -6810,7 +6798,7 @@ var ts;
|
|
|
6810
6798
|
// Use notifications from FS to watch with falling back to fs.watchFile
|
|
6811
6799
|
generateWatchFileOptions(ts.WatchFileKind.UseFsEventsOnParentDirectory, ts.PollingWatchKind.PriorityInterval, options) :
|
|
6812
6800
|
// Default to do not use fixed polling interval
|
|
6813
|
-
{ watchFile: (defaultWatchFileKind === null || defaultWatchFileKind === void 0 ? void 0 : defaultWatchFileKind()) || ts.WatchFileKind.
|
|
6801
|
+
{ watchFile: (defaultWatchFileKind === null || defaultWatchFileKind === void 0 ? void 0 : defaultWatchFileKind()) || ts.WatchFileKind.UseFsEvents };
|
|
6814
6802
|
}
|
|
6815
6803
|
}
|
|
6816
6804
|
function generateWatchFileOptions(watchFile, fallbackPolling, options) {
|
|
@@ -6881,7 +6869,13 @@ var ts;
|
|
|
6881
6869
|
};
|
|
6882
6870
|
}
|
|
6883
6871
|
}
|
|
6872
|
+
function pollingWatchFile(fileName, callback, pollingInterval, options) {
|
|
6873
|
+
return createSingleWatcherPerName(pollingWatches, useCaseSensitiveFileNames, fileName, callback, function (cb) { return pollingWatchFileWorker(fileName, cb, pollingInterval, options); });
|
|
6874
|
+
}
|
|
6884
6875
|
function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) {
|
|
6876
|
+
return createSingleWatcherPerName(recursive ? fsWatchesRecursive : fsWatches, useCaseSensitiveFileNames, fileOrDirectory, callback, function (cb) { return fsWatchHandlingPresence(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInterval, fallbackOptions); });
|
|
6877
|
+
}
|
|
6878
|
+
function fsWatchHandlingPresence(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) {
|
|
6885
6879
|
var lastDirectoryPartWithDirectorySeparator;
|
|
6886
6880
|
var lastDirectoryPart;
|
|
6887
6881
|
if (inodeWatching) {
|
|
@@ -7060,7 +7054,7 @@ var ts;
|
|
|
7060
7054
|
var fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
|
|
7061
7055
|
var getCurrentDirectory = ts.memoize(function () { return process.cwd(); });
|
|
7062
7056
|
var _b = createSystemWatchFunctions({
|
|
7063
|
-
|
|
7057
|
+
pollingWatchFileWorker: fsWatchFileWorker,
|
|
7064
7058
|
getModifiedTime: getModifiedTime,
|
|
7065
7059
|
setTimeout: setTimeout,
|
|
7066
7060
|
clearTimeout: clearTimeout,
|
|
@@ -43111,10 +43105,12 @@ var ts;
|
|
|
43111
43105
|
if (resolved) {
|
|
43112
43106
|
var fileName = resolved.fileName, packageId = resolved.packageId;
|
|
43113
43107
|
var resolvedFileName = options.preserveSymlinks ? fileName : realPath(fileName, host, traceEnabled);
|
|
43108
|
+
var pathsAreEqual = arePathsEqual(fileName, resolvedFileName, host);
|
|
43114
43109
|
resolvedTypeReferenceDirective = {
|
|
43115
43110
|
primary: primary,
|
|
43116
|
-
|
|
43117
|
-
|
|
43111
|
+
// If the fileName and realpath are differing only in casing prefer fileName so that we can issue correct errors for casing under forceConsistentCasingInFileNames
|
|
43112
|
+
resolvedFileName: pathsAreEqual ? fileName : resolvedFileName,
|
|
43113
|
+
originalPath: pathsAreEqual ? undefined : fileName,
|
|
43118
43114
|
packageId: packageId,
|
|
43119
43115
|
isExternalLibraryImport: pathContainsNodeModules(fileName),
|
|
43120
43116
|
};
|
|
@@ -43899,8 +43895,10 @@ var ts;
|
|
|
43899
43895
|
var resolvedValue = resolved_1.value;
|
|
43900
43896
|
if (!compilerOptions.preserveSymlinks && resolvedValue && !resolvedValue.originalPath) {
|
|
43901
43897
|
var path = realPath(resolvedValue.path, host, traceEnabled);
|
|
43902
|
-
var
|
|
43903
|
-
|
|
43898
|
+
var pathsAreEqual = arePathsEqual(path, resolvedValue.path, host);
|
|
43899
|
+
var originalPath = pathsAreEqual ? undefined : resolvedValue.path;
|
|
43900
|
+
// If the path and realpath are differing only in casing prefer path so that we can issue correct errors for casing under forceConsistentCasingInFileNames
|
|
43901
|
+
resolvedValue = __assign(__assign({}, resolvedValue), { path: pathsAreEqual ? resolvedValue.path : path, originalPath: originalPath });
|
|
43904
43902
|
}
|
|
43905
43903
|
// For node_modules lookups, get the real path so that multiple accesses to an `npm link`-ed module do not create duplicate files.
|
|
43906
43904
|
return { value: resolvedValue && { resolved: resolvedValue, isExternalLibraryImport: true } };
|
|
@@ -65684,38 +65682,6 @@ var ts;
|
|
|
65684
65682
|
}
|
|
65685
65683
|
return 0 /* False */;
|
|
65686
65684
|
}
|
|
65687
|
-
// Before normalization: Intersections applied to unions create an explosion of types when normalized -
|
|
65688
|
-
// handling those inner intersections can be very costly, so it can be beneficial to factor them out early.
|
|
65689
|
-
// If both the source and target are intersections, we can remove the common types from them before formal normalization,
|
|
65690
|
-
// and run a simplified comparison without those common members.
|
|
65691
|
-
if (originalSource.flags & originalTarget.flags & 2097152 /* Intersection */) {
|
|
65692
|
-
var combinedTypeSet_1 = new ts.Map();
|
|
65693
|
-
ts.forEach(originalSource.types, function (t) { return combinedTypeSet_1.set(getTypeId(t), 1); });
|
|
65694
|
-
var hasOverlap_1 = false;
|
|
65695
|
-
ts.forEach(originalTarget.types, function (t) {
|
|
65696
|
-
var id = getTypeId(t);
|
|
65697
|
-
if (combinedTypeSet_1.has(id)) {
|
|
65698
|
-
combinedTypeSet_1.set(getTypeId(t), 2);
|
|
65699
|
-
hasOverlap_1 = true;
|
|
65700
|
-
}
|
|
65701
|
-
});
|
|
65702
|
-
if (hasOverlap_1) {
|
|
65703
|
-
var filteredSource = ts.filter(originalSource.types, function (t) { return combinedTypeSet_1.get(getTypeId(t)) !== 2; });
|
|
65704
|
-
var filteredTarget = ts.filter(originalTarget.types, function (t) { return combinedTypeSet_1.get(getTypeId(t)) !== 2; });
|
|
65705
|
-
if (!ts.length(filteredTarget)) {
|
|
65706
|
-
return -1 /* True */; // Source has all parts of target
|
|
65707
|
-
}
|
|
65708
|
-
if (ts.length(filteredSource)) {
|
|
65709
|
-
var result_7;
|
|
65710
|
-
if (result_7 = isRelatedTo(getIntersectionType(filteredSource), getIntersectionType(filteredTarget), recursionFlags, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState)) {
|
|
65711
|
-
return result_7;
|
|
65712
|
-
}
|
|
65713
|
-
// In the false case, we may still be assignable at the structural level, rather than the algebraic level
|
|
65714
|
-
}
|
|
65715
|
-
// Even if every member of the source is in the target but the target still has members left, the source may still be assignable
|
|
65716
|
-
// to the target, either if some member of the original source is assignable to the other members of the target, or if there is structural assignability
|
|
65717
|
-
}
|
|
65718
|
-
}
|
|
65719
65685
|
// Normalize the source and target types: Turn fresh literal types into regular literal types,
|
|
65720
65686
|
// turn deferred type references into regular type references, simplify indexed access and
|
|
65721
65687
|
// conditional types, and resolve substitution types to either the substitution (on the source
|
|
@@ -65791,7 +65757,7 @@ var ts;
|
|
|
65791
65757
|
traceUnionsOrIntersectionsTooLarge(source, target);
|
|
65792
65758
|
var skipCaching = source.flags & 1048576 /* Union */ && source.types.length < 4 && !(target.flags & 1048576 /* Union */) ||
|
|
65793
65759
|
target.flags & 1048576 /* Union */ && target.types.length < 4 && !(source.flags & 469499904 /* StructuredOrInstantiable */);
|
|
65794
|
-
var
|
|
65760
|
+
var result_7 = skipCaching ?
|
|
65795
65761
|
unionOrIntersectionRelatedTo(source, target, reportErrors, intersectionState) :
|
|
65796
65762
|
recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags);
|
|
65797
65763
|
// For certain combinations involving intersections and optional, excess, or mismatched properties we need
|
|
@@ -65809,14 +65775,14 @@ var ts;
|
|
|
65809
65775
|
//
|
|
65810
65776
|
// We suppress recursive intersection property checks because they can generate lots of work when relating
|
|
65811
65777
|
// recursive intersections that are structurally similar but not exactly identical. See #37854.
|
|
65812
|
-
if (
|
|
65778
|
+
if (result_7 && !inPropertyCheck && (target.flags & 2097152 /* Intersection */ && (isPerformingExcessPropertyChecks || isPerformingCommonPropertyChecks) ||
|
|
65813
65779
|
isNonGenericObjectType(target) && !isArrayOrTupleType(target) && source.flags & 2097152 /* Intersection */ && getApparentType(source).flags & 3670016 /* StructuredType */ && !ts.some(source.types, function (t) { return !!(ts.getObjectFlags(t) & 262144 /* NonInferrableType */); }))) {
|
|
65814
65780
|
inPropertyCheck = true;
|
|
65815
|
-
|
|
65781
|
+
result_7 &= recursiveTypeRelatedTo(source, target, reportErrors, 4 /* PropertyCheck */, recursionFlags);
|
|
65816
65782
|
inPropertyCheck = false;
|
|
65817
65783
|
}
|
|
65818
|
-
if (
|
|
65819
|
-
return
|
|
65784
|
+
if (result_7) {
|
|
65785
|
+
return result_7;
|
|
65820
65786
|
}
|
|
65821
65787
|
}
|
|
65822
65788
|
if (reportErrors) {
|
|
@@ -66205,9 +66171,6 @@ var ts;
|
|
|
66205
66171
|
// equal and infinitely expanding. Fourth, if we have reached a depth of 100 nested comparisons, assume we have runaway recursion
|
|
66206
66172
|
// and issue an error. Otherwise, actually compare the structure of the two types.
|
|
66207
66173
|
function recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags) {
|
|
66208
|
-
if (relation.size > Math.pow(2, 20)) {
|
|
66209
|
-
debugger;
|
|
66210
|
-
}
|
|
66211
66174
|
if (overflow) {
|
|
66212
66175
|
return 0 /* False */;
|
|
66213
66176
|
}
|
|
@@ -66366,11 +66329,11 @@ var ts;
|
|
|
66366
66329
|
if (relation === identityRelation) {
|
|
66367
66330
|
// We've already checked that source.flags and target.flags are identical
|
|
66368
66331
|
if (sourceFlags & 3145728 /* UnionOrIntersection */) {
|
|
66369
|
-
var
|
|
66370
|
-
if (
|
|
66371
|
-
|
|
66332
|
+
var result_8 = eachTypeRelatedToSomeType(source, target);
|
|
66333
|
+
if (result_8) {
|
|
66334
|
+
result_8 &= eachTypeRelatedToSomeType(target, source);
|
|
66372
66335
|
}
|
|
66373
|
-
return
|
|
66336
|
+
return result_8;
|
|
66374
66337
|
}
|
|
66375
66338
|
if (sourceFlags & 4194304 /* Index */) {
|
|
66376
66339
|
return isRelatedTo(source.type, target.type, 3 /* Both */, /*reportErrors*/ false);
|
|
@@ -66859,9 +66822,9 @@ var ts;
|
|
|
66859
66822
|
if (sourceFlags & (524288 /* Object */ | 2097152 /* Intersection */) && targetFlags & 1048576 /* Union */) {
|
|
66860
66823
|
var objectOnlyTarget = extractTypesOfKind(target, 524288 /* Object */ | 2097152 /* Intersection */ | 33554432 /* Substitution */);
|
|
66861
66824
|
if (objectOnlyTarget.flags & 1048576 /* Union */) {
|
|
66862
|
-
var
|
|
66863
|
-
if (
|
|
66864
|
-
return
|
|
66825
|
+
var result_9 = typeRelatedToDiscriminatedType(source, objectOnlyTarget);
|
|
66826
|
+
if (result_9) {
|
|
66827
|
+
return result_9;
|
|
66865
66828
|
}
|
|
66866
66829
|
}
|
|
66867
66830
|
}
|
|
@@ -66921,13 +66884,13 @@ var ts;
|
|
|
66921
66884
|
var modifiersRelated = relation === comparableRelation || (relation === identityRelation ? getMappedTypeModifiers(source) === getMappedTypeModifiers(target) :
|
|
66922
66885
|
getCombinedMappedTypeOptionality(source) <= getCombinedMappedTypeOptionality(target));
|
|
66923
66886
|
if (modifiersRelated) {
|
|
66924
|
-
var
|
|
66887
|
+
var result_10;
|
|
66925
66888
|
var targetConstraint = getConstraintTypeFromMappedType(target);
|
|
66926
66889
|
var sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source), getCombinedMappedTypeOptionality(source) < 0 ? reportUnmeasurableMapper : reportUnreliableMapper);
|
|
66927
|
-
if (
|
|
66890
|
+
if (result_10 = isRelatedTo(targetConstraint, sourceConstraint, 3 /* Both */, reportErrors)) {
|
|
66928
66891
|
var mapper = createTypeMapper([getTypeParameterFromMappedType(source)], [getTypeParameterFromMappedType(target)]);
|
|
66929
66892
|
if (instantiateType(getNameTypeFromMappedType(source), mapper) === instantiateType(getNameTypeFromMappedType(target), mapper)) {
|
|
66930
|
-
return
|
|
66893
|
+
return result_10 & isRelatedTo(instantiateType(getTemplateTypeFromMappedType(source), mapper), getTemplateTypeFromMappedType(target), 3 /* Both */, reportErrors);
|
|
66931
66894
|
}
|
|
66932
66895
|
}
|
|
66933
66896
|
}
|
|
@@ -78278,10 +78241,10 @@ var ts;
|
|
|
78278
78241
|
hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0);
|
|
78279
78242
|
hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);
|
|
78280
78243
|
if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {
|
|
78281
|
-
var
|
|
78282
|
-
|
|
78283
|
-
|
|
78284
|
-
return
|
|
78244
|
+
var result_11 = createAnonymousType(undefined, resolved.members, callSignatures, constructSignatures, resolved.indexInfos);
|
|
78245
|
+
result_11.objectFlags |= 8388608 /* InstantiationExpressionType */;
|
|
78246
|
+
result_11.node = node;
|
|
78247
|
+
return result_11;
|
|
78285
78248
|
}
|
|
78286
78249
|
}
|
|
78287
78250
|
else if (type.flags & 58982400 /* InstantiableNonPrimitive */) {
|
|
@@ -82116,12 +82079,12 @@ var ts;
|
|
|
82116
82079
|
case 265 /* ImportEqualsDeclaration */:
|
|
82117
82080
|
case 268 /* NamespaceImport */:
|
|
82118
82081
|
case 267 /* ImportClause */:
|
|
82119
|
-
var
|
|
82082
|
+
var result_12 = 0 /* None */;
|
|
82120
82083
|
var target = resolveAlias(getSymbolOfNode(d));
|
|
82121
82084
|
ts.forEach(target.declarations, function (d) {
|
|
82122
|
-
|
|
82085
|
+
result_12 |= getDeclarationSpaces(d);
|
|
82123
82086
|
});
|
|
82124
|
-
return
|
|
82087
|
+
return result_12;
|
|
82125
82088
|
case 254 /* VariableDeclaration */:
|
|
82126
82089
|
case 203 /* BindingElement */:
|
|
82127
82090
|
case 256 /* FunctionDeclaration */:
|
|
@@ -90450,6 +90413,7 @@ var ts;
|
|
|
90450
90413
|
})(ts || (ts = {}));
|
|
90451
90414
|
var ts;
|
|
90452
90415
|
(function (ts) {
|
|
90416
|
+
var _a;
|
|
90453
90417
|
function visitNode(node, visitor, test, lift) {
|
|
90454
90418
|
if (node === undefined || visitor === undefined) {
|
|
90455
90419
|
return node;
|
|
@@ -90664,12 +90628,10 @@ var ts;
|
|
|
90664
90628
|
return updated;
|
|
90665
90629
|
}
|
|
90666
90630
|
ts.visitFunctionBody = visitFunctionBody;
|
|
90667
|
-
|
|
90668
|
-
|
|
90669
|
-
*/
|
|
90670
|
-
function visitIterationBody(body, visitor, context) {
|
|
90631
|
+
function visitIterationBody(body, visitor, context, nodeVisitor) {
|
|
90632
|
+
if (nodeVisitor === void 0) { nodeVisitor = visitNode; }
|
|
90671
90633
|
context.startBlockScope();
|
|
90672
|
-
var updated =
|
|
90634
|
+
var updated = nodeVisitor(body, visitor, ts.isStatement, context.factory.liftToBlock);
|
|
90673
90635
|
var declarations = context.endBlockScope();
|
|
90674
90636
|
if (ts.some(declarations)) {
|
|
90675
90637
|
if (ts.isBlock(updated)) {
|
|
@@ -90688,456 +90650,443 @@ var ts;
|
|
|
90688
90650
|
if (node === undefined) {
|
|
90689
90651
|
return undefined;
|
|
90690
90652
|
}
|
|
90691
|
-
var
|
|
90692
|
-
|
|
90693
|
-
if ((kind > 0 /* FirstToken */ && kind <= 160 /* LastToken */) || kind === 192 /* ThisType */) {
|
|
90694
|
-
return node;
|
|
90695
|
-
}
|
|
90696
|
-
var factory = context.factory;
|
|
90697
|
-
switch (kind) {
|
|
90698
|
-
// Names
|
|
90699
|
-
case 79 /* Identifier */:
|
|
90700
|
-
ts.Debug.type(node);
|
|
90701
|
-
return factory.updateIdentifier(node, nodesVisitor(node.typeArguments, visitor, ts.isTypeNodeOrTypeParameterDeclaration));
|
|
90702
|
-
case 161 /* QualifiedName */:
|
|
90703
|
-
ts.Debug.type(node);
|
|
90704
|
-
return factory.updateQualifiedName(node, nodeVisitor(node.left, visitor, ts.isEntityName), nodeVisitor(node.right, visitor, ts.isIdentifier));
|
|
90705
|
-
case 162 /* ComputedPropertyName */:
|
|
90706
|
-
ts.Debug.type(node);
|
|
90707
|
-
return factory.updateComputedPropertyName(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90708
|
-
// Signature elements
|
|
90709
|
-
case 163 /* TypeParameter */:
|
|
90710
|
-
ts.Debug.type(node);
|
|
90711
|
-
return factory.updateTypeParameterDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.constraint, visitor, ts.isTypeNode), nodeVisitor(node.default, visitor, ts.isTypeNode));
|
|
90712
|
-
case 164 /* Parameter */:
|
|
90713
|
-
ts.Debug.type(node);
|
|
90714
|
-
return factory.updateParameterDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90715
|
-
case 165 /* Decorator */:
|
|
90716
|
-
ts.Debug.type(node);
|
|
90717
|
-
return factory.updateDecorator(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90718
|
-
// Type elements
|
|
90719
|
-
case 166 /* PropertySignature */:
|
|
90720
|
-
ts.Debug.type(node);
|
|
90721
|
-
return factory.updatePropertySignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isToken), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90722
|
-
case 167 /* PropertyDeclaration */:
|
|
90723
|
-
ts.Debug.type(node);
|
|
90724
|
-
return factory.updatePropertyDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName),
|
|
90725
|
-
// QuestionToken and ExclamationToken is uniqued in Property Declaration and the signature of 'updateProperty' is that too
|
|
90726
|
-
nodeVisitor(node.questionToken || node.exclamationToken, tokenVisitor, ts.isQuestionOrExclamationToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90727
|
-
case 168 /* MethodSignature */:
|
|
90728
|
-
ts.Debug.type(node);
|
|
90729
|
-
return factory.updateMethodSignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90730
|
-
case 169 /* MethodDeclaration */:
|
|
90731
|
-
ts.Debug.type(node);
|
|
90732
|
-
return factory.updateMethodDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90733
|
-
case 171 /* Constructor */:
|
|
90734
|
-
ts.Debug.type(node);
|
|
90735
|
-
return factory.updateConstructorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90736
|
-
case 172 /* GetAccessor */:
|
|
90737
|
-
ts.Debug.type(node);
|
|
90738
|
-
return factory.updateGetAccessorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90739
|
-
case 173 /* SetAccessor */:
|
|
90740
|
-
ts.Debug.type(node);
|
|
90741
|
-
return factory.updateSetAccessorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90742
|
-
case 170 /* ClassStaticBlockDeclaration */:
|
|
90743
|
-
ts.Debug.type(node);
|
|
90744
|
-
context.startLexicalEnvironment();
|
|
90745
|
-
context.suspendLexicalEnvironment();
|
|
90746
|
-
return factory.updateClassStaticBlockDeclaration(node, visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90747
|
-
case 174 /* CallSignature */:
|
|
90748
|
-
ts.Debug.type(node);
|
|
90749
|
-
return factory.updateCallSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90750
|
-
case 175 /* ConstructSignature */:
|
|
90751
|
-
ts.Debug.type(node);
|
|
90752
|
-
return factory.updateConstructSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90753
|
-
case 176 /* IndexSignature */:
|
|
90754
|
-
ts.Debug.type(node);
|
|
90755
|
-
return factory.updateIndexSignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90756
|
-
// Types
|
|
90757
|
-
case 177 /* TypePredicate */:
|
|
90758
|
-
ts.Debug.type(node);
|
|
90759
|
-
return factory.updateTypePredicateNode(node, nodeVisitor(node.assertsModifier, visitor, ts.isAssertsKeyword), nodeVisitor(node.parameterName, visitor, ts.isIdentifierOrThisTypeNode), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90760
|
-
case 178 /* TypeReference */:
|
|
90761
|
-
ts.Debug.type(node);
|
|
90762
|
-
return factory.updateTypeReferenceNode(node, nodeVisitor(node.typeName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90763
|
-
case 179 /* FunctionType */:
|
|
90764
|
-
ts.Debug.type(node);
|
|
90765
|
-
return factory.updateFunctionTypeNode(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90766
|
-
case 180 /* ConstructorType */:
|
|
90767
|
-
ts.Debug.type(node);
|
|
90768
|
-
return factory.updateConstructorTypeNode(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90769
|
-
case 181 /* TypeQuery */:
|
|
90770
|
-
ts.Debug.type(node);
|
|
90771
|
-
return factory.updateTypeQueryNode(node, nodeVisitor(node.exprName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90772
|
-
case 182 /* TypeLiteral */:
|
|
90773
|
-
ts.Debug.type(node);
|
|
90774
|
-
return factory.updateTypeLiteralNode(node, nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90775
|
-
case 183 /* ArrayType */:
|
|
90776
|
-
ts.Debug.type(node);
|
|
90777
|
-
return factory.updateArrayTypeNode(node, nodeVisitor(node.elementType, visitor, ts.isTypeNode));
|
|
90778
|
-
case 184 /* TupleType */:
|
|
90779
|
-
ts.Debug.type(node);
|
|
90780
|
-
return factory.updateTupleTypeNode(node, nodesVisitor(node.elements, visitor, ts.isTypeNode));
|
|
90781
|
-
case 185 /* OptionalType */:
|
|
90782
|
-
ts.Debug.type(node);
|
|
90783
|
-
return factory.updateOptionalTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90784
|
-
case 186 /* RestType */:
|
|
90785
|
-
ts.Debug.type(node);
|
|
90786
|
-
return factory.updateRestTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90787
|
-
case 187 /* UnionType */:
|
|
90788
|
-
ts.Debug.type(node);
|
|
90789
|
-
return factory.updateUnionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90790
|
-
case 188 /* IntersectionType */:
|
|
90791
|
-
ts.Debug.type(node);
|
|
90792
|
-
return factory.updateIntersectionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90793
|
-
case 189 /* ConditionalType */:
|
|
90794
|
-
ts.Debug.type(node);
|
|
90795
|
-
return factory.updateConditionalTypeNode(node, nodeVisitor(node.checkType, visitor, ts.isTypeNode), nodeVisitor(node.extendsType, visitor, ts.isTypeNode), nodeVisitor(node.trueType, visitor, ts.isTypeNode), nodeVisitor(node.falseType, visitor, ts.isTypeNode));
|
|
90796
|
-
case 190 /* InferType */:
|
|
90797
|
-
ts.Debug.type(node);
|
|
90798
|
-
return factory.updateInferTypeNode(node, nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration));
|
|
90799
|
-
case 200 /* ImportType */:
|
|
90800
|
-
ts.Debug.type(node);
|
|
90801
|
-
return factory.updateImportTypeNode(node, nodeVisitor(node.argument, visitor, ts.isTypeNode), nodeVisitor(node.assertions, visitor, ts.isNode), nodeVisitor(node.qualifier, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), node.isTypeOf);
|
|
90802
|
-
case 295 /* ImportTypeAssertionContainer */:
|
|
90803
|
-
ts.Debug.type(node);
|
|
90804
|
-
return factory.updateImportTypeAssertionContainer(node, nodeVisitor(node.assertClause, visitor, ts.isNode), node.multiLine);
|
|
90805
|
-
case 197 /* NamedTupleMember */:
|
|
90806
|
-
ts.Debug.type(node);
|
|
90807
|
-
return factory.updateNamedTupleMember(node, nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90808
|
-
case 191 /* ParenthesizedType */:
|
|
90809
|
-
ts.Debug.type(node);
|
|
90810
|
-
return factory.updateParenthesizedType(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90811
|
-
case 193 /* TypeOperator */:
|
|
90812
|
-
ts.Debug.type(node);
|
|
90813
|
-
return factory.updateTypeOperatorNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90814
|
-
case 194 /* IndexedAccessType */:
|
|
90815
|
-
ts.Debug.type(node);
|
|
90816
|
-
return factory.updateIndexedAccessTypeNode(node, nodeVisitor(node.objectType, visitor, ts.isTypeNode), nodeVisitor(node.indexType, visitor, ts.isTypeNode));
|
|
90817
|
-
case 195 /* MappedType */:
|
|
90818
|
-
ts.Debug.type(node);
|
|
90819
|
-
return factory.updateMappedTypeNode(node, nodeVisitor(node.readonlyToken, tokenVisitor, ts.isReadonlyKeywordOrPlusOrMinusToken), nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration), nodeVisitor(node.nameType, visitor, ts.isTypeNode), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionOrPlusOrMinusToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90820
|
-
case 196 /* LiteralType */:
|
|
90821
|
-
ts.Debug.type(node);
|
|
90822
|
-
return factory.updateLiteralTypeNode(node, nodeVisitor(node.literal, visitor, ts.isExpression));
|
|
90823
|
-
case 198 /* TemplateLiteralType */:
|
|
90824
|
-
ts.Debug.type(node);
|
|
90825
|
-
return factory.updateTemplateLiteralType(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateLiteralTypeSpan));
|
|
90826
|
-
case 199 /* TemplateLiteralTypeSpan */:
|
|
90827
|
-
ts.Debug.type(node);
|
|
90828
|
-
return factory.updateTemplateLiteralTypeSpan(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
90829
|
-
// Binding patterns
|
|
90830
|
-
case 201 /* ObjectBindingPattern */:
|
|
90831
|
-
ts.Debug.type(node);
|
|
90832
|
-
return factory.updateObjectBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isBindingElement));
|
|
90833
|
-
case 202 /* ArrayBindingPattern */:
|
|
90834
|
-
ts.Debug.type(node);
|
|
90835
|
-
return factory.updateArrayBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isArrayBindingElement));
|
|
90836
|
-
case 203 /* BindingElement */:
|
|
90837
|
-
ts.Debug.type(node);
|
|
90838
|
-
return factory.updateBindingElement(node, nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.propertyName, visitor, ts.isPropertyName), nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90839
|
-
// Expression
|
|
90840
|
-
case 204 /* ArrayLiteralExpression */:
|
|
90841
|
-
ts.Debug.type(node);
|
|
90842
|
-
return factory.updateArrayLiteralExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
90843
|
-
case 205 /* ObjectLiteralExpression */:
|
|
90844
|
-
ts.Debug.type(node);
|
|
90845
|
-
return factory.updateObjectLiteralExpression(node, nodesVisitor(node.properties, visitor, ts.isObjectLiteralElementLike));
|
|
90846
|
-
case 206 /* PropertyAccessExpression */:
|
|
90847
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90848
|
-
ts.Debug.type(node);
|
|
90849
|
-
return factory.updatePropertyAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.name, visitor, ts.isMemberName));
|
|
90850
|
-
}
|
|
90851
|
-
ts.Debug.type(node);
|
|
90852
|
-
return factory.updatePropertyAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.name, visitor, ts.isMemberName));
|
|
90853
|
-
case 207 /* ElementAccessExpression */:
|
|
90854
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90855
|
-
ts.Debug.type(node);
|
|
90856
|
-
return factory.updateElementAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));
|
|
90857
|
-
}
|
|
90858
|
-
ts.Debug.type(node);
|
|
90859
|
-
return factory.updateElementAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));
|
|
90860
|
-
case 208 /* CallExpression */:
|
|
90861
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90862
|
-
ts.Debug.type(node);
|
|
90863
|
-
return factory.updateCallChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90864
|
-
}
|
|
90865
|
-
ts.Debug.type(node);
|
|
90866
|
-
return factory.updateCallExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90867
|
-
case 209 /* NewExpression */:
|
|
90868
|
-
ts.Debug.type(node);
|
|
90869
|
-
return factory.updateNewExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90870
|
-
case 210 /* TaggedTemplateExpression */:
|
|
90871
|
-
ts.Debug.type(node);
|
|
90872
|
-
return factory.updateTaggedTemplateExpression(node, nodeVisitor(node.tag, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.template, visitor, ts.isTemplateLiteral));
|
|
90873
|
-
case 211 /* TypeAssertionExpression */:
|
|
90874
|
-
ts.Debug.type(node);
|
|
90875
|
-
return factory.updateTypeAssertion(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90876
|
-
case 212 /* ParenthesizedExpression */:
|
|
90877
|
-
ts.Debug.type(node);
|
|
90878
|
-
return factory.updateParenthesizedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90879
|
-
case 213 /* FunctionExpression */:
|
|
90880
|
-
ts.Debug.type(node);
|
|
90881
|
-
return factory.updateFunctionExpression(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90882
|
-
case 214 /* ArrowFunction */:
|
|
90883
|
-
ts.Debug.type(node);
|
|
90884
|
-
return factory.updateArrowFunction(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.equalsGreaterThanToken, tokenVisitor, ts.isEqualsGreaterThanToken), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90885
|
-
case 215 /* DeleteExpression */:
|
|
90886
|
-
ts.Debug.type(node);
|
|
90887
|
-
return factory.updateDeleteExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90888
|
-
case 216 /* TypeOfExpression */:
|
|
90889
|
-
ts.Debug.type(node);
|
|
90890
|
-
return factory.updateTypeOfExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90891
|
-
case 217 /* VoidExpression */:
|
|
90892
|
-
ts.Debug.type(node);
|
|
90893
|
-
return factory.updateVoidExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90894
|
-
case 218 /* AwaitExpression */:
|
|
90895
|
-
ts.Debug.type(node);
|
|
90896
|
-
return factory.updateAwaitExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90897
|
-
case 219 /* PrefixUnaryExpression */:
|
|
90898
|
-
ts.Debug.type(node);
|
|
90899
|
-
return factory.updatePrefixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
90900
|
-
case 220 /* PostfixUnaryExpression */:
|
|
90901
|
-
ts.Debug.type(node);
|
|
90902
|
-
return factory.updatePostfixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
90903
|
-
case 221 /* BinaryExpression */:
|
|
90904
|
-
ts.Debug.type(node);
|
|
90905
|
-
return factory.updateBinaryExpression(node, nodeVisitor(node.left, visitor, ts.isExpression), nodeVisitor(node.operatorToken, tokenVisitor, ts.isBinaryOperatorToken), nodeVisitor(node.right, visitor, ts.isExpression));
|
|
90906
|
-
case 222 /* ConditionalExpression */:
|
|
90907
|
-
ts.Debug.type(node);
|
|
90908
|
-
return factory.updateConditionalExpression(node, nodeVisitor(node.condition, visitor, ts.isExpression), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.whenTrue, visitor, ts.isExpression), nodeVisitor(node.colonToken, tokenVisitor, ts.isColonToken), nodeVisitor(node.whenFalse, visitor, ts.isExpression));
|
|
90909
|
-
case 223 /* TemplateExpression */:
|
|
90910
|
-
ts.Debug.type(node);
|
|
90911
|
-
return factory.updateTemplateExpression(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateSpan));
|
|
90912
|
-
case 224 /* YieldExpression */:
|
|
90913
|
-
ts.Debug.type(node);
|
|
90914
|
-
return factory.updateYieldExpression(node, nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90915
|
-
case 225 /* SpreadElement */:
|
|
90916
|
-
ts.Debug.type(node);
|
|
90917
|
-
return factory.updateSpreadElement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90918
|
-
case 226 /* ClassExpression */:
|
|
90919
|
-
ts.Debug.type(node);
|
|
90920
|
-
return factory.updateClassExpression(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isClassElement));
|
|
90921
|
-
case 228 /* ExpressionWithTypeArguments */:
|
|
90922
|
-
ts.Debug.type(node);
|
|
90923
|
-
return factory.updateExpressionWithTypeArguments(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90924
|
-
case 229 /* AsExpression */:
|
|
90925
|
-
ts.Debug.type(node);
|
|
90926
|
-
return factory.updateAsExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90927
|
-
case 230 /* NonNullExpression */:
|
|
90928
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90929
|
-
ts.Debug.type(node);
|
|
90930
|
-
return factory.updateNonNullChain(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90931
|
-
}
|
|
90932
|
-
ts.Debug.type(node);
|
|
90933
|
-
return factory.updateNonNullExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90934
|
-
case 231 /* MetaProperty */:
|
|
90935
|
-
ts.Debug.type(node);
|
|
90936
|
-
return factory.updateMetaProperty(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
90937
|
-
// Misc
|
|
90938
|
-
case 233 /* TemplateSpan */:
|
|
90939
|
-
ts.Debug.type(node);
|
|
90940
|
-
return factory.updateTemplateSpan(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
90941
|
-
// Element
|
|
90942
|
-
case 235 /* Block */:
|
|
90943
|
-
ts.Debug.type(node);
|
|
90944
|
-
return factory.updateBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
90945
|
-
case 237 /* VariableStatement */:
|
|
90946
|
-
ts.Debug.type(node);
|
|
90947
|
-
return factory.updateVariableStatement(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.declarationList, visitor, ts.isVariableDeclarationList));
|
|
90948
|
-
case 238 /* ExpressionStatement */:
|
|
90949
|
-
ts.Debug.type(node);
|
|
90950
|
-
return factory.updateExpressionStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90951
|
-
case 239 /* IfStatement */:
|
|
90952
|
-
ts.Debug.type(node);
|
|
90953
|
-
return factory.updateIfStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.thenStatement, visitor, ts.isStatement, factory.liftToBlock), nodeVisitor(node.elseStatement, visitor, ts.isStatement, factory.liftToBlock));
|
|
90954
|
-
case 240 /* DoStatement */:
|
|
90955
|
-
ts.Debug.type(node);
|
|
90956
|
-
return factory.updateDoStatement(node, visitIterationBody(node.statement, visitor, context), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90957
|
-
case 241 /* WhileStatement */:
|
|
90958
|
-
ts.Debug.type(node);
|
|
90959
|
-
return factory.updateWhileStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));
|
|
90960
|
-
case 242 /* ForStatement */:
|
|
90961
|
-
ts.Debug.type(node);
|
|
90962
|
-
return factory.updateForStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.condition, visitor, ts.isExpression), nodeVisitor(node.incrementor, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));
|
|
90963
|
-
case 243 /* ForInStatement */:
|
|
90964
|
-
ts.Debug.type(node);
|
|
90965
|
-
return factory.updateForInStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));
|
|
90966
|
-
case 244 /* ForOfStatement */:
|
|
90967
|
-
ts.Debug.type(node);
|
|
90968
|
-
return factory.updateForOfStatement(node, nodeVisitor(node.awaitModifier, tokenVisitor, ts.isAwaitKeyword), nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));
|
|
90969
|
-
case 245 /* ContinueStatement */:
|
|
90970
|
-
ts.Debug.type(node);
|
|
90971
|
-
return factory.updateContinueStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
90972
|
-
case 246 /* BreakStatement */:
|
|
90973
|
-
ts.Debug.type(node);
|
|
90974
|
-
return factory.updateBreakStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
90975
|
-
case 247 /* ReturnStatement */:
|
|
90976
|
-
ts.Debug.type(node);
|
|
90977
|
-
return factory.updateReturnStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90978
|
-
case 248 /* WithStatement */:
|
|
90979
|
-
ts.Debug.type(node);
|
|
90980
|
-
return factory.updateWithStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.statement, visitor, ts.isStatement, factory.liftToBlock));
|
|
90981
|
-
case 249 /* SwitchStatement */:
|
|
90982
|
-
ts.Debug.type(node);
|
|
90983
|
-
return factory.updateSwitchStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.caseBlock, visitor, ts.isCaseBlock));
|
|
90984
|
-
case 250 /* LabeledStatement */:
|
|
90985
|
-
ts.Debug.type(node);
|
|
90986
|
-
return factory.updateLabeledStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier), nodeVisitor(node.statement, visitor, ts.isStatement, factory.liftToBlock));
|
|
90987
|
-
case 251 /* ThrowStatement */:
|
|
90988
|
-
ts.Debug.type(node);
|
|
90989
|
-
return factory.updateThrowStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90990
|
-
case 252 /* TryStatement */:
|
|
90991
|
-
ts.Debug.type(node);
|
|
90992
|
-
return factory.updateTryStatement(node, nodeVisitor(node.tryBlock, visitor, ts.isBlock), nodeVisitor(node.catchClause, visitor, ts.isCatchClause), nodeVisitor(node.finallyBlock, visitor, ts.isBlock));
|
|
90993
|
-
case 254 /* VariableDeclaration */:
|
|
90994
|
-
ts.Debug.type(node);
|
|
90995
|
-
return factory.updateVariableDeclaration(node, nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.exclamationToken, tokenVisitor, ts.isExclamationToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90996
|
-
case 255 /* VariableDeclarationList */:
|
|
90997
|
-
ts.Debug.type(node);
|
|
90998
|
-
return factory.updateVariableDeclarationList(node, nodesVisitor(node.declarations, visitor, ts.isVariableDeclaration));
|
|
90999
|
-
case 256 /* FunctionDeclaration */:
|
|
91000
|
-
ts.Debug.type(node);
|
|
91001
|
-
return factory.updateFunctionDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
91002
|
-
case 257 /* ClassDeclaration */:
|
|
91003
|
-
ts.Debug.type(node);
|
|
91004
|
-
return factory.updateClassDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isClassElement));
|
|
91005
|
-
case 258 /* InterfaceDeclaration */:
|
|
91006
|
-
ts.Debug.type(node);
|
|
91007
|
-
return factory.updateInterfaceDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
91008
|
-
case 259 /* TypeAliasDeclaration */:
|
|
91009
|
-
ts.Debug.type(node);
|
|
91010
|
-
return factory.updateTypeAliasDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
91011
|
-
case 260 /* EnumDeclaration */:
|
|
91012
|
-
ts.Debug.type(node);
|
|
91013
|
-
return factory.updateEnumDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.members, visitor, ts.isEnumMember));
|
|
91014
|
-
case 261 /* ModuleDeclaration */:
|
|
91015
|
-
ts.Debug.type(node);
|
|
91016
|
-
return factory.updateModuleDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isModuleName), nodeVisitor(node.body, visitor, ts.isModuleBody));
|
|
91017
|
-
case 262 /* ModuleBlock */:
|
|
91018
|
-
ts.Debug.type(node);
|
|
91019
|
-
return factory.updateModuleBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91020
|
-
case 263 /* CaseBlock */:
|
|
91021
|
-
ts.Debug.type(node);
|
|
91022
|
-
return factory.updateCaseBlock(node, nodesVisitor(node.clauses, visitor, ts.isCaseOrDefaultClause));
|
|
91023
|
-
case 264 /* NamespaceExportDeclaration */:
|
|
91024
|
-
ts.Debug.type(node);
|
|
91025
|
-
return factory.updateNamespaceExportDeclaration(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91026
|
-
case 265 /* ImportEqualsDeclaration */:
|
|
91027
|
-
ts.Debug.type(node);
|
|
91028
|
-
return factory.updateImportEqualsDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.moduleReference, visitor, ts.isModuleReference));
|
|
91029
|
-
case 266 /* ImportDeclaration */:
|
|
91030
|
-
ts.Debug.type(node);
|
|
91031
|
-
return factory.updateImportDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.importClause, visitor, ts.isImportClause), nodeVisitor(node.moduleSpecifier, visitor, ts.isExpression), nodeVisitor(node.assertClause, visitor, ts.isAssertClause));
|
|
91032
|
-
case 293 /* AssertClause */:
|
|
91033
|
-
ts.Debug.type(node);
|
|
91034
|
-
return factory.updateAssertClause(node, nodesVisitor(node.elements, visitor, ts.isAssertEntry), node.multiLine);
|
|
91035
|
-
case 294 /* AssertEntry */:
|
|
91036
|
-
ts.Debug.type(node);
|
|
91037
|
-
return factory.updateAssertEntry(node, nodeVisitor(node.name, visitor, ts.isAssertionKey), nodeVisitor(node.value, visitor, ts.isExpressionNode));
|
|
91038
|
-
case 267 /* ImportClause */:
|
|
91039
|
-
ts.Debug.type(node);
|
|
91040
|
-
return factory.updateImportClause(node, node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.namedBindings, visitor, ts.isNamedImportBindings));
|
|
91041
|
-
case 268 /* NamespaceImport */:
|
|
91042
|
-
ts.Debug.type(node);
|
|
91043
|
-
return factory.updateNamespaceImport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91044
|
-
case 274 /* NamespaceExport */:
|
|
91045
|
-
ts.Debug.type(node);
|
|
91046
|
-
return factory.updateNamespaceExport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91047
|
-
case 269 /* NamedImports */:
|
|
91048
|
-
ts.Debug.type(node);
|
|
91049
|
-
return factory.updateNamedImports(node, nodesVisitor(node.elements, visitor, ts.isImportSpecifier));
|
|
91050
|
-
case 270 /* ImportSpecifier */:
|
|
91051
|
-
ts.Debug.type(node);
|
|
91052
|
-
return factory.updateImportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91053
|
-
case 271 /* ExportAssignment */:
|
|
91054
|
-
ts.Debug.type(node);
|
|
91055
|
-
return factory.updateExportAssignment(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91056
|
-
case 272 /* ExportDeclaration */:
|
|
91057
|
-
ts.Debug.type(node);
|
|
91058
|
-
return factory.updateExportDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), node.isTypeOnly, nodeVisitor(node.exportClause, visitor, ts.isNamedExportBindings), nodeVisitor(node.moduleSpecifier, visitor, ts.isExpression), nodeVisitor(node.assertClause, visitor, ts.isAssertClause));
|
|
91059
|
-
case 273 /* NamedExports */:
|
|
91060
|
-
ts.Debug.type(node);
|
|
91061
|
-
return factory.updateNamedExports(node, nodesVisitor(node.elements, visitor, ts.isExportSpecifier));
|
|
91062
|
-
case 275 /* ExportSpecifier */:
|
|
91063
|
-
ts.Debug.type(node);
|
|
91064
|
-
return factory.updateExportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91065
|
-
// Module references
|
|
91066
|
-
case 277 /* ExternalModuleReference */:
|
|
91067
|
-
ts.Debug.type(node);
|
|
91068
|
-
return factory.updateExternalModuleReference(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91069
|
-
// JSX
|
|
91070
|
-
case 278 /* JsxElement */:
|
|
91071
|
-
ts.Debug.type(node);
|
|
91072
|
-
return factory.updateJsxElement(node, nodeVisitor(node.openingElement, visitor, ts.isJsxOpeningElement), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingElement, visitor, ts.isJsxClosingElement));
|
|
91073
|
-
case 279 /* JsxSelfClosingElement */:
|
|
91074
|
-
ts.Debug.type(node);
|
|
91075
|
-
return factory.updateJsxSelfClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91076
|
-
case 280 /* JsxOpeningElement */:
|
|
91077
|
-
ts.Debug.type(node);
|
|
91078
|
-
return factory.updateJsxOpeningElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91079
|
-
case 281 /* JsxClosingElement */:
|
|
91080
|
-
ts.Debug.type(node);
|
|
91081
|
-
return factory.updateJsxClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression));
|
|
91082
|
-
case 282 /* JsxFragment */:
|
|
91083
|
-
ts.Debug.type(node);
|
|
91084
|
-
return factory.updateJsxFragment(node, nodeVisitor(node.openingFragment, visitor, ts.isJsxOpeningFragment), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingFragment, visitor, ts.isJsxClosingFragment));
|
|
91085
|
-
case 285 /* JsxAttribute */:
|
|
91086
|
-
ts.Debug.type(node);
|
|
91087
|
-
return factory.updateJsxAttribute(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.initializer, visitor, ts.isStringLiteralOrJsxExpression));
|
|
91088
|
-
case 286 /* JsxAttributes */:
|
|
91089
|
-
ts.Debug.type(node);
|
|
91090
|
-
return factory.updateJsxAttributes(node, nodesVisitor(node.properties, visitor, ts.isJsxAttributeLike));
|
|
91091
|
-
case 287 /* JsxSpreadAttribute */:
|
|
91092
|
-
ts.Debug.type(node);
|
|
91093
|
-
return factory.updateJsxSpreadAttribute(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91094
|
-
case 288 /* JsxExpression */:
|
|
91095
|
-
ts.Debug.type(node);
|
|
91096
|
-
return factory.updateJsxExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91097
|
-
// Clauses
|
|
91098
|
-
case 289 /* CaseClause */:
|
|
91099
|
-
ts.Debug.type(node);
|
|
91100
|
-
return factory.updateCaseClause(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91101
|
-
case 290 /* DefaultClause */:
|
|
91102
|
-
ts.Debug.type(node);
|
|
91103
|
-
return factory.updateDefaultClause(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91104
|
-
case 291 /* HeritageClause */:
|
|
91105
|
-
ts.Debug.type(node);
|
|
91106
|
-
return factory.updateHeritageClause(node, nodesVisitor(node.types, visitor, ts.isExpressionWithTypeArguments));
|
|
91107
|
-
case 292 /* CatchClause */:
|
|
91108
|
-
ts.Debug.type(node);
|
|
91109
|
-
return factory.updateCatchClause(node, nodeVisitor(node.variableDeclaration, visitor, ts.isVariableDeclaration), nodeVisitor(node.block, visitor, ts.isBlock));
|
|
91110
|
-
// Property assignments
|
|
91111
|
-
case 296 /* PropertyAssignment */:
|
|
91112
|
-
ts.Debug.type(node);
|
|
91113
|
-
return factory.updatePropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91114
|
-
case 297 /* ShorthandPropertyAssignment */:
|
|
91115
|
-
ts.Debug.type(node);
|
|
91116
|
-
return factory.updateShorthandPropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.objectAssignmentInitializer, visitor, ts.isExpression));
|
|
91117
|
-
case 298 /* SpreadAssignment */:
|
|
91118
|
-
ts.Debug.type(node);
|
|
91119
|
-
return factory.updateSpreadAssignment(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91120
|
-
// Enum
|
|
91121
|
-
case 299 /* EnumMember */:
|
|
91122
|
-
ts.Debug.type(node);
|
|
91123
|
-
return factory.updateEnumMember(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91124
|
-
// Top-level nodes
|
|
91125
|
-
case 305 /* SourceFile */:
|
|
91126
|
-
ts.Debug.type(node);
|
|
91127
|
-
return factory.updateSourceFile(node, visitLexicalEnvironment(node.statements, visitor, context));
|
|
91128
|
-
// Transformation nodes
|
|
91129
|
-
case 350 /* PartiallyEmittedExpression */:
|
|
91130
|
-
ts.Debug.type(node);
|
|
91131
|
-
return factory.updatePartiallyEmittedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91132
|
-
case 351 /* CommaListExpression */:
|
|
91133
|
-
ts.Debug.type(node);
|
|
91134
|
-
return factory.updateCommaListExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
91135
|
-
default:
|
|
91136
|
-
// No need to visit nodes with no children.
|
|
91137
|
-
return node;
|
|
91138
|
-
}
|
|
90653
|
+
var fn = visitEachChildTable[node.kind];
|
|
90654
|
+
return fn === undefined ? node : fn(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor);
|
|
91139
90655
|
}
|
|
91140
90656
|
ts.visitEachChild = visitEachChild;
|
|
90657
|
+
// NOTE: Before you can add a new method to `visitEachChildTable`, you must first ensure the `Node` subtype you
|
|
90658
|
+
// wish to add is defined in the `HasChildren` union in types.ts.
|
|
90659
|
+
var visitEachChildTable = (_a = {},
|
|
90660
|
+
_a[79 /* Identifier */] = function visitEachChildOfIdentifier(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90661
|
+
return context.factory.updateIdentifier(node, nodesVisitor(node.typeArguments, visitor, ts.isTypeNodeOrTypeParameterDeclaration));
|
|
90662
|
+
},
|
|
90663
|
+
_a[161 /* QualifiedName */] = function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90664
|
+
return context.factory.updateQualifiedName(node, nodeVisitor(node.left, visitor, ts.isEntityName), nodeVisitor(node.right, visitor, ts.isIdentifier));
|
|
90665
|
+
},
|
|
90666
|
+
_a[162 /* ComputedPropertyName */] = function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90667
|
+
return context.factory.updateComputedPropertyName(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90668
|
+
},
|
|
90669
|
+
// Signature elements
|
|
90670
|
+
_a[163 /* TypeParameter */] = function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90671
|
+
return context.factory.updateTypeParameterDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.constraint, visitor, ts.isTypeNode), nodeVisitor(node.default, visitor, ts.isTypeNode));
|
|
90672
|
+
},
|
|
90673
|
+
_a[164 /* Parameter */] = function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90674
|
+
return context.factory.updateParameterDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90675
|
+
},
|
|
90676
|
+
_a[165 /* Decorator */] = function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90677
|
+
return context.factory.updateDecorator(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90678
|
+
},
|
|
90679
|
+
// Type elements
|
|
90680
|
+
_a[166 /* PropertySignature */] = function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90681
|
+
return context.factory.updatePropertySignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isToken), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90682
|
+
},
|
|
90683
|
+
_a[167 /* PropertyDeclaration */] = function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90684
|
+
var _a;
|
|
90685
|
+
return context.factory.updatePropertyDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName),
|
|
90686
|
+
// QuestionToken and ExclamationToken are mutually exclusive in PropertyDeclaration
|
|
90687
|
+
nodeVisitor((_a = node.questionToken) !== null && _a !== void 0 ? _a : node.exclamationToken, tokenVisitor, ts.isQuestionOrExclamationToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90688
|
+
},
|
|
90689
|
+
_a[168 /* MethodSignature */] = function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90690
|
+
return context.factory.updateMethodSignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90691
|
+
},
|
|
90692
|
+
_a[169 /* MethodDeclaration */] = function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90693
|
+
return context.factory.updateMethodDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90694
|
+
},
|
|
90695
|
+
_a[171 /* Constructor */] = function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90696
|
+
return context.factory.updateConstructorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90697
|
+
},
|
|
90698
|
+
_a[172 /* GetAccessor */] = function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90699
|
+
return context.factory.updateGetAccessorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90700
|
+
},
|
|
90701
|
+
_a[173 /* SetAccessor */] = function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90702
|
+
return context.factory.updateSetAccessorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90703
|
+
},
|
|
90704
|
+
_a[170 /* ClassStaticBlockDeclaration */] = function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90705
|
+
context.startLexicalEnvironment();
|
|
90706
|
+
context.suspendLexicalEnvironment();
|
|
90707
|
+
return context.factory.updateClassStaticBlockDeclaration(node, visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90708
|
+
},
|
|
90709
|
+
_a[174 /* CallSignature */] = function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90710
|
+
return context.factory.updateCallSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90711
|
+
},
|
|
90712
|
+
_a[175 /* ConstructSignature */] = function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90713
|
+
return context.factory.updateConstructSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90714
|
+
},
|
|
90715
|
+
_a[176 /* IndexSignature */] = function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90716
|
+
return context.factory.updateIndexSignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90717
|
+
},
|
|
90718
|
+
// Types
|
|
90719
|
+
_a[177 /* TypePredicate */] = function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90720
|
+
return context.factory.updateTypePredicateNode(node, nodeVisitor(node.assertsModifier, visitor, ts.isAssertsKeyword), nodeVisitor(node.parameterName, visitor, ts.isIdentifierOrThisTypeNode), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90721
|
+
},
|
|
90722
|
+
_a[178 /* TypeReference */] = function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90723
|
+
return context.factory.updateTypeReferenceNode(node, nodeVisitor(node.typeName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90724
|
+
},
|
|
90725
|
+
_a[179 /* FunctionType */] = function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90726
|
+
return context.factory.updateFunctionTypeNode(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90727
|
+
},
|
|
90728
|
+
_a[180 /* ConstructorType */] = function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90729
|
+
return context.factory.updateConstructorTypeNode(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90730
|
+
},
|
|
90731
|
+
_a[181 /* TypeQuery */] = function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90732
|
+
return context.factory.updateTypeQueryNode(node, nodeVisitor(node.exprName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90733
|
+
},
|
|
90734
|
+
_a[182 /* TypeLiteral */] = function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90735
|
+
return context.factory.updateTypeLiteralNode(node, nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90736
|
+
},
|
|
90737
|
+
_a[183 /* ArrayType */] = function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90738
|
+
return context.factory.updateArrayTypeNode(node, nodeVisitor(node.elementType, visitor, ts.isTypeNode));
|
|
90739
|
+
},
|
|
90740
|
+
_a[184 /* TupleType */] = function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90741
|
+
return context.factory.updateTupleTypeNode(node, nodesVisitor(node.elements, visitor, ts.isTypeNode));
|
|
90742
|
+
},
|
|
90743
|
+
_a[185 /* OptionalType */] = function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90744
|
+
return context.factory.updateOptionalTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90745
|
+
},
|
|
90746
|
+
_a[186 /* RestType */] = function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90747
|
+
return context.factory.updateRestTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90748
|
+
},
|
|
90749
|
+
_a[187 /* UnionType */] = function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90750
|
+
return context.factory.updateUnionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90751
|
+
},
|
|
90752
|
+
_a[188 /* IntersectionType */] = function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90753
|
+
return context.factory.updateIntersectionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90754
|
+
},
|
|
90755
|
+
_a[189 /* ConditionalType */] = function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90756
|
+
return context.factory.updateConditionalTypeNode(node, nodeVisitor(node.checkType, visitor, ts.isTypeNode), nodeVisitor(node.extendsType, visitor, ts.isTypeNode), nodeVisitor(node.trueType, visitor, ts.isTypeNode), nodeVisitor(node.falseType, visitor, ts.isTypeNode));
|
|
90757
|
+
},
|
|
90758
|
+
_a[190 /* InferType */] = function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90759
|
+
return context.factory.updateInferTypeNode(node, nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration));
|
|
90760
|
+
},
|
|
90761
|
+
_a[200 /* ImportType */] = function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90762
|
+
return context.factory.updateImportTypeNode(node, nodeVisitor(node.argument, visitor, ts.isTypeNode), nodeVisitor(node.assertions, visitor, ts.isImportTypeAssertionContainer), nodeVisitor(node.qualifier, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), node.isTypeOf);
|
|
90763
|
+
},
|
|
90764
|
+
_a[295 /* ImportTypeAssertionContainer */] = function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90765
|
+
return context.factory.updateImportTypeAssertionContainer(node, nodeVisitor(node.assertClause, visitor, ts.isAssertClause), node.multiLine);
|
|
90766
|
+
},
|
|
90767
|
+
_a[197 /* NamedTupleMember */] = function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90768
|
+
return context.factory.updateNamedTupleMember(node, nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90769
|
+
},
|
|
90770
|
+
_a[191 /* ParenthesizedType */] = function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90771
|
+
return context.factory.updateParenthesizedType(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90772
|
+
},
|
|
90773
|
+
_a[193 /* TypeOperator */] = function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90774
|
+
return context.factory.updateTypeOperatorNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90775
|
+
},
|
|
90776
|
+
_a[194 /* IndexedAccessType */] = function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90777
|
+
return context.factory.updateIndexedAccessTypeNode(node, nodeVisitor(node.objectType, visitor, ts.isTypeNode), nodeVisitor(node.indexType, visitor, ts.isTypeNode));
|
|
90778
|
+
},
|
|
90779
|
+
_a[195 /* MappedType */] = function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90780
|
+
return context.factory.updateMappedTypeNode(node, nodeVisitor(node.readonlyToken, tokenVisitor, ts.isReadonlyKeywordOrPlusOrMinusToken), nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration), nodeVisitor(node.nameType, visitor, ts.isTypeNode), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionOrPlusOrMinusToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90781
|
+
},
|
|
90782
|
+
_a[196 /* LiteralType */] = function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90783
|
+
return context.factory.updateLiteralTypeNode(node, nodeVisitor(node.literal, visitor, ts.isExpression));
|
|
90784
|
+
},
|
|
90785
|
+
_a[198 /* TemplateLiteralType */] = function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90786
|
+
return context.factory.updateTemplateLiteralType(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateLiteralTypeSpan));
|
|
90787
|
+
},
|
|
90788
|
+
_a[199 /* TemplateLiteralTypeSpan */] = function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90789
|
+
return context.factory.updateTemplateLiteralTypeSpan(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
90790
|
+
},
|
|
90791
|
+
// Binding patterns
|
|
90792
|
+
_a[201 /* ObjectBindingPattern */] = function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90793
|
+
return context.factory.updateObjectBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isBindingElement));
|
|
90794
|
+
},
|
|
90795
|
+
_a[202 /* ArrayBindingPattern */] = function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90796
|
+
return context.factory.updateArrayBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isArrayBindingElement));
|
|
90797
|
+
},
|
|
90798
|
+
_a[203 /* BindingElement */] = function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90799
|
+
return context.factory.updateBindingElement(node, nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.propertyName, visitor, ts.isPropertyName), nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90800
|
+
},
|
|
90801
|
+
// Expression
|
|
90802
|
+
_a[204 /* ArrayLiteralExpression */] = function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90803
|
+
return context.factory.updateArrayLiteralExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
90804
|
+
},
|
|
90805
|
+
_a[205 /* ObjectLiteralExpression */] = function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90806
|
+
return context.factory.updateObjectLiteralExpression(node, nodesVisitor(node.properties, visitor, ts.isObjectLiteralElementLike));
|
|
90807
|
+
},
|
|
90808
|
+
_a[206 /* PropertyAccessExpression */] = function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90809
|
+
return ts.isPropertyAccessChain(node) ?
|
|
90810
|
+
context.factory.updatePropertyAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.name, visitor, ts.isMemberName)) :
|
|
90811
|
+
context.factory.updatePropertyAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.name, visitor, ts.isMemberName));
|
|
90812
|
+
},
|
|
90813
|
+
_a[207 /* ElementAccessExpression */] = function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90814
|
+
return ts.isElementAccessChain(node) ?
|
|
90815
|
+
context.factory.updateElementAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.argumentExpression, visitor, ts.isExpression)) :
|
|
90816
|
+
context.factory.updateElementAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));
|
|
90817
|
+
},
|
|
90818
|
+
_a[208 /* CallExpression */] = function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90819
|
+
return ts.isCallChain(node) ?
|
|
90820
|
+
context.factory.updateCallChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression)) :
|
|
90821
|
+
context.factory.updateCallExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90822
|
+
},
|
|
90823
|
+
_a[209 /* NewExpression */] = function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90824
|
+
return context.factory.updateNewExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90825
|
+
},
|
|
90826
|
+
_a[210 /* TaggedTemplateExpression */] = function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90827
|
+
return context.factory.updateTaggedTemplateExpression(node, nodeVisitor(node.tag, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.template, visitor, ts.isTemplateLiteral));
|
|
90828
|
+
},
|
|
90829
|
+
_a[211 /* TypeAssertionExpression */] = function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90830
|
+
return context.factory.updateTypeAssertion(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90831
|
+
},
|
|
90832
|
+
_a[212 /* ParenthesizedExpression */] = function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90833
|
+
return context.factory.updateParenthesizedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90834
|
+
},
|
|
90835
|
+
_a[213 /* FunctionExpression */] = function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90836
|
+
return context.factory.updateFunctionExpression(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90837
|
+
},
|
|
90838
|
+
_a[214 /* ArrowFunction */] = function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90839
|
+
return context.factory.updateArrowFunction(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.equalsGreaterThanToken, tokenVisitor, ts.isEqualsGreaterThanToken), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90840
|
+
},
|
|
90841
|
+
_a[215 /* DeleteExpression */] = function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90842
|
+
return context.factory.updateDeleteExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90843
|
+
},
|
|
90844
|
+
_a[216 /* TypeOfExpression */] = function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90845
|
+
return context.factory.updateTypeOfExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90846
|
+
},
|
|
90847
|
+
_a[217 /* VoidExpression */] = function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90848
|
+
return context.factory.updateVoidExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90849
|
+
},
|
|
90850
|
+
_a[218 /* AwaitExpression */] = function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90851
|
+
return context.factory.updateAwaitExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90852
|
+
},
|
|
90853
|
+
_a[219 /* PrefixUnaryExpression */] = function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90854
|
+
return context.factory.updatePrefixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
90855
|
+
},
|
|
90856
|
+
_a[220 /* PostfixUnaryExpression */] = function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90857
|
+
return context.factory.updatePostfixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
90858
|
+
},
|
|
90859
|
+
_a[221 /* BinaryExpression */] = function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90860
|
+
return context.factory.updateBinaryExpression(node, nodeVisitor(node.left, visitor, ts.isExpression), nodeVisitor(node.operatorToken, tokenVisitor, ts.isBinaryOperatorToken), nodeVisitor(node.right, visitor, ts.isExpression));
|
|
90861
|
+
},
|
|
90862
|
+
_a[222 /* ConditionalExpression */] = function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90863
|
+
return context.factory.updateConditionalExpression(node, nodeVisitor(node.condition, visitor, ts.isExpression), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.whenTrue, visitor, ts.isExpression), nodeVisitor(node.colonToken, tokenVisitor, ts.isColonToken), nodeVisitor(node.whenFalse, visitor, ts.isExpression));
|
|
90864
|
+
},
|
|
90865
|
+
_a[223 /* TemplateExpression */] = function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90866
|
+
return context.factory.updateTemplateExpression(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateSpan));
|
|
90867
|
+
},
|
|
90868
|
+
_a[224 /* YieldExpression */] = function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90869
|
+
return context.factory.updateYieldExpression(node, nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90870
|
+
},
|
|
90871
|
+
_a[225 /* SpreadElement */] = function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90872
|
+
return context.factory.updateSpreadElement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90873
|
+
},
|
|
90874
|
+
_a[226 /* ClassExpression */] = function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90875
|
+
return context.factory.updateClassExpression(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isClassElement));
|
|
90876
|
+
},
|
|
90877
|
+
_a[228 /* ExpressionWithTypeArguments */] = function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90878
|
+
return context.factory.updateExpressionWithTypeArguments(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90879
|
+
},
|
|
90880
|
+
_a[229 /* AsExpression */] = function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90881
|
+
return context.factory.updateAsExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90882
|
+
},
|
|
90883
|
+
_a[230 /* NonNullExpression */] = function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90884
|
+
return ts.isOptionalChain(node) ?
|
|
90885
|
+
context.factory.updateNonNullChain(node, nodeVisitor(node.expression, visitor, ts.isExpression)) :
|
|
90886
|
+
context.factory.updateNonNullExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90887
|
+
},
|
|
90888
|
+
_a[231 /* MetaProperty */] = function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90889
|
+
return context.factory.updateMetaProperty(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
90890
|
+
},
|
|
90891
|
+
// Misc
|
|
90892
|
+
_a[233 /* TemplateSpan */] = function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90893
|
+
return context.factory.updateTemplateSpan(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
90894
|
+
},
|
|
90895
|
+
// Element
|
|
90896
|
+
_a[235 /* Block */] = function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90897
|
+
return context.factory.updateBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
90898
|
+
},
|
|
90899
|
+
_a[237 /* VariableStatement */] = function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90900
|
+
return context.factory.updateVariableStatement(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.declarationList, visitor, ts.isVariableDeclarationList));
|
|
90901
|
+
},
|
|
90902
|
+
_a[238 /* ExpressionStatement */] = function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90903
|
+
return context.factory.updateExpressionStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90904
|
+
},
|
|
90905
|
+
_a[239 /* IfStatement */] = function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90906
|
+
return context.factory.updateIfStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.thenStatement, visitor, ts.isStatement, context.factory.liftToBlock), nodeVisitor(node.elseStatement, visitor, ts.isStatement, context.factory.liftToBlock));
|
|
90907
|
+
},
|
|
90908
|
+
_a[240 /* DoStatement */] = function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90909
|
+
return context.factory.updateDoStatement(node, visitIterationBody(node.statement, visitor, context, nodeVisitor), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90910
|
+
},
|
|
90911
|
+
_a[241 /* WhileStatement */] = function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90912
|
+
return context.factory.updateWhileStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context, nodeVisitor));
|
|
90913
|
+
},
|
|
90914
|
+
_a[242 /* ForStatement */] = function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90915
|
+
return context.factory.updateForStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.condition, visitor, ts.isExpression), nodeVisitor(node.incrementor, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context, nodeVisitor));
|
|
90916
|
+
},
|
|
90917
|
+
_a[243 /* ForInStatement */] = function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90918
|
+
return context.factory.updateForInStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context, nodeVisitor));
|
|
90919
|
+
},
|
|
90920
|
+
_a[244 /* ForOfStatement */] = function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90921
|
+
return context.factory.updateForOfStatement(node, nodeVisitor(node.awaitModifier, tokenVisitor, ts.isAwaitKeyword), nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context, nodeVisitor));
|
|
90922
|
+
},
|
|
90923
|
+
_a[245 /* ContinueStatement */] = function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90924
|
+
return context.factory.updateContinueStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
90925
|
+
},
|
|
90926
|
+
_a[246 /* BreakStatement */] = function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90927
|
+
return context.factory.updateBreakStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
90928
|
+
},
|
|
90929
|
+
_a[247 /* ReturnStatement */] = function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90930
|
+
return context.factory.updateReturnStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90931
|
+
},
|
|
90932
|
+
_a[248 /* WithStatement */] = function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90933
|
+
return context.factory.updateWithStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.statement, visitor, ts.isStatement, context.factory.liftToBlock));
|
|
90934
|
+
},
|
|
90935
|
+
_a[249 /* SwitchStatement */] = function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90936
|
+
return context.factory.updateSwitchStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.caseBlock, visitor, ts.isCaseBlock));
|
|
90937
|
+
},
|
|
90938
|
+
_a[250 /* LabeledStatement */] = function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90939
|
+
return context.factory.updateLabeledStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier), nodeVisitor(node.statement, visitor, ts.isStatement, context.factory.liftToBlock));
|
|
90940
|
+
},
|
|
90941
|
+
_a[251 /* ThrowStatement */] = function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90942
|
+
return context.factory.updateThrowStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90943
|
+
},
|
|
90944
|
+
_a[252 /* TryStatement */] = function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90945
|
+
return context.factory.updateTryStatement(node, nodeVisitor(node.tryBlock, visitor, ts.isBlock), nodeVisitor(node.catchClause, visitor, ts.isCatchClause), nodeVisitor(node.finallyBlock, visitor, ts.isBlock));
|
|
90946
|
+
},
|
|
90947
|
+
_a[254 /* VariableDeclaration */] = function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90948
|
+
return context.factory.updateVariableDeclaration(node, nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.exclamationToken, tokenVisitor, ts.isExclamationToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90949
|
+
},
|
|
90950
|
+
_a[255 /* VariableDeclarationList */] = function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90951
|
+
return context.factory.updateVariableDeclarationList(node, nodesVisitor(node.declarations, visitor, ts.isVariableDeclaration));
|
|
90952
|
+
},
|
|
90953
|
+
_a[256 /* FunctionDeclaration */] = function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90954
|
+
return context.factory.updateFunctionDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90955
|
+
},
|
|
90956
|
+
_a[257 /* ClassDeclaration */] = function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90957
|
+
return context.factory.updateClassDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isClassElement));
|
|
90958
|
+
},
|
|
90959
|
+
_a[258 /* InterfaceDeclaration */] = function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90960
|
+
return context.factory.updateInterfaceDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90961
|
+
},
|
|
90962
|
+
_a[259 /* TypeAliasDeclaration */] = function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90963
|
+
return context.factory.updateTypeAliasDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90964
|
+
},
|
|
90965
|
+
_a[260 /* EnumDeclaration */] = function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90966
|
+
return context.factory.updateEnumDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.members, visitor, ts.isEnumMember));
|
|
90967
|
+
},
|
|
90968
|
+
_a[261 /* ModuleDeclaration */] = function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90969
|
+
return context.factory.updateModuleDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isModuleName), nodeVisitor(node.body, visitor, ts.isModuleBody));
|
|
90970
|
+
},
|
|
90971
|
+
_a[262 /* ModuleBlock */] = function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90972
|
+
return context.factory.updateModuleBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
90973
|
+
},
|
|
90974
|
+
_a[263 /* CaseBlock */] = function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90975
|
+
return context.factory.updateCaseBlock(node, nodesVisitor(node.clauses, visitor, ts.isCaseOrDefaultClause));
|
|
90976
|
+
},
|
|
90977
|
+
_a[264 /* NamespaceExportDeclaration */] = function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90978
|
+
return context.factory.updateNamespaceExportDeclaration(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
90979
|
+
},
|
|
90980
|
+
_a[265 /* ImportEqualsDeclaration */] = function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90981
|
+
return context.factory.updateImportEqualsDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.moduleReference, visitor, ts.isModuleReference));
|
|
90982
|
+
},
|
|
90983
|
+
_a[266 /* ImportDeclaration */] = function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90984
|
+
return context.factory.updateImportDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.importClause, visitor, ts.isImportClause), nodeVisitor(node.moduleSpecifier, visitor, ts.isExpression), nodeVisitor(node.assertClause, visitor, ts.isAssertClause));
|
|
90985
|
+
},
|
|
90986
|
+
_a[293 /* AssertClause */] = function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90987
|
+
return context.factory.updateAssertClause(node, nodesVisitor(node.elements, visitor, ts.isAssertEntry), node.multiLine);
|
|
90988
|
+
},
|
|
90989
|
+
_a[294 /* AssertEntry */] = function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90990
|
+
return context.factory.updateAssertEntry(node, nodeVisitor(node.name, visitor, ts.isAssertionKey), nodeVisitor(node.value, visitor, ts.isExpression));
|
|
90991
|
+
},
|
|
90992
|
+
_a[267 /* ImportClause */] = function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90993
|
+
return context.factory.updateImportClause(node, node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.namedBindings, visitor, ts.isNamedImportBindings));
|
|
90994
|
+
},
|
|
90995
|
+
_a[268 /* NamespaceImport */] = function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90996
|
+
return context.factory.updateNamespaceImport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
90997
|
+
},
|
|
90998
|
+
_a[274 /* NamespaceExport */] = function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90999
|
+
return context.factory.updateNamespaceExport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91000
|
+
},
|
|
91001
|
+
_a[269 /* NamedImports */] = function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91002
|
+
return context.factory.updateNamedImports(node, nodesVisitor(node.elements, visitor, ts.isImportSpecifier));
|
|
91003
|
+
},
|
|
91004
|
+
_a[270 /* ImportSpecifier */] = function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91005
|
+
return context.factory.updateImportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91006
|
+
},
|
|
91007
|
+
_a[271 /* ExportAssignment */] = function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91008
|
+
return context.factory.updateExportAssignment(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91009
|
+
},
|
|
91010
|
+
_a[272 /* ExportDeclaration */] = function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91011
|
+
return context.factory.updateExportDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), node.isTypeOnly, nodeVisitor(node.exportClause, visitor, ts.isNamedExportBindings), nodeVisitor(node.moduleSpecifier, visitor, ts.isExpression), nodeVisitor(node.assertClause, visitor, ts.isAssertClause));
|
|
91012
|
+
},
|
|
91013
|
+
_a[273 /* NamedExports */] = function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91014
|
+
return context.factory.updateNamedExports(node, nodesVisitor(node.elements, visitor, ts.isExportSpecifier));
|
|
91015
|
+
},
|
|
91016
|
+
_a[275 /* ExportSpecifier */] = function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91017
|
+
return context.factory.updateExportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91018
|
+
},
|
|
91019
|
+
// Module references
|
|
91020
|
+
_a[277 /* ExternalModuleReference */] = function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91021
|
+
return context.factory.updateExternalModuleReference(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91022
|
+
},
|
|
91023
|
+
// JSX
|
|
91024
|
+
_a[278 /* JsxElement */] = function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91025
|
+
return context.factory.updateJsxElement(node, nodeVisitor(node.openingElement, visitor, ts.isJsxOpeningElement), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingElement, visitor, ts.isJsxClosingElement));
|
|
91026
|
+
},
|
|
91027
|
+
_a[279 /* JsxSelfClosingElement */] = function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91028
|
+
return context.factory.updateJsxSelfClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91029
|
+
},
|
|
91030
|
+
_a[280 /* JsxOpeningElement */] = function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91031
|
+
return context.factory.updateJsxOpeningElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91032
|
+
},
|
|
91033
|
+
_a[281 /* JsxClosingElement */] = function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91034
|
+
return context.factory.updateJsxClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression));
|
|
91035
|
+
},
|
|
91036
|
+
_a[282 /* JsxFragment */] = function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91037
|
+
return context.factory.updateJsxFragment(node, nodeVisitor(node.openingFragment, visitor, ts.isJsxOpeningFragment), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingFragment, visitor, ts.isJsxClosingFragment));
|
|
91038
|
+
},
|
|
91039
|
+
_a[285 /* JsxAttribute */] = function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91040
|
+
return context.factory.updateJsxAttribute(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.initializer, visitor, ts.isStringLiteralOrJsxExpression));
|
|
91041
|
+
},
|
|
91042
|
+
_a[286 /* JsxAttributes */] = function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91043
|
+
return context.factory.updateJsxAttributes(node, nodesVisitor(node.properties, visitor, ts.isJsxAttributeLike));
|
|
91044
|
+
},
|
|
91045
|
+
_a[287 /* JsxSpreadAttribute */] = function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91046
|
+
return context.factory.updateJsxSpreadAttribute(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91047
|
+
},
|
|
91048
|
+
_a[288 /* JsxExpression */] = function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91049
|
+
return context.factory.updateJsxExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91050
|
+
},
|
|
91051
|
+
// Clauses
|
|
91052
|
+
_a[289 /* CaseClause */] = function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91053
|
+
return context.factory.updateCaseClause(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91054
|
+
},
|
|
91055
|
+
_a[290 /* DefaultClause */] = function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91056
|
+
return context.factory.updateDefaultClause(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91057
|
+
},
|
|
91058
|
+
_a[291 /* HeritageClause */] = function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91059
|
+
return context.factory.updateHeritageClause(node, nodesVisitor(node.types, visitor, ts.isExpressionWithTypeArguments));
|
|
91060
|
+
},
|
|
91061
|
+
_a[292 /* CatchClause */] = function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91062
|
+
return context.factory.updateCatchClause(node, nodeVisitor(node.variableDeclaration, visitor, ts.isVariableDeclaration), nodeVisitor(node.block, visitor, ts.isBlock));
|
|
91063
|
+
},
|
|
91064
|
+
// Property assignments
|
|
91065
|
+
_a[296 /* PropertyAssignment */] = function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91066
|
+
return context.factory.updatePropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91067
|
+
},
|
|
91068
|
+
_a[297 /* ShorthandPropertyAssignment */] = function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91069
|
+
return context.factory.updateShorthandPropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.objectAssignmentInitializer, visitor, ts.isExpression));
|
|
91070
|
+
},
|
|
91071
|
+
_a[298 /* SpreadAssignment */] = function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91072
|
+
return context.factory.updateSpreadAssignment(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91073
|
+
},
|
|
91074
|
+
// Enum
|
|
91075
|
+
_a[299 /* EnumMember */] = function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91076
|
+
return context.factory.updateEnumMember(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91077
|
+
},
|
|
91078
|
+
// Top-level nodes
|
|
91079
|
+
_a[305 /* SourceFile */] = function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91080
|
+
return context.factory.updateSourceFile(node, visitLexicalEnvironment(node.statements, visitor, context, /*start*/ undefined, /*ensureUseStrict*/ undefined, nodesVisitor));
|
|
91081
|
+
},
|
|
91082
|
+
// Transformation nodes
|
|
91083
|
+
_a[350 /* PartiallyEmittedExpression */] = function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91084
|
+
return context.factory.updatePartiallyEmittedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91085
|
+
},
|
|
91086
|
+
_a[351 /* CommaListExpression */] = function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91087
|
+
return context.factory.updateCommaListExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
91088
|
+
},
|
|
91089
|
+
_a);
|
|
91141
91090
|
/**
|
|
91142
91091
|
* Extracts the single node from a NodeArray.
|
|
91143
91092
|
*
|
|
@@ -99302,8 +99251,8 @@ var ts;
|
|
|
99302
99251
|
function convertJsxChildrenToChildrenPropAssignment(children) {
|
|
99303
99252
|
var nonWhitespaceChildren = ts.getSemanticJsxChildren(children);
|
|
99304
99253
|
if (ts.length(nonWhitespaceChildren) === 1 && !nonWhitespaceChildren[0].dotDotDotToken) {
|
|
99305
|
-
var
|
|
99306
|
-
return
|
|
99254
|
+
var result_13 = transformJsxChildToExpression(nonWhitespaceChildren[0]);
|
|
99255
|
+
return result_13 && factory.createPropertyAssignment("children", result_13);
|
|
99307
99256
|
}
|
|
99308
99257
|
var result = ts.mapDefined(children, transformJsxChildToExpression);
|
|
99309
99258
|
return ts.length(result) ? factory.createPropertyAssignment("children", factory.createArrayLiteralExpression(result)) : undefined;
|
|
@@ -118558,15 +118507,15 @@ var ts;
|
|
|
118558
118507
|
// which per above occurred during the current program creation.
|
|
118559
118508
|
// Since we assume the filesystem does not change during program creation,
|
|
118560
118509
|
// it is safe to reuse resolutions from the earlier call.
|
|
118561
|
-
var
|
|
118510
|
+
var result_14 = [];
|
|
118562
118511
|
var i = 0;
|
|
118563
118512
|
for (var _i = 0, moduleNames_1 = moduleNames; _i < moduleNames_1.length; _i++) {
|
|
118564
118513
|
var moduleName = moduleNames_1[_i];
|
|
118565
118514
|
var resolvedModule = file.resolvedModules.get(moduleName, getModeForResolutionAtIndex(file, i));
|
|
118566
118515
|
i++;
|
|
118567
|
-
|
|
118516
|
+
result_14.push(resolvedModule);
|
|
118568
118517
|
}
|
|
118569
|
-
return
|
|
118518
|
+
return result_14;
|
|
118570
118519
|
}
|
|
118571
118520
|
// At this point, we know at least one of the following hold:
|
|
118572
118521
|
// - file has local declarations for ambient modules
|
|
@@ -122026,14 +121975,14 @@ var ts;
|
|
|
122026
121975
|
fileNames_1.push(relativeToBuildInfo(sourceFile.resolvedPath));
|
|
122027
121976
|
fileInfos_1.push(sourceFile.version);
|
|
122028
121977
|
});
|
|
122029
|
-
var
|
|
121978
|
+
var result_15 = {
|
|
122030
121979
|
fileNames: fileNames_1,
|
|
122031
121980
|
fileInfos: fileInfos_1,
|
|
122032
121981
|
options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions, "affectsBundleEmitBuildInfo"),
|
|
122033
121982
|
outSignature: state.outSignature,
|
|
122034
121983
|
latestChangedDtsFile: latestChangedDtsFile,
|
|
122035
121984
|
};
|
|
122036
|
-
return
|
|
121985
|
+
return result_15;
|
|
122037
121986
|
}
|
|
122038
121987
|
var fileNames = [];
|
|
122039
121988
|
var fileNameToFileId = new ts.Map();
|
|
@@ -123971,9 +123920,9 @@ var ts;
|
|
|
123971
123920
|
if (!preferSymlinks) {
|
|
123972
123921
|
// Symlinks inside ignored paths are already filtered out of the symlink cache,
|
|
123973
123922
|
// so we only need to remove them from the realpath filenames.
|
|
123974
|
-
var
|
|
123975
|
-
if (
|
|
123976
|
-
return
|
|
123923
|
+
var result_16 = ts.forEach(targets, function (p) { return !(shouldFilterIgnoredPaths && ts.containsIgnoredPath(p)) && cb(p, referenceRedirect === p); });
|
|
123924
|
+
if (result_16)
|
|
123925
|
+
return result_16;
|
|
123977
123926
|
}
|
|
123978
123927
|
var symlinkedDirectories = (_a = host.getSymlinkCache) === null || _a === void 0 ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath();
|
|
123979
123928
|
var fullImportedFileName = ts.getNormalizedAbsolutePath(importedFileName, cwd);
|
|
@@ -123993,10 +123942,10 @@ var ts;
|
|
|
123993
123942
|
for (var _i = 0, symlinkDirectories_1 = symlinkDirectories; _i < symlinkDirectories_1.length; _i++) {
|
|
123994
123943
|
var symlinkDirectory = symlinkDirectories_1[_i];
|
|
123995
123944
|
var option = ts.resolvePath(symlinkDirectory, relative);
|
|
123996
|
-
var
|
|
123945
|
+
var result_17 = cb(option, target === referenceRedirect);
|
|
123997
123946
|
shouldFilterIgnoredPaths = true; // We found a non-ignored path in symlinks, so we can reject ignored-path realpaths
|
|
123998
|
-
if (
|
|
123999
|
-
return
|
|
123947
|
+
if (result_17)
|
|
123948
|
+
return result_17;
|
|
124000
123949
|
}
|
|
124001
123950
|
});
|
|
124002
123951
|
});
|