@typescript-deploys/pr-build 4.8.0-pr-49285-2 → 4.8.0-pr-49285-5
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 +131 -127
- package/lib/tsserver.js +169 -150
- package/lib/tsserverlibrary.js +169 -150
- package/lib/typescript.js +169 -150
- package/lib/typescriptServices.js +169 -150
- package/lib/typingsInstaller.js +149 -147
- package/package.json +1 -1
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.8";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-insiders.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-insiders.20220601";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -6087,6 +6087,7 @@ var ts;
|
|
|
6087
6087
|
Import_assertion_values_must_be_string_literal_expressions: diag(2837, ts.DiagnosticCategory.Error, "Import_assertion_values_must_be_string_literal_expressions_2837", "Import assertion values must be string literal expressions."),
|
|
6088
6088
|
All_declarations_of_0_must_have_identical_constraints: diag(2838, ts.DiagnosticCategory.Error, "All_declarations_of_0_must_have_identical_constraints_2838", "All declarations of '{0}' must have identical constraints."),
|
|
6089
6089
|
This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value: diag(2839, ts.DiagnosticCategory.Error, "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839", "This condition will always return '{0}' since JavaScript compares objects by reference, not value."),
|
|
6090
|
+
An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes: diag(2840, ts.DiagnosticCategory.Error, "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840", "An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),
|
|
6090
6091
|
Import_declaration_0_is_using_private_name_1: diag(4000, ts.DiagnosticCategory.Error, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
|
|
6091
6092
|
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
|
|
6092
6093
|
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
|
|
@@ -36117,8 +36118,7 @@ var ts;
|
|
|
36117
36118
|
var pathAndExtension = loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) ||
|
|
36118
36119
|
loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageInfo && packageInfo.packageJsonContent, packageInfo && packageInfo.versionPaths);
|
|
36119
36120
|
if (!pathAndExtension && packageInfo
|
|
36120
|
-
&& packageInfo.packageJsonContent.exports === undefined
|
|
36121
|
-
&& packageInfo.packageJsonContent.main === undefined
|
|
36121
|
+
&& (packageInfo.packageJsonContent.exports === undefined || packageInfo.packageJsonContent.exports === null)
|
|
36122
36122
|
&& state.features & NodeResolutionFeatures.EsmMode) {
|
|
36123
36123
|
pathAndExtension = loadModuleFromFile(extensions, ts.combinePaths(candidate, "index.js"), onlyRecordFailures, state);
|
|
36124
36124
|
}
|
|
@@ -41042,7 +41042,12 @@ var ts;
|
|
|
41042
41042
|
function checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) {
|
|
41043
41043
|
if (meaning & (111551 & ~1024)) {
|
|
41044
41044
|
if (isPrimitiveTypeName(name)) {
|
|
41045
|
-
|
|
41045
|
+
if (isExtendedByInterface(errorLocation)) {
|
|
41046
|
+
error(errorLocation, ts.Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes, ts.unescapeLeadingUnderscores(name));
|
|
41047
|
+
}
|
|
41048
|
+
else {
|
|
41049
|
+
error(errorLocation, ts.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, ts.unescapeLeadingUnderscores(name));
|
|
41050
|
+
}
|
|
41046
41051
|
return true;
|
|
41047
41052
|
}
|
|
41048
41053
|
var symbol = resolveSymbol(resolveName(errorLocation, name, 788968 & ~111551, undefined, undefined, false));
|
|
@@ -41062,6 +41067,16 @@ var ts;
|
|
|
41062
41067
|
}
|
|
41063
41068
|
return false;
|
|
41064
41069
|
}
|
|
41070
|
+
function isExtendedByInterface(node) {
|
|
41071
|
+
var grandparent = node.parent.parent;
|
|
41072
|
+
var parentOfGrandparent = grandparent.parent;
|
|
41073
|
+
if (grandparent && parentOfGrandparent) {
|
|
41074
|
+
var isExtending = ts.isHeritageClause(grandparent) && grandparent.token === 94;
|
|
41075
|
+
var isInterface = ts.isInterfaceDeclaration(parentOfGrandparent);
|
|
41076
|
+
return isExtending && isInterface;
|
|
41077
|
+
}
|
|
41078
|
+
return false;
|
|
41079
|
+
}
|
|
41065
41080
|
function maybeMappedType(node, symbol) {
|
|
41066
41081
|
var container = ts.findAncestor(node.parent, function (n) {
|
|
41067
41082
|
return ts.isComputedPropertyName(n) || ts.isPropertySignature(n) ? false : ts.isTypeLiteralNode(n) || "quit";
|
|
@@ -43588,7 +43603,7 @@ var ts;
|
|
|
43588
43603
|
anyType : getNonMissingTypeOfSymbol(propertySymbol);
|
|
43589
43604
|
var saveEnclosingDeclaration = context.enclosingDeclaration;
|
|
43590
43605
|
context.enclosingDeclaration = undefined;
|
|
43591
|
-
if (context.tracker.trackSymbol &&
|
|
43606
|
+
if (context.tracker.trackSymbol && isLateBoundName(propertySymbol.escapedName)) {
|
|
43592
43607
|
if (propertySymbol.declarations) {
|
|
43593
43608
|
var decl = ts.first(propertySymbol.declarations);
|
|
43594
43609
|
if (hasLateBindableName(decl)) {
|
|
@@ -45043,7 +45058,7 @@ var ts;
|
|
|
45043
45058
|
? getBaseConstructorTypeOfClass(staticType)
|
|
45044
45059
|
: anyType;
|
|
45045
45060
|
var heritageClauses = __spreadArray(__spreadArray([], !ts.length(baseTypes) ? [] : [ts.factory.createHeritageClause(94, ts.map(baseTypes, function (b) { return serializeBaseType(b, staticBaseType, localName); }))], true), !ts.length(implementsExpressions) ? [] : [ts.factory.createHeritageClause(117, implementsExpressions)], true);
|
|
45046
|
-
var symbolProps =
|
|
45061
|
+
var symbolProps = getNonInheritedProperties(classType, baseTypes, getPropertiesOfType(classType));
|
|
45047
45062
|
var publicSymbolProps = ts.filter(symbolProps, function (s) {
|
|
45048
45063
|
var valueDecl = s.valueDeclaration;
|
|
45049
45064
|
return !!valueDecl && !(ts.isNamedDeclaration(valueDecl) && ts.isPrivateIdentifier(valueDecl.name));
|
|
@@ -45957,7 +45972,7 @@ var ts;
|
|
|
45957
45972
|
return type;
|
|
45958
45973
|
}
|
|
45959
45974
|
if (ts.getEffectiveTypeAnnotationNode(ts.walkUpBindingElementsAndPatterns(declaration))) {
|
|
45960
|
-
return strictNullChecks && !(
|
|
45975
|
+
return strictNullChecks && !(getTypeFacts(checkDeclarationInitializer(declaration, 0)) & 16777216) ? getNonUndefinedType(type) : type;
|
|
45961
45976
|
}
|
|
45962
45977
|
return widenTypeInferredFromInitializer(declaration, getUnionType([getNonUndefinedType(type), checkDeclarationInitializer(declaration, 0)], 2));
|
|
45963
45978
|
}
|
|
@@ -48745,7 +48760,7 @@ var ts;
|
|
|
48745
48760
|
var objectType;
|
|
48746
48761
|
return !!(type.flags & 8388608 && ts.getObjectFlags(objectType = type.objectType) & 32 &&
|
|
48747
48762
|
!isGenericMappedType(objectType) && isGenericIndexType(type.indexType) &&
|
|
48748
|
-
!objectType
|
|
48763
|
+
!(getMappedTypeModifiers(objectType) & 8) && !objectType.declaration.nameType);
|
|
48749
48764
|
}
|
|
48750
48765
|
function getApparentType(type) {
|
|
48751
48766
|
var t = !(type.flags & 465829888) ? type : getBaseConstraintOfType(type) || unknownType;
|
|
@@ -53444,7 +53459,7 @@ var ts;
|
|
|
53444
53459
|
var sourceSig = checkMode & 3 ? undefined : getSingleCallSignature(getNonNullableType(sourceType));
|
|
53445
53460
|
var targetSig = checkMode & 3 ? undefined : getSingleCallSignature(getNonNullableType(targetType));
|
|
53446
53461
|
var callbacks = sourceSig && targetSig && !getTypePredicateOfSignature(sourceSig) && !getTypePredicateOfSignature(targetSig) &&
|
|
53447
|
-
(
|
|
53462
|
+
(getTypeFacts(sourceType) & 50331648) === (getTypeFacts(targetType) & 50331648);
|
|
53448
53463
|
var related = callbacks ?
|
|
53449
53464
|
compareSignaturesRelated(targetSig, sourceSig, (checkMode & 8) | (strictVariance ? 2 : 1), reportErrors, errorReporter, incompatibleErrorReporter, compareTypes, reportUnreliableMarkers) :
|
|
53450
53465
|
!(checkMode & 3) && !strictVariance && compareTypes(sourceType, targetType, false) || compareTypes(targetType, sourceType, reportErrors);
|
|
@@ -56201,27 +56216,8 @@ var ts;
|
|
|
56201
56216
|
var value = _a.value;
|
|
56202
56217
|
return value.base10Value === "0";
|
|
56203
56218
|
}
|
|
56204
|
-
function getFalsyFlagsOfTypes(types) {
|
|
56205
|
-
var result = 0;
|
|
56206
|
-
for (var _i = 0, types_14 = types; _i < types_14.length; _i++) {
|
|
56207
|
-
var t = types_14[_i];
|
|
56208
|
-
result |= getFalsyFlags(t);
|
|
56209
|
-
}
|
|
56210
|
-
return result;
|
|
56211
|
-
}
|
|
56212
|
-
function getFalsyFlags(type) {
|
|
56213
|
-
var t = type.flags & 2097152 ? getBaseConstraintOrType(type) : type;
|
|
56214
|
-
return t.flags & 1048576 ? getFalsyFlagsOfTypes(t.types) :
|
|
56215
|
-
t.flags & 128 ? t.value === "" ? 128 : 0 :
|
|
56216
|
-
t.flags & 256 ? t.value === 0 ? 256 : 0 :
|
|
56217
|
-
t.flags & 2048 ? isZeroBigInt(t) ? 2048 : 0 :
|
|
56218
|
-
t.flags & 512 ? (t === falseType || t === regularFalseType) ? 512 : 0 :
|
|
56219
|
-
t.flags & 117724;
|
|
56220
|
-
}
|
|
56221
56219
|
function removeDefinitelyFalsyTypes(type) {
|
|
56222
|
-
return
|
|
56223
|
-
filterType(type, function (t) { return !(getFalsyFlags(t) & 117632); }) :
|
|
56224
|
-
type;
|
|
56220
|
+
return filterType(type, function (t) { return !!(getTypeFacts(t) & 4194304); });
|
|
56225
56221
|
}
|
|
56226
56222
|
function extractDefinitelyFalsyTypes(type) {
|
|
56227
56223
|
return mapType(type, getDefinitelyFalsyPartOfType);
|
|
@@ -56259,11 +56255,7 @@ var ts;
|
|
|
56259
56255
|
getIntersectionType([type, emptyObjectType]);
|
|
56260
56256
|
}
|
|
56261
56257
|
function getNonNullableType(type) {
|
|
56262
|
-
|
|
56263
|
-
var reducedType = getTypeWithFacts(type, 2097152);
|
|
56264
|
-
return maybeTypeOfKind(reducedType, 465829888) ? getGlobalNonNullableTypeInstantiation(reducedType) : reducedType;
|
|
56265
|
-
}
|
|
56266
|
-
return type;
|
|
56258
|
+
return strictNullChecks ? getAdjustedTypeWithFacts(type, 2097152) : type;
|
|
56267
56259
|
}
|
|
56268
56260
|
function addOptionalTypeMarker(type) {
|
|
56269
56261
|
return strictNullChecks ? getUnionType([type, optionalType]) : type;
|
|
@@ -57233,8 +57225,8 @@ var ts;
|
|
|
57233
57225
|
}
|
|
57234
57226
|
function getSingleTypeVariableFromIntersectionTypes(types) {
|
|
57235
57227
|
var typeVariable;
|
|
57236
|
-
for (var _i = 0,
|
|
57237
|
-
var type =
|
|
57228
|
+
for (var _i = 0, types_14 = types; _i < types_14.length; _i++) {
|
|
57229
|
+
var type = types_14[_i];
|
|
57238
57230
|
var t = type.flags & 2097152 && ts.find(type.types, function (t) { return !!getInferenceInfoForType(t); });
|
|
57239
57231
|
if (!t || typeVariable && t !== typeVariable) {
|
|
57240
57232
|
return undefined;
|
|
@@ -57894,8 +57886,8 @@ var ts;
|
|
|
57894
57886
|
}
|
|
57895
57887
|
}
|
|
57896
57888
|
};
|
|
57897
|
-
for (var _i = 0,
|
|
57898
|
-
var type =
|
|
57889
|
+
for (var _i = 0, types_15 = types; _i < types_15.length; _i++) {
|
|
57890
|
+
var type = types_15[_i];
|
|
57899
57891
|
var state_9 = _loop_24(type);
|
|
57900
57892
|
if (typeof state_9 === "object")
|
|
57901
57893
|
return state_9.value;
|
|
@@ -57994,14 +57986,16 @@ var ts;
|
|
|
57994
57986
|
return !!(resolved.callSignatures.length || resolved.constructSignatures.length ||
|
|
57995
57987
|
resolved.members.get("bind") && isTypeSubtypeOf(type, globalFunctionType));
|
|
57996
57988
|
}
|
|
57997
|
-
function getTypeFacts(type
|
|
57998
|
-
if (
|
|
57989
|
+
function getTypeFacts(type) {
|
|
57990
|
+
if (type.flags & (2097152 | 465829888)) {
|
|
57991
|
+
type = getBaseConstraintOfType(type) || unknownType;
|
|
57992
|
+
}
|
|
57999
57993
|
var flags = type.flags;
|
|
58000
|
-
if (flags & 4) {
|
|
57994
|
+
if (flags & (4 | 268435456)) {
|
|
58001
57995
|
return strictNullChecks ? 16317953 : 16776705;
|
|
58002
57996
|
}
|
|
58003
|
-
if (flags & 128) {
|
|
58004
|
-
var isEmpty = type.value === "";
|
|
57997
|
+
if (flags & (128 | 134217728)) {
|
|
57998
|
+
var isEmpty = flags & 128 && type.value === "";
|
|
58005
57999
|
return strictNullChecks ?
|
|
58006
58000
|
isEmpty ? 12123649 : 7929345 :
|
|
58007
58001
|
isEmpty ? 12582401 : 16776705;
|
|
@@ -58033,20 +58027,20 @@ var ts;
|
|
|
58033
58027
|
(type === falseType || type === regularFalseType) ? 12580616 : 16774920;
|
|
58034
58028
|
}
|
|
58035
58029
|
if (flags & 524288) {
|
|
58036
|
-
if (ignoreObjects) {
|
|
58037
|
-
return 16768959;
|
|
58038
|
-
}
|
|
58039
58030
|
return ts.getObjectFlags(type) & 16 && isEmptyObjectType(type) ?
|
|
58040
|
-
strictNullChecks ?
|
|
58031
|
+
strictNullChecks ? 83427327 : 83886079 :
|
|
58041
58032
|
isFunctionObjectType(type) ?
|
|
58042
58033
|
strictNullChecks ? 7880640 : 16728000 :
|
|
58043
58034
|
strictNullChecks ? 7888800 : 16736160;
|
|
58044
58035
|
}
|
|
58045
|
-
if (flags &
|
|
58036
|
+
if (flags & 16384) {
|
|
58046
58037
|
return 9830144;
|
|
58047
58038
|
}
|
|
58039
|
+
if (flags & 32768) {
|
|
58040
|
+
return 26607360;
|
|
58041
|
+
}
|
|
58048
58042
|
if (flags & 65536) {
|
|
58049
|
-
return
|
|
58043
|
+
return 42917664;
|
|
58050
58044
|
}
|
|
58051
58045
|
if (flags & 12288) {
|
|
58052
58046
|
return strictNullChecks ? 7925520 : 16772880;
|
|
@@ -58057,34 +58051,32 @@ var ts;
|
|
|
58057
58051
|
if (flags & 131072) {
|
|
58058
58052
|
return 0;
|
|
58059
58053
|
}
|
|
58060
|
-
if (flags & 465829888) {
|
|
58061
|
-
return !isPatternLiteralType(type) ? getTypeFacts(getBaseConstraintOfType(type) || unknownType, ignoreObjects) :
|
|
58062
|
-
strictNullChecks ? 7929345 : 16776705;
|
|
58063
|
-
}
|
|
58064
58054
|
if (flags & 1048576) {
|
|
58065
|
-
return ts.reduceLeft(type.types, function (facts, t) { return facts | getTypeFacts(t
|
|
58055
|
+
return ts.reduceLeft(type.types, function (facts, t) { return facts | getTypeFacts(t); }, 0);
|
|
58066
58056
|
}
|
|
58067
58057
|
if (flags & 2097152) {
|
|
58068
|
-
|
|
58069
|
-
return getIntersectionTypeFacts(type, ignoreObjects);
|
|
58058
|
+
return getIntersectionTypeFacts(type);
|
|
58070
58059
|
}
|
|
58071
|
-
return
|
|
58060
|
+
return 83886079;
|
|
58072
58061
|
}
|
|
58073
|
-
function getIntersectionTypeFacts(type
|
|
58062
|
+
function getIntersectionTypeFacts(type) {
|
|
58063
|
+
var ignoreObjects = maybeTypeOfKind(type, 131068);
|
|
58074
58064
|
var oredFacts = 0;
|
|
58075
|
-
var andedFacts =
|
|
58065
|
+
var andedFacts = 134217727;
|
|
58076
58066
|
for (var _i = 0, _a = type.types; _i < _a.length; _i++) {
|
|
58077
58067
|
var t = _a[_i];
|
|
58078
|
-
|
|
58079
|
-
|
|
58080
|
-
|
|
58068
|
+
if (!(ignoreObjects && t.flags & 524288)) {
|
|
58069
|
+
var f = getTypeFacts(t);
|
|
58070
|
+
oredFacts |= f;
|
|
58071
|
+
andedFacts &= f;
|
|
58072
|
+
}
|
|
58081
58073
|
}
|
|
58082
|
-
return oredFacts & 8256 | andedFacts &
|
|
58074
|
+
return oredFacts & 8256 | andedFacts & 134209471;
|
|
58083
58075
|
}
|
|
58084
58076
|
function getTypeWithFacts(type, include) {
|
|
58085
58077
|
return filterType(type, function (t) { return (getTypeFacts(t) & include) !== 0; });
|
|
58086
58078
|
}
|
|
58087
|
-
function
|
|
58079
|
+
function getAdjustedTypeWithFacts(type, facts) {
|
|
58088
58080
|
var reduced = recombineUnknownType(getTypeWithFacts(strictNullChecks && type.flags & 2 ? unknownUnionType : type, facts));
|
|
58089
58081
|
if (strictNullChecks) {
|
|
58090
58082
|
switch (facts) {
|
|
@@ -58342,8 +58334,8 @@ var ts;
|
|
|
58342
58334
|
var types = origin && origin.flags & 1048576 ? origin.types : type.types;
|
|
58343
58335
|
var mappedTypes;
|
|
58344
58336
|
var changed = false;
|
|
58345
|
-
for (var _i = 0,
|
|
58346
|
-
var t =
|
|
58337
|
+
for (var _i = 0, types_16 = types; _i < types_16.length; _i++) {
|
|
58338
|
+
var t = types_16[_i];
|
|
58347
58339
|
var mapped = t.flags & 1048576 ? mapType(t, mapper, noReductions) : mapper(t);
|
|
58348
58340
|
changed || (changed = t !== mapped);
|
|
58349
58341
|
if (mapped) {
|
|
@@ -58416,8 +58408,8 @@ var ts;
|
|
|
58416
58408
|
}
|
|
58417
58409
|
function isEvolvingArrayTypeList(types) {
|
|
58418
58410
|
var hasEvolvingArrayType = false;
|
|
58419
|
-
for (var _i = 0,
|
|
58420
|
-
var t =
|
|
58411
|
+
for (var _i = 0, types_17 = types; _i < types_17.length; _i++) {
|
|
58412
|
+
var t = types_17[_i];
|
|
58421
58413
|
if (!(t.flags & 131072)) {
|
|
58422
58414
|
if (!(ts.getObjectFlags(t) & 256)) {
|
|
58423
58415
|
return false;
|
|
@@ -59138,10 +59130,10 @@ var ts;
|
|
|
59138
59130
|
}
|
|
59139
59131
|
function narrowTypeByTruthiness(type, expr, assumeTrue) {
|
|
59140
59132
|
if (isMatchingReference(reference, expr)) {
|
|
59141
|
-
return
|
|
59133
|
+
return getAdjustedTypeWithFacts(type, assumeTrue ? 4194304 : 8388608);
|
|
59142
59134
|
}
|
|
59143
59135
|
if (strictNullChecks && assumeTrue && optionalChainContainsReference(expr, reference)) {
|
|
59144
|
-
type =
|
|
59136
|
+
type = getAdjustedTypeWithFacts(type, 2097152);
|
|
59145
59137
|
}
|
|
59146
59138
|
var access = getDiscriminantPropertyAccess(expr, type);
|
|
59147
59139
|
if (access) {
|
|
@@ -59268,7 +59260,7 @@ var ts;
|
|
|
59268
59260
|
var valueType = getTypeOfExpression(value);
|
|
59269
59261
|
var removeNullable = equalsOperator !== assumeTrue && everyType(valueType, function (t) { return !!(t.flags & nullableFlags); }) ||
|
|
59270
59262
|
equalsOperator === assumeTrue && everyType(valueType, function (t) { return !(t.flags & (3 | nullableFlags)); });
|
|
59271
|
-
return removeNullable ?
|
|
59263
|
+
return removeNullable ? getAdjustedTypeWithFacts(type, 2097152) : type;
|
|
59272
59264
|
}
|
|
59273
59265
|
function narrowTypeByEquality(type, operator, value, assumeTrue) {
|
|
59274
59266
|
if (type.flags & 1) {
|
|
@@ -59297,7 +59289,7 @@ var ts;
|
|
|
59297
59289
|
valueType.flags & 65536 ?
|
|
59298
59290
|
assumeTrue ? 131072 : 1048576 :
|
|
59299
59291
|
assumeTrue ? 65536 : 524288;
|
|
59300
|
-
return
|
|
59292
|
+
return getAdjustedTypeWithFacts(type, facts);
|
|
59301
59293
|
}
|
|
59302
59294
|
if (assumeTrue) {
|
|
59303
59295
|
var filterFn = operator === 34 ?
|
|
@@ -59317,7 +59309,7 @@ var ts;
|
|
|
59317
59309
|
var target = getReferenceCandidate(typeOfExpr.expression);
|
|
59318
59310
|
if (!isMatchingReference(reference, target)) {
|
|
59319
59311
|
if (strictNullChecks && optionalChainContainsReference(target, reference) && assumeTrue === (literal.text !== "undefined")) {
|
|
59320
|
-
return
|
|
59312
|
+
return getAdjustedTypeWithFacts(type, 2097152);
|
|
59321
59313
|
}
|
|
59322
59314
|
return type;
|
|
59323
59315
|
}
|
|
@@ -59467,7 +59459,7 @@ var ts;
|
|
|
59467
59459
|
var left = getReferenceCandidate(expr.left);
|
|
59468
59460
|
if (!isMatchingReference(reference, left)) {
|
|
59469
59461
|
if (assumeTrue && strictNullChecks && optionalChainContainsReference(left, reference)) {
|
|
59470
|
-
return
|
|
59462
|
+
return getAdjustedTypeWithFacts(type, 2097152);
|
|
59471
59463
|
}
|
|
59472
59464
|
return type;
|
|
59473
59465
|
}
|
|
@@ -59543,7 +59535,7 @@ var ts;
|
|
|
59543
59535
|
}
|
|
59544
59536
|
if (strictNullChecks && assumeTrue && optionalChainContainsReference(predicateArgument, reference) &&
|
|
59545
59537
|
!(getTypeFacts(predicate.type) & 65536)) {
|
|
59546
|
-
type =
|
|
59538
|
+
type = getAdjustedTypeWithFacts(type, 2097152);
|
|
59547
59539
|
}
|
|
59548
59540
|
var access = getDiscriminantPropertyAccess(predicateArgument, type);
|
|
59549
59541
|
if (access) {
|
|
@@ -59594,7 +59586,7 @@ var ts;
|
|
|
59594
59586
|
}
|
|
59595
59587
|
function narrowTypeByOptionality(type, expr, assumePresent) {
|
|
59596
59588
|
if (isMatchingReference(reference, expr)) {
|
|
59597
|
-
return
|
|
59589
|
+
return getAdjustedTypeWithFacts(type, assumePresent ? 2097152 : 262144);
|
|
59598
59590
|
}
|
|
59599
59591
|
var access = getDiscriminantPropertyAccess(expr, type);
|
|
59600
59592
|
if (access) {
|
|
@@ -59669,8 +59661,8 @@ var ts;
|
|
|
59669
59661
|
var annotationIncludesUndefined = strictNullChecks &&
|
|
59670
59662
|
declaration.kind === 164 &&
|
|
59671
59663
|
declaration.initializer &&
|
|
59672
|
-
|
|
59673
|
-
!(
|
|
59664
|
+
getTypeFacts(declaredType) & 16777216 &&
|
|
59665
|
+
!(getTypeFacts(checkExpression(declaration.initializer)) & 16777216);
|
|
59674
59666
|
popTypeResolution();
|
|
59675
59667
|
return annotationIncludesUndefined ? getTypeWithFacts(declaredType, 524288) : declaredType;
|
|
59676
59668
|
}
|
|
@@ -59910,7 +59902,7 @@ var ts;
|
|
|
59910
59902
|
return convertAutoToAny(flowType);
|
|
59911
59903
|
}
|
|
59912
59904
|
}
|
|
59913
|
-
else if (!assumeInitialized && !(
|
|
59905
|
+
else if (!assumeInitialized && !(getTypeFacts(type) & 16777216) && getTypeFacts(flowType) & 16777216) {
|
|
59914
59906
|
error(node, ts.Diagnostics.Variable_0_is_used_before_being_assigned, symbolToString(symbol));
|
|
59915
59907
|
return type;
|
|
59916
59908
|
}
|
|
@@ -61188,8 +61180,8 @@ var ts;
|
|
|
61188
61180
|
}
|
|
61189
61181
|
var signatureList;
|
|
61190
61182
|
var types = type.types;
|
|
61191
|
-
for (var _i = 0,
|
|
61192
|
-
var current =
|
|
61183
|
+
for (var _i = 0, types_18 = types; _i < types_18.length; _i++) {
|
|
61184
|
+
var current = types_18[_i];
|
|
61193
61185
|
var signature = getContextualCallSignature(current, node);
|
|
61194
61186
|
if (signature) {
|
|
61195
61187
|
if (!signatureList) {
|
|
@@ -62152,19 +62144,19 @@ var ts;
|
|
|
62152
62144
|
return checkNonNullType(checkExpression(node), node);
|
|
62153
62145
|
}
|
|
62154
62146
|
function isNullableType(type) {
|
|
62155
|
-
return !!((
|
|
62147
|
+
return !!(getTypeFacts(type) & 50331648);
|
|
62156
62148
|
}
|
|
62157
62149
|
function getNonNullableTypeIfNeeded(type) {
|
|
62158
62150
|
return isNullableType(type) ? getNonNullableType(type) : type;
|
|
62159
62151
|
}
|
|
62160
|
-
function reportObjectPossiblyNullOrUndefinedError(node,
|
|
62161
|
-
error(node,
|
|
62152
|
+
function reportObjectPossiblyNullOrUndefinedError(node, facts) {
|
|
62153
|
+
error(node, facts & 16777216 ? facts & 33554432 ?
|
|
62162
62154
|
ts.Diagnostics.Object_is_possibly_null_or_undefined :
|
|
62163
62155
|
ts.Diagnostics.Object_is_possibly_undefined :
|
|
62164
62156
|
ts.Diagnostics.Object_is_possibly_null);
|
|
62165
62157
|
}
|
|
62166
|
-
function reportCannotInvokePossiblyNullOrUndefinedError(node,
|
|
62167
|
-
error(node,
|
|
62158
|
+
function reportCannotInvokePossiblyNullOrUndefinedError(node, facts) {
|
|
62159
|
+
error(node, facts & 16777216 ? facts & 33554432 ?
|
|
62168
62160
|
ts.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined :
|
|
62169
62161
|
ts.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined :
|
|
62170
62162
|
ts.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null);
|
|
@@ -62174,9 +62166,9 @@ var ts;
|
|
|
62174
62166
|
error(node, ts.Diagnostics.Object_is_of_type_unknown);
|
|
62175
62167
|
return errorType;
|
|
62176
62168
|
}
|
|
62177
|
-
var
|
|
62178
|
-
if (
|
|
62179
|
-
reportError(node,
|
|
62169
|
+
var facts = getTypeFacts(type);
|
|
62170
|
+
if (facts & 50331648) {
|
|
62171
|
+
reportError(node, facts);
|
|
62180
62172
|
var t = getNonNullableType(type);
|
|
62181
62173
|
return t.flags & (98304 | 131072) ? errorType : t;
|
|
62182
62174
|
}
|
|
@@ -62442,7 +62434,7 @@ var ts;
|
|
|
62442
62434
|
assumeUninitialized = true;
|
|
62443
62435
|
}
|
|
62444
62436
|
var flowType = getFlowTypeOfReference(node, propType, assumeUninitialized ? getOptionalType(propType) : propType);
|
|
62445
|
-
if (assumeUninitialized && !(
|
|
62437
|
+
if (assumeUninitialized && !(getTypeFacts(propType) & 16777216) && getTypeFacts(flowType) & 16777216) {
|
|
62446
62438
|
error(errorNode, ts.Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(prop));
|
|
62447
62439
|
return propType;
|
|
62448
62440
|
}
|
|
@@ -64046,8 +64038,8 @@ var ts;
|
|
|
64046
64038
|
if (apparentType.flags & 1048576) {
|
|
64047
64039
|
var types = apparentType.types;
|
|
64048
64040
|
var hasSignatures = false;
|
|
64049
|
-
for (var _i = 0,
|
|
64050
|
-
var constituent =
|
|
64041
|
+
for (var _i = 0, types_19 = types; _i < types_19.length; _i++) {
|
|
64042
|
+
var constituent = types_19[_i];
|
|
64051
64043
|
var signatures = getSignaturesOfType(constituent, kind);
|
|
64052
64044
|
if (signatures.length !== 0) {
|
|
64053
64045
|
hasSignatures = true;
|
|
@@ -65555,7 +65547,7 @@ var ts;
|
|
|
65555
65547
|
var type = getTypeOfSymbol(symbol);
|
|
65556
65548
|
if (strictNullChecks &&
|
|
65557
65549
|
!(type.flags & (3 | 131072)) &&
|
|
65558
|
-
!(exactOptionalPropertyTypes ? symbol.flags & 16777216 :
|
|
65550
|
+
!(exactOptionalPropertyTypes ? symbol.flags & 16777216 : getTypeFacts(type) & 16777216)) {
|
|
65559
65551
|
error(expr, ts.Diagnostics.The_operand_of_a_delete_operator_must_be_optional);
|
|
65560
65552
|
}
|
|
65561
65553
|
}
|
|
@@ -65714,8 +65706,8 @@ var ts;
|
|
|
65714
65706
|
}
|
|
65715
65707
|
if (type.flags & 3145728) {
|
|
65716
65708
|
var types = type.types;
|
|
65717
|
-
for (var _i = 0,
|
|
65718
|
-
var t =
|
|
65709
|
+
for (var _i = 0, types_20 = types; _i < types_20.length; _i++) {
|
|
65710
|
+
var t = types_20[_i];
|
|
65719
65711
|
if (maybeTypeOfKind(t, kind)) {
|
|
65720
65712
|
return true;
|
|
65721
65713
|
}
|
|
@@ -65905,7 +65897,7 @@ var ts;
|
|
|
65905
65897
|
var prop = exprOrAssignment;
|
|
65906
65898
|
if (prop.objectAssignmentInitializer) {
|
|
65907
65899
|
if (strictNullChecks &&
|
|
65908
|
-
!(
|
|
65900
|
+
!(getTypeFacts(checkExpression(prop.objectAssignmentInitializer)) & 16777216)) {
|
|
65909
65901
|
sourceType = getTypeWithFacts(sourceType, 524288);
|
|
65910
65902
|
}
|
|
65911
65903
|
checkBinaryLikeExpression(prop.name, prop.equalsToken, prop.objectAssignmentInitializer, checkMode);
|
|
@@ -66270,7 +66262,7 @@ var ts;
|
|
|
66270
66262
|
case 56:
|
|
66271
66263
|
case 75: {
|
|
66272
66264
|
var resultType_3 = getTypeFacts(leftType) & 8388608 ?
|
|
66273
|
-
getUnionType([removeDefinitelyFalsyTypes(leftType), rightType], 2) :
|
|
66265
|
+
getUnionType([getNonNullableType(removeDefinitelyFalsyTypes(leftType)), rightType], 2) :
|
|
66274
66266
|
leftType;
|
|
66275
66267
|
if (operator === 75) {
|
|
66276
66268
|
checkAssignmentOperator(rightType);
|
|
@@ -68432,8 +68424,8 @@ var ts;
|
|
|
68432
68424
|
}
|
|
68433
68425
|
function getEntityNameForDecoratorMetadataFromTypeList(types) {
|
|
68434
68426
|
var commonEntityName;
|
|
68435
|
-
for (var _i = 0,
|
|
68436
|
-
var typeNode =
|
|
68427
|
+
for (var _i = 0, types_21 = types; _i < types_21.length; _i++) {
|
|
68428
|
+
var typeNode = types_21[_i];
|
|
68437
68429
|
while (typeNode.kind === 191 || typeNode.kind === 197) {
|
|
68438
68430
|
typeNode = typeNode.type;
|
|
68439
68431
|
}
|
|
@@ -69324,7 +69316,7 @@ var ts;
|
|
|
69324
69316
|
return;
|
|
69325
69317
|
var type = checkTruthinessExpression(location);
|
|
69326
69318
|
var isPropertyExpressionCast = ts.isPropertyAccessExpression(location) && isTypeAssertion(location.expression);
|
|
69327
|
-
if (
|
|
69319
|
+
if (!(getTypeFacts(type) & 4194304) || isPropertyExpressionCast)
|
|
69328
69320
|
return;
|
|
69329
69321
|
var callSignatures = getSignaturesOfType(type, 0);
|
|
69330
69322
|
var isPromise = !!getAwaitedTypeOfPromise(type);
|
|
@@ -70678,17 +70670,16 @@ var ts;
|
|
|
70678
70670
|
});
|
|
70679
70671
|
}
|
|
70680
70672
|
function checkKindsOfPropertyMemberOverrides(type, baseType) {
|
|
70681
|
-
var _a, _b;
|
|
70673
|
+
var _a, _b, _c, _d;
|
|
70682
70674
|
var baseProperties = getPropertiesOfType(baseType);
|
|
70683
|
-
|
|
70684
|
-
var baseProperty = baseProperties_1[_i];
|
|
70675
|
+
var _loop_33 = function (baseProperty) {
|
|
70685
70676
|
var base = getTargetSymbol(baseProperty);
|
|
70686
70677
|
if (base.flags & 4194304) {
|
|
70687
|
-
continue;
|
|
70678
|
+
return "continue";
|
|
70688
70679
|
}
|
|
70689
70680
|
var baseSymbol = getPropertyOfObjectType(type, base.escapedName);
|
|
70690
70681
|
if (!baseSymbol) {
|
|
70691
|
-
continue;
|
|
70682
|
+
return "continue";
|
|
70692
70683
|
}
|
|
70693
70684
|
var derived = getTargetSymbol(baseSymbol);
|
|
70694
70685
|
var baseDeclarationFlags = ts.getDeclarationModifierFlagsFromSymbol(base);
|
|
@@ -70696,14 +70687,14 @@ var ts;
|
|
|
70696
70687
|
if (derived === base) {
|
|
70697
70688
|
var derivedClassDecl = ts.getClassLikeDeclarationOfSymbol(type.symbol);
|
|
70698
70689
|
if (baseDeclarationFlags & 128 && (!derivedClassDecl || !ts.hasSyntacticModifier(derivedClassDecl, 128))) {
|
|
70699
|
-
for (var
|
|
70700
|
-
var otherBaseType =
|
|
70690
|
+
for (var _e = 0, _f = getBaseTypes(type); _e < _f.length; _e++) {
|
|
70691
|
+
var otherBaseType = _f[_e];
|
|
70701
70692
|
if (otherBaseType === baseType)
|
|
70702
70693
|
continue;
|
|
70703
70694
|
var baseSymbol_1 = getPropertyOfObjectType(otherBaseType, base.escapedName);
|
|
70704
70695
|
var derivedElsewhere = baseSymbol_1 && getTargetSymbol(baseSymbol_1);
|
|
70705
70696
|
if (derivedElsewhere && derivedElsewhere !== base) {
|
|
70706
|
-
continue
|
|
70697
|
+
return "continue-basePropertyCheck";
|
|
70707
70698
|
}
|
|
70708
70699
|
}
|
|
70709
70700
|
if (derivedClassDecl.kind === 226) {
|
|
@@ -70717,16 +70708,18 @@ var ts;
|
|
|
70717
70708
|
else {
|
|
70718
70709
|
var derivedDeclarationFlags = ts.getDeclarationModifierFlagsFromSymbol(derived);
|
|
70719
70710
|
if (baseDeclarationFlags & 8 || derivedDeclarationFlags & 8) {
|
|
70720
|
-
continue;
|
|
70711
|
+
return "continue";
|
|
70721
70712
|
}
|
|
70722
70713
|
var errorMessage = void 0;
|
|
70723
70714
|
var basePropertyFlags = base.flags & 98308;
|
|
70724
70715
|
var derivedPropertyFlags = derived.flags & 98308;
|
|
70725
70716
|
if (basePropertyFlags && derivedPropertyFlags) {
|
|
70726
|
-
if (
|
|
70727
|
-
|
|
70717
|
+
if ((ts.getCheckFlags(base) & 6
|
|
70718
|
+
? (_a = base.declarations) === null || _a === void 0 ? void 0 : _a.some(function (d) { return isPropertyAbstractOrInterface(d, baseDeclarationFlags); })
|
|
70719
|
+
: (_b = base.declarations) === null || _b === void 0 ? void 0 : _b.every(function (d) { return isPropertyAbstractOrInterface(d, baseDeclarationFlags); }))
|
|
70720
|
+
|| ts.getCheckFlags(base) & 262144
|
|
70728
70721
|
|| derived.valueDeclaration && ts.isBinaryExpression(derived.valueDeclaration)) {
|
|
70729
|
-
continue;
|
|
70722
|
+
return "continue";
|
|
70730
70723
|
}
|
|
70731
70724
|
var overriddenInstanceProperty = basePropertyFlags !== 4 && derivedPropertyFlags === 4;
|
|
70732
70725
|
var overriddenInstanceAccessor = basePropertyFlags === 4 && derivedPropertyFlags !== 4;
|
|
@@ -70737,12 +70730,12 @@ var ts;
|
|
|
70737
70730
|
error(ts.getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage_1, symbolToString(base), typeToString(baseType), typeToString(type));
|
|
70738
70731
|
}
|
|
70739
70732
|
else if (useDefineForClassFields) {
|
|
70740
|
-
var uninitialized = (
|
|
70733
|
+
var uninitialized = (_c = derived.declarations) === null || _c === void 0 ? void 0 : _c.find(function (d) { return d.kind === 167 && !d.initializer; });
|
|
70741
70734
|
if (uninitialized
|
|
70742
70735
|
&& !(derived.flags & 33554432)
|
|
70743
70736
|
&& !(baseDeclarationFlags & 128)
|
|
70744
70737
|
&& !(derivedDeclarationFlags & 128)
|
|
70745
|
-
&& !((
|
|
70738
|
+
&& !((_d = derived.declarations) === null || _d === void 0 ? void 0 : _d.some(function (d) { return !!(d.flags & 16777216); }))) {
|
|
70746
70739
|
var constructor = findConstructorDeclaration(ts.getClassLikeDeclarationOfSymbol(type.symbol));
|
|
70747
70740
|
var propName = uninitialized.name;
|
|
70748
70741
|
if (uninitialized.exclamationToken
|
|
@@ -70755,11 +70748,11 @@ var ts;
|
|
|
70755
70748
|
}
|
|
70756
70749
|
}
|
|
70757
70750
|
}
|
|
70758
|
-
continue;
|
|
70751
|
+
return "continue";
|
|
70759
70752
|
}
|
|
70760
70753
|
else if (isPrototypeProperty(base)) {
|
|
70761
70754
|
if (isPrototypeProperty(derived) || derived.flags & 4) {
|
|
70762
|
-
continue;
|
|
70755
|
+
return "continue";
|
|
70763
70756
|
}
|
|
70764
70757
|
else {
|
|
70765
70758
|
ts.Debug.assert(!!(derived.flags & 98304));
|
|
@@ -70774,9 +70767,20 @@ var ts;
|
|
|
70774
70767
|
}
|
|
70775
70768
|
error(ts.getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type));
|
|
70776
70769
|
}
|
|
70770
|
+
};
|
|
70771
|
+
basePropertyCheck: for (var _i = 0, baseProperties_1 = baseProperties; _i < baseProperties_1.length; _i++) {
|
|
70772
|
+
var baseProperty = baseProperties_1[_i];
|
|
70773
|
+
var state_10 = _loop_33(baseProperty);
|
|
70774
|
+
switch (state_10) {
|
|
70775
|
+
case "continue-basePropertyCheck": continue basePropertyCheck;
|
|
70776
|
+
}
|
|
70777
70777
|
}
|
|
70778
70778
|
}
|
|
70779
|
-
function
|
|
70779
|
+
function isPropertyAbstractOrInterface(declaration, baseDeclarationFlags) {
|
|
70780
|
+
return baseDeclarationFlags & 128 && (!ts.isPropertyDeclaration(declaration) || !declaration.initializer)
|
|
70781
|
+
|| ts.isInterfaceDeclaration(declaration.parent);
|
|
70782
|
+
}
|
|
70783
|
+
function getNonInheritedProperties(type, baseTypes, properties) {
|
|
70780
70784
|
if (!ts.length(baseTypes)) {
|
|
70781
70785
|
return properties;
|
|
70782
70786
|
}
|
|
@@ -70845,7 +70849,7 @@ var ts;
|
|
|
70845
70849
|
var propName = member.name;
|
|
70846
70850
|
if (ts.isIdentifier(propName) || ts.isPrivateIdentifier(propName) || ts.isComputedPropertyName(propName)) {
|
|
70847
70851
|
var type = getTypeOfSymbol(getSymbolOfNode(member));
|
|
70848
|
-
if (!(type.flags & 3 ||
|
|
70852
|
+
if (!(type.flags & 3 || getTypeFacts(type) & 16777216)) {
|
|
70849
70853
|
if (!constructor || !isPropertyInitializedInConstructor(propName, type, constructor)) {
|
|
70850
70854
|
error(member.name, ts.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor, ts.declarationNameToString(propName));
|
|
70851
70855
|
}
|
|
@@ -70869,7 +70873,7 @@ var ts;
|
|
|
70869
70873
|
ts.setParent(reference, staticBlock);
|
|
70870
70874
|
reference.flowNode = staticBlock.returnFlowNode;
|
|
70871
70875
|
var flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType));
|
|
70872
|
-
if (!(
|
|
70876
|
+
if (!(getTypeFacts(flowType) & 16777216)) {
|
|
70873
70877
|
return true;
|
|
70874
70878
|
}
|
|
70875
70879
|
}
|
|
@@ -70884,7 +70888,7 @@ var ts;
|
|
|
70884
70888
|
ts.setParent(reference, constructor);
|
|
70885
70889
|
reference.flowNode = constructor.returnFlowNode;
|
|
70886
70890
|
var flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType));
|
|
70887
|
-
return !(
|
|
70891
|
+
return !(getTypeFacts(flowType) & 16777216);
|
|
70888
70892
|
}
|
|
70889
70893
|
function checkInterfaceDeclaration(node) {
|
|
70890
70894
|
if (!checkGrammarDecoratorsAndModifiers(node))
|
|
@@ -77903,8 +77907,8 @@ var ts;
|
|
|
77903
77907
|
}
|
|
77904
77908
|
function serializeTypeList(types) {
|
|
77905
77909
|
var serializedUnion;
|
|
77906
|
-
for (var _i = 0,
|
|
77907
|
-
var typeNode =
|
|
77910
|
+
for (var _i = 0, types_22 = types; _i < types_22.length; _i++) {
|
|
77911
|
+
var typeNode = types_22[_i];
|
|
77908
77912
|
while (typeNode.kind === 191) {
|
|
77909
77913
|
typeNode = typeNode.type;
|
|
77910
77914
|
}
|
|
@@ -93529,8 +93533,8 @@ var ts;
|
|
|
93529
93533
|
bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "reference", data: directive.fileName });
|
|
93530
93534
|
writeLine();
|
|
93531
93535
|
}
|
|
93532
|
-
for (var _d = 0,
|
|
93533
|
-
var directive =
|
|
93536
|
+
for (var _d = 0, types_23 = types; _d < types_23.length; _d++) {
|
|
93537
|
+
var directive = types_23[_d];
|
|
93534
93538
|
var pos = writer.getTextPos();
|
|
93535
93539
|
var resolutionMode = directive.resolutionMode && directive.resolutionMode !== (currentSourceFile === null || currentSourceFile === void 0 ? void 0 : currentSourceFile.impliedNodeFormat)
|
|
93536
93540
|
? "resolution-mode=\"" + (directive.resolutionMode === ts.ModuleKind.ESNext ? "import" : "require") + "\""
|
|
@@ -101123,7 +101127,7 @@ var ts;
|
|
|
101123
101127
|
importedFileFromNodeModules = importedFileFromNodeModules || isInNodeModules;
|
|
101124
101128
|
});
|
|
101125
101129
|
var sortedPaths = [];
|
|
101126
|
-
var
|
|
101130
|
+
var _loop_34 = function (directory) {
|
|
101127
101131
|
var directoryStart = ts.ensureTrailingDirectorySeparator(directory);
|
|
101128
101132
|
var pathsInDirectory;
|
|
101129
101133
|
allFileNames.forEach(function (_a, fileName) {
|
|
@@ -101147,9 +101151,9 @@ var ts;
|
|
|
101147
101151
|
};
|
|
101148
101152
|
var out_directory_1;
|
|
101149
101153
|
for (var directory = ts.getDirectoryPath(importingFileName); allFileNames.size !== 0;) {
|
|
101150
|
-
var
|
|
101154
|
+
var state_11 = _loop_34(directory);
|
|
101151
101155
|
directory = out_directory_1;
|
|
101152
|
-
if (
|
|
101156
|
+
if (state_11 === "break")
|
|
101153
101157
|
break;
|
|
101154
101158
|
}
|
|
101155
101159
|
if (allFileNames.size) {
|