@typescript-deploys/pr-build 4.9.0-pr-50592-5 → 4.9.0-pr-50691-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +67 -69
- package/lib/tsserver.js +82 -91
- package/lib/tsserverlibrary.js +82 -77
- package/lib/typescript.js +82 -77
- package/lib/typescriptServices.js +82 -77
- package/lib/typingsInstaller.js +78 -76
- package/package.json +2 -4
package/lib/tsc.js
CHANGED
|
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
69
69
|
var ts;
|
|
70
70
|
(function (ts) {
|
|
71
71
|
ts.versionMajorMinor = "4.9";
|
|
72
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-insiders.
|
|
72
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-insiders.20220909");
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -3733,7 +3733,6 @@ var ts;
|
|
|
3733
3733
|
createPollingIntervalBasedLevels(customLevels ? __assign(__assign({}, defaultLevels), customLevels) : defaultLevels);
|
|
3734
3734
|
}
|
|
3735
3735
|
}
|
|
3736
|
-
ts.setCustomPollingValues = setCustomPollingValues;
|
|
3737
3736
|
function pollWatchedFileQueue(host, queue, pollIndex, chunkSize, callbackOnWatchFileStat) {
|
|
3738
3737
|
var definedValueCopyToIndex = pollIndex;
|
|
3739
3738
|
for (var canVisit = queue.length; chunkSize && canVisit; nextPollIndex(), canVisit--) {
|
|
@@ -3871,7 +3870,6 @@ var ts;
|
|
|
3871
3870
|
pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === PollingInterval.Low ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingIntervalQueue(pollingInterval));
|
|
3872
3871
|
}
|
|
3873
3872
|
}
|
|
3874
|
-
ts.createDynamicPriorityPollingWatchFile = createDynamicPriorityPollingWatchFile;
|
|
3875
3873
|
function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) {
|
|
3876
3874
|
var fileWatcherCallbacks = ts.createMultiMap();
|
|
3877
3875
|
var dirWatchers = new ts.Map();
|
|
@@ -3946,37 +3944,31 @@ var ts;
|
|
|
3946
3944
|
pollScheduled = host.setTimeout(pollQueue, PollingInterval.High);
|
|
3947
3945
|
}
|
|
3948
3946
|
}
|
|
3949
|
-
function
|
|
3950
|
-
var cache = new ts.Map();
|
|
3951
|
-
var callbacksCache = ts.createMultiMap();
|
|
3947
|
+
function createSingleWatcherPerName(cache, useCaseSensitiveFileNames, name, callback, createWatcher) {
|
|
3952
3948
|
var toCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
cache.
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3949
|
+
var path = toCanonicalFileName(name);
|
|
3950
|
+
var existing = cache.get(path);
|
|
3951
|
+
if (existing) {
|
|
3952
|
+
existing.callbacks.push(callback);
|
|
3953
|
+
}
|
|
3954
|
+
else {
|
|
3955
|
+
cache.set(path, {
|
|
3956
|
+
watcher: createWatcher((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); }); })),
|
|
3957
|
+
callbacks: [callback]
|
|
3958
|
+
});
|
|
3959
|
+
}
|
|
3960
|
+
return {
|
|
3961
|
+
close: function () {
|
|
3962
|
+
var watcher = cache.get(path);
|
|
3963
|
+
if (!watcher)
|
|
3964
|
+
return;
|
|
3965
|
+
if (!ts.orderedRemoveItem(watcher.callbacks, callback) || watcher.callbacks.length)
|
|
3966
|
+
return;
|
|
3967
|
+
cache.delete(path);
|
|
3968
|
+
ts.closeFileWatcherOf(watcher);
|
|
3964
3969
|
}
|
|
3965
|
-
callbacksCache.add(path, callback);
|
|
3966
|
-
return {
|
|
3967
|
-
close: function () {
|
|
3968
|
-
var watcher = ts.Debug.checkDefined(cache.get(path));
|
|
3969
|
-
callbacksCache.remove(path, callback);
|
|
3970
|
-
watcher.refCount--;
|
|
3971
|
-
if (watcher.refCount)
|
|
3972
|
-
return;
|
|
3973
|
-
cache.delete(path);
|
|
3974
|
-
ts.closeFileWatcherOf(watcher);
|
|
3975
|
-
}
|
|
3976
|
-
};
|
|
3977
3970
|
};
|
|
3978
3971
|
}
|
|
3979
|
-
ts.createSingleFileWatcherPerName = createSingleFileWatcherPerName;
|
|
3980
3972
|
function onWatchedFileStat(watchedFile, modifiedTime) {
|
|
3981
3973
|
var oldTime = watchedFile.mtime.getTime();
|
|
3982
3974
|
var newTime = modifiedTime.getTime();
|
|
@@ -3987,7 +3979,6 @@ var ts;
|
|
|
3987
3979
|
}
|
|
3988
3980
|
return false;
|
|
3989
3981
|
}
|
|
3990
|
-
ts.onWatchedFileStat = onWatchedFileStat;
|
|
3991
3982
|
function getFileWatcherEventKind(oldTime, newTime) {
|
|
3992
3983
|
return oldTime === 0
|
|
3993
3984
|
? FileWatcherEventKind.Created
|
|
@@ -4194,11 +4185,9 @@ var ts;
|
|
|
4194
4185
|
return ts.stringContains(toCanonicalFilePath(path), searchPath);
|
|
4195
4186
|
}
|
|
4196
4187
|
}
|
|
4197
|
-
ts.createDirectoryWatcherSupportingRecursive = createDirectoryWatcherSupportingRecursive;
|
|
4198
4188
|
function createFileWatcherCallback(callback) {
|
|
4199
4189
|
return function (_fileName, eventKind, modifiedTime) { return callback(eventKind === FileWatcherEventKind.Changed ? "change" : "rename", "", modifiedTime); };
|
|
4200
4190
|
}
|
|
4201
|
-
ts.createFileWatcherCallback = createFileWatcherCallback;
|
|
4202
4191
|
function createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModifiedTime) {
|
|
4203
4192
|
return function (eventName, _relativeFileName, modifiedTime) {
|
|
4204
4193
|
if (eventName === "rename") {
|
|
@@ -4225,7 +4214,10 @@ var ts;
|
|
|
4225
4214
|
};
|
|
4226
4215
|
}
|
|
4227
4216
|
function createSystemWatchFunctions(_a) {
|
|
4228
|
-
var
|
|
4217
|
+
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;
|
|
4218
|
+
var pollingWatches = new ts.Map();
|
|
4219
|
+
var fsWatches = new ts.Map();
|
|
4220
|
+
var fsWatchesRecursive = new ts.Map();
|
|
4229
4221
|
var dynamicPollingWatchFile;
|
|
4230
4222
|
var fixedChunkSizePollingWatchFile;
|
|
4231
4223
|
var nonPollingWatchFile;
|
|
@@ -4281,7 +4273,7 @@ var ts;
|
|
|
4281
4273
|
default:
|
|
4282
4274
|
return useNonPollingWatchers ?
|
|
4283
4275
|
generateWatchFileOptions(ts.WatchFileKind.UseFsEventsOnParentDirectory, ts.PollingWatchKind.PriorityInterval, options) :
|
|
4284
|
-
{ watchFile: (defaultWatchFileKind === null || defaultWatchFileKind === void 0 ? void 0 : defaultWatchFileKind()) || ts.WatchFileKind.
|
|
4276
|
+
{ watchFile: (defaultWatchFileKind === null || defaultWatchFileKind === void 0 ? void 0 : defaultWatchFileKind()) || ts.WatchFileKind.UseFsEvents };
|
|
4285
4277
|
}
|
|
4286
4278
|
}
|
|
4287
4279
|
function generateWatchFileOptions(watchFile, fallbackPolling, options) {
|
|
@@ -4346,7 +4338,13 @@ var ts;
|
|
|
4346
4338
|
};
|
|
4347
4339
|
}
|
|
4348
4340
|
}
|
|
4341
|
+
function pollingWatchFile(fileName, callback, pollingInterval, options) {
|
|
4342
|
+
return createSingleWatcherPerName(pollingWatches, useCaseSensitiveFileNames, fileName, callback, function (cb) { return pollingWatchFileWorker(fileName, cb, pollingInterval, options); });
|
|
4343
|
+
}
|
|
4349
4344
|
function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) {
|
|
4345
|
+
return createSingleWatcherPerName(recursive ? fsWatchesRecursive : fsWatches, useCaseSensitiveFileNames, fileOrDirectory, callback, function (cb) { return fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInterval, fallbackOptions); });
|
|
4346
|
+
}
|
|
4347
|
+
function fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) {
|
|
4350
4348
|
var lastDirectoryPartWithDirectorySeparator;
|
|
4351
4349
|
var lastDirectoryPart;
|
|
4352
4350
|
if (inodeWatching) {
|
|
@@ -4484,7 +4482,7 @@ var ts;
|
|
|
4484
4482
|
var fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
|
|
4485
4483
|
var getCurrentDirectory = ts.memoize(function () { return process.cwd(); });
|
|
4486
4484
|
var _b = createSystemWatchFunctions({
|
|
4487
|
-
|
|
4485
|
+
pollingWatchFileWorker: fsWatchFileWorker,
|
|
4488
4486
|
getModifiedTime: getModifiedTime,
|
|
4489
4487
|
setTimeout: setTimeout,
|
|
4490
4488
|
clearTimeout: clearTimeout,
|
|
@@ -32323,6 +32321,7 @@ var ts;
|
|
|
32323
32321
|
shortName: "h",
|
|
32324
32322
|
type: "boolean",
|
|
32325
32323
|
showInSimplifiedHelpView: true,
|
|
32324
|
+
isCommandLineOnly: true,
|
|
32326
32325
|
category: ts.Diagnostics.Command_line_Options,
|
|
32327
32326
|
description: ts.Diagnostics.Print_this_message,
|
|
32328
32327
|
defaultValueDescription: false,
|
|
@@ -32331,6 +32330,8 @@ var ts;
|
|
|
32331
32330
|
name: "help",
|
|
32332
32331
|
shortName: "?",
|
|
32333
32332
|
type: "boolean",
|
|
32333
|
+
isCommandLineOnly: true,
|
|
32334
|
+
category: ts.Diagnostics.Command_line_Options,
|
|
32334
32335
|
defaultValueDescription: false,
|
|
32335
32336
|
},
|
|
32336
32337
|
{
|
|
@@ -40544,6 +40545,7 @@ var ts;
|
|
|
40544
40545
|
var wildcardType = createIntrinsicType(1, "any");
|
|
40545
40546
|
var errorType = createIntrinsicType(1, "error");
|
|
40546
40547
|
var unresolvedType = createIntrinsicType(1, "unresolved");
|
|
40548
|
+
var nonInferrableAnyType = createIntrinsicType(1, "any", 65536);
|
|
40547
40549
|
var intrinsicMarkerType = createIntrinsicType(1, "intrinsic");
|
|
40548
40550
|
var unknownType = createIntrinsicType(2, "unknown");
|
|
40549
40551
|
var nonNullUnknownType = createIntrinsicType(2, "unknown");
|
|
@@ -47389,7 +47391,7 @@ var ts;
|
|
|
47389
47391
|
if (reportErrors && !declarationBelongsToPrivateAmbientMember(element)) {
|
|
47390
47392
|
reportImplicitAny(element, anyType);
|
|
47391
47393
|
}
|
|
47392
|
-
return anyType;
|
|
47394
|
+
return includePatternInType ? nonInferrableAnyType : anyType;
|
|
47393
47395
|
}
|
|
47394
47396
|
function getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors) {
|
|
47395
47397
|
var members = ts.createSymbolTable();
|
|
@@ -51995,7 +51997,7 @@ var ts;
|
|
|
51995
51997
|
return includes & 8388608 ? wildcardType : anyType;
|
|
51996
51998
|
}
|
|
51997
51999
|
if (!strictNullChecks && includes & 98304) {
|
|
51998
|
-
return includes & 32768 ? undefinedType : nullType;
|
|
52000
|
+
return includes & 16777216 ? neverType : includes & 32768 ? undefinedType : nullType;
|
|
51999
52001
|
}
|
|
52000
52002
|
if (includes & 4 && includes & (128 | 134217728 | 268435456) ||
|
|
52001
52003
|
includes & 8 && includes & 256 ||
|
|
@@ -55814,8 +55816,8 @@ var ts;
|
|
|
55814
55816
|
if (!c.root.inferTypeParameters && !isDistributionDependent(c.root)) {
|
|
55815
55817
|
var skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));
|
|
55816
55818
|
var skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType));
|
|
55817
|
-
if (result = skipTrue ? -1 : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2, false)) {
|
|
55818
|
-
result &= skipFalse ? -1 : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2, false);
|
|
55819
|
+
if (result = skipTrue ? -1 : isRelatedTo(source, getTrueTypeFromConditionalType(c), 2, false, undefined, intersectionState)) {
|
|
55820
|
+
result &= skipFalse ? -1 : isRelatedTo(source, getFalseTypeFromConditionalType(c), 2, false, undefined, intersectionState);
|
|
55819
55821
|
if (result) {
|
|
55820
55822
|
return result;
|
|
55821
55823
|
}
|
|
@@ -58094,7 +58096,7 @@ var ts;
|
|
|
58094
58096
|
}
|
|
58095
58097
|
var inference = getInferenceInfoForType(target);
|
|
58096
58098
|
if (inference) {
|
|
58097
|
-
if (ts.getObjectFlags(source) & 262144) {
|
|
58099
|
+
if (ts.getObjectFlags(source) & 262144 || source === nonInferrableAnyType) {
|
|
58098
58100
|
return;
|
|
58099
58101
|
}
|
|
58100
58102
|
if (!inference.isFixed) {
|
|
@@ -60223,7 +60225,7 @@ var ts;
|
|
|
60223
60225
|
}
|
|
60224
60226
|
function narrowByInKeyword(type, name, assumeTrue) {
|
|
60225
60227
|
if (type.flags & 1048576
|
|
60226
|
-
|| type.flags & 524288 && declaredType !== type
|
|
60228
|
+
|| type.flags & 524288 && declaredType !== type && !(declaredType === unknownType && isEmptyAnonymousObjectType(type))
|
|
60227
60229
|
|| ts.isThisTypeParameter(type)
|
|
60228
60230
|
|| type.flags & 2097152 && ts.every(type.types, function (t) { return t.symbol !== globalThisSymbol; })) {
|
|
60229
60231
|
return filterType(type, function (t) { return isTypePresencePossible(t, name, assumeTrue); });
|
|
@@ -60343,14 +60345,18 @@ var ts;
|
|
|
60343
60345
|
assumeTrue = !assumeTrue;
|
|
60344
60346
|
}
|
|
60345
60347
|
var valueType = getTypeOfExpression(value);
|
|
60346
|
-
if ((type.flags & 2)
|
|
60348
|
+
if (((type.flags & 2) || isEmptyAnonymousObjectType(type) && !(valueType.flags & 98304)) &&
|
|
60349
|
+
assumeTrue &&
|
|
60350
|
+
(operator === 36 || operator === 37)) {
|
|
60347
60351
|
if (valueType.flags & (131068 | 67108864)) {
|
|
60348
60352
|
return valueType;
|
|
60349
60353
|
}
|
|
60350
60354
|
if (valueType.flags & 524288) {
|
|
60351
60355
|
return nonPrimitiveType;
|
|
60352
60356
|
}
|
|
60353
|
-
|
|
60357
|
+
if (type.flags & 2) {
|
|
60358
|
+
return type;
|
|
60359
|
+
}
|
|
60354
60360
|
}
|
|
60355
60361
|
if (valueType.flags & 98304) {
|
|
60356
60362
|
if (!strictNullChecks) {
|
|
@@ -62700,6 +62706,7 @@ var ts;
|
|
|
62700
62706
|
}
|
|
62701
62707
|
function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode) {
|
|
62702
62708
|
var attributes = openingLikeElement.attributes;
|
|
62709
|
+
var attributesType = getContextualType(attributes, 0);
|
|
62703
62710
|
var allAttributesTable = strictNullChecks ? ts.createSymbolTable() : undefined;
|
|
62704
62711
|
var attributesTable = ts.createSymbolTable();
|
|
62705
62712
|
var spread = emptyJsxObjectType;
|
|
@@ -62727,6 +62734,12 @@ var ts;
|
|
|
62727
62734
|
if (attributeDecl.name.escapedText === jsxChildrenPropertyName) {
|
|
62728
62735
|
explicitlySpecifyChildrenAttribute = true;
|
|
62729
62736
|
}
|
|
62737
|
+
if (attributesType) {
|
|
62738
|
+
var prop = getPropertyOfType(attributesType, member.escapedName);
|
|
62739
|
+
if (prop && prop.declarations && isDeprecatedSymbol(prop)) {
|
|
62740
|
+
addDeprecatedSuggestion(attributeDecl.name, prop.declarations, attributeDecl.name.escapedText);
|
|
62741
|
+
}
|
|
62742
|
+
}
|
|
62730
62743
|
}
|
|
62731
62744
|
else {
|
|
62732
62745
|
ts.Debug.assert(attributeDecl.kind === 289);
|
|
@@ -76350,7 +76363,7 @@ var ts;
|
|
|
76350
76363
|
return grammarErrorOnNode(node, ts.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
|
|
76351
76364
|
}
|
|
76352
76365
|
var nodeArguments = node.arguments;
|
|
76353
|
-
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext) {
|
|
76366
|
+
if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext && moduleKind !== ts.ModuleKind.Node16) {
|
|
76354
76367
|
checkGrammarForDisallowedTrailingComma(nodeArguments);
|
|
76355
76368
|
if (nodeArguments.length > 1) {
|
|
76356
76369
|
var assertionArgument = nodeArguments[1];
|
|
@@ -99894,10 +99907,12 @@ var ts;
|
|
|
99894
99907
|
if (options.preserveConstEnums === false) {
|
|
99895
99908
|
createDiagnosticForOptionName(ts.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled, "preserveConstEnums", "isolatedModules");
|
|
99896
99909
|
}
|
|
99897
|
-
var
|
|
99898
|
-
|
|
99899
|
-
|
|
99900
|
-
|
|
99910
|
+
for (var _a = 0, files_5 = files; _a < files_5.length; _a++) {
|
|
99911
|
+
var file = files_5[_a];
|
|
99912
|
+
if (!ts.isExternalModule(file) && !ts.isSourceFileJS(file) && !file.isDeclarationFile && file.scriptKind !== 6) {
|
|
99913
|
+
var span = ts.getErrorSpanForNode(file, file);
|
|
99914
|
+
programDiagnostics.add(ts.createFileDiagnostic(file, span.start, span.length, ts.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module, ts.getBaseFileName(file.fileName)));
|
|
99915
|
+
}
|
|
99901
99916
|
}
|
|
99902
99917
|
}
|
|
99903
99918
|
else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 && options.module === ts.ModuleKind.None) {
|
|
@@ -105882,9 +105897,7 @@ var ts;
|
|
|
105882
105897
|
}
|
|
105883
105898
|
}
|
|
105884
105899
|
}
|
|
105885
|
-
var seenRefs = buildInfoPath ? new ts.Set() : undefined;
|
|
105886
105900
|
var buildInfoCacheEntry = state.buildInfoCache.get(resolvedPath);
|
|
105887
|
-
seenRefs === null || seenRefs === void 0 ? void 0 : seenRefs.add(resolvedPath);
|
|
105888
105901
|
var pseudoUpToDate = false;
|
|
105889
105902
|
var usesPrepend = false;
|
|
105890
105903
|
var upstreamChangedProject;
|
|
@@ -105895,7 +105908,7 @@ var ts;
|
|
|
105895
105908
|
if (refStatus.newestInputFileTime && refStatus.newestInputFileTime <= oldestOutputFileTime) {
|
|
105896
105909
|
continue;
|
|
105897
105910
|
}
|
|
105898
|
-
if (buildInfoCacheEntry && hasSameBuildInfo(state, buildInfoCacheEntry,
|
|
105911
|
+
if (buildInfoCacheEntry && hasSameBuildInfo(state, buildInfoCacheEntry, resolvedRefPath)) {
|
|
105899
105912
|
return {
|
|
105900
105913
|
type: ts.UpToDateStatusType.OutOfDateWithUpstream,
|
|
105901
105914
|
outOfDateOutputFileName: buildInfoPath,
|
|
@@ -105946,24 +105959,9 @@ var ts;
|
|
|
105946
105959
|
oldestOutputFileName: oldestOutputFileName
|
|
105947
105960
|
};
|
|
105948
105961
|
}
|
|
105949
|
-
function hasSameBuildInfo(state, buildInfoCacheEntry,
|
|
105950
|
-
if (seenRefs.has(resolvedRefPath))
|
|
105951
|
-
return false;
|
|
105952
|
-
seenRefs.add(resolvedRefPath);
|
|
105962
|
+
function hasSameBuildInfo(state, buildInfoCacheEntry, resolvedRefPath) {
|
|
105953
105963
|
var refBuildInfo = state.buildInfoCache.get(resolvedRefPath);
|
|
105954
|
-
|
|
105955
|
-
return true;
|
|
105956
|
-
if (resolvedConfig.projectReferences) {
|
|
105957
|
-
for (var _i = 0, _a = resolvedConfig.projectReferences; _i < _a.length; _i++) {
|
|
105958
|
-
var ref = _a[_i];
|
|
105959
|
-
var resolvedRef = ts.resolveProjectReferencePath(ref);
|
|
105960
|
-
var resolvedRefPath_1 = toResolvedConfigFilePath(state, resolvedRef);
|
|
105961
|
-
var resolvedConfig_1 = parseConfigFile(state, resolvedRef, resolvedRefPath_1);
|
|
105962
|
-
if (hasSameBuildInfo(state, buildInfoCacheEntry, seenRefs, resolvedConfig_1, resolvedRefPath_1))
|
|
105963
|
-
return true;
|
|
105964
|
-
}
|
|
105965
|
-
}
|
|
105966
|
-
return false;
|
|
105964
|
+
return refBuildInfo.path === buildInfoCacheEntry.path;
|
|
105967
105965
|
}
|
|
105968
105966
|
function getUpToDateStatus(state, project, resolvedPath) {
|
|
105969
105967
|
if (project === undefined) {
|