typescript 5.1.0-dev.20230323 → 5.1.0-dev.20230324
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 +397 -234
- package/lib/tsserver.js +530 -361
- package/lib/tsserverlibrary.js +530 -361
- package/lib/typescript.js +526 -357
- package/lib/typingsInstaller.js +17 -17
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.1";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20230324`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -9048,7 +9048,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
9048
9048
|
return token = 10 /* StringLiteral */;
|
|
9049
9049
|
case 96 /* backtick */:
|
|
9050
9050
|
return token = scanTemplateAndSetTokenValue(
|
|
9051
|
-
/*
|
|
9051
|
+
/*isTaggedTemplate*/
|
|
9052
9052
|
false
|
|
9053
9053
|
);
|
|
9054
9054
|
case 37 /* percent */:
|
|
@@ -9551,7 +9551,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
9551
9551
|
function reScanTemplateHeadOrNoSubstitutionTemplate() {
|
|
9552
9552
|
pos = tokenStart;
|
|
9553
9553
|
return token = scanTemplateAndSetTokenValue(
|
|
9554
|
-
/*
|
|
9554
|
+
/*isTaggedTemplate*/
|
|
9555
9555
|
true
|
|
9556
9556
|
);
|
|
9557
9557
|
}
|
|
@@ -12324,7 +12324,7 @@ function getSpanOfTokenAtPosition(sourceFile, pos) {
|
|
|
12324
12324
|
true,
|
|
12325
12325
|
sourceFile.languageVariant,
|
|
12326
12326
|
sourceFile.text,
|
|
12327
|
-
/*onError
|
|
12327
|
+
/*onError*/
|
|
12328
12328
|
void 0,
|
|
12329
12329
|
pos
|
|
12330
12330
|
);
|
|
@@ -12339,7 +12339,7 @@ function scanTokenAtPosition(sourceFile, pos) {
|
|
|
12339
12339
|
true,
|
|
12340
12340
|
sourceFile.languageVariant,
|
|
12341
12341
|
sourceFile.text,
|
|
12342
|
-
/*onError
|
|
12342
|
+
/*onError*/
|
|
12343
12343
|
void 0,
|
|
12344
12344
|
pos
|
|
12345
12345
|
);
|
|
@@ -13309,7 +13309,7 @@ function isSameEntityName(name, initializer) {
|
|
|
13309
13309
|
function getRightMostAssignedExpression(node) {
|
|
13310
13310
|
while (isAssignmentExpression(
|
|
13311
13311
|
node,
|
|
13312
|
-
/*
|
|
13312
|
+
/*excludeCompoundAssignment*/
|
|
13313
13313
|
true
|
|
13314
13314
|
)) {
|
|
13315
13315
|
node = node.right;
|
|
@@ -17429,7 +17429,7 @@ function createParenthesizerRules(factory2) {
|
|
|
17429
17429
|
if (!needsParens) {
|
|
17430
17430
|
switch (getLeftmostExpression(
|
|
17431
17431
|
check,
|
|
17432
|
-
/*
|
|
17432
|
+
/*stopAtCallExpressions*/
|
|
17433
17433
|
false
|
|
17434
17434
|
).kind) {
|
|
17435
17435
|
case 229 /* ClassExpression */:
|
|
@@ -23161,7 +23161,7 @@ function createEmitHelperFactory(context) {
|
|
|
23161
23161
|
context.requestEmitHelper(classPrivateFieldInHelper);
|
|
23162
23162
|
return factory2.createCallExpression(
|
|
23163
23163
|
getUnscopedHelperName("__classPrivateFieldIn"),
|
|
23164
|
-
/*
|
|
23164
|
+
/*typeArguments*/
|
|
23165
23165
|
void 0,
|
|
23166
23166
|
[state, receiver]
|
|
23167
23167
|
);
|
|
@@ -25226,7 +25226,7 @@ function createAccessorPropertySetRedirector(factory2, node, modifiers, name) {
|
|
|
25226
25226
|
[factory2.createParameterDeclaration(
|
|
25227
25227
|
/*modifiers*/
|
|
25228
25228
|
void 0,
|
|
25229
|
-
/*
|
|
25229
|
+
/*dotDotDotToken*/
|
|
25230
25230
|
void 0,
|
|
25231
25231
|
"value"
|
|
25232
25232
|
)],
|
|
@@ -26172,7 +26172,7 @@ var Parser;
|
|
|
26172
26172
|
fileName2,
|
|
26173
26173
|
2 /* ES2015 */,
|
|
26174
26174
|
6 /* JSON */,
|
|
26175
|
-
/*
|
|
26175
|
+
/*isDeclarationFile*/
|
|
26176
26176
|
false,
|
|
26177
26177
|
statements,
|
|
26178
26178
|
endOfFileToken,
|
|
@@ -27527,7 +27527,7 @@ var Parser;
|
|
|
27527
27527
|
entity,
|
|
27528
27528
|
parseRightSideOfDot(
|
|
27529
27529
|
allowReservedWords,
|
|
27530
|
-
/*
|
|
27530
|
+
/*allowPrivateIdentifiers*/
|
|
27531
27531
|
false
|
|
27532
27532
|
)
|
|
27533
27533
|
),
|
|
@@ -29464,7 +29464,7 @@ var Parser;
|
|
|
29464
29464
|
parseExpected(43 /* SlashToken */);
|
|
29465
29465
|
if (parseExpected(
|
|
29466
29466
|
31 /* GreaterThanToken */,
|
|
29467
|
-
/*
|
|
29467
|
+
/*diagnosticMessage*/
|
|
29468
29468
|
void 0,
|
|
29469
29469
|
/*shouldAdvance*/
|
|
29470
29470
|
false
|
|
@@ -29509,7 +29509,7 @@ var Parser;
|
|
|
29509
29509
|
} else {
|
|
29510
29510
|
if (parseExpected(
|
|
29511
29511
|
19 /* CloseBraceToken */,
|
|
29512
|
-
/*
|
|
29512
|
+
/*diagnosticMessage*/
|
|
29513
29513
|
void 0,
|
|
29514
29514
|
/*shouldAdvance*/
|
|
29515
29515
|
false
|
|
@@ -29562,7 +29562,7 @@ var Parser;
|
|
|
29562
29562
|
const tagName = parseJsxElementName();
|
|
29563
29563
|
if (parseExpected(
|
|
29564
29564
|
31 /* GreaterThanToken */,
|
|
29565
|
-
/*
|
|
29565
|
+
/*diagnosticMessage*/
|
|
29566
29566
|
void 0,
|
|
29567
29567
|
/*shouldAdvance*/
|
|
29568
29568
|
false
|
|
@@ -29842,7 +29842,7 @@ var Parser;
|
|
|
29842
29842
|
break;
|
|
29843
29843
|
case 15 /* TemplateHead */:
|
|
29844
29844
|
return parseTemplateExpression(
|
|
29845
|
-
/*
|
|
29845
|
+
/*isTaggedTemplate*/
|
|
29846
29846
|
false
|
|
29847
29847
|
);
|
|
29848
29848
|
case 80 /* PrivateIdentifier */:
|
|
@@ -31549,7 +31549,7 @@ var Parser;
|
|
|
31549
31549
|
"file.js",
|
|
31550
31550
|
content,
|
|
31551
31551
|
99 /* Latest */,
|
|
31552
|
-
/*
|
|
31552
|
+
/*syntaxCursor*/
|
|
31553
31553
|
void 0,
|
|
31554
31554
|
1 /* JS */
|
|
31555
31555
|
);
|
|
@@ -31592,7 +31592,7 @@ var Parser;
|
|
|
31592
31592
|
const hasBrace = parseOptional(18 /* OpenBraceToken */);
|
|
31593
31593
|
const p2 = getNodePos();
|
|
31594
31594
|
let entityName = parseEntityName(
|
|
31595
|
-
/*
|
|
31595
|
+
/*allowReservedWords*/
|
|
31596
31596
|
false
|
|
31597
31597
|
);
|
|
31598
31598
|
while (token() === 80 /* PrivateIdentifier */) {
|
|
@@ -31613,7 +31613,7 @@ var Parser;
|
|
|
31613
31613
|
"",
|
|
31614
31614
|
content,
|
|
31615
31615
|
99 /* Latest */,
|
|
31616
|
-
/*
|
|
31616
|
+
/*syntaxCursor*/
|
|
31617
31617
|
void 0,
|
|
31618
31618
|
1 /* JS */
|
|
31619
31619
|
);
|
|
@@ -37279,7 +37279,7 @@ function tryResolveJSModuleWorker(moduleName, initialDir, host) {
|
|
|
37279
37279
|
2 /* JavaScript */,
|
|
37280
37280
|
/*isConfigLookup*/
|
|
37281
37281
|
false,
|
|
37282
|
-
/*
|
|
37282
|
+
/*redirectedReference*/
|
|
37283
37283
|
void 0
|
|
37284
37284
|
);
|
|
37285
37285
|
}
|
|
@@ -41069,7 +41069,7 @@ function createBinder() {
|
|
|
41069
41069
|
parentSymbol,
|
|
41070
41070
|
node.left.expression,
|
|
41071
41071
|
isTopLevelNamespaceAssignment(node.left),
|
|
41072
|
-
/*
|
|
41072
|
+
/*isPrototypeProperty*/
|
|
41073
41073
|
false,
|
|
41074
41074
|
/*containerIsClass*/
|
|
41075
41075
|
false
|
|
@@ -41201,7 +41201,7 @@ function createBinder() {
|
|
|
41201
41201
|
function bindCallExpression(node) {
|
|
41202
41202
|
if (!file.commonJsModuleIndicator && isRequireCall(
|
|
41203
41203
|
node,
|
|
41204
|
-
/*
|
|
41204
|
+
/*requireStringLiteralLikeArgument*/
|
|
41205
41205
|
false
|
|
41206
41206
|
)) {
|
|
41207
41207
|
setCommonJsModuleIndicator(node);
|
|
@@ -43068,21 +43068,77 @@ function createTypeChecker(host) {
|
|
|
43068
43068
|
}
|
|
43069
43069
|
return t;
|
|
43070
43070
|
}, () => "(unreliable reporter)");
|
|
43071
|
-
var emptyObjectType = createAnonymousType(
|
|
43072
|
-
|
|
43071
|
+
var emptyObjectType = createAnonymousType(
|
|
43072
|
+
/*symbol*/
|
|
43073
|
+
void 0,
|
|
43074
|
+
emptySymbols,
|
|
43075
|
+
emptyArray,
|
|
43076
|
+
emptyArray,
|
|
43077
|
+
emptyArray
|
|
43078
|
+
);
|
|
43079
|
+
var emptyJsxObjectType = createAnonymousType(
|
|
43080
|
+
/*symbol*/
|
|
43081
|
+
void 0,
|
|
43082
|
+
emptySymbols,
|
|
43083
|
+
emptyArray,
|
|
43084
|
+
emptyArray,
|
|
43085
|
+
emptyArray
|
|
43086
|
+
);
|
|
43073
43087
|
emptyJsxObjectType.objectFlags |= 2048 /* JsxAttributes */;
|
|
43074
43088
|
var emptyTypeLiteralSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */);
|
|
43075
43089
|
emptyTypeLiteralSymbol.members = createSymbolTable();
|
|
43076
43090
|
var emptyTypeLiteralType = createAnonymousType(emptyTypeLiteralSymbol, emptySymbols, emptyArray, emptyArray, emptyArray);
|
|
43077
|
-
var unknownEmptyObjectType = createAnonymousType(
|
|
43091
|
+
var unknownEmptyObjectType = createAnonymousType(
|
|
43092
|
+
/*symbol*/
|
|
43093
|
+
void 0,
|
|
43094
|
+
emptySymbols,
|
|
43095
|
+
emptyArray,
|
|
43096
|
+
emptyArray,
|
|
43097
|
+
emptyArray
|
|
43098
|
+
);
|
|
43078
43099
|
var unknownUnionType = strictNullChecks ? getUnionType([undefinedType, nullType, unknownEmptyObjectType]) : unknownType;
|
|
43079
|
-
var emptyGenericType = createAnonymousType(
|
|
43100
|
+
var emptyGenericType = createAnonymousType(
|
|
43101
|
+
/*symbol*/
|
|
43102
|
+
void 0,
|
|
43103
|
+
emptySymbols,
|
|
43104
|
+
emptyArray,
|
|
43105
|
+
emptyArray,
|
|
43106
|
+
emptyArray
|
|
43107
|
+
);
|
|
43080
43108
|
emptyGenericType.instantiations = /* @__PURE__ */ new Map();
|
|
43081
|
-
var anyFunctionType = createAnonymousType(
|
|
43109
|
+
var anyFunctionType = createAnonymousType(
|
|
43110
|
+
/*symbol*/
|
|
43111
|
+
void 0,
|
|
43112
|
+
emptySymbols,
|
|
43113
|
+
emptyArray,
|
|
43114
|
+
emptyArray,
|
|
43115
|
+
emptyArray
|
|
43116
|
+
);
|
|
43082
43117
|
anyFunctionType.objectFlags |= 262144 /* NonInferrableType */;
|
|
43083
|
-
var noConstraintType = createAnonymousType(
|
|
43084
|
-
|
|
43085
|
-
|
|
43118
|
+
var noConstraintType = createAnonymousType(
|
|
43119
|
+
/*symbol*/
|
|
43120
|
+
void 0,
|
|
43121
|
+
emptySymbols,
|
|
43122
|
+
emptyArray,
|
|
43123
|
+
emptyArray,
|
|
43124
|
+
emptyArray
|
|
43125
|
+
);
|
|
43126
|
+
var circularConstraintType = createAnonymousType(
|
|
43127
|
+
/*symbol*/
|
|
43128
|
+
void 0,
|
|
43129
|
+
emptySymbols,
|
|
43130
|
+
emptyArray,
|
|
43131
|
+
emptyArray,
|
|
43132
|
+
emptyArray
|
|
43133
|
+
);
|
|
43134
|
+
var resolvingDefaultType = createAnonymousType(
|
|
43135
|
+
/*symbol*/
|
|
43136
|
+
void 0,
|
|
43137
|
+
emptySymbols,
|
|
43138
|
+
emptyArray,
|
|
43139
|
+
emptyArray,
|
|
43140
|
+
emptyArray
|
|
43141
|
+
);
|
|
43086
43142
|
var markerSuperType = createTypeParameter();
|
|
43087
43143
|
var markerSubType = createTypeParameter();
|
|
43088
43144
|
markerSubType.constraint = markerSuperType;
|
|
@@ -43092,8 +43148,11 @@ function createTypeChecker(host) {
|
|
|
43092
43148
|
markerSubTypeForCheck.constraint = markerSuperTypeForCheck;
|
|
43093
43149
|
var noTypePredicate = createTypePredicate(1 /* Identifier */, "<<unresolved>>", 0, anyType);
|
|
43094
43150
|
var anySignature = createSignature(
|
|
43151
|
+
/*declaration*/
|
|
43095
43152
|
void 0,
|
|
43153
|
+
/*typeParameters*/
|
|
43096
43154
|
void 0,
|
|
43155
|
+
/*thisParameter*/
|
|
43097
43156
|
void 0,
|
|
43098
43157
|
emptyArray,
|
|
43099
43158
|
anyType,
|
|
@@ -43103,8 +43162,11 @@ function createTypeChecker(host) {
|
|
|
43103
43162
|
0 /* None */
|
|
43104
43163
|
);
|
|
43105
43164
|
var unknownSignature = createSignature(
|
|
43165
|
+
/*declaration*/
|
|
43106
43166
|
void 0,
|
|
43167
|
+
/*typeParameters*/
|
|
43107
43168
|
void 0,
|
|
43169
|
+
/*thisParameter*/
|
|
43108
43170
|
void 0,
|
|
43109
43171
|
emptyArray,
|
|
43110
43172
|
errorType,
|
|
@@ -43114,8 +43176,11 @@ function createTypeChecker(host) {
|
|
|
43114
43176
|
0 /* None */
|
|
43115
43177
|
);
|
|
43116
43178
|
var resolvingSignature = createSignature(
|
|
43179
|
+
/*declaration*/
|
|
43117
43180
|
void 0,
|
|
43181
|
+
/*typeParameters*/
|
|
43118
43182
|
void 0,
|
|
43183
|
+
/*thisParameter*/
|
|
43119
43184
|
void 0,
|
|
43120
43185
|
emptyArray,
|
|
43121
43186
|
anyType,
|
|
@@ -43125,8 +43190,11 @@ function createTypeChecker(host) {
|
|
|
43125
43190
|
0 /* None */
|
|
43126
43191
|
);
|
|
43127
43192
|
var silentNeverSignature = createSignature(
|
|
43193
|
+
/*declaration*/
|
|
43128
43194
|
void 0,
|
|
43195
|
+
/*typeParameters*/
|
|
43129
43196
|
void 0,
|
|
43197
|
+
/*thisParameter*/
|
|
43130
43198
|
void 0,
|
|
43131
43199
|
emptyArray,
|
|
43132
43200
|
silentNeverType,
|
|
@@ -44183,7 +44251,7 @@ function createTypeChecker(host) {
|
|
|
44183
44251
|
if (originalLocation && isInJSFile(originalLocation) && originalLocation.parent) {
|
|
44184
44252
|
if (isRequireCall(
|
|
44185
44253
|
originalLocation.parent,
|
|
44186
|
-
/*
|
|
44254
|
+
/*requireStringLiteralLikeArgument*/
|
|
44187
44255
|
false
|
|
44188
44256
|
)) {
|
|
44189
44257
|
return requireSymbol;
|
|
@@ -44804,7 +44872,7 @@ function createTypeChecker(host) {
|
|
|
44804
44872
|
node,
|
|
44805
44873
|
moduleSymbol,
|
|
44806
44874
|
resolved,
|
|
44807
|
-
/*
|
|
44875
|
+
/*overwriteEmpty*/
|
|
44808
44876
|
false
|
|
44809
44877
|
);
|
|
44810
44878
|
return resolved;
|
|
@@ -44814,7 +44882,7 @@ function createTypeChecker(host) {
|
|
|
44814
44882
|
exportDefaultSymbol,
|
|
44815
44883
|
/*finalTarget*/
|
|
44816
44884
|
void 0,
|
|
44817
|
-
/*
|
|
44885
|
+
/*overwriteEmpty*/
|
|
44818
44886
|
false
|
|
44819
44887
|
);
|
|
44820
44888
|
return exportDefaultSymbol;
|
|
@@ -44865,7 +44933,7 @@ function createTypeChecker(host) {
|
|
|
44865
44933
|
immediate,
|
|
44866
44934
|
moduleSpecifier,
|
|
44867
44935
|
dontResolveAlias,
|
|
44868
|
-
/*
|
|
44936
|
+
/*suppressInteropError*/
|
|
44869
44937
|
false
|
|
44870
44938
|
);
|
|
44871
44939
|
markSymbolOfAliasDeclarationIfTypeOnly(
|
|
@@ -44884,7 +44952,7 @@ function createTypeChecker(host) {
|
|
|
44884
44952
|
immediate,
|
|
44885
44953
|
moduleSpecifier,
|
|
44886
44954
|
dontResolveAlias,
|
|
44887
|
-
/*
|
|
44955
|
+
/*suppressInteropError*/
|
|
44888
44956
|
false
|
|
44889
44957
|
);
|
|
44890
44958
|
markSymbolOfAliasDeclarationIfTypeOnly(
|
|
@@ -45376,6 +45444,7 @@ function createTypeChecker(host) {
|
|
|
45376
45444
|
left,
|
|
45377
45445
|
left.escapedText,
|
|
45378
45446
|
111551 /* Value */,
|
|
45447
|
+
/*nameNotFoundMessage*/
|
|
45379
45448
|
void 0,
|
|
45380
45449
|
left,
|
|
45381
45450
|
/*isUse*/
|
|
@@ -45411,6 +45480,7 @@ function createTypeChecker(host) {
|
|
|
45411
45480
|
name,
|
|
45412
45481
|
/*isUse*/
|
|
45413
45482
|
true,
|
|
45483
|
+
/*excludeGlobals*/
|
|
45414
45484
|
false
|
|
45415
45485
|
));
|
|
45416
45486
|
if (!symbol) {
|
|
@@ -46115,7 +46185,7 @@ function createTypeChecker(host) {
|
|
|
46115
46185
|
container,
|
|
46116
46186
|
enclosingDeclaration,
|
|
46117
46187
|
1920 /* Namespace */,
|
|
46118
|
-
/*
|
|
46188
|
+
/*useOnlyExternalAliasing*/
|
|
46119
46189
|
false
|
|
46120
46190
|
)) {
|
|
46121
46191
|
return append(concatenate(concatenate([container], additionalContainers), reexportContainers), objectLiteralContainer);
|
|
@@ -46428,7 +46498,7 @@ function createTypeChecker(host) {
|
|
|
46428
46498
|
if (symbolFromSymbolTable.escapedName === symbol.escapedName && symbolFromSymbolTable.exportSymbol) {
|
|
46429
46499
|
if (isAccessible(
|
|
46430
46500
|
getMergedSymbol(symbolFromSymbolTable.exportSymbol),
|
|
46431
|
-
/*
|
|
46501
|
+
/*resolvedAliasSymbol*/
|
|
46432
46502
|
void 0,
|
|
46433
46503
|
ignoreQualification
|
|
46434
46504
|
)) {
|
|
@@ -46680,7 +46750,7 @@ function createTypeChecker(host) {
|
|
|
46680
46750
|
enclosingDeclaration,
|
|
46681
46751
|
firstIdentifier.escapedText,
|
|
46682
46752
|
meaning,
|
|
46683
|
-
/*
|
|
46753
|
+
/*nameNotFoundMessage*/
|
|
46684
46754
|
void 0,
|
|
46685
46755
|
/*nameArg*/
|
|
46686
46756
|
void 0,
|
|
@@ -46700,7 +46770,7 @@ function createTypeChecker(host) {
|
|
|
46700
46770
|
)),
|
|
46701
46771
|
firstIdentifier,
|
|
46702
46772
|
meaning,
|
|
46703
|
-
/*
|
|
46773
|
+
/*shouldComputeAliasesToMakeVisible*/
|
|
46704
46774
|
false
|
|
46705
46775
|
).accessibility === 0 /* Accessible */) {
|
|
46706
46776
|
return { accessibility: 0 /* Accessible */ };
|
|
@@ -47259,7 +47329,7 @@ function createTypeChecker(host) {
|
|
|
47259
47329
|
symbol,
|
|
47260
47330
|
context.enclosingDeclaration,
|
|
47261
47331
|
isInstanceType,
|
|
47262
|
-
/*
|
|
47332
|
+
/*shouldComputeAliasesToMakeVisible*/
|
|
47263
47333
|
false
|
|
47264
47334
|
).accessibility !== 0 /* Accessible */)) || symbol.flags & (384 /* Enum */ | 512 /* ValueModule */) || shouldWriteTypeOfFunctionSymbol()) {
|
|
47265
47335
|
return symbolToTypeNode(symbol, context, isInstanceType);
|
|
@@ -47355,7 +47425,7 @@ function createTypeChecker(host) {
|
|
|
47355
47425
|
function deepCloneOrReuseNodes(nodes, visitor, test, start, count) {
|
|
47356
47426
|
if (nodes && nodes.length === 0) {
|
|
47357
47427
|
return setTextRange(factory.createNodeArray(
|
|
47358
|
-
/*
|
|
47428
|
+
/*elements*/
|
|
47359
47429
|
void 0,
|
|
47360
47430
|
nodes.hasTrailingComma
|
|
47361
47431
|
), nodes);
|
|
@@ -47943,12 +48013,12 @@ function createTypeChecker(host) {
|
|
|
47943
48013
|
const thisTag = getJSDocThisTag(signature.declaration);
|
|
47944
48014
|
if (thisTag && thisTag.typeExpression) {
|
|
47945
48015
|
return factory.createParameterDeclaration(
|
|
47946
|
-
/*
|
|
48016
|
+
/*modifiers*/
|
|
47947
48017
|
void 0,
|
|
47948
|
-
/*
|
|
48018
|
+
/*dotDotDotToken*/
|
|
47949
48019
|
void 0,
|
|
47950
48020
|
"this",
|
|
47951
|
-
/*
|
|
48021
|
+
/*questionToken*/
|
|
47952
48022
|
void 0,
|
|
47953
48023
|
typeToTypeNodeHelper(getTypeFromTypeNode(thisTag.typeExpression), context)
|
|
47954
48024
|
);
|
|
@@ -48035,7 +48105,7 @@ function createTypeChecker(host) {
|
|
|
48035
48105
|
firstIdentifier,
|
|
48036
48106
|
firstIdentifier.escapedText,
|
|
48037
48107
|
111551 /* Value */ | 1048576 /* ExportValue */,
|
|
48038
|
-
/*
|
|
48108
|
+
/*nameNotFoundMessage*/
|
|
48039
48109
|
void 0,
|
|
48040
48110
|
/*nameArg*/
|
|
48041
48111
|
void 0,
|
|
@@ -48368,7 +48438,7 @@ function createTypeChecker(host) {
|
|
|
48368
48438
|
context.enclosingDeclaration,
|
|
48369
48439
|
escapedName,
|
|
48370
48440
|
788968 /* Type */,
|
|
48371
|
-
/*
|
|
48441
|
+
/*nameNotFoundMessage*/
|
|
48372
48442
|
void 0,
|
|
48373
48443
|
escapedName,
|
|
48374
48444
|
/*isUse*/
|
|
@@ -48610,7 +48680,7 @@ function createTypeChecker(host) {
|
|
|
48610
48680
|
67108863 /* All */,
|
|
48611
48681
|
/*ignoreErrors*/
|
|
48612
48682
|
true,
|
|
48613
|
-
/*
|
|
48683
|
+
/*dontResolveAlias*/
|
|
48614
48684
|
true
|
|
48615
48685
|
);
|
|
48616
48686
|
if (sym) {
|
|
@@ -48689,7 +48759,7 @@ function createTypeChecker(host) {
|
|
|
48689
48759
|
[factory.createParameterDeclaration(
|
|
48690
48760
|
/*modifiers*/
|
|
48691
48761
|
void 0,
|
|
48692
|
-
/*
|
|
48762
|
+
/*dotDotDotToken*/
|
|
48693
48763
|
void 0,
|
|
48694
48764
|
"x",
|
|
48695
48765
|
/*questionToken*/
|
|
@@ -48812,13 +48882,13 @@ function createTypeChecker(host) {
|
|
|
48812
48882
|
const serializePropertySymbolForClass = makeSerializePropertySymbol(
|
|
48813
48883
|
factory.createPropertyDeclaration,
|
|
48814
48884
|
172 /* MethodDeclaration */,
|
|
48815
|
-
/*
|
|
48885
|
+
/*useAccessors*/
|
|
48816
48886
|
true
|
|
48817
48887
|
);
|
|
48818
48888
|
const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol(
|
|
48819
48889
|
(mods, name, question, type) => factory.createPropertySignature(mods, name, question, type),
|
|
48820
48890
|
171 /* MethodSignature */,
|
|
48821
|
-
/*
|
|
48891
|
+
/*useAccessors*/
|
|
48822
48892
|
false
|
|
48823
48893
|
);
|
|
48824
48894
|
const enclosingDeclaration = context.enclosingDeclaration;
|
|
@@ -48840,7 +48910,7 @@ function createTypeChecker(host) {
|
|
|
48840
48910
|
sym,
|
|
48841
48911
|
decl,
|
|
48842
48912
|
meaning,
|
|
48843
|
-
/*
|
|
48913
|
+
/*shouldComputeAliasesToMakeVisible*/
|
|
48844
48914
|
false
|
|
48845
48915
|
);
|
|
48846
48916
|
if (accessibleResult.accessibility === 0 /* Accessible */) {
|
|
@@ -48899,7 +48969,7 @@ function createTypeChecker(host) {
|
|
|
48899
48969
|
factory.createNamedExports(map(flatMap(excessExports, (e) => getNamesOfDeclaration(e)), (id) => factory.createExportSpecifier(
|
|
48900
48970
|
/*isTypeOnly*/
|
|
48901
48971
|
false,
|
|
48902
|
-
/*
|
|
48972
|
+
/*propertyName*/
|
|
48903
48973
|
void 0,
|
|
48904
48974
|
id
|
|
48905
48975
|
))),
|
|
@@ -49192,7 +49262,7 @@ function createTypeChecker(host) {
|
|
|
49192
49262
|
addResult(factory.createExportAssignment(
|
|
49193
49263
|
/*modifiers*/
|
|
49194
49264
|
void 0,
|
|
49195
|
-
/*
|
|
49265
|
+
/*isExportEquals*/
|
|
49196
49266
|
false,
|
|
49197
49267
|
factory.createIdentifier(getInternalSymbolName(symbol, symbolName2))
|
|
49198
49268
|
), 0 /* None */);
|
|
@@ -49615,7 +49685,7 @@ function createTypeChecker(host) {
|
|
|
49615
49685
|
)])
|
|
49616
49686
|
),
|
|
49617
49687
|
factory.createStringLiteral(specifier2),
|
|
49618
|
-
/*
|
|
49688
|
+
/*assertClause*/
|
|
49619
49689
|
void 0
|
|
49620
49690
|
), 0 /* None */);
|
|
49621
49691
|
break;
|
|
@@ -49704,7 +49774,7 @@ function createTypeChecker(host) {
|
|
|
49704
49774
|
factory.createImportClause(
|
|
49705
49775
|
/*isTypeOnly*/
|
|
49706
49776
|
false,
|
|
49707
|
-
/*
|
|
49777
|
+
/*name*/
|
|
49708
49778
|
void 0,
|
|
49709
49779
|
factory.createNamespaceImport(factory.createIdentifier(localName))
|
|
49710
49780
|
),
|
|
@@ -49732,7 +49802,7 @@ function createTypeChecker(host) {
|
|
|
49732
49802
|
factory.createImportClause(
|
|
49733
49803
|
/*isTypeOnly*/
|
|
49734
49804
|
false,
|
|
49735
|
-
/*
|
|
49805
|
+
/*name*/
|
|
49736
49806
|
void 0,
|
|
49737
49807
|
factory.createNamedImports([
|
|
49738
49808
|
factory.createImportSpecifier(
|
|
@@ -50093,7 +50163,7 @@ function createTypeChecker(host) {
|
|
|
50093
50163
|
addResult(statement, 0 /* None */);
|
|
50094
50164
|
return factory.createExpressionWithTypeArguments(
|
|
50095
50165
|
factory.createIdentifier(tempName),
|
|
50096
|
-
/*
|
|
50166
|
+
/*typeArguments*/
|
|
50097
50167
|
void 0
|
|
50098
50168
|
);
|
|
50099
50169
|
}
|
|
@@ -50118,7 +50188,7 @@ function createTypeChecker(host) {
|
|
|
50118
50188
|
if (t.symbol) {
|
|
50119
50189
|
return factory.createExpressionWithTypeArguments(
|
|
50120
50190
|
symbolToExpression(t.symbol, context, 788968 /* Type */),
|
|
50121
|
-
/*
|
|
50191
|
+
/*typeArguments*/
|
|
50122
50192
|
void 0
|
|
50123
50193
|
);
|
|
50124
50194
|
}
|
|
@@ -50424,7 +50494,9 @@ function createTypeChecker(host) {
|
|
|
50424
50494
|
declaration,
|
|
50425
50495
|
firstIdentifier.escapedText,
|
|
50426
50496
|
111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */,
|
|
50497
|
+
/*nameNotFoundMessage*/
|
|
50427
50498
|
void 0,
|
|
50499
|
+
/*nameArg*/
|
|
50428
50500
|
void 0,
|
|
50429
50501
|
/*isUse*/
|
|
50430
50502
|
false
|
|
@@ -51209,7 +51281,14 @@ function createTypeChecker(host) {
|
|
|
51209
51281
|
symbol.links.bindingElement = e;
|
|
51210
51282
|
members.set(symbol.escapedName, symbol);
|
|
51211
51283
|
});
|
|
51212
|
-
const result = createAnonymousType(
|
|
51284
|
+
const result = createAnonymousType(
|
|
51285
|
+
/*symbol*/
|
|
51286
|
+
void 0,
|
|
51287
|
+
members,
|
|
51288
|
+
emptyArray,
|
|
51289
|
+
emptyArray,
|
|
51290
|
+
stringIndexInfo ? [stringIndexInfo] : emptyArray
|
|
51291
|
+
);
|
|
51213
51292
|
result.objectFlags |= objectFlags;
|
|
51214
51293
|
if (includePatternInType) {
|
|
51215
51294
|
result.pattern = pattern;
|
|
@@ -51371,7 +51450,7 @@ function createTypeChecker(host) {
|
|
|
51371
51450
|
} else if (isParameter(declaration) || isPropertyDeclaration(declaration) || isPropertySignature(declaration) || isVariableDeclaration(declaration) || isBindingElement(declaration) || isJSDocPropertyLikeTag(declaration)) {
|
|
51372
51451
|
type = getWidenedTypeForVariableLikeDeclaration(
|
|
51373
51452
|
declaration,
|
|
51374
|
-
/*
|
|
51453
|
+
/*reportErrors*/
|
|
51375
51454
|
true
|
|
51376
51455
|
);
|
|
51377
51456
|
} else if (isEnumDeclaration(declaration)) {
|
|
@@ -51428,7 +51507,7 @@ function createTypeChecker(host) {
|
|
|
51428
51507
|
const accessor = tryCast(getDeclarationOfKind(symbol, 170 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration);
|
|
51429
51508
|
let type = getter && isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) || getAnnotatedAccessorType(getter) || getAnnotatedAccessorType(setter) || getAnnotatedAccessorType(accessor) || getter && getter.body && getReturnTypeFromBody(getter) || accessor && accessor.initializer && getWidenedTypeForVariableLikeDeclaration(
|
|
51430
51509
|
accessor,
|
|
51431
|
-
/*
|
|
51510
|
+
/*reportErrors*/
|
|
51432
51511
|
true
|
|
51433
51512
|
);
|
|
51434
51513
|
if (!type) {
|
|
@@ -51542,7 +51621,7 @@ function createTypeChecker(host) {
|
|
|
51542
51621
|
const targetSymbol = resolveAlias(symbol);
|
|
51543
51622
|
const exportSymbol = symbol.declarations && getTargetOfAliasDeclaration(
|
|
51544
51623
|
getDeclarationOfAliasSymbol(symbol),
|
|
51545
|
-
/*
|
|
51624
|
+
/*dontRecursivelyResolve*/
|
|
51546
51625
|
true
|
|
51547
51626
|
);
|
|
51548
51627
|
const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0);
|
|
@@ -52573,8 +52652,10 @@ function createTypeChecker(host) {
|
|
|
52573
52652
|
const isAbstract = !!declaration && hasSyntacticModifier(declaration, 256 /* Abstract */);
|
|
52574
52653
|
if (baseSignatures.length === 0) {
|
|
52575
52654
|
return [createSignature(
|
|
52655
|
+
/*declaration*/
|
|
52576
52656
|
void 0,
|
|
52577
52657
|
classType.localTypeParameters,
|
|
52658
|
+
/*thisParameter*/
|
|
52578
52659
|
void 0,
|
|
52579
52660
|
emptyArray,
|
|
52580
52661
|
classType,
|
|
@@ -53564,7 +53645,7 @@ function createTypeChecker(host) {
|
|
|
53564
53645
|
return type.resolvedApparentType || (type.resolvedApparentType = getTypeWithThisArgument(
|
|
53565
53646
|
type,
|
|
53566
53647
|
type,
|
|
53567
|
-
/*
|
|
53648
|
+
/*needApparentType*/
|
|
53568
53649
|
true
|
|
53569
53650
|
));
|
|
53570
53651
|
}
|
|
@@ -54061,7 +54142,9 @@ function createTypeChecker(host) {
|
|
|
54061
54142
|
param,
|
|
54062
54143
|
paramSymbol.escapedName,
|
|
54063
54144
|
111551 /* Value */,
|
|
54145
|
+
/*nameNotFoundMessage*/
|
|
54064
54146
|
void 0,
|
|
54147
|
+
/*nameArg*/
|
|
54065
54148
|
void 0,
|
|
54066
54149
|
/*isUse*/
|
|
54067
54150
|
false
|
|
@@ -54958,7 +55041,14 @@ function createTypeChecker(host) {
|
|
|
54958
55041
|
/*isReadonly*/
|
|
54959
55042
|
false
|
|
54960
55043
|
)] : emptyArray;
|
|
54961
|
-
return createAnonymousType(
|
|
55044
|
+
return createAnonymousType(
|
|
55045
|
+
/*symbol*/
|
|
55046
|
+
void 0,
|
|
55047
|
+
emptySymbols,
|
|
55048
|
+
emptyArray,
|
|
55049
|
+
emptyArray,
|
|
55050
|
+
indexInfo
|
|
55051
|
+
);
|
|
54962
55052
|
}
|
|
54963
55053
|
return anyType;
|
|
54964
55054
|
}
|
|
@@ -55066,6 +55156,7 @@ function createTypeChecker(host) {
|
|
|
55066
55156
|
}
|
|
55067
55157
|
function getGlobalSymbol(name, meaning, diagnostic) {
|
|
55068
55158
|
return resolveName(
|
|
55159
|
+
/*location*/
|
|
55069
55160
|
void 0,
|
|
55070
55161
|
name,
|
|
55071
55162
|
meaning,
|
|
@@ -56625,7 +56716,7 @@ function createTypeChecker(host) {
|
|
|
56625
56716
|
let errorInfo;
|
|
56626
56717
|
if (indexType.flags & 1024 /* EnumLiteral */) {
|
|
56627
56718
|
errorInfo = chainDiagnosticMessages(
|
|
56628
|
-
/*
|
|
56719
|
+
/*details*/
|
|
56629
56720
|
void 0,
|
|
56630
56721
|
Diagnostics.Property_0_does_not_exist_on_type_1,
|
|
56631
56722
|
"[" + typeToString(indexType) + "]",
|
|
@@ -56634,7 +56725,7 @@ function createTypeChecker(host) {
|
|
|
56634
56725
|
} else if (indexType.flags & 8192 /* UniqueESSymbol */) {
|
|
56635
56726
|
const symbolName2 = getFullyQualifiedName(indexType.symbol, accessExpression);
|
|
56636
56727
|
errorInfo = chainDiagnosticMessages(
|
|
56637
|
-
/*
|
|
56728
|
+
/*details*/
|
|
56638
56729
|
void 0,
|
|
56639
56730
|
Diagnostics.Property_0_does_not_exist_on_type_1,
|
|
56640
56731
|
"[" + symbolName2 + "]",
|
|
@@ -56642,7 +56733,7 @@ function createTypeChecker(host) {
|
|
|
56642
56733
|
);
|
|
56643
56734
|
} else if (indexType.flags & 128 /* StringLiteral */) {
|
|
56644
56735
|
errorInfo = chainDiagnosticMessages(
|
|
56645
|
-
/*
|
|
56736
|
+
/*details*/
|
|
56646
56737
|
void 0,
|
|
56647
56738
|
Diagnostics.Property_0_does_not_exist_on_type_1,
|
|
56648
56739
|
indexType.value,
|
|
@@ -56650,7 +56741,7 @@ function createTypeChecker(host) {
|
|
|
56650
56741
|
);
|
|
56651
56742
|
} else if (indexType.flags & 256 /* NumberLiteral */) {
|
|
56652
56743
|
errorInfo = chainDiagnosticMessages(
|
|
56653
|
-
/*
|
|
56744
|
+
/*details*/
|
|
56654
56745
|
void 0,
|
|
56655
56746
|
Diagnostics.Property_0_does_not_exist_on_type_1,
|
|
56656
56747
|
indexType.value,
|
|
@@ -56658,7 +56749,7 @@ function createTypeChecker(host) {
|
|
|
56658
56749
|
);
|
|
56659
56750
|
} else if (indexType.flags & (8 /* Number */ | 4 /* String */)) {
|
|
56660
56751
|
errorInfo = chainDiagnosticMessages(
|
|
56661
|
-
/*
|
|
56752
|
+
/*details*/
|
|
56662
56753
|
void 0,
|
|
56663
56754
|
Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,
|
|
56664
56755
|
typeToString(indexType),
|
|
@@ -58278,7 +58369,7 @@ function createTypeChecker(host) {
|
|
|
58278
58369
|
targetReturn,
|
|
58279
58370
|
relation,
|
|
58280
58371
|
returnExpression,
|
|
58281
|
-
/*
|
|
58372
|
+
/*headMessage*/
|
|
58282
58373
|
void 0,
|
|
58283
58374
|
containingMessageChain,
|
|
58284
58375
|
resultObj
|
|
@@ -58602,7 +58693,7 @@ function createTypeChecker(host) {
|
|
|
58602
58693
|
const childrenTargetType = getIndexedAccessType(target, getStringLiteralType(childrenPropName));
|
|
58603
58694
|
const diagnostic = Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;
|
|
58604
58695
|
invalidTextDiagnostic = { ...diagnostic, key: "!!ALREADY FORMATTED!!", message: formatMessage(
|
|
58605
|
-
/*
|
|
58696
|
+
/*dummy*/
|
|
58606
58697
|
void 0,
|
|
58607
58698
|
diagnostic,
|
|
58608
58699
|
tagNameText,
|
|
@@ -58693,7 +58784,7 @@ function createTypeChecker(host) {
|
|
|
58693
58784
|
false,
|
|
58694
58785
|
/*errorReporter*/
|
|
58695
58786
|
void 0,
|
|
58696
|
-
/*
|
|
58787
|
+
/*incompatibleErrorReporter*/
|
|
58697
58788
|
void 0,
|
|
58698
58789
|
compareTypesAssignable,
|
|
58699
58790
|
/*reportUnreliableMarkers*/
|
|
@@ -58767,12 +58858,7 @@ function createTypeChecker(host) {
|
|
|
58767
58858
|
const paramCount = sourceRestType || targetRestType ? Math.min(sourceCount, targetCount) : Math.max(sourceCount, targetCount);
|
|
58768
58859
|
const restIndex = sourceRestType || targetRestType ? paramCount - 1 : -1;
|
|
58769
58860
|
for (let i = 0; i < paramCount; i++) {
|
|
58770
|
-
const sourceType = i === restIndex ? getRestTypeAtPosition(
|
|
58771
|
-
source,
|
|
58772
|
-
i,
|
|
58773
|
-
/*readonly*/
|
|
58774
|
-
true
|
|
58775
|
-
) : tryGetTypeAtPosition(source, i);
|
|
58861
|
+
const sourceType = i === restIndex ? getRestTypeAtPosition(source, i) : tryGetTypeAtPosition(source, i);
|
|
58776
58862
|
const targetType = i === restIndex ? getRestTypeAtPosition(target, i) : tryGetTypeAtPosition(target, i);
|
|
58777
58863
|
if (sourceType && targetType) {
|
|
58778
58864
|
const sourceSig = checkMode & 3 /* Callback */ ? void 0 : getSingleCallSignature(getNonNullableType(sourceType));
|
|
@@ -59165,7 +59251,7 @@ function createTypeChecker(host) {
|
|
|
59165
59251
|
reportError(...stack[0]);
|
|
59166
59252
|
if (info) {
|
|
59167
59253
|
reportRelationError(
|
|
59168
|
-
/*
|
|
59254
|
+
/*message*/
|
|
59169
59255
|
void 0,
|
|
59170
59256
|
...info
|
|
59171
59257
|
);
|
|
@@ -59240,7 +59326,7 @@ function createTypeChecker(host) {
|
|
|
59240
59326
|
}
|
|
59241
59327
|
if (info) {
|
|
59242
59328
|
reportRelationError(
|
|
59243
|
-
/*
|
|
59329
|
+
/*message*/
|
|
59244
59330
|
void 0,
|
|
59245
59331
|
...info
|
|
59246
59332
|
);
|
|
@@ -59682,7 +59768,7 @@ function createTypeChecker(host) {
|
|
|
59682
59768
|
if (containsType(targetTypes, source2)) {
|
|
59683
59769
|
return -1 /* True */;
|
|
59684
59770
|
}
|
|
59685
|
-
if (getObjectFlags(target2) & 32768 /* PrimitiveUnion */ && !(source2.flags & 1024 /* EnumLiteral */) && (source2.flags & (128 /* StringLiteral */ | 512 /* BooleanLiteral */ | 2048 /* BigIntLiteral */) || (relation === subtypeRelation || relation === strictSubtypeRelation) && source2.flags & 256 /* NumberLiteral */)) {
|
|
59771
|
+
if (relation !== comparableRelation && getObjectFlags(target2) & 32768 /* PrimitiveUnion */ && !(source2.flags & 1024 /* EnumLiteral */) && (source2.flags & (128 /* StringLiteral */ | 512 /* BooleanLiteral */ | 2048 /* BigIntLiteral */) || (relation === subtypeRelation || relation === strictSubtypeRelation) && source2.flags & 256 /* NumberLiteral */)) {
|
|
59686
59772
|
const alternateForm = source2 === source2.regularType ? source2.freshType : source2.regularType;
|
|
59687
59773
|
const primitive = source2.flags & 128 /* StringLiteral */ ? stringType : source2.flags & 256 /* NumberLiteral */ ? numberType : source2.flags & 2048 /* BigIntLiteral */ ? bigintType : void 0;
|
|
59688
59774
|
return primitive && containsType(targetTypes, primitive) || alternateForm && containsType(targetTypes, alternateForm) ? -1 /* True */ : 0 /* False */;
|
|
@@ -59913,7 +59999,7 @@ function createTypeChecker(host) {
|
|
|
59913
59999
|
target2,
|
|
59914
60000
|
intersectionState,
|
|
59915
60001
|
relation,
|
|
59916
|
-
/*
|
|
60002
|
+
/*ignoreConstraints*/
|
|
59917
60003
|
false
|
|
59918
60004
|
);
|
|
59919
60005
|
const entry = relation.get(id);
|
|
@@ -60309,7 +60395,7 @@ function createTypeChecker(host) {
|
|
|
60309
60395
|
constraint,
|
|
60310
60396
|
2 /* Target */,
|
|
60311
60397
|
reportErrors2,
|
|
60312
|
-
/*
|
|
60398
|
+
/*headMessage*/
|
|
60313
60399
|
void 0,
|
|
60314
60400
|
intersectionState
|
|
60315
60401
|
)) {
|
|
@@ -60721,7 +60807,7 @@ function createTypeChecker(host) {
|
|
|
60721
60807
|
source2,
|
|
60722
60808
|
type,
|
|
60723
60809
|
0 /* Call */,
|
|
60724
|
-
/*
|
|
60810
|
+
/*reportErrors*/
|
|
60725
60811
|
false,
|
|
60726
60812
|
0 /* None */
|
|
60727
60813
|
);
|
|
@@ -60730,7 +60816,7 @@ function createTypeChecker(host) {
|
|
|
60730
60816
|
source2,
|
|
60731
60817
|
type,
|
|
60732
60818
|
1 /* Construct */,
|
|
60733
|
-
/*
|
|
60819
|
+
/*reportErrors*/
|
|
60734
60820
|
false,
|
|
60735
60821
|
0 /* None */
|
|
60736
60822
|
);
|
|
@@ -60740,7 +60826,7 @@ function createTypeChecker(host) {
|
|
|
60740
60826
|
type,
|
|
60741
60827
|
/*sourceIsPrimitive*/
|
|
60742
60828
|
false,
|
|
60743
|
-
/*
|
|
60829
|
+
/*reportErrors*/
|
|
60744
60830
|
false,
|
|
60745
60831
|
0 /* None */
|
|
60746
60832
|
);
|
|
@@ -61326,7 +61412,7 @@ function createTypeChecker(host) {
|
|
|
61326
61412
|
const targetHasStringIndex = some(indexInfos, (info) => info.keyType === stringType);
|
|
61327
61413
|
let result2 = -1 /* True */;
|
|
61328
61414
|
for (const targetInfo of indexInfos) {
|
|
61329
|
-
const related = !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
|
|
61415
|
+
const related = relation !== strictSubtypeRelation && !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
|
|
61330
61416
|
if (!related) {
|
|
61331
61417
|
return 0 /* False */;
|
|
61332
61418
|
}
|
|
@@ -62230,6 +62316,7 @@ function createTypeChecker(host) {
|
|
|
62230
62316
|
param,
|
|
62231
62317
|
param.name.escapedText,
|
|
62232
62318
|
788968 /* Type */,
|
|
62319
|
+
/*nameNotFoundMessage*/
|
|
62233
62320
|
void 0,
|
|
62234
62321
|
param.name.escapedText,
|
|
62235
62322
|
/*isUse*/
|
|
@@ -62457,7 +62544,14 @@ function createTypeChecker(host) {
|
|
|
62457
62544
|
/*isReadonly*/
|
|
62458
62545
|
false
|
|
62459
62546
|
)] : emptyArray;
|
|
62460
|
-
return createAnonymousType(
|
|
62547
|
+
return createAnonymousType(
|
|
62548
|
+
/*symbol*/
|
|
62549
|
+
void 0,
|
|
62550
|
+
members,
|
|
62551
|
+
emptyArray,
|
|
62552
|
+
emptyArray,
|
|
62553
|
+
indexInfos
|
|
62554
|
+
);
|
|
62461
62555
|
}
|
|
62462
62556
|
function inferTypeForHomomorphicMappedType(source, target, constraint) {
|
|
62463
62557
|
if (inInferTypeForHomomorphicMappedType) {
|
|
@@ -63953,7 +64047,7 @@ function createTypeChecker(host) {
|
|
|
63953
64047
|
return source.flags & 1048576 /* Union */ ? !forEach(source.types, (t) => !contains(types, t)) : contains(types, source);
|
|
63954
64048
|
}
|
|
63955
64049
|
function isTypeSubsetOf(source, target) {
|
|
63956
|
-
return source === target || target.flags & 1048576 /* Union */ && isTypeSubsetOfUnion(source, target);
|
|
64050
|
+
return !!(source === target || source.flags & 131072 /* Never */ || target.flags & 1048576 /* Union */ && isTypeSubsetOfUnion(source, target));
|
|
63957
64051
|
}
|
|
63958
64052
|
function isTypeSubsetOfUnion(source, target) {
|
|
63959
64053
|
if (source.flags & 1048576 /* Union */) {
|
|
@@ -64653,7 +64747,7 @@ function createTypeChecker(host) {
|
|
|
64653
64747
|
return type;
|
|
64654
64748
|
}
|
|
64655
64749
|
pushIfUnique(antecedentTypes, type);
|
|
64656
|
-
if (!isTypeSubsetOf(type,
|
|
64750
|
+
if (!isTypeSubsetOf(type, initialType)) {
|
|
64657
64751
|
subtypeReduction = true;
|
|
64658
64752
|
}
|
|
64659
64753
|
if (isIncomplete(flowType)) {
|
|
@@ -64668,7 +64762,7 @@ function createTypeChecker(host) {
|
|
|
64668
64762
|
return type;
|
|
64669
64763
|
}
|
|
64670
64764
|
antecedentTypes.push(type);
|
|
64671
|
-
if (!isTypeSubsetOf(type,
|
|
64765
|
+
if (!isTypeSubsetOf(type, initialType)) {
|
|
64672
64766
|
subtypeReduction = true;
|
|
64673
64767
|
}
|
|
64674
64768
|
if (isIncomplete(flowType)) {
|
|
@@ -64722,7 +64816,7 @@ function createTypeChecker(host) {
|
|
|
64722
64816
|
}
|
|
64723
64817
|
const type = getTypeFromFlowType(flowType);
|
|
64724
64818
|
pushIfUnique(antecedentTypes, type);
|
|
64725
|
-
if (!isTypeSubsetOf(type,
|
|
64819
|
+
if (!isTypeSubsetOf(type, initialType)) {
|
|
64726
64820
|
subtypeReduction = true;
|
|
64727
64821
|
}
|
|
64728
64822
|
if (type === declaredType) {
|
|
@@ -65802,7 +65896,7 @@ function createTypeChecker(host) {
|
|
|
65802
65896
|
const isNodeInTypeQuery = isInTypeQuery(node);
|
|
65803
65897
|
let container = getThisContainer(
|
|
65804
65898
|
node,
|
|
65805
|
-
/*
|
|
65899
|
+
/*includeArrowFunctions*/
|
|
65806
65900
|
true,
|
|
65807
65901
|
/*includeClassComputedPropertyName*/
|
|
65808
65902
|
true
|
|
@@ -65816,7 +65910,7 @@ function createTypeChecker(host) {
|
|
|
65816
65910
|
if (container.kind === 217 /* ArrowFunction */) {
|
|
65817
65911
|
container = getThisContainer(
|
|
65818
65912
|
container,
|
|
65819
|
-
/*
|
|
65913
|
+
/*includeArrowFunctions*/
|
|
65820
65914
|
false,
|
|
65821
65915
|
!thisInComputedPropertyName
|
|
65822
65916
|
);
|
|
@@ -66429,6 +66523,7 @@ function createTypeChecker(host) {
|
|
|
66429
66523
|
id,
|
|
66430
66524
|
id.escapedText,
|
|
66431
66525
|
111551 /* Value */,
|
|
66526
|
+
/*nameNotFoundMessage*/
|
|
66432
66527
|
void 0,
|
|
66433
66528
|
id.escapedText,
|
|
66434
66529
|
/*isUse*/
|
|
@@ -66478,7 +66573,9 @@ function createTypeChecker(host) {
|
|
|
66478
66573
|
declaration.left,
|
|
66479
66574
|
name,
|
|
66480
66575
|
111551 /* Value */,
|
|
66576
|
+
/*nameNotFoundMessage*/
|
|
66481
66577
|
void 0,
|
|
66578
|
+
/*nameArg*/
|
|
66482
66579
|
void 0,
|
|
66483
66580
|
/*isUse*/
|
|
66484
66581
|
true,
|
|
@@ -67831,7 +67928,7 @@ function createTypeChecker(host) {
|
|
|
67831
67928
|
location,
|
|
67832
67929
|
namespaceName,
|
|
67833
67930
|
1920 /* Namespace */,
|
|
67834
|
-
/*
|
|
67931
|
+
/*nameNotFoundMessage*/
|
|
67835
67932
|
void 0,
|
|
67836
67933
|
namespaceName,
|
|
67837
67934
|
/*isUse*/
|
|
@@ -67854,7 +67951,7 @@ function createTypeChecker(host) {
|
|
|
67854
67951
|
const s = resolveSymbol(getGlobalSymbol(
|
|
67855
67952
|
JsxNames.JSX,
|
|
67856
67953
|
1920 /* Namespace */,
|
|
67857
|
-
/*
|
|
67954
|
+
/*diagnostic*/
|
|
67858
67955
|
void 0
|
|
67859
67956
|
));
|
|
67860
67957
|
if (s === unknownSymbol) {
|
|
@@ -67948,7 +68045,7 @@ function createTypeChecker(host) {
|
|
|
67948
68045
|
function generateInitialErrorChain() {
|
|
67949
68046
|
const componentName = getTextOfNode(openingLikeElement.tagName);
|
|
67950
68047
|
return chainDiagnosticMessages(
|
|
67951
|
-
/*
|
|
68048
|
+
/*details*/
|
|
67952
68049
|
void 0,
|
|
67953
68050
|
Diagnostics._0_cannot_be_used_as_a_JSX_component,
|
|
67954
68051
|
componentName
|
|
@@ -68206,7 +68303,7 @@ function createTypeChecker(host) {
|
|
|
68206
68303
|
function getThisParameterFromNodeContext(node) {
|
|
68207
68304
|
const thisContainer = getThisContainer(
|
|
68208
68305
|
node,
|
|
68209
|
-
/*
|
|
68306
|
+
/*includeArrowFunctions*/
|
|
68210
68307
|
false,
|
|
68211
68308
|
/*includeClassComputedPropertyName*/
|
|
68212
68309
|
false
|
|
@@ -68344,9 +68441,9 @@ function createTypeChecker(host) {
|
|
|
68344
68441
|
if (symbol) {
|
|
68345
68442
|
markPropertyAsReferenced(
|
|
68346
68443
|
symbol,
|
|
68347
|
-
/*
|
|
68444
|
+
/*nodeForCheckWriteOnly*/
|
|
68348
68445
|
void 0,
|
|
68349
|
-
/*
|
|
68446
|
+
/*isSelfTypeAccess*/
|
|
68350
68447
|
false
|
|
68351
68448
|
);
|
|
68352
68449
|
}
|
|
@@ -68887,7 +68984,7 @@ function createTypeChecker(host) {
|
|
|
68887
68984
|
return isPropertyAccessible(
|
|
68888
68985
|
node,
|
|
68889
68986
|
node.kind === 209 /* PropertyAccessExpression */ && node.expression.kind === 107 /* SuperKeyword */,
|
|
68890
|
-
/*
|
|
68987
|
+
/*isWrite*/
|
|
68891
68988
|
false,
|
|
68892
68989
|
type,
|
|
68893
68990
|
property
|
|
@@ -68901,7 +68998,7 @@ function createTypeChecker(host) {
|
|
|
68901
68998
|
return !!prop && isPropertyAccessible(
|
|
68902
68999
|
node,
|
|
68903
69000
|
isSuper,
|
|
68904
|
-
/*
|
|
69001
|
+
/*isWrite*/
|
|
68905
69002
|
false,
|
|
68906
69003
|
type,
|
|
68907
69004
|
prop
|
|
@@ -69614,7 +69711,17 @@ function createTypeChecker(host) {
|
|
|
69614
69711
|
function isPromiseResolveArityError(node) {
|
|
69615
69712
|
if (!isCallExpression(node) || !isIdentifier(node.expression))
|
|
69616
69713
|
return false;
|
|
69617
|
-
const symbol = resolveName(
|
|
69714
|
+
const symbol = resolveName(
|
|
69715
|
+
node.expression,
|
|
69716
|
+
node.expression.escapedText,
|
|
69717
|
+
111551 /* Value */,
|
|
69718
|
+
/*nameNotFoundMessage*/
|
|
69719
|
+
void 0,
|
|
69720
|
+
/*nameArg*/
|
|
69721
|
+
void 0,
|
|
69722
|
+
/*isUse*/
|
|
69723
|
+
false
|
|
69724
|
+
);
|
|
69618
69725
|
const decl = symbol == null ? void 0 : symbol.valueDeclaration;
|
|
69619
69726
|
if (!decl || !isParameter(decl) || !isFunctionExpressionOrArrowFunction(decl.parent) || !isNewExpression(decl.parent.parent) || !isIdentifier(decl.parent.parent.expression)) {
|
|
69620
69727
|
return false;
|
|
@@ -70093,7 +70200,7 @@ function createTypeChecker(host) {
|
|
|
70093
70200
|
parameters,
|
|
70094
70201
|
/*resolvedReturnType*/
|
|
70095
70202
|
getIntersectionType(candidates.map(getReturnTypeOfSignature)),
|
|
70096
|
-
/*
|
|
70203
|
+
/*resolvedTypePredicate*/
|
|
70097
70204
|
void 0,
|
|
70098
70205
|
minArgumentCount,
|
|
70099
70206
|
flags
|
|
@@ -70214,7 +70321,7 @@ function createTypeChecker(host) {
|
|
|
70214
70321
|
if (isLineBreak(text.charCodeAt(skipTrivia(
|
|
70215
70322
|
text,
|
|
70216
70323
|
node.expression.end,
|
|
70217
|
-
/*
|
|
70324
|
+
/*stopAfterLineBreak*/
|
|
70218
70325
|
true
|
|
70219
70326
|
) - 1))) {
|
|
70220
70327
|
relatedInformation = createDiagnosticForNode(node.expression, Diagnostics.Are_you_missing_a_semicolon);
|
|
@@ -70393,7 +70500,7 @@ function createTypeChecker(host) {
|
|
|
70393
70500
|
}
|
|
70394
70501
|
if (!hasSignatures) {
|
|
70395
70502
|
errorInfo = chainDiagnosticMessages(
|
|
70396
|
-
/*
|
|
70503
|
+
/*details*/
|
|
70397
70504
|
void 0,
|
|
70398
70505
|
isCall ? Diagnostics.No_constituent_of_type_0_is_callable : Diagnostics.No_constituent_of_type_0_is_constructable,
|
|
70399
70506
|
typeToString(apparentType)
|
|
@@ -70434,7 +70541,7 @@ function createTypeChecker(host) {
|
|
|
70434
70541
|
if (isCallExpression(errorTarget.parent)) {
|
|
70435
70542
|
const { start, length: length2 } = getDiagnosticSpanForCallNode(
|
|
70436
70543
|
errorTarget.parent,
|
|
70437
|
-
/*
|
|
70544
|
+
/*doNotIncludeArguments*/
|
|
70438
70545
|
true
|
|
70439
70546
|
);
|
|
70440
70547
|
diagnostic.start = start;
|
|
@@ -70542,10 +70649,10 @@ function createTypeChecker(host) {
|
|
|
70542
70649
|
[factory.createParameterDeclaration(
|
|
70543
70650
|
/*modifiers*/
|
|
70544
70651
|
void 0,
|
|
70545
|
-
/*
|
|
70652
|
+
/*dotDotDotToken*/
|
|
70546
70653
|
void 0,
|
|
70547
70654
|
"props",
|
|
70548
|
-
/*
|
|
70655
|
+
/*questionToken*/
|
|
70549
70656
|
void 0,
|
|
70550
70657
|
nodeBuilder.typeToTypeNode(result, node)
|
|
70551
70658
|
)],
|
|
@@ -70565,7 +70672,7 @@ function createTypeChecker(host) {
|
|
|
70565
70672
|
void 0,
|
|
70566
70673
|
[parameterSymbol],
|
|
70567
70674
|
typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType,
|
|
70568
|
-
/*
|
|
70675
|
+
/*resolvedTypePredicate*/
|
|
70569
70676
|
void 0,
|
|
70570
70677
|
1,
|
|
70571
70678
|
0 /* None */
|
|
@@ -70635,8 +70742,11 @@ function createTypeChecker(host) {
|
|
|
70635
70742
|
return cached;
|
|
70636
70743
|
}
|
|
70637
70744
|
links.resolvedSignature = resolvingSignature;
|
|
70638
|
-
|
|
70745
|
+
let result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */);
|
|
70639
70746
|
if (result !== resolvingSignature) {
|
|
70747
|
+
if (links.resolvedSignature !== resolvingSignature) {
|
|
70748
|
+
result = links.resolvedSignature;
|
|
70749
|
+
}
|
|
70640
70750
|
links.resolvedSignature = flowLoopStart === flowLoopCount ? result : cached;
|
|
70641
70751
|
}
|
|
70642
70752
|
return result;
|
|
@@ -70882,9 +70992,9 @@ function createTypeChecker(host) {
|
|
|
70882
70992
|
const esModuleSymbol = resolveESModuleSymbol(
|
|
70883
70993
|
moduleSymbol,
|
|
70884
70994
|
specifier,
|
|
70885
|
-
/*
|
|
70995
|
+
/*dontResolveAlias*/
|
|
70886
70996
|
true,
|
|
70887
|
-
/*
|
|
70997
|
+
/*suppressInteropError*/
|
|
70888
70998
|
false
|
|
70889
70999
|
);
|
|
70890
71000
|
if (esModuleSymbol) {
|
|
@@ -70954,7 +71064,7 @@ function createTypeChecker(host) {
|
|
|
70954
71064
|
function isCommonJsRequire(node) {
|
|
70955
71065
|
if (!isRequireCall(
|
|
70956
71066
|
node,
|
|
70957
|
-
/*
|
|
71067
|
+
/*requireStringLiteralLikeArgument*/
|
|
70958
71068
|
true
|
|
70959
71069
|
)) {
|
|
70960
71070
|
return false;
|
|
@@ -70995,14 +71105,14 @@ function createTypeChecker(host) {
|
|
|
70995
71105
|
checkDeprecatedSignature(signature, node);
|
|
70996
71106
|
return getReturnTypeOfSignature(signature);
|
|
70997
71107
|
}
|
|
70998
|
-
function checkAssertion(node) {
|
|
71108
|
+
function checkAssertion(node, checkMode) {
|
|
70999
71109
|
if (node.kind === 214 /* TypeAssertionExpression */) {
|
|
71000
71110
|
const file = getSourceFileOfNode(node);
|
|
71001
71111
|
if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) {
|
|
71002
71112
|
grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead);
|
|
71003
71113
|
}
|
|
71004
71114
|
}
|
|
71005
|
-
return checkAssertionWorker(node,
|
|
71115
|
+
return checkAssertionWorker(node, checkMode);
|
|
71006
71116
|
}
|
|
71007
71117
|
function isValidConstAssertionArgument(node) {
|
|
71008
71118
|
switch (node.kind) {
|
|
@@ -71035,8 +71145,9 @@ function createTypeChecker(host) {
|
|
|
71035
71145
|
}
|
|
71036
71146
|
return false;
|
|
71037
71147
|
}
|
|
71038
|
-
function checkAssertionWorker(
|
|
71039
|
-
|
|
71148
|
+
function checkAssertionWorker(node, checkMode) {
|
|
71149
|
+
const { type, expression } = getAssertionTypeAndExpression(node);
|
|
71150
|
+
const exprType = checkExpression(expression, checkMode);
|
|
71040
71151
|
if (isConstTypeReference(type)) {
|
|
71041
71152
|
if (!isValidConstAssertionArgument(expression)) {
|
|
71042
71153
|
error(expression, Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals);
|
|
@@ -71044,7 +71155,29 @@ function createTypeChecker(host) {
|
|
|
71044
71155
|
return getRegularTypeOfLiteralType(exprType);
|
|
71045
71156
|
}
|
|
71046
71157
|
checkSourceElement(type);
|
|
71047
|
-
|
|
71158
|
+
checkNodeDeferred(node);
|
|
71159
|
+
return getTypeFromTypeNode(type);
|
|
71160
|
+
}
|
|
71161
|
+
function getAssertionTypeAndExpression(node) {
|
|
71162
|
+
let type;
|
|
71163
|
+
let expression;
|
|
71164
|
+
switch (node.kind) {
|
|
71165
|
+
case 232 /* AsExpression */:
|
|
71166
|
+
case 214 /* TypeAssertionExpression */:
|
|
71167
|
+
type = node.type;
|
|
71168
|
+
expression = node.expression;
|
|
71169
|
+
break;
|
|
71170
|
+
case 215 /* ParenthesizedExpression */:
|
|
71171
|
+
type = getJSDocTypeAssertionType(node);
|
|
71172
|
+
expression = node.expression;
|
|
71173
|
+
break;
|
|
71174
|
+
}
|
|
71175
|
+
return { type, expression };
|
|
71176
|
+
}
|
|
71177
|
+
function checkAssertionDeferred(node) {
|
|
71178
|
+
const { type, expression } = getAssertionTypeAndExpression(node);
|
|
71179
|
+
const errNode = isParenthesizedExpression(node) ? type : node;
|
|
71180
|
+
const exprType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(checkExpression(expression)));
|
|
71048
71181
|
const targetType = getTypeFromTypeNode(type);
|
|
71049
71182
|
if (!isErrorType(targetType)) {
|
|
71050
71183
|
addLazyDiagnostic(() => {
|
|
@@ -71059,7 +71192,6 @@ function createTypeChecker(host) {
|
|
|
71059
71192
|
}
|
|
71060
71193
|
});
|
|
71061
71194
|
}
|
|
71062
|
-
return targetType;
|
|
71063
71195
|
}
|
|
71064
71196
|
function checkNonNullChain(node) {
|
|
71065
71197
|
const leftType = checkExpression(node.expression);
|
|
@@ -71111,7 +71243,14 @@ function createTypeChecker(host) {
|
|
|
71111
71243
|
hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0);
|
|
71112
71244
|
hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);
|
|
71113
71245
|
if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {
|
|
71114
|
-
const result3 = createAnonymousType(
|
|
71246
|
+
const result3 = createAnonymousType(
|
|
71247
|
+
/*symbol*/
|
|
71248
|
+
void 0,
|
|
71249
|
+
resolved.members,
|
|
71250
|
+
callSignatures,
|
|
71251
|
+
constructSignatures,
|
|
71252
|
+
resolved.indexInfos
|
|
71253
|
+
);
|
|
71115
71254
|
result3.objectFlags |= 8388608 /* InstantiationExpressionType */;
|
|
71116
71255
|
result3.node = node;
|
|
71117
71256
|
return result3;
|
|
@@ -71300,12 +71439,12 @@ function createTypeChecker(host) {
|
|
|
71300
71439
|
}
|
|
71301
71440
|
return void 0;
|
|
71302
71441
|
}
|
|
71303
|
-
function getRestTypeAtPosition(source, pos
|
|
71442
|
+
function getRestTypeAtPosition(source, pos) {
|
|
71304
71443
|
const parameterCount = getParameterCount(source);
|
|
71305
71444
|
const minArgumentCount = getMinArgumentCount(source);
|
|
71306
71445
|
const restType = getEffectiveRestType(source);
|
|
71307
71446
|
if (restType && pos >= parameterCount - 1) {
|
|
71308
|
-
return pos === parameterCount - 1 ? restType : createArrayType(getIndexedAccessType(restType, numberType)
|
|
71447
|
+
return pos === parameterCount - 1 ? restType : createArrayType(getIndexedAccessType(restType, numberType));
|
|
71309
71448
|
}
|
|
71310
71449
|
const types = [];
|
|
71311
71450
|
const flags = [];
|
|
@@ -71323,7 +71462,13 @@ function createTypeChecker(host) {
|
|
|
71323
71462
|
names.push(name);
|
|
71324
71463
|
}
|
|
71325
71464
|
}
|
|
71326
|
-
return createTupleType(
|
|
71465
|
+
return createTupleType(
|
|
71466
|
+
types,
|
|
71467
|
+
flags,
|
|
71468
|
+
/*readonly*/
|
|
71469
|
+
false,
|
|
71470
|
+
length(names) === length(types) ? names : void 0
|
|
71471
|
+
);
|
|
71327
71472
|
}
|
|
71328
71473
|
function getParameterCount(signature) {
|
|
71329
71474
|
const length2 = signature.parameters.length;
|
|
@@ -71553,13 +71698,13 @@ function createTypeChecker(host) {
|
|
|
71553
71698
|
}
|
|
71554
71699
|
function createClassAccessorDecoratorTargetType(thisType, valueType) {
|
|
71555
71700
|
return tryCreateTypeReference(getGlobalClassAccessorDecoratorTargetType(
|
|
71556
|
-
/*
|
|
71701
|
+
/*reportErrors*/
|
|
71557
71702
|
true
|
|
71558
71703
|
), [thisType, valueType]);
|
|
71559
71704
|
}
|
|
71560
71705
|
function createClassAccessorDecoratorResultType(thisType, valueType) {
|
|
71561
71706
|
return tryCreateTypeReference(getGlobalClassAccessorDecoratorResultType(
|
|
71562
|
-
/*
|
|
71707
|
+
/*reportErrors*/
|
|
71563
71708
|
true
|
|
71564
71709
|
), [thisType, valueType]);
|
|
71565
71710
|
}
|
|
@@ -72077,8 +72222,11 @@ function createTypeChecker(host) {
|
|
|
72077
72222
|
}
|
|
72078
72223
|
const returnType = getReturnTypeFromBody(node, checkMode);
|
|
72079
72224
|
const returnOnlySignature = createSignature(
|
|
72225
|
+
/*declaration*/
|
|
72080
72226
|
void 0,
|
|
72227
|
+
/*typeParameters*/
|
|
72081
72228
|
void 0,
|
|
72229
|
+
/*thisParameter*/
|
|
72082
72230
|
void 0,
|
|
72083
72231
|
emptyArray,
|
|
72084
72232
|
returnType,
|
|
@@ -73126,6 +73274,7 @@ function createTypeChecker(host) {
|
|
|
73126
73274
|
prop.valueDeclaration,
|
|
73127
73275
|
name,
|
|
73128
73276
|
788968 /* Type */,
|
|
73277
|
+
/*nameNotFoundMessage*/
|
|
73129
73278
|
void 0,
|
|
73130
73279
|
name,
|
|
73131
73280
|
/*isUse*/
|
|
@@ -73732,7 +73881,7 @@ function createTypeChecker(host) {
|
|
|
73732
73881
|
}
|
|
73733
73882
|
if (isCallExpression(expr) && expr.expression.kind !== 107 /* SuperKeyword */ && !isRequireCall(
|
|
73734
73883
|
expr,
|
|
73735
|
-
/*
|
|
73884
|
+
/*requireStringLiteralLikeArgument*/
|
|
73736
73885
|
true
|
|
73737
73886
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
73738
73887
|
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));
|
|
@@ -73792,8 +73941,7 @@ function createTypeChecker(host) {
|
|
|
73792
73941
|
return checkSatisfiesExpressionWorker(node.expression, getJSDocSatisfiesExpressionType(node), checkMode);
|
|
73793
73942
|
}
|
|
73794
73943
|
if (isJSDocTypeAssertion(node)) {
|
|
73795
|
-
|
|
73796
|
-
return checkAssertionWorker(type, type, node.expression, checkMode);
|
|
73944
|
+
return checkAssertionWorker(node, checkMode);
|
|
73797
73945
|
}
|
|
73798
73946
|
}
|
|
73799
73947
|
return checkExpression(node.expression, checkMode);
|
|
@@ -73868,7 +74016,7 @@ function createTypeChecker(host) {
|
|
|
73868
74016
|
return checkTypeOfExpression(node);
|
|
73869
74017
|
case 214 /* TypeAssertionExpression */:
|
|
73870
74018
|
case 232 /* AsExpression */:
|
|
73871
|
-
return checkAssertion(node);
|
|
74019
|
+
return checkAssertion(node, checkMode);
|
|
73872
74020
|
case 233 /* NonNullExpression */:
|
|
73873
74021
|
return checkNonNullAssertion(node);
|
|
73874
74022
|
case 231 /* ExpressionWithTypeArguments */:
|
|
@@ -75385,7 +75533,7 @@ function createTypeChecker(host) {
|
|
|
75385
75533
|
void 0,
|
|
75386
75534
|
/*nameArg*/
|
|
75387
75535
|
void 0,
|
|
75388
|
-
/*
|
|
75536
|
+
/*isUse*/
|
|
75389
75537
|
true
|
|
75390
75538
|
);
|
|
75391
75539
|
if (rootSymbol && rootSymbol.flags & 2097152 /* Alias */) {
|
|
@@ -76129,7 +76277,7 @@ function createTypeChecker(host) {
|
|
|
76129
76277
|
node,
|
|
76130
76278
|
node.name.escapedText,
|
|
76131
76279
|
3 /* Variable */,
|
|
76132
|
-
/*
|
|
76280
|
+
/*nameNotFoundMessage*/
|
|
76133
76281
|
void 0,
|
|
76134
76282
|
/*nameArg*/
|
|
76135
76283
|
void 0,
|
|
@@ -76947,12 +77095,12 @@ function createTypeChecker(host) {
|
|
|
76947
77095
|
const suggestAwait = (
|
|
76948
77096
|
// for (const x of Promise<...>) or [...Promise<...>]
|
|
76949
77097
|
!!getAwaitedTypeOfPromise(type) || !allowAsyncIterables && isForOfStatement(errorNode.parent) && errorNode.parent.expression === errorNode && getGlobalAsyncIterableType(
|
|
76950
|
-
|
|
77098
|
+
/*reportErrors*/
|
|
76951
77099
|
false
|
|
76952
77100
|
) !== emptyGenericType && isTypeAssignableTo(
|
|
76953
77101
|
type,
|
|
76954
77102
|
getGlobalAsyncIterableType(
|
|
76955
|
-
|
|
77103
|
+
/*reportErrors*/
|
|
76956
77104
|
false
|
|
76957
77105
|
)
|
|
76958
77106
|
)
|
|
@@ -77820,7 +77968,7 @@ function createTypeChecker(host) {
|
|
|
77820
77968
|
type,
|
|
77821
77969
|
typeWithThis,
|
|
77822
77970
|
param,
|
|
77823
|
-
/*
|
|
77971
|
+
/*memberIsParameterProperty*/
|
|
77824
77972
|
true
|
|
77825
77973
|
);
|
|
77826
77974
|
}
|
|
@@ -77834,7 +77982,7 @@ function createTypeChecker(host) {
|
|
|
77834
77982
|
type,
|
|
77835
77983
|
typeWithThis,
|
|
77836
77984
|
member,
|
|
77837
|
-
/*
|
|
77985
|
+
/*memberIsParameterProperty*/
|
|
77838
77986
|
false
|
|
77839
77987
|
);
|
|
77840
77988
|
}
|
|
@@ -77938,7 +78086,7 @@ function createTypeChecker(host) {
|
|
|
77938
78086
|
getTypeOfSymbol(prop),
|
|
77939
78087
|
getTypeOfSymbol(baseProp),
|
|
77940
78088
|
member.name || member,
|
|
77941
|
-
/*
|
|
78089
|
+
/*headMessage*/
|
|
77942
78090
|
void 0,
|
|
77943
78091
|
rootChain
|
|
77944
78092
|
)) {
|
|
@@ -77986,7 +78134,7 @@ function createTypeChecker(host) {
|
|
|
77986
78134
|
memberHasOverrideModifier,
|
|
77987
78135
|
hasAbstractModifier(member),
|
|
77988
78136
|
isStatic(member),
|
|
77989
|
-
/*
|
|
78137
|
+
/*memberIsParameterProperty*/
|
|
77990
78138
|
false,
|
|
77991
78139
|
symbolName(memberSymbol)
|
|
77992
78140
|
);
|
|
@@ -79454,6 +79602,10 @@ function createTypeChecker(host) {
|
|
|
79454
79602
|
case 282 /* JsxElement */:
|
|
79455
79603
|
checkJsxElementDeferred(node);
|
|
79456
79604
|
break;
|
|
79605
|
+
case 214 /* TypeAssertionExpression */:
|
|
79606
|
+
case 232 /* AsExpression */:
|
|
79607
|
+
case 215 /* ParenthesizedExpression */:
|
|
79608
|
+
checkAssertionDeferred(node);
|
|
79457
79609
|
}
|
|
79458
79610
|
currentNode = saveCurrentNode;
|
|
79459
79611
|
(_b = tracing) == null ? void 0 : _b.pop();
|
|
@@ -79816,7 +79968,12 @@ function createTypeChecker(host) {
|
|
|
79816
79968
|
meaning = 1920 /* Namespace */;
|
|
79817
79969
|
}
|
|
79818
79970
|
meaning |= 2097152 /* Alias */;
|
|
79819
|
-
const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName(
|
|
79971
|
+
const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName(
|
|
79972
|
+
name,
|
|
79973
|
+
meaning,
|
|
79974
|
+
/*ignoreErrors*/
|
|
79975
|
+
true
|
|
79976
|
+
) : void 0;
|
|
79820
79977
|
if (entityNameSymbol) {
|
|
79821
79978
|
return entityNameSymbol;
|
|
79822
79979
|
}
|
|
@@ -79845,7 +80002,7 @@ function createTypeChecker(host) {
|
|
|
79845
80002
|
meaning,
|
|
79846
80003
|
/*ignoreErrors*/
|
|
79847
80004
|
false,
|
|
79848
|
-
/*
|
|
80005
|
+
/*dontResolveAlias*/
|
|
79849
80006
|
true,
|
|
79850
80007
|
getHostSignatureFromJSDoc(name)
|
|
79851
80008
|
);
|
|
@@ -79868,7 +80025,7 @@ function createTypeChecker(host) {
|
|
|
79868
80025
|
meaning,
|
|
79869
80026
|
/*ignoreErrors*/
|
|
79870
80027
|
true,
|
|
79871
|
-
/*
|
|
80028
|
+
/*dontResolveAlias*/
|
|
79872
80029
|
true,
|
|
79873
80030
|
getSourceFileOfNode(container)
|
|
79874
80031
|
) || result;
|
|
@@ -80041,7 +80198,7 @@ function createTypeChecker(host) {
|
|
|
80041
80198
|
case 14 /* NoSubstitutionTemplateLiteral */:
|
|
80042
80199
|
if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 270 /* ImportDeclaration */ || node.parent.kind === 276 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || (isInJSFile(node) && getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */ && isRequireCall(
|
|
80043
80200
|
node.parent,
|
|
80044
|
-
/*
|
|
80201
|
+
/*requireStringLiteralLikeArgument*/
|
|
80045
80202
|
false
|
|
80046
80203
|
) || isImportCall(node.parent)) || isLiteralTypeNode(node.parent) && isLiteralImportTypeNode(node.parent.parent) && node.parent.parent.argument === node.parent) {
|
|
80047
80204
|
return resolveExternalModuleName(node, node, ignoreErrors);
|
|
@@ -80655,7 +80812,7 @@ function createTypeChecker(host) {
|
|
|
80655
80812
|
location,
|
|
80656
80813
|
reference.escapedText,
|
|
80657
80814
|
111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */,
|
|
80658
|
-
/*
|
|
80815
|
+
/*nameNotFoundMessage*/
|
|
80659
80816
|
void 0,
|
|
80660
80817
|
/*nameArg*/
|
|
80661
80818
|
void 0,
|
|
@@ -80672,7 +80829,7 @@ function createTypeChecker(host) {
|
|
|
80672
80829
|
reference,
|
|
80673
80830
|
reference.escapedText,
|
|
80674
80831
|
111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */,
|
|
80675
|
-
/*
|
|
80832
|
+
/*nameNotFoundMessage*/
|
|
80676
80833
|
void 0,
|
|
80677
80834
|
/*nameArg*/
|
|
80678
80835
|
void 0,
|
|
@@ -81089,7 +81246,14 @@ function createTypeChecker(host) {
|
|
|
81089
81246
|
anyArrayType = createArrayType(anyType);
|
|
81090
81247
|
autoArrayType = createArrayType(autoType);
|
|
81091
81248
|
if (autoArrayType === emptyObjectType) {
|
|
81092
|
-
autoArrayType = createAnonymousType(
|
|
81249
|
+
autoArrayType = createAnonymousType(
|
|
81250
|
+
/*symbol*/
|
|
81251
|
+
void 0,
|
|
81252
|
+
emptySymbols,
|
|
81253
|
+
emptyArray,
|
|
81254
|
+
emptyArray,
|
|
81255
|
+
emptyArray
|
|
81256
|
+
);
|
|
81093
81257
|
}
|
|
81094
81258
|
globalReadonlyArrayType = getGlobalTypeOrUndefined(
|
|
81095
81259
|
"ReadonlyArray",
|
|
@@ -82207,7 +82371,7 @@ function createTypeChecker(host) {
|
|
|
82207
82371
|
if (node.label && current.label.escapedText === node.label.escapedText) {
|
|
82208
82372
|
const isMisplacedContinueLabel = node.kind === 249 /* ContinueStatement */ && !isIterationStatement(
|
|
82209
82373
|
current.statement,
|
|
82210
|
-
/*
|
|
82374
|
+
/*lookInLabeledStatements*/
|
|
82211
82375
|
true
|
|
82212
82376
|
);
|
|
82213
82377
|
if (isMisplacedContinueLabel) {
|
|
@@ -82224,7 +82388,7 @@ function createTypeChecker(host) {
|
|
|
82224
82388
|
default:
|
|
82225
82389
|
if (isIterationStatement(
|
|
82226
82390
|
current,
|
|
82227
|
-
/*
|
|
82391
|
+
/*lookInLabeledStatements*/
|
|
82228
82392
|
false
|
|
82229
82393
|
) && !node.label) {
|
|
82230
82394
|
return false;
|
|
@@ -85832,7 +85996,7 @@ function transformTypeScript(context) {
|
|
|
85832
85996
|
let facts = 0 /* None */;
|
|
85833
85997
|
if (some(getProperties(
|
|
85834
85998
|
node,
|
|
85835
|
-
/*
|
|
85999
|
+
/*requireInitializer*/
|
|
85836
86000
|
true,
|
|
85837
86001
|
/*isStatic*/
|
|
85838
86002
|
true
|
|
@@ -87702,10 +87866,10 @@ function transformClassFields(context) {
|
|
|
87702
87866
|
filter(node.modifiers, (m) => isModifier(m) && !isStaticModifier(m) && !isAccessorModifier(m)),
|
|
87703
87867
|
node.asteriskToken,
|
|
87704
87868
|
functionName,
|
|
87705
|
-
/*
|
|
87869
|
+
/*typeParameters*/
|
|
87706
87870
|
void 0,
|
|
87707
87871
|
visitParameterList(node.parameters, visitor, context),
|
|
87708
|
-
/*
|
|
87872
|
+
/*type*/
|
|
87709
87873
|
void 0,
|
|
87710
87874
|
visitFunctionBody(node.body, visitor, context)
|
|
87711
87875
|
)
|
|
@@ -88310,7 +88474,7 @@ function transformClassFields(context) {
|
|
|
88310
88474
|
info.brandCheckIdentifier,
|
|
88311
88475
|
right,
|
|
88312
88476
|
info.kind,
|
|
88313
|
-
/*
|
|
88477
|
+
/*f*/
|
|
88314
88478
|
void 0
|
|
88315
88479
|
);
|
|
88316
88480
|
case "f" /* Field */:
|
|
@@ -88382,7 +88546,7 @@ function transformClassFields(context) {
|
|
|
88382
88546
|
if (facts & 4 /* NeedsClassSuperReference */) {
|
|
88383
88547
|
const temp = factory2.createTempVariable(
|
|
88384
88548
|
hoistVariableDeclaration,
|
|
88385
|
-
/*
|
|
88549
|
+
/*reservedInNestedScopes*/
|
|
88386
88550
|
true
|
|
88387
88551
|
);
|
|
88388
88552
|
getClassLexicalEnvironment().superClassReference = temp;
|
|
@@ -89215,7 +89379,7 @@ function transformClassFields(context) {
|
|
|
89215
89379
|
const identifier = typeof name === "object" ? factory2.getGeneratedNameForNode(name, 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */, prefix, suffix) : typeof name === "string" ? factory2.createUniqueName(name, 16 /* Optimistic */, prefix, suffix) : factory2.createTempVariable(
|
|
89216
89380
|
/*recordTempVariable*/
|
|
89217
89381
|
void 0,
|
|
89218
|
-
/*
|
|
89382
|
+
/*reservedInNestedScopes*/
|
|
89219
89383
|
true,
|
|
89220
89384
|
prefix,
|
|
89221
89385
|
suffix
|
|
@@ -89921,11 +90085,11 @@ function transformLegacyDecorators(context) {
|
|
|
89921
90085
|
}
|
|
89922
90086
|
function visitClassDeclaration(node) {
|
|
89923
90087
|
if (!(classOrConstructorParameterIsDecorated(
|
|
89924
|
-
/*
|
|
90088
|
+
/*useLegacyDecorators*/
|
|
89925
90089
|
true,
|
|
89926
90090
|
node
|
|
89927
90091
|
) || childIsDecorated(
|
|
89928
|
-
/*
|
|
90092
|
+
/*useLegacyDecorators*/
|
|
89929
90093
|
true,
|
|
89930
90094
|
node
|
|
89931
90095
|
))) {
|
|
@@ -90180,7 +90344,7 @@ function transformLegacyDecorators(context) {
|
|
|
90180
90344
|
}
|
|
90181
90345
|
function isDecoratedClassElement(member, isStaticElement, parent) {
|
|
90182
90346
|
return nodeOrChildIsDecorated(
|
|
90183
|
-
/*
|
|
90347
|
+
/*useLegacyDecorators*/
|
|
90184
90348
|
true,
|
|
90185
90349
|
member,
|
|
90186
90350
|
parent
|
|
@@ -90532,7 +90696,7 @@ function transformESDecorators(context) {
|
|
|
90532
90696
|
case 223 /* PostfixUnaryExpression */:
|
|
90533
90697
|
return visitPreOrPostfixUnaryExpression(
|
|
90534
90698
|
node,
|
|
90535
|
-
/*
|
|
90699
|
+
/*discarded*/
|
|
90536
90700
|
false
|
|
90537
90701
|
);
|
|
90538
90702
|
case 209 /* PropertyAccessExpression */:
|
|
@@ -90683,7 +90847,7 @@ function transformESDecorators(context) {
|
|
|
90683
90847
|
let hasStaticPrivateClassElements = false;
|
|
90684
90848
|
for (const member of node.members) {
|
|
90685
90849
|
if (isNamedClassElement(member) && nodeOrChildIsDecorated(
|
|
90686
|
-
/*
|
|
90850
|
+
/*useLegacyDecorators*/
|
|
90687
90851
|
false,
|
|
90688
90852
|
member,
|
|
90689
90853
|
node
|
|
@@ -90922,7 +91086,7 @@ function transformESDecorators(context) {
|
|
|
90922
91086
|
if (leadingBlockStatements) {
|
|
90923
91087
|
const leadingStaticBlockBody = factory2.createBlock(
|
|
90924
91088
|
leadingBlockStatements,
|
|
90925
|
-
/*
|
|
91089
|
+
/*multiLine*/
|
|
90926
91090
|
true
|
|
90927
91091
|
);
|
|
90928
91092
|
const leadingStaticBlock = factory2.createClassStaticBlockDeclaration(leadingStaticBlockBody);
|
|
@@ -90937,7 +91101,7 @@ function transformESDecorators(context) {
|
|
|
90937
91101
|
if (trailingBlockStatements) {
|
|
90938
91102
|
const trailingStaticBlockBody = factory2.createBlock(
|
|
90939
91103
|
trailingBlockStatements,
|
|
90940
|
-
/*
|
|
91104
|
+
/*multiLine*/
|
|
90941
91105
|
true
|
|
90942
91106
|
);
|
|
90943
91107
|
const trailingStaticBlock = factory2.createClassStaticBlockDeclaration(trailingStaticBlockBody);
|
|
@@ -91003,11 +91167,11 @@ function transformESDecorators(context) {
|
|
|
91003
91167
|
}
|
|
91004
91168
|
function isDecoratedClassLike(node) {
|
|
91005
91169
|
return classOrConstructorParameterIsDecorated(
|
|
91006
|
-
/*
|
|
91170
|
+
/*useLegacyDecorators*/
|
|
91007
91171
|
false,
|
|
91008
91172
|
node
|
|
91009
91173
|
) || childIsDecorated(
|
|
91010
|
-
/*
|
|
91174
|
+
/*useLegacyDecorators*/
|
|
91011
91175
|
false,
|
|
91012
91176
|
node
|
|
91013
91177
|
);
|
|
@@ -92687,15 +92851,15 @@ function createSuperAccessVariableStatement(factory2, resolver, node, names) {
|
|
|
92687
92851
|
getterAndSetter.push(factory2.createPropertyAssignment(
|
|
92688
92852
|
"get",
|
|
92689
92853
|
factory2.createArrowFunction(
|
|
92690
|
-
/*
|
|
92854
|
+
/*modifiers*/
|
|
92691
92855
|
void 0,
|
|
92692
|
-
/*
|
|
92856
|
+
/*typeParameters*/
|
|
92693
92857
|
void 0,
|
|
92694
92858
|
/* parameters */
|
|
92695
92859
|
[],
|
|
92696
|
-
/*
|
|
92860
|
+
/*type*/
|
|
92697
92861
|
void 0,
|
|
92698
|
-
/*
|
|
92862
|
+
/*equalsGreaterThanToken*/
|
|
92699
92863
|
void 0,
|
|
92700
92864
|
setEmitFlags(
|
|
92701
92865
|
factory2.createPropertyAccessExpression(
|
|
@@ -92714,29 +92878,29 @@ function createSuperAccessVariableStatement(factory2, resolver, node, names) {
|
|
|
92714
92878
|
factory2.createPropertyAssignment(
|
|
92715
92879
|
"set",
|
|
92716
92880
|
factory2.createArrowFunction(
|
|
92717
|
-
/*
|
|
92881
|
+
/*modifiers*/
|
|
92718
92882
|
void 0,
|
|
92719
|
-
/*
|
|
92883
|
+
/*typeParameters*/
|
|
92720
92884
|
void 0,
|
|
92721
92885
|
/* parameters */
|
|
92722
92886
|
[
|
|
92723
92887
|
factory2.createParameterDeclaration(
|
|
92724
|
-
/*
|
|
92888
|
+
/*modifiers*/
|
|
92725
92889
|
void 0,
|
|
92726
|
-
/*
|
|
92890
|
+
/*dotDotDotToken*/
|
|
92727
92891
|
void 0,
|
|
92728
92892
|
"v",
|
|
92729
|
-
/*
|
|
92893
|
+
/*questionToken*/
|
|
92730
92894
|
void 0,
|
|
92731
|
-
/*
|
|
92895
|
+
/*type*/
|
|
92732
92896
|
void 0,
|
|
92733
|
-
/*
|
|
92897
|
+
/*initializer*/
|
|
92734
92898
|
void 0
|
|
92735
92899
|
)
|
|
92736
92900
|
],
|
|
92737
|
-
/*
|
|
92901
|
+
/*type*/
|
|
92738
92902
|
void 0,
|
|
92739
|
-
/*
|
|
92903
|
+
/*equalsGreaterThanToken*/
|
|
92740
92904
|
void 0,
|
|
92741
92905
|
factory2.createAssignment(
|
|
92742
92906
|
setEmitFlags(
|
|
@@ -92763,7 +92927,7 @@ function createSuperAccessVariableStatement(factory2, resolver, node, names) {
|
|
|
92763
92927
|
);
|
|
92764
92928
|
});
|
|
92765
92929
|
return factory2.createVariableStatement(
|
|
92766
|
-
/*
|
|
92930
|
+
/*modifiers*/
|
|
92767
92931
|
void 0,
|
|
92768
92932
|
factory2.createVariableDeclarationList(
|
|
92769
92933
|
[
|
|
@@ -92771,20 +92935,20 @@ function createSuperAccessVariableStatement(factory2, resolver, node, names) {
|
|
|
92771
92935
|
factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */),
|
|
92772
92936
|
/*exclamationToken*/
|
|
92773
92937
|
void 0,
|
|
92774
|
-
/*
|
|
92938
|
+
/*type*/
|
|
92775
92939
|
void 0,
|
|
92776
92940
|
factory2.createCallExpression(
|
|
92777
92941
|
factory2.createPropertyAccessExpression(
|
|
92778
92942
|
factory2.createIdentifier("Object"),
|
|
92779
92943
|
"create"
|
|
92780
92944
|
),
|
|
92781
|
-
/*
|
|
92945
|
+
/*typeArguments*/
|
|
92782
92946
|
void 0,
|
|
92783
92947
|
[
|
|
92784
92948
|
factory2.createNull(),
|
|
92785
92949
|
factory2.createObjectLiteralExpression(
|
|
92786
92950
|
accessors,
|
|
92787
|
-
/*
|
|
92951
|
+
/*multiLine*/
|
|
92788
92952
|
true
|
|
92789
92953
|
)
|
|
92790
92954
|
]
|
|
@@ -93656,7 +93820,7 @@ function transformES2018(context) {
|
|
|
93656
93820
|
enclosingFunctionFlags & 2 /* Async */ ? void 0 : node.asteriskToken,
|
|
93657
93821
|
visitNode(node.name, visitor, isPropertyName),
|
|
93658
93822
|
visitNode(
|
|
93659
|
-
/*
|
|
93823
|
+
/*node*/
|
|
93660
93824
|
void 0,
|
|
93661
93825
|
visitor,
|
|
93662
93826
|
isQuestionToken
|
|
@@ -93882,7 +94046,7 @@ function transformES2018(context) {
|
|
|
93882
94046
|
context,
|
|
93883
94047
|
1 /* ObjectRest */,
|
|
93884
94048
|
factory2.getGeneratedNameForNode(parameter),
|
|
93885
|
-
/*
|
|
94049
|
+
/*hoistTempVariables*/
|
|
93886
94050
|
false,
|
|
93887
94051
|
/*skipInitializer*/
|
|
93888
94052
|
true
|
|
@@ -94425,7 +94589,7 @@ function transformJsx(context) {
|
|
|
94425
94589
|
}
|
|
94426
94590
|
const declaration = factory2.createVariableDeclaration(
|
|
94427
94591
|
factory2.createUniqueName("_jsxFileName", 16 /* Optimistic */ | 32 /* FileLevel */),
|
|
94428
|
-
/*
|
|
94592
|
+
/*exclamationToken*/
|
|
94429
94593
|
void 0,
|
|
94430
94594
|
/*type*/
|
|
94431
94595
|
void 0,
|
|
@@ -94494,7 +94658,7 @@ function transformJsx(context) {
|
|
|
94494
94658
|
/*modifiers*/
|
|
94495
94659
|
void 0,
|
|
94496
94660
|
factory2.createImportClause(
|
|
94497
|
-
/*
|
|
94661
|
+
/*isTypeOnly*/
|
|
94498
94662
|
false,
|
|
94499
94663
|
/*name*/
|
|
94500
94664
|
void 0,
|
|
@@ -94517,12 +94681,12 @@ function transformJsx(context) {
|
|
|
94517
94681
|
factory2.createVariableDeclarationList([
|
|
94518
94682
|
factory2.createVariableDeclaration(
|
|
94519
94683
|
factory2.createObjectBindingPattern(arrayFrom(importSpecifiersMap.values(), (s) => factory2.createBindingElement(
|
|
94520
|
-
/*
|
|
94684
|
+
/*dotDotDotToken*/
|
|
94521
94685
|
void 0,
|
|
94522
94686
|
s.propertyName,
|
|
94523
94687
|
s.name
|
|
94524
94688
|
))),
|
|
94525
|
-
/*
|
|
94689
|
+
/*exclamationToken*/
|
|
94526
94690
|
void 0,
|
|
94527
94691
|
/*type*/
|
|
94528
94692
|
void 0,
|
|
@@ -96839,7 +97003,7 @@ function transformES2015(context) {
|
|
|
96839
97003
|
visitor,
|
|
96840
97004
|
context,
|
|
96841
97005
|
0 /* All */,
|
|
96842
|
-
/*
|
|
97006
|
+
/*rval*/
|
|
96843
97007
|
void 0,
|
|
96844
97008
|
(ancestorFacts & 32 /* ExportedVariableStatement */) !== 0
|
|
96845
97009
|
);
|
|
@@ -101202,7 +101366,7 @@ function transformModule(context) {
|
|
|
101202
101366
|
/*whenTrue*/
|
|
101203
101367
|
createImportCallExpressionCommonJS(
|
|
101204
101368
|
temp,
|
|
101205
|
-
/*
|
|
101369
|
+
/*isInlineable*/
|
|
101206
101370
|
true
|
|
101207
101371
|
),
|
|
101208
101372
|
/*colonToken*/
|
|
@@ -101638,9 +101802,9 @@ function transformModule(context) {
|
|
|
101638
101802
|
createExportExpression(
|
|
101639
101803
|
factory2.getExportName(specifier),
|
|
101640
101804
|
exportedValue,
|
|
101641
|
-
/*
|
|
101805
|
+
/*location*/
|
|
101642
101806
|
void 0,
|
|
101643
|
-
/*
|
|
101807
|
+
/*liveBinding*/
|
|
101644
101808
|
true
|
|
101645
101809
|
)
|
|
101646
101810
|
),
|
|
@@ -101950,7 +102114,7 @@ function transformModule(context) {
|
|
|
101950
102114
|
statements = appendExportsOfDeclaration(
|
|
101951
102115
|
statements,
|
|
101952
102116
|
importBinding,
|
|
101953
|
-
/*
|
|
102117
|
+
/*liveBinding*/
|
|
101954
102118
|
true
|
|
101955
102119
|
);
|
|
101956
102120
|
}
|
|
@@ -102019,7 +102183,7 @@ function transformModule(context) {
|
|
|
102019
102183
|
name,
|
|
102020
102184
|
/*location*/
|
|
102021
102185
|
exportSpecifier.name,
|
|
102022
|
-
/*
|
|
102186
|
+
/*allowComments*/
|
|
102023
102187
|
void 0,
|
|
102024
102188
|
liveBinding
|
|
102025
102189
|
);
|
|
@@ -102063,7 +102227,7 @@ function transformModule(context) {
|
|
|
102063
102227
|
const statement = setTextRange(factory2.createExpressionStatement(createExportExpression(
|
|
102064
102228
|
name,
|
|
102065
102229
|
value,
|
|
102066
|
-
/*
|
|
102230
|
+
/*location*/
|
|
102067
102231
|
void 0,
|
|
102068
102232
|
liveBinding
|
|
102069
102233
|
)), location);
|
|
@@ -102538,7 +102702,7 @@ function transformSystemModule(context) {
|
|
|
102538
102702
|
void 0,
|
|
102539
102703
|
factory2.createObjectLiteralExpression(
|
|
102540
102704
|
exportedNames,
|
|
102541
|
-
/*
|
|
102705
|
+
/*multiLine*/
|
|
102542
102706
|
true
|
|
102543
102707
|
)
|
|
102544
102708
|
)
|
|
@@ -102630,7 +102794,7 @@ function transformSystemModule(context) {
|
|
|
102630
102794
|
)
|
|
102631
102795
|
)
|
|
102632
102796
|
],
|
|
102633
|
-
/*
|
|
102797
|
+
/*multiLine*/
|
|
102634
102798
|
true
|
|
102635
102799
|
)
|
|
102636
102800
|
);
|
|
@@ -102695,7 +102859,7 @@ function transformSystemModule(context) {
|
|
|
102695
102859
|
void 0,
|
|
102696
102860
|
[factory2.createObjectLiteralExpression(
|
|
102697
102861
|
properties,
|
|
102698
|
-
/*
|
|
102862
|
+
/*multiLine*/
|
|
102699
102863
|
true
|
|
102700
102864
|
)]
|
|
102701
102865
|
)
|
|
@@ -104228,18 +104392,18 @@ function isInternalDeclaration(node, currentSourceFile) {
|
|
|
104228
104392
|
getTrailingCommentRanges(text, skipTrivia(
|
|
104229
104393
|
text,
|
|
104230
104394
|
previousSibling.end + 1,
|
|
104231
|
-
/*
|
|
104395
|
+
/*stopAfterLineBreak*/
|
|
104232
104396
|
false,
|
|
104233
|
-
/*
|
|
104397
|
+
/*stopAtComments*/
|
|
104234
104398
|
true
|
|
104235
104399
|
)),
|
|
104236
104400
|
getLeadingCommentRanges(text, node.pos)
|
|
104237
104401
|
) : getTrailingCommentRanges(text, skipTrivia(
|
|
104238
104402
|
text,
|
|
104239
104403
|
node.pos,
|
|
104240
|
-
/*
|
|
104404
|
+
/*stopAfterLineBreak*/
|
|
104241
104405
|
false,
|
|
104242
|
-
/*
|
|
104406
|
+
/*stopAtComments*/
|
|
104243
104407
|
true
|
|
104244
104408
|
));
|
|
104245
104409
|
return commentRanges && commentRanges.length && hasInternalAnnotation(last(commentRanges), currentSourceFile);
|
|
@@ -104355,7 +104519,7 @@ function transformDeclarations(context) {
|
|
|
104355
104519
|
symbol,
|
|
104356
104520
|
enclosingDeclaration2,
|
|
104357
104521
|
meaning,
|
|
104358
|
-
/*
|
|
104522
|
+
/*shouldComputeAliasToMarkVisible*/
|
|
104359
104523
|
true
|
|
104360
104524
|
));
|
|
104361
104525
|
recordTypeReferenceDirectivesIfNecessary(resolver.getTypeReferenceDirectivesForSymbol(symbol, meaning));
|
|
@@ -104701,7 +104865,7 @@ function transformDeclarations(context) {
|
|
|
104701
104865
|
return factory2.updateBindingElement(
|
|
104702
104866
|
elem,
|
|
104703
104867
|
elem.dotDotDotToken,
|
|
104704
|
-
/*
|
|
104868
|
+
/*propertyName*/
|
|
104705
104869
|
void 0,
|
|
104706
104870
|
elem.propertyName,
|
|
104707
104871
|
shouldPrintWithInitializer(elem) ? elem.initializer : void 0
|
|
@@ -105063,7 +105227,7 @@ function transformDeclarations(context) {
|
|
|
105063
105227
|
return cleanup(factory2.createPropertyDeclaration(
|
|
105064
105228
|
ensureModifiers(input),
|
|
105065
105229
|
input.name,
|
|
105066
|
-
/*
|
|
105230
|
+
/*questionOrExclamationToken*/
|
|
105067
105231
|
void 0,
|
|
105068
105232
|
/*type*/
|
|
105069
105233
|
void 0,
|
|
@@ -105627,7 +105791,7 @@ function transformDeclarations(context) {
|
|
|
105627
105791
|
elems.push(factory2.createPropertyDeclaration(
|
|
105628
105792
|
ensureModifiers(param),
|
|
105629
105793
|
elem.name,
|
|
105630
|
-
/*
|
|
105794
|
+
/*questionOrExclamationToken*/
|
|
105631
105795
|
void 0,
|
|
105632
105796
|
ensureType(
|
|
105633
105797
|
elem,
|
|
@@ -105649,7 +105813,7 @@ function transformDeclarations(context) {
|
|
|
105649
105813
|
/*modifiers*/
|
|
105650
105814
|
void 0,
|
|
105651
105815
|
factory2.createPrivateIdentifier("#private"),
|
|
105652
|
-
/*
|
|
105816
|
+
/*questionOrExclamationToken*/
|
|
105653
105817
|
void 0,
|
|
105654
105818
|
/*type*/
|
|
105655
105819
|
void 0,
|
|
@@ -107051,7 +107215,7 @@ function emitUsingBuildInfoWorker(config, host, getCommandLine, customTransforme
|
|
|
107051
107215
|
declarationMapText,
|
|
107052
107216
|
buildInfoPath,
|
|
107053
107217
|
buildInfo,
|
|
107054
|
-
/*
|
|
107218
|
+
/*oldFileOfCurrentEmit*/
|
|
107055
107219
|
true
|
|
107056
107220
|
);
|
|
107057
107221
|
const outputFiles = [];
|
|
@@ -107244,7 +107408,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
107244
107408
|
writeBundle(
|
|
107245
107409
|
bundle,
|
|
107246
107410
|
beginPrint(),
|
|
107247
|
-
/*
|
|
107411
|
+
/*sourceMapGenerator*/
|
|
107248
107412
|
void 0
|
|
107249
107413
|
);
|
|
107250
107414
|
return endPrint();
|
|
@@ -107253,7 +107417,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
107253
107417
|
writeFile2(
|
|
107254
107418
|
sourceFile,
|
|
107255
107419
|
beginPrint(),
|
|
107256
|
-
/*
|
|
107420
|
+
/*sourceMapGenerator*/
|
|
107257
107421
|
void 0
|
|
107258
107422
|
);
|
|
107259
107423
|
return endPrint();
|
|
@@ -108734,7 +108898,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
108734
108898
|
const indented = writeLineSeparatorsAndIndentBefore(node.expression, node);
|
|
108735
108899
|
emitExpression(
|
|
108736
108900
|
node.expression,
|
|
108737
|
-
/*
|
|
108901
|
+
/*parenthesizerRule*/
|
|
108738
108902
|
void 0
|
|
108739
108903
|
);
|
|
108740
108904
|
writeLineSeparatorsAfter(node.expression, node);
|
|
@@ -108948,7 +109112,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
108948
109112
|
function emitAsExpression(node) {
|
|
108949
109113
|
emitExpression(
|
|
108950
109114
|
node.expression,
|
|
108951
|
-
/*
|
|
109115
|
+
/*parenthesizerRule*/
|
|
108952
109116
|
void 0
|
|
108953
109117
|
);
|
|
108954
109118
|
if (node.type) {
|
|
@@ -108965,7 +109129,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
108965
109129
|
function emitSatisfiesExpression(node) {
|
|
108966
109130
|
emitExpression(
|
|
108967
109131
|
node.expression,
|
|
108968
|
-
/*
|
|
109132
|
+
/*parenthesizerRule*/
|
|
108969
109133
|
void 0
|
|
108970
109134
|
);
|
|
108971
109135
|
if (node.type) {
|
|
@@ -111285,7 +111449,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
111285
111449
|
case 165 /* ComputedPropertyName */:
|
|
111286
111450
|
return makeTempVariableName(
|
|
111287
111451
|
0 /* Auto */,
|
|
111288
|
-
/*
|
|
111452
|
+
/*reservedInNestedScopes*/
|
|
111289
111453
|
true,
|
|
111290
111454
|
privateName,
|
|
111291
111455
|
prefix,
|
|
@@ -111294,7 +111458,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
111294
111458
|
default:
|
|
111295
111459
|
return makeTempVariableName(
|
|
111296
111460
|
0 /* Auto */,
|
|
111297
|
-
/*
|
|
111461
|
+
/*reservedInNestedScopes*/
|
|
111298
111462
|
false,
|
|
111299
111463
|
privateName,
|
|
111300
111464
|
prefix,
|
|
@@ -113586,7 +113750,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
113586
113750
|
return resolveTypeReferenceDirectiveNamesWorker(
|
|
113587
113751
|
typeDirectiveNames,
|
|
113588
113752
|
containingFile,
|
|
113589
|
-
/*
|
|
113753
|
+
/*reusedNames*/
|
|
113590
113754
|
void 0
|
|
113591
113755
|
);
|
|
113592
113756
|
}
|
|
@@ -113914,7 +114078,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
113914
114078
|
void 0,
|
|
113915
114079
|
/*transformers*/
|
|
113916
114080
|
noTransformers,
|
|
113917
|
-
/*
|
|
114081
|
+
/*emitOnly*/
|
|
113918
114082
|
false,
|
|
113919
114083
|
/*onlyBuildInfo*/
|
|
113920
114084
|
true
|
|
@@ -114510,7 +114674,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
114510
114674
|
const node = getNodeAtPosition(file2, r.lastIndex);
|
|
114511
114675
|
if (shouldProcessRequires && isRequireCall(
|
|
114512
114676
|
node,
|
|
114513
|
-
/*
|
|
114677
|
+
/*requireStringLiteralLikeArgument*/
|
|
114514
114678
|
true
|
|
114515
114679
|
)) {
|
|
114516
114680
|
setParentRecursive(
|
|
@@ -115107,7 +115271,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
115107
115271
|
commandLine = host.getParsedCommandLine(refPath);
|
|
115108
115272
|
if (!commandLine) {
|
|
115109
115273
|
addFileToFilesByName(
|
|
115110
|
-
/*
|
|
115274
|
+
/*file*/
|
|
115111
115275
|
void 0,
|
|
115112
115276
|
sourceFilePath,
|
|
115113
115277
|
/*redirectedPath*/
|
|
@@ -116422,7 +116586,7 @@ var BuilderState;
|
|
|
116422
116586
|
), sourceFiles);
|
|
116423
116587
|
},
|
|
116424
116588
|
cancellationToken,
|
|
116425
|
-
/*
|
|
116589
|
+
/*emitOnly*/
|
|
116426
116590
|
true,
|
|
116427
116591
|
/*customTransformers*/
|
|
116428
116592
|
void 0,
|
|
@@ -117621,7 +117785,7 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa
|
|
|
117621
117785
|
continue;
|
|
117622
117786
|
} else {
|
|
117623
117787
|
result = state.program.getSemanticDiagnostics(
|
|
117624
|
-
/*
|
|
117788
|
+
/*sourceFile*/
|
|
117625
117789
|
void 0,
|
|
117626
117790
|
cancellationToken
|
|
117627
117791
|
);
|
|
@@ -118418,7 +118582,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
118418
118582
|
} else {
|
|
118419
118583
|
resolutions.forEach((resolution) => watchAffectingLocationsOfResolution(
|
|
118420
118584
|
resolution,
|
|
118421
|
-
/*
|
|
118585
|
+
/*addToResolutionsWithOnlyAffectingLocations*/
|
|
118422
118586
|
true
|
|
118423
118587
|
));
|
|
118424
118588
|
}
|
|
@@ -118778,7 +118942,7 @@ function prettyPathForFileError(error, cwd) {
|
|
|
118778
118942
|
return getRelativePathFromDirectory(
|
|
118779
118943
|
cwd,
|
|
118780
118944
|
error.fileName,
|
|
118781
|
-
/*
|
|
118945
|
+
/*ignoreCase*/
|
|
118782
118946
|
false
|
|
118783
118947
|
) + line;
|
|
118784
118948
|
}
|
|
@@ -119923,7 +120087,6 @@ function createWatchProgram(host) {
|
|
|
119923
120087
|
);
|
|
119924
120088
|
}
|
|
119925
120089
|
function updateExtendedConfigFilesWatches(forProjectPath, options, watchOptions2, watchType) {
|
|
119926
|
-
Debug.assert(configFileName);
|
|
119927
120090
|
updateSharedExtendedConfigFileWatcher(
|
|
119928
120091
|
forProjectPath,
|
|
119929
120092
|
options,
|
|
@@ -119939,7 +120102,7 @@ function createWatchProgram(host) {
|
|
|
119939
120102
|
if (!(projects == null ? void 0 : projects.size))
|
|
119940
120103
|
return;
|
|
119941
120104
|
projects.forEach((projectPath) => {
|
|
119942
|
-
if (toPath3(configFileName) === projectPath) {
|
|
120105
|
+
if (configFileName && toPath3(configFileName) === projectPath) {
|
|
119943
120106
|
reloadLevel = 2 /* Full */;
|
|
119944
120107
|
} else {
|
|
119945
120108
|
const config = parsedConfigs == null ? void 0 : parsedConfigs.get(projectPath);
|
|
@@ -120665,7 +120828,7 @@ function createBuildOrUpdateInvalidedProject(kind, state, project, projectPath,
|
|
|
120665
120828
|
void 0,
|
|
120666
120829
|
(name, text, writeByteOrderMark, _onError, _sourceFiles, data) => outputFiles.push({ name, text, writeByteOrderMark, data }),
|
|
120667
120830
|
cancellationToken,
|
|
120668
|
-
/*
|
|
120831
|
+
/*emitOnlyDtsFiles*/
|
|
120669
120832
|
false,
|
|
120670
120833
|
customTransformers || ((_b = (_a2 = state.host).getCustomTransformers) == null ? void 0 : _b.call(_a2, project))
|
|
120671
120834
|
);
|
|
@@ -122341,9 +122504,9 @@ function printEasyHelp(sys2, simpleOptions) {
|
|
|
122341
122504
|
cliCommands,
|
|
122342
122505
|
/*subCategory*/
|
|
122343
122506
|
false,
|
|
122344
|
-
/*
|
|
122507
|
+
/*beforeOptionsDescription*/
|
|
122345
122508
|
void 0,
|
|
122346
|
-
/*
|
|
122509
|
+
/*afterOptionsDescription*/
|
|
122347
122510
|
void 0
|
|
122348
122511
|
),
|
|
122349
122512
|
...generateSectionOptionsOutput(
|
|
@@ -122352,10 +122515,10 @@ function printEasyHelp(sys2, simpleOptions) {
|
|
|
122352
122515
|
configOpts,
|
|
122353
122516
|
/*subCategory*/
|
|
122354
122517
|
false,
|
|
122355
|
-
/*
|
|
122518
|
+
/*beforeOptionsDescription*/
|
|
122356
122519
|
void 0,
|
|
122357
122520
|
formatMessage(
|
|
122358
|
-
/*
|
|
122521
|
+
/*dummy*/
|
|
122359
122522
|
void 0,
|
|
122360
122523
|
Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0,
|
|
122361
122524
|
"https://aka.ms/tsc"
|
|
@@ -122381,10 +122544,10 @@ function printAllHelp(sys2, compilerOptions, buildOptions, watchOptions) {
|
|
|
122381
122544
|
compilerOptions,
|
|
122382
122545
|
/*subCategory*/
|
|
122383
122546
|
true,
|
|
122384
|
-
/*
|
|
122547
|
+
/*beforeOptionsDescription*/
|
|
122385
122548
|
void 0,
|
|
122386
122549
|
formatMessage(
|
|
122387
|
-
/*
|
|
122550
|
+
/*dummy*/
|
|
122388
122551
|
void 0,
|
|
122389
122552
|
Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0,
|
|
122390
122553
|
"https://aka.ms/tsc"
|
|
@@ -122405,7 +122568,7 @@ function printAllHelp(sys2, compilerOptions, buildOptions, watchOptions) {
|
|
|
122405
122568
|
/*subCategory*/
|
|
122406
122569
|
false,
|
|
122407
122570
|
formatMessage(
|
|
122408
|
-
/*
|
|
122571
|
+
/*dummy*/
|
|
122409
122572
|
void 0,
|
|
122410
122573
|
Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,
|
|
122411
122574
|
"https://aka.ms/tsc-composite-builds"
|
|
@@ -122424,7 +122587,7 @@ function printBuildHelp(sys2, buildOptions) {
|
|
|
122424
122587
|
/*subCategory*/
|
|
122425
122588
|
false,
|
|
122426
122589
|
formatMessage(
|
|
122427
|
-
/*
|
|
122590
|
+
/*dummy*/
|
|
122428
122591
|
void 0,
|
|
122429
122592
|
Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,
|
|
122430
122593
|
"https://aka.ms/tsc-composite-builds"
|
|
@@ -122739,7 +122902,7 @@ function performCompilation(sys2, cb, reportDiagnostic, config) {
|
|
|
122739
122902
|
const { fileNames, options, projectReferences } = config;
|
|
122740
122903
|
const host = createCompilerHostWorker(
|
|
122741
122904
|
options,
|
|
122742
|
-
/*
|
|
122905
|
+
/*setParentNodes*/
|
|
122743
122906
|
void 0,
|
|
122744
122907
|
sys2
|
|
122745
122908
|
);
|
|
@@ -122769,7 +122932,7 @@ function performCompilation(sys2, cb, reportDiagnostic, config) {
|
|
|
122769
122932
|
reportStatistics(
|
|
122770
122933
|
sys2,
|
|
122771
122934
|
program,
|
|
122772
|
-
/*
|
|
122935
|
+
/*solutionPerformance*/
|
|
122773
122936
|
void 0
|
|
122774
122937
|
);
|
|
122775
122938
|
cb(program);
|
|
@@ -122797,7 +122960,7 @@ function performIncrementalCompilation2(sys2, cb, reportDiagnostic, config) {
|
|
|
122797
122960
|
reportStatistics(
|
|
122798
122961
|
sys2,
|
|
122799
122962
|
builderProgram.getProgram(),
|
|
122800
|
-
/*
|
|
122963
|
+
/*solutionPerformance*/
|
|
122801
122964
|
void 0
|
|
122802
122965
|
);
|
|
122803
122966
|
cb(builderProgram);
|
|
@@ -122850,7 +123013,7 @@ function updateWatchCompilationHost(sys2, cb, watchCompilerHost) {
|
|
|
122850
123013
|
reportStatistics(
|
|
122851
123014
|
sys2,
|
|
122852
123015
|
builderProgram.getProgram(),
|
|
122853
|
-
/*
|
|
123016
|
+
/*solutionPerformance*/
|
|
122854
123017
|
void 0
|
|
122855
123018
|
);
|
|
122856
123019
|
cb(builderProgram);
|