@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
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = ts.versionMajorMinor + ".0-insiders.
|
|
102
|
+
ts.version = ts.versionMajorMinor + ".0-insiders.20220819";
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -6131,7 +6131,6 @@ var ts;
|
|
|
6131
6131
|
var pollingChunkSize = createPollingIntervalBasedLevels(defaultChunkLevels);
|
|
6132
6132
|
/* @internal */
|
|
6133
6133
|
ts.unchangedPollThresholds = createPollingIntervalBasedLevels(defaultChunkLevels);
|
|
6134
|
-
/* @internal */
|
|
6135
6134
|
function setCustomPollingValues(system) {
|
|
6136
6135
|
if (!system.getEnvironmentVariable) {
|
|
6137
6136
|
return;
|
|
@@ -6174,7 +6173,6 @@ var ts;
|
|
|
6174
6173
|
createPollingIntervalBasedLevels(customLevels ? __assign(__assign({}, defaultLevels), customLevels) : defaultLevels);
|
|
6175
6174
|
}
|
|
6176
6175
|
}
|
|
6177
|
-
ts.setCustomPollingValues = setCustomPollingValues;
|
|
6178
6176
|
function pollWatchedFileQueue(host, queue, pollIndex, chunkSize, callbackOnWatchFileStat) {
|
|
6179
6177
|
var definedValueCopyToIndex = pollIndex;
|
|
6180
6178
|
// Max visit would be all elements of the queue
|
|
@@ -6220,7 +6218,6 @@ var ts;
|
|
|
6220
6218
|
}
|
|
6221
6219
|
}
|
|
6222
6220
|
}
|
|
6223
|
-
/* @internal */
|
|
6224
6221
|
function createDynamicPriorityPollingWatchFile(host) {
|
|
6225
6222
|
var watchedFiles = [];
|
|
6226
6223
|
var changedFilesInLastPoll = [];
|
|
@@ -6329,7 +6326,6 @@ var ts;
|
|
|
6329
6326
|
pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === PollingInterval.Low ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingIntervalQueue(pollingInterval));
|
|
6330
6327
|
}
|
|
6331
6328
|
}
|
|
6332
|
-
ts.createDynamicPriorityPollingWatchFile = createDynamicPriorityPollingWatchFile;
|
|
6333
6329
|
function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) {
|
|
6334
6330
|
// One file can have multiple watchers
|
|
6335
6331
|
var fileWatcherCallbacks = ts.createMultiMap();
|
|
@@ -6408,42 +6404,36 @@ var ts;
|
|
|
6408
6404
|
pollScheduled = host.setTimeout(pollQueue, PollingInterval.High);
|
|
6409
6405
|
}
|
|
6410
6406
|
}
|
|
6411
|
-
|
|
6412
|
-
function createSingleFileWatcherPerName(watchFile, useCaseSensitiveFileNames) {
|
|
6413
|
-
var cache = new ts.Map();
|
|
6414
|
-
var callbacksCache = ts.createMultiMap();
|
|
6407
|
+
function createSingleWatcherPerName(cache, useCaseSensitiveFileNames, name, callback, createWatcher) {
|
|
6415
6408
|
var toCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6409
|
+
var path = toCanonicalFileName(name);
|
|
6410
|
+
var existing = cache.get(path);
|
|
6411
|
+
if (existing) {
|
|
6412
|
+
existing.callbacks.push(callback);
|
|
6413
|
+
}
|
|
6414
|
+
else {
|
|
6415
|
+
cache.set(path, {
|
|
6416
|
+
watcher: createWatcher((
|
|
6417
|
+
// Cant infer types correctly so lets satisfy checker
|
|
6418
|
+
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); }); })),
|
|
6419
|
+
callbacks: [callback]
|
|
6420
|
+
});
|
|
6421
|
+
}
|
|
6422
|
+
return {
|
|
6423
|
+
close: function () {
|
|
6424
|
+
var watcher = cache.get(path);
|
|
6425
|
+
if (!watcher)
|
|
6426
|
+
return;
|
|
6427
|
+
if (!ts.orderedRemoveItem(watcher.callbacks, callback) || watcher.callbacks.length)
|
|
6428
|
+
return;
|
|
6429
|
+
cache.delete(path);
|
|
6430
|
+
ts.closeFileWatcherOf(watcher);
|
|
6427
6431
|
}
|
|
6428
|
-
callbacksCache.add(path, callback);
|
|
6429
|
-
return {
|
|
6430
|
-
close: function () {
|
|
6431
|
-
var watcher = ts.Debug.checkDefined(cache.get(path));
|
|
6432
|
-
callbacksCache.remove(path, callback);
|
|
6433
|
-
watcher.refCount--;
|
|
6434
|
-
if (watcher.refCount)
|
|
6435
|
-
return;
|
|
6436
|
-
cache.delete(path);
|
|
6437
|
-
ts.closeFileWatcherOf(watcher);
|
|
6438
|
-
}
|
|
6439
|
-
};
|
|
6440
6432
|
};
|
|
6441
6433
|
}
|
|
6442
|
-
ts.createSingleFileWatcherPerName = createSingleFileWatcherPerName;
|
|
6443
6434
|
/**
|
|
6444
6435
|
* Returns true if file status changed
|
|
6445
6436
|
*/
|
|
6446
|
-
/*@internal*/
|
|
6447
6437
|
function onWatchedFileStat(watchedFile, modifiedTime) {
|
|
6448
6438
|
var oldTime = watchedFile.mtime.getTime();
|
|
6449
6439
|
var newTime = modifiedTime.getTime();
|
|
@@ -6455,7 +6445,6 @@ var ts;
|
|
|
6455
6445
|
}
|
|
6456
6446
|
return false;
|
|
6457
6447
|
}
|
|
6458
|
-
ts.onWatchedFileStat = onWatchedFileStat;
|
|
6459
6448
|
/*@internal*/
|
|
6460
6449
|
function getFileWatcherEventKind(oldTime, newTime) {
|
|
6461
6450
|
return oldTime === 0
|
|
@@ -6483,7 +6472,6 @@ var ts;
|
|
|
6483
6472
|
* that means if this is recursive watcher, watch the children directories as well
|
|
6484
6473
|
* (eg on OS that dont support recursive watch using fs.watch use fs.watchFile)
|
|
6485
6474
|
*/
|
|
6486
|
-
/*@internal*/
|
|
6487
6475
|
function createDirectoryWatcherSupportingRecursive(_a) {
|
|
6488
6476
|
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;
|
|
6489
6477
|
var cache = new ts.Map();
|
|
@@ -6692,18 +6680,15 @@ var ts;
|
|
|
6692
6680
|
return ts.stringContains(toCanonicalFilePath(path), searchPath);
|
|
6693
6681
|
}
|
|
6694
6682
|
}
|
|
6695
|
-
ts.createDirectoryWatcherSupportingRecursive = createDirectoryWatcherSupportingRecursive;
|
|
6696
6683
|
/*@internal*/
|
|
6697
6684
|
var FileSystemEntryKind;
|
|
6698
6685
|
(function (FileSystemEntryKind) {
|
|
6699
6686
|
FileSystemEntryKind[FileSystemEntryKind["File"] = 0] = "File";
|
|
6700
6687
|
FileSystemEntryKind[FileSystemEntryKind["Directory"] = 1] = "Directory";
|
|
6701
6688
|
})(FileSystemEntryKind = ts.FileSystemEntryKind || (ts.FileSystemEntryKind = {}));
|
|
6702
|
-
/*@internal*/
|
|
6703
6689
|
function createFileWatcherCallback(callback) {
|
|
6704
6690
|
return function (_fileName, eventKind, modifiedTime) { return callback(eventKind === FileWatcherEventKind.Changed ? "change" : "rename", "", modifiedTime); };
|
|
6705
6691
|
}
|
|
6706
|
-
ts.createFileWatcherCallback = createFileWatcherCallback;
|
|
6707
6692
|
function createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModifiedTime) {
|
|
6708
6693
|
return function (eventName, _relativeFileName, modifiedTime) {
|
|
6709
6694
|
if (eventName === "rename") {
|
|
@@ -6737,7 +6722,10 @@ var ts;
|
|
|
6737
6722
|
}
|
|
6738
6723
|
/*@internal*/
|
|
6739
6724
|
function createSystemWatchFunctions(_a) {
|
|
6740
|
-
var
|
|
6725
|
+
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;
|
|
6726
|
+
var pollingWatches = new ts.Map();
|
|
6727
|
+
var fsWatches = new ts.Map();
|
|
6728
|
+
var fsWatchesRecursive = new ts.Map();
|
|
6741
6729
|
var dynamicPollingWatchFile;
|
|
6742
6730
|
var fixedChunkSizePollingWatchFile;
|
|
6743
6731
|
var nonPollingWatchFile;
|
|
@@ -6801,7 +6789,7 @@ var ts;
|
|
|
6801
6789
|
// Use notifications from FS to watch with falling back to fs.watchFile
|
|
6802
6790
|
generateWatchFileOptions(ts.WatchFileKind.UseFsEventsOnParentDirectory, ts.PollingWatchKind.PriorityInterval, options) :
|
|
6803
6791
|
// Default to do not use fixed polling interval
|
|
6804
|
-
{ watchFile: (defaultWatchFileKind === null || defaultWatchFileKind === void 0 ? void 0 : defaultWatchFileKind()) || ts.WatchFileKind.
|
|
6792
|
+
{ watchFile: (defaultWatchFileKind === null || defaultWatchFileKind === void 0 ? void 0 : defaultWatchFileKind()) || ts.WatchFileKind.UseFsEvents };
|
|
6805
6793
|
}
|
|
6806
6794
|
}
|
|
6807
6795
|
function generateWatchFileOptions(watchFile, fallbackPolling, options) {
|
|
@@ -6872,7 +6860,13 @@ var ts;
|
|
|
6872
6860
|
};
|
|
6873
6861
|
}
|
|
6874
6862
|
}
|
|
6863
|
+
function pollingWatchFile(fileName, callback, pollingInterval, options) {
|
|
6864
|
+
return createSingleWatcherPerName(pollingWatches, useCaseSensitiveFileNames, fileName, callback, function (cb) { return pollingWatchFileWorker(fileName, cb, pollingInterval, options); });
|
|
6865
|
+
}
|
|
6875
6866
|
function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) {
|
|
6867
|
+
return createSingleWatcherPerName(recursive ? fsWatchesRecursive : fsWatches, useCaseSensitiveFileNames, fileOrDirectory, callback, function (cb) { return fsWatchHandlingPresence(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInterval, fallbackOptions); });
|
|
6868
|
+
}
|
|
6869
|
+
function fsWatchHandlingPresence(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) {
|
|
6876
6870
|
var lastDirectoryPartWithDirectorySeparator;
|
|
6877
6871
|
var lastDirectoryPart;
|
|
6878
6872
|
if (inodeWatching) {
|
|
@@ -7051,7 +7045,7 @@ var ts;
|
|
|
7051
7045
|
var fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
|
|
7052
7046
|
var getCurrentDirectory = ts.memoize(function () { return process.cwd(); });
|
|
7053
7047
|
var _b = createSystemWatchFunctions({
|
|
7054
|
-
|
|
7048
|
+
pollingWatchFileWorker: fsWatchFileWorker,
|
|
7055
7049
|
getModifiedTime: getModifiedTime,
|
|
7056
7050
|
setTimeout: setTimeout,
|
|
7057
7051
|
clearTimeout: clearTimeout,
|
|
@@ -43102,10 +43096,12 @@ var ts;
|
|
|
43102
43096
|
if (resolved) {
|
|
43103
43097
|
var fileName = resolved.fileName, packageId = resolved.packageId;
|
|
43104
43098
|
var resolvedFileName = options.preserveSymlinks ? fileName : realPath(fileName, host, traceEnabled);
|
|
43099
|
+
var pathsAreEqual = arePathsEqual(fileName, resolvedFileName, host);
|
|
43105
43100
|
resolvedTypeReferenceDirective = {
|
|
43106
43101
|
primary: primary,
|
|
43107
|
-
|
|
43108
|
-
|
|
43102
|
+
// If the fileName and realpath are differing only in casing prefer fileName so that we can issue correct errors for casing under forceConsistentCasingInFileNames
|
|
43103
|
+
resolvedFileName: pathsAreEqual ? fileName : resolvedFileName,
|
|
43104
|
+
originalPath: pathsAreEqual ? undefined : fileName,
|
|
43109
43105
|
packageId: packageId,
|
|
43110
43106
|
isExternalLibraryImport: pathContainsNodeModules(fileName),
|
|
43111
43107
|
};
|
|
@@ -43890,8 +43886,10 @@ var ts;
|
|
|
43890
43886
|
var resolvedValue = resolved_1.value;
|
|
43891
43887
|
if (!compilerOptions.preserveSymlinks && resolvedValue && !resolvedValue.originalPath) {
|
|
43892
43888
|
var path = realPath(resolvedValue.path, host, traceEnabled);
|
|
43893
|
-
var
|
|
43894
|
-
|
|
43889
|
+
var pathsAreEqual = arePathsEqual(path, resolvedValue.path, host);
|
|
43890
|
+
var originalPath = pathsAreEqual ? undefined : resolvedValue.path;
|
|
43891
|
+
// If the path and realpath are differing only in casing prefer path so that we can issue correct errors for casing under forceConsistentCasingInFileNames
|
|
43892
|
+
resolvedValue = __assign(__assign({}, resolvedValue), { path: pathsAreEqual ? resolvedValue.path : path, originalPath: originalPath });
|
|
43895
43893
|
}
|
|
43896
43894
|
// For node_modules lookups, get the real path so that multiple accesses to an `npm link`-ed module do not create duplicate files.
|
|
43897
43895
|
return { value: resolvedValue && { resolved: resolvedValue, isExternalLibraryImport: true } };
|
|
@@ -65675,38 +65673,6 @@ var ts;
|
|
|
65675
65673
|
}
|
|
65676
65674
|
return 0 /* False */;
|
|
65677
65675
|
}
|
|
65678
|
-
// Before normalization: Intersections applied to unions create an explosion of types when normalized -
|
|
65679
|
-
// handling those inner intersections can be very costly, so it can be beneficial to factor them out early.
|
|
65680
|
-
// If both the source and target are intersections, we can remove the common types from them before formal normalization,
|
|
65681
|
-
// and run a simplified comparison without those common members.
|
|
65682
|
-
if (originalSource.flags & originalTarget.flags & 2097152 /* Intersection */) {
|
|
65683
|
-
var combinedTypeSet_1 = new ts.Map();
|
|
65684
|
-
ts.forEach(originalSource.types, function (t) { return combinedTypeSet_1.set(getTypeId(t), 1); });
|
|
65685
|
-
var hasOverlap_1 = false;
|
|
65686
|
-
ts.forEach(originalTarget.types, function (t) {
|
|
65687
|
-
var id = getTypeId(t);
|
|
65688
|
-
if (combinedTypeSet_1.has(id)) {
|
|
65689
|
-
combinedTypeSet_1.set(getTypeId(t), 2);
|
|
65690
|
-
hasOverlap_1 = true;
|
|
65691
|
-
}
|
|
65692
|
-
});
|
|
65693
|
-
if (hasOverlap_1) {
|
|
65694
|
-
var filteredSource = ts.filter(originalSource.types, function (t) { return combinedTypeSet_1.get(getTypeId(t)) !== 2; });
|
|
65695
|
-
var filteredTarget = ts.filter(originalTarget.types, function (t) { return combinedTypeSet_1.get(getTypeId(t)) !== 2; });
|
|
65696
|
-
if (!ts.length(filteredTarget)) {
|
|
65697
|
-
return -1 /* True */; // Source has all parts of target
|
|
65698
|
-
}
|
|
65699
|
-
if (ts.length(filteredSource)) {
|
|
65700
|
-
var result_7;
|
|
65701
|
-
if (result_7 = isRelatedTo(getIntersectionType(filteredSource), getIntersectionType(filteredTarget), recursionFlags, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState)) {
|
|
65702
|
-
return result_7;
|
|
65703
|
-
}
|
|
65704
|
-
// In the false case, we may still be assignable at the structural level, rather than the algebraic level
|
|
65705
|
-
}
|
|
65706
|
-
// Even if every member of the source is in the target but the target still has members left, the source may still be assignable
|
|
65707
|
-
// 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
|
|
65708
|
-
}
|
|
65709
|
-
}
|
|
65710
65676
|
// Normalize the source and target types: Turn fresh literal types into regular literal types,
|
|
65711
65677
|
// turn deferred type references into regular type references, simplify indexed access and
|
|
65712
65678
|
// conditional types, and resolve substitution types to either the substitution (on the source
|
|
@@ -65782,7 +65748,7 @@ var ts;
|
|
|
65782
65748
|
traceUnionsOrIntersectionsTooLarge(source, target);
|
|
65783
65749
|
var skipCaching = source.flags & 1048576 /* Union */ && source.types.length < 4 && !(target.flags & 1048576 /* Union */) ||
|
|
65784
65750
|
target.flags & 1048576 /* Union */ && target.types.length < 4 && !(source.flags & 469499904 /* StructuredOrInstantiable */);
|
|
65785
|
-
var
|
|
65751
|
+
var result_7 = skipCaching ?
|
|
65786
65752
|
unionOrIntersectionRelatedTo(source, target, reportErrors, intersectionState) :
|
|
65787
65753
|
recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags);
|
|
65788
65754
|
// For certain combinations involving intersections and optional, excess, or mismatched properties we need
|
|
@@ -65800,14 +65766,14 @@ var ts;
|
|
|
65800
65766
|
//
|
|
65801
65767
|
// We suppress recursive intersection property checks because they can generate lots of work when relating
|
|
65802
65768
|
// recursive intersections that are structurally similar but not exactly identical. See #37854.
|
|
65803
|
-
if (
|
|
65769
|
+
if (result_7 && !inPropertyCheck && (target.flags & 2097152 /* Intersection */ && (isPerformingExcessPropertyChecks || isPerformingCommonPropertyChecks) ||
|
|
65804
65770
|
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 */); }))) {
|
|
65805
65771
|
inPropertyCheck = true;
|
|
65806
|
-
|
|
65772
|
+
result_7 &= recursiveTypeRelatedTo(source, target, reportErrors, 4 /* PropertyCheck */, recursionFlags);
|
|
65807
65773
|
inPropertyCheck = false;
|
|
65808
65774
|
}
|
|
65809
|
-
if (
|
|
65810
|
-
return
|
|
65775
|
+
if (result_7) {
|
|
65776
|
+
return result_7;
|
|
65811
65777
|
}
|
|
65812
65778
|
}
|
|
65813
65779
|
if (reportErrors) {
|
|
@@ -66196,9 +66162,6 @@ var ts;
|
|
|
66196
66162
|
// equal and infinitely expanding. Fourth, if we have reached a depth of 100 nested comparisons, assume we have runaway recursion
|
|
66197
66163
|
// and issue an error. Otherwise, actually compare the structure of the two types.
|
|
66198
66164
|
function recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags) {
|
|
66199
|
-
if (relation.size > Math.pow(2, 20)) {
|
|
66200
|
-
debugger;
|
|
66201
|
-
}
|
|
66202
66165
|
if (overflow) {
|
|
66203
66166
|
return 0 /* False */;
|
|
66204
66167
|
}
|
|
@@ -66357,11 +66320,11 @@ var ts;
|
|
|
66357
66320
|
if (relation === identityRelation) {
|
|
66358
66321
|
// We've already checked that source.flags and target.flags are identical
|
|
66359
66322
|
if (sourceFlags & 3145728 /* UnionOrIntersection */) {
|
|
66360
|
-
var
|
|
66361
|
-
if (
|
|
66362
|
-
|
|
66323
|
+
var result_8 = eachTypeRelatedToSomeType(source, target);
|
|
66324
|
+
if (result_8) {
|
|
66325
|
+
result_8 &= eachTypeRelatedToSomeType(target, source);
|
|
66363
66326
|
}
|
|
66364
|
-
return
|
|
66327
|
+
return result_8;
|
|
66365
66328
|
}
|
|
66366
66329
|
if (sourceFlags & 4194304 /* Index */) {
|
|
66367
66330
|
return isRelatedTo(source.type, target.type, 3 /* Both */, /*reportErrors*/ false);
|
|
@@ -66850,9 +66813,9 @@ var ts;
|
|
|
66850
66813
|
if (sourceFlags & (524288 /* Object */ | 2097152 /* Intersection */) && targetFlags & 1048576 /* Union */) {
|
|
66851
66814
|
var objectOnlyTarget = extractTypesOfKind(target, 524288 /* Object */ | 2097152 /* Intersection */ | 33554432 /* Substitution */);
|
|
66852
66815
|
if (objectOnlyTarget.flags & 1048576 /* Union */) {
|
|
66853
|
-
var
|
|
66854
|
-
if (
|
|
66855
|
-
return
|
|
66816
|
+
var result_9 = typeRelatedToDiscriminatedType(source, objectOnlyTarget);
|
|
66817
|
+
if (result_9) {
|
|
66818
|
+
return result_9;
|
|
66856
66819
|
}
|
|
66857
66820
|
}
|
|
66858
66821
|
}
|
|
@@ -66912,13 +66875,13 @@ var ts;
|
|
|
66912
66875
|
var modifiersRelated = relation === comparableRelation || (relation === identityRelation ? getMappedTypeModifiers(source) === getMappedTypeModifiers(target) :
|
|
66913
66876
|
getCombinedMappedTypeOptionality(source) <= getCombinedMappedTypeOptionality(target));
|
|
66914
66877
|
if (modifiersRelated) {
|
|
66915
|
-
var
|
|
66878
|
+
var result_10;
|
|
66916
66879
|
var targetConstraint = getConstraintTypeFromMappedType(target);
|
|
66917
66880
|
var sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source), getCombinedMappedTypeOptionality(source) < 0 ? reportUnmeasurableMapper : reportUnreliableMapper);
|
|
66918
|
-
if (
|
|
66881
|
+
if (result_10 = isRelatedTo(targetConstraint, sourceConstraint, 3 /* Both */, reportErrors)) {
|
|
66919
66882
|
var mapper = createTypeMapper([getTypeParameterFromMappedType(source)], [getTypeParameterFromMappedType(target)]);
|
|
66920
66883
|
if (instantiateType(getNameTypeFromMappedType(source), mapper) === instantiateType(getNameTypeFromMappedType(target), mapper)) {
|
|
66921
|
-
return
|
|
66884
|
+
return result_10 & isRelatedTo(instantiateType(getTemplateTypeFromMappedType(source), mapper), getTemplateTypeFromMappedType(target), 3 /* Both */, reportErrors);
|
|
66922
66885
|
}
|
|
66923
66886
|
}
|
|
66924
66887
|
}
|
|
@@ -78269,10 +78232,10 @@ var ts;
|
|
|
78269
78232
|
hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0);
|
|
78270
78233
|
hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);
|
|
78271
78234
|
if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {
|
|
78272
|
-
var
|
|
78273
|
-
|
|
78274
|
-
|
|
78275
|
-
return
|
|
78235
|
+
var result_11 = createAnonymousType(undefined, resolved.members, callSignatures, constructSignatures, resolved.indexInfos);
|
|
78236
|
+
result_11.objectFlags |= 8388608 /* InstantiationExpressionType */;
|
|
78237
|
+
result_11.node = node;
|
|
78238
|
+
return result_11;
|
|
78276
78239
|
}
|
|
78277
78240
|
}
|
|
78278
78241
|
else if (type.flags & 58982400 /* InstantiableNonPrimitive */) {
|
|
@@ -82107,12 +82070,12 @@ var ts;
|
|
|
82107
82070
|
case 265 /* ImportEqualsDeclaration */:
|
|
82108
82071
|
case 268 /* NamespaceImport */:
|
|
82109
82072
|
case 267 /* ImportClause */:
|
|
82110
|
-
var
|
|
82073
|
+
var result_12 = 0 /* None */;
|
|
82111
82074
|
var target = resolveAlias(getSymbolOfNode(d));
|
|
82112
82075
|
ts.forEach(target.declarations, function (d) {
|
|
82113
|
-
|
|
82076
|
+
result_12 |= getDeclarationSpaces(d);
|
|
82114
82077
|
});
|
|
82115
|
-
return
|
|
82078
|
+
return result_12;
|
|
82116
82079
|
case 254 /* VariableDeclaration */:
|
|
82117
82080
|
case 203 /* BindingElement */:
|
|
82118
82081
|
case 256 /* FunctionDeclaration */:
|
|
@@ -90441,6 +90404,7 @@ var ts;
|
|
|
90441
90404
|
})(ts || (ts = {}));
|
|
90442
90405
|
var ts;
|
|
90443
90406
|
(function (ts) {
|
|
90407
|
+
var _a;
|
|
90444
90408
|
function visitNode(node, visitor, test, lift) {
|
|
90445
90409
|
if (node === undefined || visitor === undefined) {
|
|
90446
90410
|
return node;
|
|
@@ -90655,12 +90619,10 @@ var ts;
|
|
|
90655
90619
|
return updated;
|
|
90656
90620
|
}
|
|
90657
90621
|
ts.visitFunctionBody = visitFunctionBody;
|
|
90658
|
-
|
|
90659
|
-
|
|
90660
|
-
*/
|
|
90661
|
-
function visitIterationBody(body, visitor, context) {
|
|
90622
|
+
function visitIterationBody(body, visitor, context, nodeVisitor) {
|
|
90623
|
+
if (nodeVisitor === void 0) { nodeVisitor = visitNode; }
|
|
90662
90624
|
context.startBlockScope();
|
|
90663
|
-
var updated =
|
|
90625
|
+
var updated = nodeVisitor(body, visitor, ts.isStatement, context.factory.liftToBlock);
|
|
90664
90626
|
var declarations = context.endBlockScope();
|
|
90665
90627
|
if (ts.some(declarations)) {
|
|
90666
90628
|
if (ts.isBlock(updated)) {
|
|
@@ -90679,456 +90641,443 @@ var ts;
|
|
|
90679
90641
|
if (node === undefined) {
|
|
90680
90642
|
return undefined;
|
|
90681
90643
|
}
|
|
90682
|
-
var
|
|
90683
|
-
|
|
90684
|
-
if ((kind > 0 /* FirstToken */ && kind <= 160 /* LastToken */) || kind === 192 /* ThisType */) {
|
|
90685
|
-
return node;
|
|
90686
|
-
}
|
|
90687
|
-
var factory = context.factory;
|
|
90688
|
-
switch (kind) {
|
|
90689
|
-
// Names
|
|
90690
|
-
case 79 /* Identifier */:
|
|
90691
|
-
ts.Debug.type(node);
|
|
90692
|
-
return factory.updateIdentifier(node, nodesVisitor(node.typeArguments, visitor, ts.isTypeNodeOrTypeParameterDeclaration));
|
|
90693
|
-
case 161 /* QualifiedName */:
|
|
90694
|
-
ts.Debug.type(node);
|
|
90695
|
-
return factory.updateQualifiedName(node, nodeVisitor(node.left, visitor, ts.isEntityName), nodeVisitor(node.right, visitor, ts.isIdentifier));
|
|
90696
|
-
case 162 /* ComputedPropertyName */:
|
|
90697
|
-
ts.Debug.type(node);
|
|
90698
|
-
return factory.updateComputedPropertyName(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90699
|
-
// Signature elements
|
|
90700
|
-
case 163 /* TypeParameter */:
|
|
90701
|
-
ts.Debug.type(node);
|
|
90702
|
-
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));
|
|
90703
|
-
case 164 /* Parameter */:
|
|
90704
|
-
ts.Debug.type(node);
|
|
90705
|
-
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));
|
|
90706
|
-
case 165 /* Decorator */:
|
|
90707
|
-
ts.Debug.type(node);
|
|
90708
|
-
return factory.updateDecorator(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90709
|
-
// Type elements
|
|
90710
|
-
case 166 /* PropertySignature */:
|
|
90711
|
-
ts.Debug.type(node);
|
|
90712
|
-
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));
|
|
90713
|
-
case 167 /* PropertyDeclaration */:
|
|
90714
|
-
ts.Debug.type(node);
|
|
90715
|
-
return factory.updatePropertyDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName),
|
|
90716
|
-
// QuestionToken and ExclamationToken is uniqued in Property Declaration and the signature of 'updateProperty' is that too
|
|
90717
|
-
nodeVisitor(node.questionToken || node.exclamationToken, tokenVisitor, ts.isQuestionOrExclamationToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90718
|
-
case 168 /* MethodSignature */:
|
|
90719
|
-
ts.Debug.type(node);
|
|
90720
|
-
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));
|
|
90721
|
-
case 169 /* MethodDeclaration */:
|
|
90722
|
-
ts.Debug.type(node);
|
|
90723
|
-
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));
|
|
90724
|
-
case 171 /* Constructor */:
|
|
90725
|
-
ts.Debug.type(node);
|
|
90726
|
-
return factory.updateConstructorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90727
|
-
case 172 /* GetAccessor */:
|
|
90728
|
-
ts.Debug.type(node);
|
|
90729
|
-
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));
|
|
90730
|
-
case 173 /* SetAccessor */:
|
|
90731
|
-
ts.Debug.type(node);
|
|
90732
|
-
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));
|
|
90733
|
-
case 170 /* ClassStaticBlockDeclaration */:
|
|
90734
|
-
ts.Debug.type(node);
|
|
90735
|
-
context.startLexicalEnvironment();
|
|
90736
|
-
context.suspendLexicalEnvironment();
|
|
90737
|
-
return factory.updateClassStaticBlockDeclaration(node, visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90738
|
-
case 174 /* CallSignature */:
|
|
90739
|
-
ts.Debug.type(node);
|
|
90740
|
-
return factory.updateCallSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90741
|
-
case 175 /* ConstructSignature */:
|
|
90742
|
-
ts.Debug.type(node);
|
|
90743
|
-
return factory.updateConstructSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90744
|
-
case 176 /* IndexSignature */:
|
|
90745
|
-
ts.Debug.type(node);
|
|
90746
|
-
return factory.updateIndexSignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90747
|
-
// Types
|
|
90748
|
-
case 177 /* TypePredicate */:
|
|
90749
|
-
ts.Debug.type(node);
|
|
90750
|
-
return factory.updateTypePredicateNode(node, nodeVisitor(node.assertsModifier, visitor, ts.isAssertsKeyword), nodeVisitor(node.parameterName, visitor, ts.isIdentifierOrThisTypeNode), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90751
|
-
case 178 /* TypeReference */:
|
|
90752
|
-
ts.Debug.type(node);
|
|
90753
|
-
return factory.updateTypeReferenceNode(node, nodeVisitor(node.typeName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90754
|
-
case 179 /* FunctionType */:
|
|
90755
|
-
ts.Debug.type(node);
|
|
90756
|
-
return factory.updateFunctionTypeNode(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90757
|
-
case 180 /* ConstructorType */:
|
|
90758
|
-
ts.Debug.type(node);
|
|
90759
|
-
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));
|
|
90760
|
-
case 181 /* TypeQuery */:
|
|
90761
|
-
ts.Debug.type(node);
|
|
90762
|
-
return factory.updateTypeQueryNode(node, nodeVisitor(node.exprName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90763
|
-
case 182 /* TypeLiteral */:
|
|
90764
|
-
ts.Debug.type(node);
|
|
90765
|
-
return factory.updateTypeLiteralNode(node, nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90766
|
-
case 183 /* ArrayType */:
|
|
90767
|
-
ts.Debug.type(node);
|
|
90768
|
-
return factory.updateArrayTypeNode(node, nodeVisitor(node.elementType, visitor, ts.isTypeNode));
|
|
90769
|
-
case 184 /* TupleType */:
|
|
90770
|
-
ts.Debug.type(node);
|
|
90771
|
-
return factory.updateTupleTypeNode(node, nodesVisitor(node.elements, visitor, ts.isTypeNode));
|
|
90772
|
-
case 185 /* OptionalType */:
|
|
90773
|
-
ts.Debug.type(node);
|
|
90774
|
-
return factory.updateOptionalTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90775
|
-
case 186 /* RestType */:
|
|
90776
|
-
ts.Debug.type(node);
|
|
90777
|
-
return factory.updateRestTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90778
|
-
case 187 /* UnionType */:
|
|
90779
|
-
ts.Debug.type(node);
|
|
90780
|
-
return factory.updateUnionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90781
|
-
case 188 /* IntersectionType */:
|
|
90782
|
-
ts.Debug.type(node);
|
|
90783
|
-
return factory.updateIntersectionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90784
|
-
case 189 /* ConditionalType */:
|
|
90785
|
-
ts.Debug.type(node);
|
|
90786
|
-
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));
|
|
90787
|
-
case 190 /* InferType */:
|
|
90788
|
-
ts.Debug.type(node);
|
|
90789
|
-
return factory.updateInferTypeNode(node, nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration));
|
|
90790
|
-
case 200 /* ImportType */:
|
|
90791
|
-
ts.Debug.type(node);
|
|
90792
|
-
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);
|
|
90793
|
-
case 295 /* ImportTypeAssertionContainer */:
|
|
90794
|
-
ts.Debug.type(node);
|
|
90795
|
-
return factory.updateImportTypeAssertionContainer(node, nodeVisitor(node.assertClause, visitor, ts.isNode), node.multiLine);
|
|
90796
|
-
case 197 /* NamedTupleMember */:
|
|
90797
|
-
ts.Debug.type(node);
|
|
90798
|
-
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));
|
|
90799
|
-
case 191 /* ParenthesizedType */:
|
|
90800
|
-
ts.Debug.type(node);
|
|
90801
|
-
return factory.updateParenthesizedType(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90802
|
-
case 193 /* TypeOperator */:
|
|
90803
|
-
ts.Debug.type(node);
|
|
90804
|
-
return factory.updateTypeOperatorNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90805
|
-
case 194 /* IndexedAccessType */:
|
|
90806
|
-
ts.Debug.type(node);
|
|
90807
|
-
return factory.updateIndexedAccessTypeNode(node, nodeVisitor(node.objectType, visitor, ts.isTypeNode), nodeVisitor(node.indexType, visitor, ts.isTypeNode));
|
|
90808
|
-
case 195 /* MappedType */:
|
|
90809
|
-
ts.Debug.type(node);
|
|
90810
|
-
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));
|
|
90811
|
-
case 196 /* LiteralType */:
|
|
90812
|
-
ts.Debug.type(node);
|
|
90813
|
-
return factory.updateLiteralTypeNode(node, nodeVisitor(node.literal, visitor, ts.isExpression));
|
|
90814
|
-
case 198 /* TemplateLiteralType */:
|
|
90815
|
-
ts.Debug.type(node);
|
|
90816
|
-
return factory.updateTemplateLiteralType(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateLiteralTypeSpan));
|
|
90817
|
-
case 199 /* TemplateLiteralTypeSpan */:
|
|
90818
|
-
ts.Debug.type(node);
|
|
90819
|
-
return factory.updateTemplateLiteralTypeSpan(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
90820
|
-
// Binding patterns
|
|
90821
|
-
case 201 /* ObjectBindingPattern */:
|
|
90822
|
-
ts.Debug.type(node);
|
|
90823
|
-
return factory.updateObjectBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isBindingElement));
|
|
90824
|
-
case 202 /* ArrayBindingPattern */:
|
|
90825
|
-
ts.Debug.type(node);
|
|
90826
|
-
return factory.updateArrayBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isArrayBindingElement));
|
|
90827
|
-
case 203 /* BindingElement */:
|
|
90828
|
-
ts.Debug.type(node);
|
|
90829
|
-
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));
|
|
90830
|
-
// Expression
|
|
90831
|
-
case 204 /* ArrayLiteralExpression */:
|
|
90832
|
-
ts.Debug.type(node);
|
|
90833
|
-
return factory.updateArrayLiteralExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
90834
|
-
case 205 /* ObjectLiteralExpression */:
|
|
90835
|
-
ts.Debug.type(node);
|
|
90836
|
-
return factory.updateObjectLiteralExpression(node, nodesVisitor(node.properties, visitor, ts.isObjectLiteralElementLike));
|
|
90837
|
-
case 206 /* PropertyAccessExpression */:
|
|
90838
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90839
|
-
ts.Debug.type(node);
|
|
90840
|
-
return factory.updatePropertyAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.name, visitor, ts.isMemberName));
|
|
90841
|
-
}
|
|
90842
|
-
ts.Debug.type(node);
|
|
90843
|
-
return factory.updatePropertyAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.name, visitor, ts.isMemberName));
|
|
90844
|
-
case 207 /* ElementAccessExpression */:
|
|
90845
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90846
|
-
ts.Debug.type(node);
|
|
90847
|
-
return factory.updateElementAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));
|
|
90848
|
-
}
|
|
90849
|
-
ts.Debug.type(node);
|
|
90850
|
-
return factory.updateElementAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));
|
|
90851
|
-
case 208 /* CallExpression */:
|
|
90852
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90853
|
-
ts.Debug.type(node);
|
|
90854
|
-
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));
|
|
90855
|
-
}
|
|
90856
|
-
ts.Debug.type(node);
|
|
90857
|
-
return factory.updateCallExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90858
|
-
case 209 /* NewExpression */:
|
|
90859
|
-
ts.Debug.type(node);
|
|
90860
|
-
return factory.updateNewExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90861
|
-
case 210 /* TaggedTemplateExpression */:
|
|
90862
|
-
ts.Debug.type(node);
|
|
90863
|
-
return factory.updateTaggedTemplateExpression(node, nodeVisitor(node.tag, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.template, visitor, ts.isTemplateLiteral));
|
|
90864
|
-
case 211 /* TypeAssertionExpression */:
|
|
90865
|
-
ts.Debug.type(node);
|
|
90866
|
-
return factory.updateTypeAssertion(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90867
|
-
case 212 /* ParenthesizedExpression */:
|
|
90868
|
-
ts.Debug.type(node);
|
|
90869
|
-
return factory.updateParenthesizedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90870
|
-
case 213 /* FunctionExpression */:
|
|
90871
|
-
ts.Debug.type(node);
|
|
90872
|
-
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));
|
|
90873
|
-
case 214 /* ArrowFunction */:
|
|
90874
|
-
ts.Debug.type(node);
|
|
90875
|
-
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));
|
|
90876
|
-
case 215 /* DeleteExpression */:
|
|
90877
|
-
ts.Debug.type(node);
|
|
90878
|
-
return factory.updateDeleteExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90879
|
-
case 216 /* TypeOfExpression */:
|
|
90880
|
-
ts.Debug.type(node);
|
|
90881
|
-
return factory.updateTypeOfExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90882
|
-
case 217 /* VoidExpression */:
|
|
90883
|
-
ts.Debug.type(node);
|
|
90884
|
-
return factory.updateVoidExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90885
|
-
case 218 /* AwaitExpression */:
|
|
90886
|
-
ts.Debug.type(node);
|
|
90887
|
-
return factory.updateAwaitExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90888
|
-
case 219 /* PrefixUnaryExpression */:
|
|
90889
|
-
ts.Debug.type(node);
|
|
90890
|
-
return factory.updatePrefixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
90891
|
-
case 220 /* PostfixUnaryExpression */:
|
|
90892
|
-
ts.Debug.type(node);
|
|
90893
|
-
return factory.updatePostfixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
90894
|
-
case 221 /* BinaryExpression */:
|
|
90895
|
-
ts.Debug.type(node);
|
|
90896
|
-
return factory.updateBinaryExpression(node, nodeVisitor(node.left, visitor, ts.isExpression), nodeVisitor(node.operatorToken, tokenVisitor, ts.isBinaryOperatorToken), nodeVisitor(node.right, visitor, ts.isExpression));
|
|
90897
|
-
case 222 /* ConditionalExpression */:
|
|
90898
|
-
ts.Debug.type(node);
|
|
90899
|
-
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));
|
|
90900
|
-
case 223 /* TemplateExpression */:
|
|
90901
|
-
ts.Debug.type(node);
|
|
90902
|
-
return factory.updateTemplateExpression(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateSpan));
|
|
90903
|
-
case 224 /* YieldExpression */:
|
|
90904
|
-
ts.Debug.type(node);
|
|
90905
|
-
return factory.updateYieldExpression(node, nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90906
|
-
case 225 /* SpreadElement */:
|
|
90907
|
-
ts.Debug.type(node);
|
|
90908
|
-
return factory.updateSpreadElement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90909
|
-
case 226 /* ClassExpression */:
|
|
90910
|
-
ts.Debug.type(node);
|
|
90911
|
-
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));
|
|
90912
|
-
case 228 /* ExpressionWithTypeArguments */:
|
|
90913
|
-
ts.Debug.type(node);
|
|
90914
|
-
return factory.updateExpressionWithTypeArguments(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90915
|
-
case 229 /* AsExpression */:
|
|
90916
|
-
ts.Debug.type(node);
|
|
90917
|
-
return factory.updateAsExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90918
|
-
case 230 /* NonNullExpression */:
|
|
90919
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90920
|
-
ts.Debug.type(node);
|
|
90921
|
-
return factory.updateNonNullChain(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90922
|
-
}
|
|
90923
|
-
ts.Debug.type(node);
|
|
90924
|
-
return factory.updateNonNullExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90925
|
-
case 231 /* MetaProperty */:
|
|
90926
|
-
ts.Debug.type(node);
|
|
90927
|
-
return factory.updateMetaProperty(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
90928
|
-
// Misc
|
|
90929
|
-
case 233 /* TemplateSpan */:
|
|
90930
|
-
ts.Debug.type(node);
|
|
90931
|
-
return factory.updateTemplateSpan(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
90932
|
-
// Element
|
|
90933
|
-
case 235 /* Block */:
|
|
90934
|
-
ts.Debug.type(node);
|
|
90935
|
-
return factory.updateBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
90936
|
-
case 237 /* VariableStatement */:
|
|
90937
|
-
ts.Debug.type(node);
|
|
90938
|
-
return factory.updateVariableStatement(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.declarationList, visitor, ts.isVariableDeclarationList));
|
|
90939
|
-
case 238 /* ExpressionStatement */:
|
|
90940
|
-
ts.Debug.type(node);
|
|
90941
|
-
return factory.updateExpressionStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90942
|
-
case 239 /* IfStatement */:
|
|
90943
|
-
ts.Debug.type(node);
|
|
90944
|
-
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));
|
|
90945
|
-
case 240 /* DoStatement */:
|
|
90946
|
-
ts.Debug.type(node);
|
|
90947
|
-
return factory.updateDoStatement(node, visitIterationBody(node.statement, visitor, context), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90948
|
-
case 241 /* WhileStatement */:
|
|
90949
|
-
ts.Debug.type(node);
|
|
90950
|
-
return factory.updateWhileStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));
|
|
90951
|
-
case 242 /* ForStatement */:
|
|
90952
|
-
ts.Debug.type(node);
|
|
90953
|
-
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));
|
|
90954
|
-
case 243 /* ForInStatement */:
|
|
90955
|
-
ts.Debug.type(node);
|
|
90956
|
-
return factory.updateForInStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));
|
|
90957
|
-
case 244 /* ForOfStatement */:
|
|
90958
|
-
ts.Debug.type(node);
|
|
90959
|
-
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));
|
|
90960
|
-
case 245 /* ContinueStatement */:
|
|
90961
|
-
ts.Debug.type(node);
|
|
90962
|
-
return factory.updateContinueStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
90963
|
-
case 246 /* BreakStatement */:
|
|
90964
|
-
ts.Debug.type(node);
|
|
90965
|
-
return factory.updateBreakStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
90966
|
-
case 247 /* ReturnStatement */:
|
|
90967
|
-
ts.Debug.type(node);
|
|
90968
|
-
return factory.updateReturnStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90969
|
-
case 248 /* WithStatement */:
|
|
90970
|
-
ts.Debug.type(node);
|
|
90971
|
-
return factory.updateWithStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.statement, visitor, ts.isStatement, factory.liftToBlock));
|
|
90972
|
-
case 249 /* SwitchStatement */:
|
|
90973
|
-
ts.Debug.type(node);
|
|
90974
|
-
return factory.updateSwitchStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.caseBlock, visitor, ts.isCaseBlock));
|
|
90975
|
-
case 250 /* LabeledStatement */:
|
|
90976
|
-
ts.Debug.type(node);
|
|
90977
|
-
return factory.updateLabeledStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier), nodeVisitor(node.statement, visitor, ts.isStatement, factory.liftToBlock));
|
|
90978
|
-
case 251 /* ThrowStatement */:
|
|
90979
|
-
ts.Debug.type(node);
|
|
90980
|
-
return factory.updateThrowStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90981
|
-
case 252 /* TryStatement */:
|
|
90982
|
-
ts.Debug.type(node);
|
|
90983
|
-
return factory.updateTryStatement(node, nodeVisitor(node.tryBlock, visitor, ts.isBlock), nodeVisitor(node.catchClause, visitor, ts.isCatchClause), nodeVisitor(node.finallyBlock, visitor, ts.isBlock));
|
|
90984
|
-
case 254 /* VariableDeclaration */:
|
|
90985
|
-
ts.Debug.type(node);
|
|
90986
|
-
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));
|
|
90987
|
-
case 255 /* VariableDeclarationList */:
|
|
90988
|
-
ts.Debug.type(node);
|
|
90989
|
-
return factory.updateVariableDeclarationList(node, nodesVisitor(node.declarations, visitor, ts.isVariableDeclaration));
|
|
90990
|
-
case 256 /* FunctionDeclaration */:
|
|
90991
|
-
ts.Debug.type(node);
|
|
90992
|
-
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));
|
|
90993
|
-
case 257 /* ClassDeclaration */:
|
|
90994
|
-
ts.Debug.type(node);
|
|
90995
|
-
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));
|
|
90996
|
-
case 258 /* InterfaceDeclaration */:
|
|
90997
|
-
ts.Debug.type(node);
|
|
90998
|
-
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));
|
|
90999
|
-
case 259 /* TypeAliasDeclaration */:
|
|
91000
|
-
ts.Debug.type(node);
|
|
91001
|
-
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));
|
|
91002
|
-
case 260 /* EnumDeclaration */:
|
|
91003
|
-
ts.Debug.type(node);
|
|
91004
|
-
return factory.updateEnumDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.members, visitor, ts.isEnumMember));
|
|
91005
|
-
case 261 /* ModuleDeclaration */:
|
|
91006
|
-
ts.Debug.type(node);
|
|
91007
|
-
return factory.updateModuleDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isModuleName), nodeVisitor(node.body, visitor, ts.isModuleBody));
|
|
91008
|
-
case 262 /* ModuleBlock */:
|
|
91009
|
-
ts.Debug.type(node);
|
|
91010
|
-
return factory.updateModuleBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91011
|
-
case 263 /* CaseBlock */:
|
|
91012
|
-
ts.Debug.type(node);
|
|
91013
|
-
return factory.updateCaseBlock(node, nodesVisitor(node.clauses, visitor, ts.isCaseOrDefaultClause));
|
|
91014
|
-
case 264 /* NamespaceExportDeclaration */:
|
|
91015
|
-
ts.Debug.type(node);
|
|
91016
|
-
return factory.updateNamespaceExportDeclaration(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91017
|
-
case 265 /* ImportEqualsDeclaration */:
|
|
91018
|
-
ts.Debug.type(node);
|
|
91019
|
-
return factory.updateImportEqualsDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.moduleReference, visitor, ts.isModuleReference));
|
|
91020
|
-
case 266 /* ImportDeclaration */:
|
|
91021
|
-
ts.Debug.type(node);
|
|
91022
|
-
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));
|
|
91023
|
-
case 293 /* AssertClause */:
|
|
91024
|
-
ts.Debug.type(node);
|
|
91025
|
-
return factory.updateAssertClause(node, nodesVisitor(node.elements, visitor, ts.isAssertEntry), node.multiLine);
|
|
91026
|
-
case 294 /* AssertEntry */:
|
|
91027
|
-
ts.Debug.type(node);
|
|
91028
|
-
return factory.updateAssertEntry(node, nodeVisitor(node.name, visitor, ts.isAssertionKey), nodeVisitor(node.value, visitor, ts.isExpressionNode));
|
|
91029
|
-
case 267 /* ImportClause */:
|
|
91030
|
-
ts.Debug.type(node);
|
|
91031
|
-
return factory.updateImportClause(node, node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.namedBindings, visitor, ts.isNamedImportBindings));
|
|
91032
|
-
case 268 /* NamespaceImport */:
|
|
91033
|
-
ts.Debug.type(node);
|
|
91034
|
-
return factory.updateNamespaceImport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91035
|
-
case 274 /* NamespaceExport */:
|
|
91036
|
-
ts.Debug.type(node);
|
|
91037
|
-
return factory.updateNamespaceExport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91038
|
-
case 269 /* NamedImports */:
|
|
91039
|
-
ts.Debug.type(node);
|
|
91040
|
-
return factory.updateNamedImports(node, nodesVisitor(node.elements, visitor, ts.isImportSpecifier));
|
|
91041
|
-
case 270 /* ImportSpecifier */:
|
|
91042
|
-
ts.Debug.type(node);
|
|
91043
|
-
return factory.updateImportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91044
|
-
case 271 /* ExportAssignment */:
|
|
91045
|
-
ts.Debug.type(node);
|
|
91046
|
-
return factory.updateExportAssignment(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91047
|
-
case 272 /* ExportDeclaration */:
|
|
91048
|
-
ts.Debug.type(node);
|
|
91049
|
-
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));
|
|
91050
|
-
case 273 /* NamedExports */:
|
|
91051
|
-
ts.Debug.type(node);
|
|
91052
|
-
return factory.updateNamedExports(node, nodesVisitor(node.elements, visitor, ts.isExportSpecifier));
|
|
91053
|
-
case 275 /* ExportSpecifier */:
|
|
91054
|
-
ts.Debug.type(node);
|
|
91055
|
-
return factory.updateExportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91056
|
-
// Module references
|
|
91057
|
-
case 277 /* ExternalModuleReference */:
|
|
91058
|
-
ts.Debug.type(node);
|
|
91059
|
-
return factory.updateExternalModuleReference(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91060
|
-
// JSX
|
|
91061
|
-
case 278 /* JsxElement */:
|
|
91062
|
-
ts.Debug.type(node);
|
|
91063
|
-
return factory.updateJsxElement(node, nodeVisitor(node.openingElement, visitor, ts.isJsxOpeningElement), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingElement, visitor, ts.isJsxClosingElement));
|
|
91064
|
-
case 279 /* JsxSelfClosingElement */:
|
|
91065
|
-
ts.Debug.type(node);
|
|
91066
|
-
return factory.updateJsxSelfClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91067
|
-
case 280 /* JsxOpeningElement */:
|
|
91068
|
-
ts.Debug.type(node);
|
|
91069
|
-
return factory.updateJsxOpeningElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91070
|
-
case 281 /* JsxClosingElement */:
|
|
91071
|
-
ts.Debug.type(node);
|
|
91072
|
-
return factory.updateJsxClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression));
|
|
91073
|
-
case 282 /* JsxFragment */:
|
|
91074
|
-
ts.Debug.type(node);
|
|
91075
|
-
return factory.updateJsxFragment(node, nodeVisitor(node.openingFragment, visitor, ts.isJsxOpeningFragment), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingFragment, visitor, ts.isJsxClosingFragment));
|
|
91076
|
-
case 285 /* JsxAttribute */:
|
|
91077
|
-
ts.Debug.type(node);
|
|
91078
|
-
return factory.updateJsxAttribute(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.initializer, visitor, ts.isStringLiteralOrJsxExpression));
|
|
91079
|
-
case 286 /* JsxAttributes */:
|
|
91080
|
-
ts.Debug.type(node);
|
|
91081
|
-
return factory.updateJsxAttributes(node, nodesVisitor(node.properties, visitor, ts.isJsxAttributeLike));
|
|
91082
|
-
case 287 /* JsxSpreadAttribute */:
|
|
91083
|
-
ts.Debug.type(node);
|
|
91084
|
-
return factory.updateJsxSpreadAttribute(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91085
|
-
case 288 /* JsxExpression */:
|
|
91086
|
-
ts.Debug.type(node);
|
|
91087
|
-
return factory.updateJsxExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91088
|
-
// Clauses
|
|
91089
|
-
case 289 /* CaseClause */:
|
|
91090
|
-
ts.Debug.type(node);
|
|
91091
|
-
return factory.updateCaseClause(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91092
|
-
case 290 /* DefaultClause */:
|
|
91093
|
-
ts.Debug.type(node);
|
|
91094
|
-
return factory.updateDefaultClause(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91095
|
-
case 291 /* HeritageClause */:
|
|
91096
|
-
ts.Debug.type(node);
|
|
91097
|
-
return factory.updateHeritageClause(node, nodesVisitor(node.types, visitor, ts.isExpressionWithTypeArguments));
|
|
91098
|
-
case 292 /* CatchClause */:
|
|
91099
|
-
ts.Debug.type(node);
|
|
91100
|
-
return factory.updateCatchClause(node, nodeVisitor(node.variableDeclaration, visitor, ts.isVariableDeclaration), nodeVisitor(node.block, visitor, ts.isBlock));
|
|
91101
|
-
// Property assignments
|
|
91102
|
-
case 296 /* PropertyAssignment */:
|
|
91103
|
-
ts.Debug.type(node);
|
|
91104
|
-
return factory.updatePropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91105
|
-
case 297 /* ShorthandPropertyAssignment */:
|
|
91106
|
-
ts.Debug.type(node);
|
|
91107
|
-
return factory.updateShorthandPropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.objectAssignmentInitializer, visitor, ts.isExpression));
|
|
91108
|
-
case 298 /* SpreadAssignment */:
|
|
91109
|
-
ts.Debug.type(node);
|
|
91110
|
-
return factory.updateSpreadAssignment(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91111
|
-
// Enum
|
|
91112
|
-
case 299 /* EnumMember */:
|
|
91113
|
-
ts.Debug.type(node);
|
|
91114
|
-
return factory.updateEnumMember(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91115
|
-
// Top-level nodes
|
|
91116
|
-
case 305 /* SourceFile */:
|
|
91117
|
-
ts.Debug.type(node);
|
|
91118
|
-
return factory.updateSourceFile(node, visitLexicalEnvironment(node.statements, visitor, context));
|
|
91119
|
-
// Transformation nodes
|
|
91120
|
-
case 350 /* PartiallyEmittedExpression */:
|
|
91121
|
-
ts.Debug.type(node);
|
|
91122
|
-
return factory.updatePartiallyEmittedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91123
|
-
case 351 /* CommaListExpression */:
|
|
91124
|
-
ts.Debug.type(node);
|
|
91125
|
-
return factory.updateCommaListExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
91126
|
-
default:
|
|
91127
|
-
// No need to visit nodes with no children.
|
|
91128
|
-
return node;
|
|
91129
|
-
}
|
|
90644
|
+
var fn = visitEachChildTable[node.kind];
|
|
90645
|
+
return fn === undefined ? node : fn(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor);
|
|
91130
90646
|
}
|
|
91131
90647
|
ts.visitEachChild = visitEachChild;
|
|
90648
|
+
// NOTE: Before you can add a new method to `visitEachChildTable`, you must first ensure the `Node` subtype you
|
|
90649
|
+
// wish to add is defined in the `HasChildren` union in types.ts.
|
|
90650
|
+
var visitEachChildTable = (_a = {},
|
|
90651
|
+
_a[79 /* Identifier */] = function visitEachChildOfIdentifier(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90652
|
+
return context.factory.updateIdentifier(node, nodesVisitor(node.typeArguments, visitor, ts.isTypeNodeOrTypeParameterDeclaration));
|
|
90653
|
+
},
|
|
90654
|
+
_a[161 /* QualifiedName */] = function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90655
|
+
return context.factory.updateQualifiedName(node, nodeVisitor(node.left, visitor, ts.isEntityName), nodeVisitor(node.right, visitor, ts.isIdentifier));
|
|
90656
|
+
},
|
|
90657
|
+
_a[162 /* ComputedPropertyName */] = function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90658
|
+
return context.factory.updateComputedPropertyName(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90659
|
+
},
|
|
90660
|
+
// Signature elements
|
|
90661
|
+
_a[163 /* TypeParameter */] = function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90662
|
+
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));
|
|
90663
|
+
},
|
|
90664
|
+
_a[164 /* Parameter */] = function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90665
|
+
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));
|
|
90666
|
+
},
|
|
90667
|
+
_a[165 /* Decorator */] = function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90668
|
+
return context.factory.updateDecorator(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90669
|
+
},
|
|
90670
|
+
// Type elements
|
|
90671
|
+
_a[166 /* PropertySignature */] = function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90672
|
+
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));
|
|
90673
|
+
},
|
|
90674
|
+
_a[167 /* PropertyDeclaration */] = function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90675
|
+
var _a;
|
|
90676
|
+
return context.factory.updatePropertyDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName),
|
|
90677
|
+
// QuestionToken and ExclamationToken are mutually exclusive in PropertyDeclaration
|
|
90678
|
+
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));
|
|
90679
|
+
},
|
|
90680
|
+
_a[168 /* MethodSignature */] = function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90681
|
+
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));
|
|
90682
|
+
},
|
|
90683
|
+
_a[169 /* MethodDeclaration */] = function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90684
|
+
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));
|
|
90685
|
+
},
|
|
90686
|
+
_a[171 /* Constructor */] = function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90687
|
+
return context.factory.updateConstructorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90688
|
+
},
|
|
90689
|
+
_a[172 /* GetAccessor */] = function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90690
|
+
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));
|
|
90691
|
+
},
|
|
90692
|
+
_a[173 /* SetAccessor */] = function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90693
|
+
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));
|
|
90694
|
+
},
|
|
90695
|
+
_a[170 /* ClassStaticBlockDeclaration */] = function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90696
|
+
context.startLexicalEnvironment();
|
|
90697
|
+
context.suspendLexicalEnvironment();
|
|
90698
|
+
return context.factory.updateClassStaticBlockDeclaration(node, visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90699
|
+
},
|
|
90700
|
+
_a[174 /* CallSignature */] = function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90701
|
+
return context.factory.updateCallSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90702
|
+
},
|
|
90703
|
+
_a[175 /* ConstructSignature */] = function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90704
|
+
return context.factory.updateConstructSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90705
|
+
},
|
|
90706
|
+
_a[176 /* IndexSignature */] = function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90707
|
+
return context.factory.updateIndexSignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90708
|
+
},
|
|
90709
|
+
// Types
|
|
90710
|
+
_a[177 /* TypePredicate */] = function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90711
|
+
return context.factory.updateTypePredicateNode(node, nodeVisitor(node.assertsModifier, visitor, ts.isAssertsKeyword), nodeVisitor(node.parameterName, visitor, ts.isIdentifierOrThisTypeNode), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90712
|
+
},
|
|
90713
|
+
_a[178 /* TypeReference */] = function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90714
|
+
return context.factory.updateTypeReferenceNode(node, nodeVisitor(node.typeName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90715
|
+
},
|
|
90716
|
+
_a[179 /* FunctionType */] = function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90717
|
+
return context.factory.updateFunctionTypeNode(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90718
|
+
},
|
|
90719
|
+
_a[180 /* ConstructorType */] = function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90720
|
+
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));
|
|
90721
|
+
},
|
|
90722
|
+
_a[181 /* TypeQuery */] = function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90723
|
+
return context.factory.updateTypeQueryNode(node, nodeVisitor(node.exprName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90724
|
+
},
|
|
90725
|
+
_a[182 /* TypeLiteral */] = function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90726
|
+
return context.factory.updateTypeLiteralNode(node, nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90727
|
+
},
|
|
90728
|
+
_a[183 /* ArrayType */] = function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90729
|
+
return context.factory.updateArrayTypeNode(node, nodeVisitor(node.elementType, visitor, ts.isTypeNode));
|
|
90730
|
+
},
|
|
90731
|
+
_a[184 /* TupleType */] = function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90732
|
+
return context.factory.updateTupleTypeNode(node, nodesVisitor(node.elements, visitor, ts.isTypeNode));
|
|
90733
|
+
},
|
|
90734
|
+
_a[185 /* OptionalType */] = function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90735
|
+
return context.factory.updateOptionalTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90736
|
+
},
|
|
90737
|
+
_a[186 /* RestType */] = function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90738
|
+
return context.factory.updateRestTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90739
|
+
},
|
|
90740
|
+
_a[187 /* UnionType */] = function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90741
|
+
return context.factory.updateUnionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90742
|
+
},
|
|
90743
|
+
_a[188 /* IntersectionType */] = function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90744
|
+
return context.factory.updateIntersectionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90745
|
+
},
|
|
90746
|
+
_a[189 /* ConditionalType */] = function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90747
|
+
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));
|
|
90748
|
+
},
|
|
90749
|
+
_a[190 /* InferType */] = function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90750
|
+
return context.factory.updateInferTypeNode(node, nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration));
|
|
90751
|
+
},
|
|
90752
|
+
_a[200 /* ImportType */] = function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90753
|
+
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);
|
|
90754
|
+
},
|
|
90755
|
+
_a[295 /* ImportTypeAssertionContainer */] = function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90756
|
+
return context.factory.updateImportTypeAssertionContainer(node, nodeVisitor(node.assertClause, visitor, ts.isAssertClause), node.multiLine);
|
|
90757
|
+
},
|
|
90758
|
+
_a[197 /* NamedTupleMember */] = function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90759
|
+
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));
|
|
90760
|
+
},
|
|
90761
|
+
_a[191 /* ParenthesizedType */] = function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90762
|
+
return context.factory.updateParenthesizedType(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90763
|
+
},
|
|
90764
|
+
_a[193 /* TypeOperator */] = function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90765
|
+
return context.factory.updateTypeOperatorNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90766
|
+
},
|
|
90767
|
+
_a[194 /* IndexedAccessType */] = function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90768
|
+
return context.factory.updateIndexedAccessTypeNode(node, nodeVisitor(node.objectType, visitor, ts.isTypeNode), nodeVisitor(node.indexType, visitor, ts.isTypeNode));
|
|
90769
|
+
},
|
|
90770
|
+
_a[195 /* MappedType */] = function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90771
|
+
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));
|
|
90772
|
+
},
|
|
90773
|
+
_a[196 /* LiteralType */] = function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90774
|
+
return context.factory.updateLiteralTypeNode(node, nodeVisitor(node.literal, visitor, ts.isExpression));
|
|
90775
|
+
},
|
|
90776
|
+
_a[198 /* TemplateLiteralType */] = function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90777
|
+
return context.factory.updateTemplateLiteralType(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateLiteralTypeSpan));
|
|
90778
|
+
},
|
|
90779
|
+
_a[199 /* TemplateLiteralTypeSpan */] = function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90780
|
+
return context.factory.updateTemplateLiteralTypeSpan(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
90781
|
+
},
|
|
90782
|
+
// Binding patterns
|
|
90783
|
+
_a[201 /* ObjectBindingPattern */] = function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90784
|
+
return context.factory.updateObjectBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isBindingElement));
|
|
90785
|
+
},
|
|
90786
|
+
_a[202 /* ArrayBindingPattern */] = function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90787
|
+
return context.factory.updateArrayBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isArrayBindingElement));
|
|
90788
|
+
},
|
|
90789
|
+
_a[203 /* BindingElement */] = function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90790
|
+
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));
|
|
90791
|
+
},
|
|
90792
|
+
// Expression
|
|
90793
|
+
_a[204 /* ArrayLiteralExpression */] = function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90794
|
+
return context.factory.updateArrayLiteralExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
90795
|
+
},
|
|
90796
|
+
_a[205 /* ObjectLiteralExpression */] = function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90797
|
+
return context.factory.updateObjectLiteralExpression(node, nodesVisitor(node.properties, visitor, ts.isObjectLiteralElementLike));
|
|
90798
|
+
},
|
|
90799
|
+
_a[206 /* PropertyAccessExpression */] = function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90800
|
+
return ts.isPropertyAccessChain(node) ?
|
|
90801
|
+
context.factory.updatePropertyAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.name, visitor, ts.isMemberName)) :
|
|
90802
|
+
context.factory.updatePropertyAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.name, visitor, ts.isMemberName));
|
|
90803
|
+
},
|
|
90804
|
+
_a[207 /* ElementAccessExpression */] = function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90805
|
+
return ts.isElementAccessChain(node) ?
|
|
90806
|
+
context.factory.updateElementAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.argumentExpression, visitor, ts.isExpression)) :
|
|
90807
|
+
context.factory.updateElementAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));
|
|
90808
|
+
},
|
|
90809
|
+
_a[208 /* CallExpression */] = function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90810
|
+
return ts.isCallChain(node) ?
|
|
90811
|
+
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)) :
|
|
90812
|
+
context.factory.updateCallExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90813
|
+
},
|
|
90814
|
+
_a[209 /* NewExpression */] = function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90815
|
+
return context.factory.updateNewExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90816
|
+
},
|
|
90817
|
+
_a[210 /* TaggedTemplateExpression */] = function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90818
|
+
return context.factory.updateTaggedTemplateExpression(node, nodeVisitor(node.tag, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.template, visitor, ts.isTemplateLiteral));
|
|
90819
|
+
},
|
|
90820
|
+
_a[211 /* TypeAssertionExpression */] = function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90821
|
+
return context.factory.updateTypeAssertion(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90822
|
+
},
|
|
90823
|
+
_a[212 /* ParenthesizedExpression */] = function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90824
|
+
return context.factory.updateParenthesizedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90825
|
+
},
|
|
90826
|
+
_a[213 /* FunctionExpression */] = function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90827
|
+
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));
|
|
90828
|
+
},
|
|
90829
|
+
_a[214 /* ArrowFunction */] = function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90830
|
+
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));
|
|
90831
|
+
},
|
|
90832
|
+
_a[215 /* DeleteExpression */] = function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90833
|
+
return context.factory.updateDeleteExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90834
|
+
},
|
|
90835
|
+
_a[216 /* TypeOfExpression */] = function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90836
|
+
return context.factory.updateTypeOfExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90837
|
+
},
|
|
90838
|
+
_a[217 /* VoidExpression */] = function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90839
|
+
return context.factory.updateVoidExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90840
|
+
},
|
|
90841
|
+
_a[218 /* AwaitExpression */] = function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90842
|
+
return context.factory.updateAwaitExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90843
|
+
},
|
|
90844
|
+
_a[219 /* PrefixUnaryExpression */] = function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90845
|
+
return context.factory.updatePrefixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
90846
|
+
},
|
|
90847
|
+
_a[220 /* PostfixUnaryExpression */] = function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90848
|
+
return context.factory.updatePostfixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
90849
|
+
},
|
|
90850
|
+
_a[221 /* BinaryExpression */] = function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90851
|
+
return context.factory.updateBinaryExpression(node, nodeVisitor(node.left, visitor, ts.isExpression), nodeVisitor(node.operatorToken, tokenVisitor, ts.isBinaryOperatorToken), nodeVisitor(node.right, visitor, ts.isExpression));
|
|
90852
|
+
},
|
|
90853
|
+
_a[222 /* ConditionalExpression */] = function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90854
|
+
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));
|
|
90855
|
+
},
|
|
90856
|
+
_a[223 /* TemplateExpression */] = function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90857
|
+
return context.factory.updateTemplateExpression(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateSpan));
|
|
90858
|
+
},
|
|
90859
|
+
_a[224 /* YieldExpression */] = function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90860
|
+
return context.factory.updateYieldExpression(node, nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90861
|
+
},
|
|
90862
|
+
_a[225 /* SpreadElement */] = function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90863
|
+
return context.factory.updateSpreadElement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90864
|
+
},
|
|
90865
|
+
_a[226 /* ClassExpression */] = function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90866
|
+
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));
|
|
90867
|
+
},
|
|
90868
|
+
_a[228 /* ExpressionWithTypeArguments */] = function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90869
|
+
return context.factory.updateExpressionWithTypeArguments(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90870
|
+
},
|
|
90871
|
+
_a[229 /* AsExpression */] = function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90872
|
+
return context.factory.updateAsExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90873
|
+
},
|
|
90874
|
+
_a[230 /* NonNullExpression */] = function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90875
|
+
return ts.isOptionalChain(node) ?
|
|
90876
|
+
context.factory.updateNonNullChain(node, nodeVisitor(node.expression, visitor, ts.isExpression)) :
|
|
90877
|
+
context.factory.updateNonNullExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90878
|
+
},
|
|
90879
|
+
_a[231 /* MetaProperty */] = function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90880
|
+
return context.factory.updateMetaProperty(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
90881
|
+
},
|
|
90882
|
+
// Misc
|
|
90883
|
+
_a[233 /* TemplateSpan */] = function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90884
|
+
return context.factory.updateTemplateSpan(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
90885
|
+
},
|
|
90886
|
+
// Element
|
|
90887
|
+
_a[235 /* Block */] = function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90888
|
+
return context.factory.updateBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
90889
|
+
},
|
|
90890
|
+
_a[237 /* VariableStatement */] = function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90891
|
+
return context.factory.updateVariableStatement(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.declarationList, visitor, ts.isVariableDeclarationList));
|
|
90892
|
+
},
|
|
90893
|
+
_a[238 /* ExpressionStatement */] = function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90894
|
+
return context.factory.updateExpressionStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90895
|
+
},
|
|
90896
|
+
_a[239 /* IfStatement */] = function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90897
|
+
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));
|
|
90898
|
+
},
|
|
90899
|
+
_a[240 /* DoStatement */] = function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90900
|
+
return context.factory.updateDoStatement(node, visitIterationBody(node.statement, visitor, context, nodeVisitor), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90901
|
+
},
|
|
90902
|
+
_a[241 /* WhileStatement */] = function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90903
|
+
return context.factory.updateWhileStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context, nodeVisitor));
|
|
90904
|
+
},
|
|
90905
|
+
_a[242 /* ForStatement */] = function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90906
|
+
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));
|
|
90907
|
+
},
|
|
90908
|
+
_a[243 /* ForInStatement */] = function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90909
|
+
return context.factory.updateForInStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context, nodeVisitor));
|
|
90910
|
+
},
|
|
90911
|
+
_a[244 /* ForOfStatement */] = function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90912
|
+
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));
|
|
90913
|
+
},
|
|
90914
|
+
_a[245 /* ContinueStatement */] = function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90915
|
+
return context.factory.updateContinueStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
90916
|
+
},
|
|
90917
|
+
_a[246 /* BreakStatement */] = function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90918
|
+
return context.factory.updateBreakStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
90919
|
+
},
|
|
90920
|
+
_a[247 /* ReturnStatement */] = function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90921
|
+
return context.factory.updateReturnStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90922
|
+
},
|
|
90923
|
+
_a[248 /* WithStatement */] = function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90924
|
+
return context.factory.updateWithStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.statement, visitor, ts.isStatement, context.factory.liftToBlock));
|
|
90925
|
+
},
|
|
90926
|
+
_a[249 /* SwitchStatement */] = function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90927
|
+
return context.factory.updateSwitchStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.caseBlock, visitor, ts.isCaseBlock));
|
|
90928
|
+
},
|
|
90929
|
+
_a[250 /* LabeledStatement */] = function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90930
|
+
return context.factory.updateLabeledStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier), nodeVisitor(node.statement, visitor, ts.isStatement, context.factory.liftToBlock));
|
|
90931
|
+
},
|
|
90932
|
+
_a[251 /* ThrowStatement */] = function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90933
|
+
return context.factory.updateThrowStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90934
|
+
},
|
|
90935
|
+
_a[252 /* TryStatement */] = function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90936
|
+
return context.factory.updateTryStatement(node, nodeVisitor(node.tryBlock, visitor, ts.isBlock), nodeVisitor(node.catchClause, visitor, ts.isCatchClause), nodeVisitor(node.finallyBlock, visitor, ts.isBlock));
|
|
90937
|
+
},
|
|
90938
|
+
_a[254 /* VariableDeclaration */] = function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90939
|
+
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));
|
|
90940
|
+
},
|
|
90941
|
+
_a[255 /* VariableDeclarationList */] = function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90942
|
+
return context.factory.updateVariableDeclarationList(node, nodesVisitor(node.declarations, visitor, ts.isVariableDeclaration));
|
|
90943
|
+
},
|
|
90944
|
+
_a[256 /* FunctionDeclaration */] = function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90945
|
+
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));
|
|
90946
|
+
},
|
|
90947
|
+
_a[257 /* ClassDeclaration */] = function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90948
|
+
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));
|
|
90949
|
+
},
|
|
90950
|
+
_a[258 /* InterfaceDeclaration */] = function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90951
|
+
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));
|
|
90952
|
+
},
|
|
90953
|
+
_a[259 /* TypeAliasDeclaration */] = function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90954
|
+
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));
|
|
90955
|
+
},
|
|
90956
|
+
_a[260 /* EnumDeclaration */] = function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90957
|
+
return context.factory.updateEnumDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.members, visitor, ts.isEnumMember));
|
|
90958
|
+
},
|
|
90959
|
+
_a[261 /* ModuleDeclaration */] = function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90960
|
+
return context.factory.updateModuleDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isModuleName), nodeVisitor(node.body, visitor, ts.isModuleBody));
|
|
90961
|
+
},
|
|
90962
|
+
_a[262 /* ModuleBlock */] = function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90963
|
+
return context.factory.updateModuleBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
90964
|
+
},
|
|
90965
|
+
_a[263 /* CaseBlock */] = function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90966
|
+
return context.factory.updateCaseBlock(node, nodesVisitor(node.clauses, visitor, ts.isCaseOrDefaultClause));
|
|
90967
|
+
},
|
|
90968
|
+
_a[264 /* NamespaceExportDeclaration */] = function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90969
|
+
return context.factory.updateNamespaceExportDeclaration(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
90970
|
+
},
|
|
90971
|
+
_a[265 /* ImportEqualsDeclaration */] = function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90972
|
+
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));
|
|
90973
|
+
},
|
|
90974
|
+
_a[266 /* ImportDeclaration */] = function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90975
|
+
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));
|
|
90976
|
+
},
|
|
90977
|
+
_a[293 /* AssertClause */] = function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90978
|
+
return context.factory.updateAssertClause(node, nodesVisitor(node.elements, visitor, ts.isAssertEntry), node.multiLine);
|
|
90979
|
+
},
|
|
90980
|
+
_a[294 /* AssertEntry */] = function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90981
|
+
return context.factory.updateAssertEntry(node, nodeVisitor(node.name, visitor, ts.isAssertionKey), nodeVisitor(node.value, visitor, ts.isExpression));
|
|
90982
|
+
},
|
|
90983
|
+
_a[267 /* ImportClause */] = function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90984
|
+
return context.factory.updateImportClause(node, node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.namedBindings, visitor, ts.isNamedImportBindings));
|
|
90985
|
+
},
|
|
90986
|
+
_a[268 /* NamespaceImport */] = function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90987
|
+
return context.factory.updateNamespaceImport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
90988
|
+
},
|
|
90989
|
+
_a[274 /* NamespaceExport */] = function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90990
|
+
return context.factory.updateNamespaceExport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
90991
|
+
},
|
|
90992
|
+
_a[269 /* NamedImports */] = function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90993
|
+
return context.factory.updateNamedImports(node, nodesVisitor(node.elements, visitor, ts.isImportSpecifier));
|
|
90994
|
+
},
|
|
90995
|
+
_a[270 /* ImportSpecifier */] = function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90996
|
+
return context.factory.updateImportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
90997
|
+
},
|
|
90998
|
+
_a[271 /* ExportAssignment */] = function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90999
|
+
return context.factory.updateExportAssignment(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91000
|
+
},
|
|
91001
|
+
_a[272 /* ExportDeclaration */] = function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91002
|
+
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));
|
|
91003
|
+
},
|
|
91004
|
+
_a[273 /* NamedExports */] = function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91005
|
+
return context.factory.updateNamedExports(node, nodesVisitor(node.elements, visitor, ts.isExportSpecifier));
|
|
91006
|
+
},
|
|
91007
|
+
_a[275 /* ExportSpecifier */] = function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91008
|
+
return context.factory.updateExportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91009
|
+
},
|
|
91010
|
+
// Module references
|
|
91011
|
+
_a[277 /* ExternalModuleReference */] = function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91012
|
+
return context.factory.updateExternalModuleReference(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91013
|
+
},
|
|
91014
|
+
// JSX
|
|
91015
|
+
_a[278 /* JsxElement */] = function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91016
|
+
return context.factory.updateJsxElement(node, nodeVisitor(node.openingElement, visitor, ts.isJsxOpeningElement), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingElement, visitor, ts.isJsxClosingElement));
|
|
91017
|
+
},
|
|
91018
|
+
_a[279 /* JsxSelfClosingElement */] = function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91019
|
+
return context.factory.updateJsxSelfClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91020
|
+
},
|
|
91021
|
+
_a[280 /* JsxOpeningElement */] = function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91022
|
+
return context.factory.updateJsxOpeningElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91023
|
+
},
|
|
91024
|
+
_a[281 /* JsxClosingElement */] = function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91025
|
+
return context.factory.updateJsxClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression));
|
|
91026
|
+
},
|
|
91027
|
+
_a[282 /* JsxFragment */] = function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91028
|
+
return context.factory.updateJsxFragment(node, nodeVisitor(node.openingFragment, visitor, ts.isJsxOpeningFragment), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingFragment, visitor, ts.isJsxClosingFragment));
|
|
91029
|
+
},
|
|
91030
|
+
_a[285 /* JsxAttribute */] = function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91031
|
+
return context.factory.updateJsxAttribute(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.initializer, visitor, ts.isStringLiteralOrJsxExpression));
|
|
91032
|
+
},
|
|
91033
|
+
_a[286 /* JsxAttributes */] = function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91034
|
+
return context.factory.updateJsxAttributes(node, nodesVisitor(node.properties, visitor, ts.isJsxAttributeLike));
|
|
91035
|
+
},
|
|
91036
|
+
_a[287 /* JsxSpreadAttribute */] = function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91037
|
+
return context.factory.updateJsxSpreadAttribute(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91038
|
+
},
|
|
91039
|
+
_a[288 /* JsxExpression */] = function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91040
|
+
return context.factory.updateJsxExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91041
|
+
},
|
|
91042
|
+
// Clauses
|
|
91043
|
+
_a[289 /* CaseClause */] = function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91044
|
+
return context.factory.updateCaseClause(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91045
|
+
},
|
|
91046
|
+
_a[290 /* DefaultClause */] = function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91047
|
+
return context.factory.updateDefaultClause(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91048
|
+
},
|
|
91049
|
+
_a[291 /* HeritageClause */] = function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91050
|
+
return context.factory.updateHeritageClause(node, nodesVisitor(node.types, visitor, ts.isExpressionWithTypeArguments));
|
|
91051
|
+
},
|
|
91052
|
+
_a[292 /* CatchClause */] = function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91053
|
+
return context.factory.updateCatchClause(node, nodeVisitor(node.variableDeclaration, visitor, ts.isVariableDeclaration), nodeVisitor(node.block, visitor, ts.isBlock));
|
|
91054
|
+
},
|
|
91055
|
+
// Property assignments
|
|
91056
|
+
_a[296 /* PropertyAssignment */] = function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91057
|
+
return context.factory.updatePropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91058
|
+
},
|
|
91059
|
+
_a[297 /* ShorthandPropertyAssignment */] = function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91060
|
+
return context.factory.updateShorthandPropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.objectAssignmentInitializer, visitor, ts.isExpression));
|
|
91061
|
+
},
|
|
91062
|
+
_a[298 /* SpreadAssignment */] = function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91063
|
+
return context.factory.updateSpreadAssignment(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91064
|
+
},
|
|
91065
|
+
// Enum
|
|
91066
|
+
_a[299 /* EnumMember */] = function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91067
|
+
return context.factory.updateEnumMember(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91068
|
+
},
|
|
91069
|
+
// Top-level nodes
|
|
91070
|
+
_a[305 /* SourceFile */] = function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91071
|
+
return context.factory.updateSourceFile(node, visitLexicalEnvironment(node.statements, visitor, context, /*start*/ undefined, /*ensureUseStrict*/ undefined, nodesVisitor));
|
|
91072
|
+
},
|
|
91073
|
+
// Transformation nodes
|
|
91074
|
+
_a[350 /* PartiallyEmittedExpression */] = function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91075
|
+
return context.factory.updatePartiallyEmittedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91076
|
+
},
|
|
91077
|
+
_a[351 /* CommaListExpression */] = function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91078
|
+
return context.factory.updateCommaListExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
91079
|
+
},
|
|
91080
|
+
_a);
|
|
91132
91081
|
/**
|
|
91133
91082
|
* Extracts the single node from a NodeArray.
|
|
91134
91083
|
*
|
|
@@ -99293,8 +99242,8 @@ var ts;
|
|
|
99293
99242
|
function convertJsxChildrenToChildrenPropAssignment(children) {
|
|
99294
99243
|
var nonWhitespaceChildren = ts.getSemanticJsxChildren(children);
|
|
99295
99244
|
if (ts.length(nonWhitespaceChildren) === 1 && !nonWhitespaceChildren[0].dotDotDotToken) {
|
|
99296
|
-
var
|
|
99297
|
-
return
|
|
99245
|
+
var result_13 = transformJsxChildToExpression(nonWhitespaceChildren[0]);
|
|
99246
|
+
return result_13 && factory.createPropertyAssignment("children", result_13);
|
|
99298
99247
|
}
|
|
99299
99248
|
var result = ts.mapDefined(children, transformJsxChildToExpression);
|
|
99300
99249
|
return ts.length(result) ? factory.createPropertyAssignment("children", factory.createArrayLiteralExpression(result)) : undefined;
|
|
@@ -118549,15 +118498,15 @@ var ts;
|
|
|
118549
118498
|
// which per above occurred during the current program creation.
|
|
118550
118499
|
// Since we assume the filesystem does not change during program creation,
|
|
118551
118500
|
// it is safe to reuse resolutions from the earlier call.
|
|
118552
|
-
var
|
|
118501
|
+
var result_14 = [];
|
|
118553
118502
|
var i = 0;
|
|
118554
118503
|
for (var _i = 0, moduleNames_1 = moduleNames; _i < moduleNames_1.length; _i++) {
|
|
118555
118504
|
var moduleName = moduleNames_1[_i];
|
|
118556
118505
|
var resolvedModule = file.resolvedModules.get(moduleName, getModeForResolutionAtIndex(file, i));
|
|
118557
118506
|
i++;
|
|
118558
|
-
|
|
118507
|
+
result_14.push(resolvedModule);
|
|
118559
118508
|
}
|
|
118560
|
-
return
|
|
118509
|
+
return result_14;
|
|
118561
118510
|
}
|
|
118562
118511
|
// At this point, we know at least one of the following hold:
|
|
118563
118512
|
// - file has local declarations for ambient modules
|
|
@@ -122017,14 +121966,14 @@ var ts;
|
|
|
122017
121966
|
fileNames_1.push(relativeToBuildInfo(sourceFile.resolvedPath));
|
|
122018
121967
|
fileInfos_1.push(sourceFile.version);
|
|
122019
121968
|
});
|
|
122020
|
-
var
|
|
121969
|
+
var result_15 = {
|
|
122021
121970
|
fileNames: fileNames_1,
|
|
122022
121971
|
fileInfos: fileInfos_1,
|
|
122023
121972
|
options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions, "affectsBundleEmitBuildInfo"),
|
|
122024
121973
|
outSignature: state.outSignature,
|
|
122025
121974
|
latestChangedDtsFile: latestChangedDtsFile,
|
|
122026
121975
|
};
|
|
122027
|
-
return
|
|
121976
|
+
return result_15;
|
|
122028
121977
|
}
|
|
122029
121978
|
var fileNames = [];
|
|
122030
121979
|
var fileNameToFileId = new ts.Map();
|
|
@@ -123962,9 +123911,9 @@ var ts;
|
|
|
123962
123911
|
if (!preferSymlinks) {
|
|
123963
123912
|
// Symlinks inside ignored paths are already filtered out of the symlink cache,
|
|
123964
123913
|
// so we only need to remove them from the realpath filenames.
|
|
123965
|
-
var
|
|
123966
|
-
if (
|
|
123967
|
-
return
|
|
123914
|
+
var result_16 = ts.forEach(targets, function (p) { return !(shouldFilterIgnoredPaths && ts.containsIgnoredPath(p)) && cb(p, referenceRedirect === p); });
|
|
123915
|
+
if (result_16)
|
|
123916
|
+
return result_16;
|
|
123968
123917
|
}
|
|
123969
123918
|
var symlinkedDirectories = (_a = host.getSymlinkCache) === null || _a === void 0 ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath();
|
|
123970
123919
|
var fullImportedFileName = ts.getNormalizedAbsolutePath(importedFileName, cwd);
|
|
@@ -123984,10 +123933,10 @@ var ts;
|
|
|
123984
123933
|
for (var _i = 0, symlinkDirectories_1 = symlinkDirectories; _i < symlinkDirectories_1.length; _i++) {
|
|
123985
123934
|
var symlinkDirectory = symlinkDirectories_1[_i];
|
|
123986
123935
|
var option = ts.resolvePath(symlinkDirectory, relative);
|
|
123987
|
-
var
|
|
123936
|
+
var result_17 = cb(option, target === referenceRedirect);
|
|
123988
123937
|
shouldFilterIgnoredPaths = true; // We found a non-ignored path in symlinks, so we can reject ignored-path realpaths
|
|
123989
|
-
if (
|
|
123990
|
-
return
|
|
123938
|
+
if (result_17)
|
|
123939
|
+
return result_17;
|
|
123991
123940
|
}
|
|
123992
123941
|
});
|
|
123993
123942
|
});
|