@typescript-deploys/pr-build 5.1.0-pr-53388-13 → 5.1.0-pr-53487-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 +397 -234
- package/lib/tsserver.js +537 -362
- package/lib/tsserverlibrary.js +537 -362
- package/lib/typescript.js +533 -358
- package/lib/typingsInstaller.js +17 -17
- package/package.json +2 -2
package/lib/tsserverlibrary.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.1";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230324`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -10221,7 +10221,7 @@ ${lanes.join("\n")}
|
|
|
10221
10221
|
return token = 10 /* StringLiteral */;
|
|
10222
10222
|
case 96 /* backtick */:
|
|
10223
10223
|
return token = scanTemplateAndSetTokenValue(
|
|
10224
|
-
/*
|
|
10224
|
+
/*isTaggedTemplate*/
|
|
10225
10225
|
false
|
|
10226
10226
|
);
|
|
10227
10227
|
case 37 /* percent */:
|
|
@@ -10724,7 +10724,7 @@ ${lanes.join("\n")}
|
|
|
10724
10724
|
function reScanTemplateHeadOrNoSubstitutionTemplate() {
|
|
10725
10725
|
pos = tokenStart;
|
|
10726
10726
|
return token = scanTemplateAndSetTokenValue(
|
|
10727
|
-
/*
|
|
10727
|
+
/*isTaggedTemplate*/
|
|
10728
10728
|
true
|
|
10729
10729
|
);
|
|
10730
10730
|
}
|
|
@@ -13936,7 +13936,7 @@ ${lanes.join("\n")}
|
|
|
13936
13936
|
true,
|
|
13937
13937
|
sourceFile.languageVariant,
|
|
13938
13938
|
sourceFile.text,
|
|
13939
|
-
/*onError
|
|
13939
|
+
/*onError*/
|
|
13940
13940
|
void 0,
|
|
13941
13941
|
pos
|
|
13942
13942
|
);
|
|
@@ -13951,7 +13951,7 @@ ${lanes.join("\n")}
|
|
|
13951
13951
|
true,
|
|
13952
13952
|
sourceFile.languageVariant,
|
|
13953
13953
|
sourceFile.text,
|
|
13954
|
-
/*onError
|
|
13954
|
+
/*onError*/
|
|
13955
13955
|
void 0,
|
|
13956
13956
|
pos
|
|
13957
13957
|
);
|
|
@@ -14929,7 +14929,7 @@ ${lanes.join("\n")}
|
|
|
14929
14929
|
function getRightMostAssignedExpression(node) {
|
|
14930
14930
|
while (isAssignmentExpression(
|
|
14931
14931
|
node,
|
|
14932
|
-
/*
|
|
14932
|
+
/*excludeCompoundAssignment*/
|
|
14933
14933
|
true
|
|
14934
14934
|
)) {
|
|
14935
14935
|
node = node.right;
|
|
@@ -15132,7 +15132,7 @@ ${lanes.join("\n")}
|
|
|
15132
15132
|
case 211 /* CallExpression */:
|
|
15133
15133
|
return isImportCall(node.parent) || isRequireCall(
|
|
15134
15134
|
node.parent,
|
|
15135
|
-
/*
|
|
15135
|
+
/*requireStringLiteralLikeArgument*/
|
|
15136
15136
|
false
|
|
15137
15137
|
) ? node.parent : void 0;
|
|
15138
15138
|
case 199 /* LiteralType */:
|
|
@@ -16849,9 +16849,9 @@ ${lanes.join("\n")}
|
|
|
16849
16849
|
function getEffectiveModifierFlagsAlwaysIncludeJSDoc(node) {
|
|
16850
16850
|
return getModifierFlagsWorker(
|
|
16851
16851
|
node,
|
|
16852
|
-
/*
|
|
16852
|
+
/*includeJSDoc*/
|
|
16853
16853
|
true,
|
|
16854
|
-
/*
|
|
16854
|
+
/*alwaysIncludeJSDoc*/
|
|
16855
16855
|
true
|
|
16856
16856
|
);
|
|
16857
16857
|
}
|
|
@@ -19434,7 +19434,7 @@ ${lanes.join("\n")}
|
|
|
19434
19434
|
if (!needsParens) {
|
|
19435
19435
|
switch (getLeftmostExpression(
|
|
19436
19436
|
check,
|
|
19437
|
-
/*
|
|
19437
|
+
/*stopAtCallExpressions*/
|
|
19438
19438
|
false
|
|
19439
19439
|
).kind) {
|
|
19440
19440
|
case 229 /* ClassExpression */:
|
|
@@ -25252,7 +25252,7 @@ ${lanes.join("\n")}
|
|
|
25252
25252
|
context.requestEmitHelper(classPrivateFieldInHelper);
|
|
25253
25253
|
return factory2.createCallExpression(
|
|
25254
25254
|
getUnscopedHelperName("__classPrivateFieldIn"),
|
|
25255
|
-
/*
|
|
25255
|
+
/*typeArguments*/
|
|
25256
25256
|
void 0,
|
|
25257
25257
|
[state, receiver]
|
|
25258
25258
|
);
|
|
@@ -27349,7 +27349,7 @@ ${lanes.join("\n")}
|
|
|
27349
27349
|
[factory2.createParameterDeclaration(
|
|
27350
27350
|
/*modifiers*/
|
|
27351
27351
|
void 0,
|
|
27352
|
-
/*
|
|
27352
|
+
/*dotDotDotToken*/
|
|
27353
27353
|
void 0,
|
|
27354
27354
|
"value"
|
|
27355
27355
|
)],
|
|
@@ -28643,7 +28643,7 @@ ${lanes.join("\n")}
|
|
|
28643
28643
|
fileName2,
|
|
28644
28644
|
2 /* ES2015 */,
|
|
28645
28645
|
6 /* JSON */,
|
|
28646
|
-
/*
|
|
28646
|
+
/*isDeclarationFile*/
|
|
28647
28647
|
false,
|
|
28648
28648
|
statements,
|
|
28649
28649
|
endOfFileToken,
|
|
@@ -29998,7 +29998,7 @@ ${lanes.join("\n")}
|
|
|
29998
29998
|
entity,
|
|
29999
29999
|
parseRightSideOfDot(
|
|
30000
30000
|
allowReservedWords,
|
|
30001
|
-
/*
|
|
30001
|
+
/*allowPrivateIdentifiers*/
|
|
30002
30002
|
false
|
|
30003
30003
|
)
|
|
30004
30004
|
),
|
|
@@ -31935,7 +31935,7 @@ ${lanes.join("\n")}
|
|
|
31935
31935
|
parseExpected(43 /* SlashToken */);
|
|
31936
31936
|
if (parseExpected(
|
|
31937
31937
|
31 /* GreaterThanToken */,
|
|
31938
|
-
/*
|
|
31938
|
+
/*diagnosticMessage*/
|
|
31939
31939
|
void 0,
|
|
31940
31940
|
/*shouldAdvance*/
|
|
31941
31941
|
false
|
|
@@ -31980,7 +31980,7 @@ ${lanes.join("\n")}
|
|
|
31980
31980
|
} else {
|
|
31981
31981
|
if (parseExpected(
|
|
31982
31982
|
19 /* CloseBraceToken */,
|
|
31983
|
-
/*
|
|
31983
|
+
/*diagnosticMessage*/
|
|
31984
31984
|
void 0,
|
|
31985
31985
|
/*shouldAdvance*/
|
|
31986
31986
|
false
|
|
@@ -32033,7 +32033,7 @@ ${lanes.join("\n")}
|
|
|
32033
32033
|
const tagName = parseJsxElementName();
|
|
32034
32034
|
if (parseExpected(
|
|
32035
32035
|
31 /* GreaterThanToken */,
|
|
32036
|
-
/*
|
|
32036
|
+
/*diagnosticMessage*/
|
|
32037
32037
|
void 0,
|
|
32038
32038
|
/*shouldAdvance*/
|
|
32039
32039
|
false
|
|
@@ -32313,7 +32313,7 @@ ${lanes.join("\n")}
|
|
|
32313
32313
|
break;
|
|
32314
32314
|
case 15 /* TemplateHead */:
|
|
32315
32315
|
return parseTemplateExpression(
|
|
32316
|
-
/*
|
|
32316
|
+
/*isTaggedTemplate*/
|
|
32317
32317
|
false
|
|
32318
32318
|
);
|
|
32319
32319
|
case 80 /* PrivateIdentifier */:
|
|
@@ -34020,7 +34020,7 @@ ${lanes.join("\n")}
|
|
|
34020
34020
|
"file.js",
|
|
34021
34021
|
content,
|
|
34022
34022
|
99 /* Latest */,
|
|
34023
|
-
/*
|
|
34023
|
+
/*syntaxCursor*/
|
|
34024
34024
|
void 0,
|
|
34025
34025
|
1 /* JS */
|
|
34026
34026
|
);
|
|
@@ -34063,7 +34063,7 @@ ${lanes.join("\n")}
|
|
|
34063
34063
|
const hasBrace = parseOptional(18 /* OpenBraceToken */);
|
|
34064
34064
|
const p2 = getNodePos();
|
|
34065
34065
|
let entityName = parseEntityName(
|
|
34066
|
-
/*
|
|
34066
|
+
/*allowReservedWords*/
|
|
34067
34067
|
false
|
|
34068
34068
|
);
|
|
34069
34069
|
while (token() === 80 /* PrivateIdentifier */) {
|
|
@@ -34084,7 +34084,7 @@ ${lanes.join("\n")}
|
|
|
34084
34084
|
"",
|
|
34085
34085
|
content,
|
|
34086
34086
|
99 /* Latest */,
|
|
34087
|
-
/*
|
|
34087
|
+
/*syntaxCursor*/
|
|
34088
34088
|
void 0,
|
|
34089
34089
|
1 /* JS */
|
|
34090
34090
|
);
|
|
@@ -39637,7 +39637,7 @@ ${lanes.join("\n")}
|
|
|
39637
39637
|
2 /* JavaScript */,
|
|
39638
39638
|
/*isConfigLookup*/
|
|
39639
39639
|
false,
|
|
39640
|
-
/*
|
|
39640
|
+
/*redirectedReference*/
|
|
39641
39641
|
void 0
|
|
39642
39642
|
);
|
|
39643
39643
|
}
|
|
@@ -39675,7 +39675,7 @@ ${lanes.join("\n")}
|
|
|
39675
39675
|
}
|
|
39676
39676
|
function nodeNextJsonConfigResolver(moduleName, containingFile, host) {
|
|
39677
39677
|
return nodeModuleNameResolverWorker(
|
|
39678
|
-
|
|
39678
|
+
30 /* NodeNextDefault */,
|
|
39679
39679
|
moduleName,
|
|
39680
39680
|
getDirectoryPath(containingFile),
|
|
39681
39681
|
{ moduleResolution: 99 /* NodeNext */ },
|
|
@@ -40053,7 +40053,7 @@ ${lanes.join("\n")}
|
|
|
40053
40053
|
const result = loadFileNameFromPackageJsonField(
|
|
40054
40054
|
extensions,
|
|
40055
40055
|
finalPath,
|
|
40056
|
-
/*
|
|
40056
|
+
/*onlyRecordFailures*/
|
|
40057
40057
|
false,
|
|
40058
40058
|
state
|
|
40059
40059
|
);
|
|
@@ -43548,7 +43548,7 @@ ${lanes.join("\n")}
|
|
|
43548
43548
|
parentSymbol,
|
|
43549
43549
|
node.left.expression,
|
|
43550
43550
|
isTopLevelNamespaceAssignment(node.left),
|
|
43551
|
-
/*
|
|
43551
|
+
/*isPrototypeProperty*/
|
|
43552
43552
|
false,
|
|
43553
43553
|
/*containerIsClass*/
|
|
43554
43554
|
false
|
|
@@ -43680,7 +43680,7 @@ ${lanes.join("\n")}
|
|
|
43680
43680
|
function bindCallExpression(node) {
|
|
43681
43681
|
if (!file.commonJsModuleIndicator && isRequireCall(
|
|
43682
43682
|
node,
|
|
43683
|
-
/*
|
|
43683
|
+
/*requireStringLiteralLikeArgument*/
|
|
43684
43684
|
false
|
|
43685
43685
|
)) {
|
|
43686
43686
|
setCommonJsModuleIndicator(node);
|
|
@@ -45503,21 +45503,77 @@ ${lanes.join("\n")}
|
|
|
45503
45503
|
}
|
|
45504
45504
|
return t;
|
|
45505
45505
|
}, () => "(unreliable reporter)");
|
|
45506
|
-
var emptyObjectType = createAnonymousType(
|
|
45507
|
-
|
|
45506
|
+
var emptyObjectType = createAnonymousType(
|
|
45507
|
+
/*symbol*/
|
|
45508
|
+
void 0,
|
|
45509
|
+
emptySymbols,
|
|
45510
|
+
emptyArray,
|
|
45511
|
+
emptyArray,
|
|
45512
|
+
emptyArray
|
|
45513
|
+
);
|
|
45514
|
+
var emptyJsxObjectType = createAnonymousType(
|
|
45515
|
+
/*symbol*/
|
|
45516
|
+
void 0,
|
|
45517
|
+
emptySymbols,
|
|
45518
|
+
emptyArray,
|
|
45519
|
+
emptyArray,
|
|
45520
|
+
emptyArray
|
|
45521
|
+
);
|
|
45508
45522
|
emptyJsxObjectType.objectFlags |= 2048 /* JsxAttributes */;
|
|
45509
45523
|
var emptyTypeLiteralSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */);
|
|
45510
45524
|
emptyTypeLiteralSymbol.members = createSymbolTable();
|
|
45511
45525
|
var emptyTypeLiteralType = createAnonymousType(emptyTypeLiteralSymbol, emptySymbols, emptyArray, emptyArray, emptyArray);
|
|
45512
|
-
var unknownEmptyObjectType = createAnonymousType(
|
|
45526
|
+
var unknownEmptyObjectType = createAnonymousType(
|
|
45527
|
+
/*symbol*/
|
|
45528
|
+
void 0,
|
|
45529
|
+
emptySymbols,
|
|
45530
|
+
emptyArray,
|
|
45531
|
+
emptyArray,
|
|
45532
|
+
emptyArray
|
|
45533
|
+
);
|
|
45513
45534
|
var unknownUnionType = strictNullChecks ? getUnionType([undefinedType, nullType, unknownEmptyObjectType]) : unknownType;
|
|
45514
|
-
var emptyGenericType = createAnonymousType(
|
|
45535
|
+
var emptyGenericType = createAnonymousType(
|
|
45536
|
+
/*symbol*/
|
|
45537
|
+
void 0,
|
|
45538
|
+
emptySymbols,
|
|
45539
|
+
emptyArray,
|
|
45540
|
+
emptyArray,
|
|
45541
|
+
emptyArray
|
|
45542
|
+
);
|
|
45515
45543
|
emptyGenericType.instantiations = /* @__PURE__ */ new Map();
|
|
45516
|
-
var anyFunctionType = createAnonymousType(
|
|
45544
|
+
var anyFunctionType = createAnonymousType(
|
|
45545
|
+
/*symbol*/
|
|
45546
|
+
void 0,
|
|
45547
|
+
emptySymbols,
|
|
45548
|
+
emptyArray,
|
|
45549
|
+
emptyArray,
|
|
45550
|
+
emptyArray
|
|
45551
|
+
);
|
|
45517
45552
|
anyFunctionType.objectFlags |= 262144 /* NonInferrableType */;
|
|
45518
|
-
var noConstraintType = createAnonymousType(
|
|
45519
|
-
|
|
45520
|
-
|
|
45553
|
+
var noConstraintType = createAnonymousType(
|
|
45554
|
+
/*symbol*/
|
|
45555
|
+
void 0,
|
|
45556
|
+
emptySymbols,
|
|
45557
|
+
emptyArray,
|
|
45558
|
+
emptyArray,
|
|
45559
|
+
emptyArray
|
|
45560
|
+
);
|
|
45561
|
+
var circularConstraintType = createAnonymousType(
|
|
45562
|
+
/*symbol*/
|
|
45563
|
+
void 0,
|
|
45564
|
+
emptySymbols,
|
|
45565
|
+
emptyArray,
|
|
45566
|
+
emptyArray,
|
|
45567
|
+
emptyArray
|
|
45568
|
+
);
|
|
45569
|
+
var resolvingDefaultType = createAnonymousType(
|
|
45570
|
+
/*symbol*/
|
|
45571
|
+
void 0,
|
|
45572
|
+
emptySymbols,
|
|
45573
|
+
emptyArray,
|
|
45574
|
+
emptyArray,
|
|
45575
|
+
emptyArray
|
|
45576
|
+
);
|
|
45521
45577
|
var markerSuperType = createTypeParameter();
|
|
45522
45578
|
var markerSubType = createTypeParameter();
|
|
45523
45579
|
markerSubType.constraint = markerSuperType;
|
|
@@ -45527,8 +45583,11 @@ ${lanes.join("\n")}
|
|
|
45527
45583
|
markerSubTypeForCheck.constraint = markerSuperTypeForCheck;
|
|
45528
45584
|
var noTypePredicate = createTypePredicate(1 /* Identifier */, "<<unresolved>>", 0, anyType);
|
|
45529
45585
|
var anySignature = createSignature(
|
|
45586
|
+
/*declaration*/
|
|
45530
45587
|
void 0,
|
|
45588
|
+
/*typeParameters*/
|
|
45531
45589
|
void 0,
|
|
45590
|
+
/*thisParameter*/
|
|
45532
45591
|
void 0,
|
|
45533
45592
|
emptyArray,
|
|
45534
45593
|
anyType,
|
|
@@ -45538,8 +45597,11 @@ ${lanes.join("\n")}
|
|
|
45538
45597
|
0 /* None */
|
|
45539
45598
|
);
|
|
45540
45599
|
var unknownSignature = createSignature(
|
|
45600
|
+
/*declaration*/
|
|
45541
45601
|
void 0,
|
|
45602
|
+
/*typeParameters*/
|
|
45542
45603
|
void 0,
|
|
45604
|
+
/*thisParameter*/
|
|
45543
45605
|
void 0,
|
|
45544
45606
|
emptyArray,
|
|
45545
45607
|
errorType,
|
|
@@ -45549,8 +45611,11 @@ ${lanes.join("\n")}
|
|
|
45549
45611
|
0 /* None */
|
|
45550
45612
|
);
|
|
45551
45613
|
var resolvingSignature = createSignature(
|
|
45614
|
+
/*declaration*/
|
|
45552
45615
|
void 0,
|
|
45616
|
+
/*typeParameters*/
|
|
45553
45617
|
void 0,
|
|
45618
|
+
/*thisParameter*/
|
|
45554
45619
|
void 0,
|
|
45555
45620
|
emptyArray,
|
|
45556
45621
|
anyType,
|
|
@@ -45560,8 +45625,11 @@ ${lanes.join("\n")}
|
|
|
45560
45625
|
0 /* None */
|
|
45561
45626
|
);
|
|
45562
45627
|
var silentNeverSignature = createSignature(
|
|
45628
|
+
/*declaration*/
|
|
45563
45629
|
void 0,
|
|
45630
|
+
/*typeParameters*/
|
|
45564
45631
|
void 0,
|
|
45632
|
+
/*thisParameter*/
|
|
45565
45633
|
void 0,
|
|
45566
45634
|
emptyArray,
|
|
45567
45635
|
silentNeverType,
|
|
@@ -46618,7 +46686,7 @@ ${lanes.join("\n")}
|
|
|
46618
46686
|
if (originalLocation && isInJSFile(originalLocation) && originalLocation.parent) {
|
|
46619
46687
|
if (isRequireCall(
|
|
46620
46688
|
originalLocation.parent,
|
|
46621
|
-
/*
|
|
46689
|
+
/*requireStringLiteralLikeArgument*/
|
|
46622
46690
|
false
|
|
46623
46691
|
)) {
|
|
46624
46692
|
return requireSymbol;
|
|
@@ -47239,7 +47307,7 @@ ${lanes.join("\n")}
|
|
|
47239
47307
|
node,
|
|
47240
47308
|
moduleSymbol,
|
|
47241
47309
|
resolved,
|
|
47242
|
-
/*
|
|
47310
|
+
/*overwriteEmpty*/
|
|
47243
47311
|
false
|
|
47244
47312
|
);
|
|
47245
47313
|
return resolved;
|
|
@@ -47249,7 +47317,7 @@ ${lanes.join("\n")}
|
|
|
47249
47317
|
exportDefaultSymbol,
|
|
47250
47318
|
/*finalTarget*/
|
|
47251
47319
|
void 0,
|
|
47252
|
-
/*
|
|
47320
|
+
/*overwriteEmpty*/
|
|
47253
47321
|
false
|
|
47254
47322
|
);
|
|
47255
47323
|
return exportDefaultSymbol;
|
|
@@ -47300,7 +47368,7 @@ ${lanes.join("\n")}
|
|
|
47300
47368
|
immediate,
|
|
47301
47369
|
moduleSpecifier,
|
|
47302
47370
|
dontResolveAlias,
|
|
47303
|
-
/*
|
|
47371
|
+
/*suppressInteropError*/
|
|
47304
47372
|
false
|
|
47305
47373
|
);
|
|
47306
47374
|
markSymbolOfAliasDeclarationIfTypeOnly(
|
|
@@ -47319,7 +47387,7 @@ ${lanes.join("\n")}
|
|
|
47319
47387
|
immediate,
|
|
47320
47388
|
moduleSpecifier,
|
|
47321
47389
|
dontResolveAlias,
|
|
47322
|
-
/*
|
|
47390
|
+
/*suppressInteropError*/
|
|
47323
47391
|
false
|
|
47324
47392
|
);
|
|
47325
47393
|
markSymbolOfAliasDeclarationIfTypeOnly(
|
|
@@ -47811,6 +47879,7 @@ ${lanes.join("\n")}
|
|
|
47811
47879
|
left,
|
|
47812
47880
|
left.escapedText,
|
|
47813
47881
|
111551 /* Value */,
|
|
47882
|
+
/*nameNotFoundMessage*/
|
|
47814
47883
|
void 0,
|
|
47815
47884
|
left,
|
|
47816
47885
|
/*isUse*/
|
|
@@ -47846,6 +47915,7 @@ ${lanes.join("\n")}
|
|
|
47846
47915
|
name,
|
|
47847
47916
|
/*isUse*/
|
|
47848
47917
|
true,
|
|
47918
|
+
/*excludeGlobals*/
|
|
47849
47919
|
false
|
|
47850
47920
|
));
|
|
47851
47921
|
if (!symbol) {
|
|
@@ -48550,7 +48620,7 @@ ${lanes.join("\n")}
|
|
|
48550
48620
|
container,
|
|
48551
48621
|
enclosingDeclaration,
|
|
48552
48622
|
1920 /* Namespace */,
|
|
48553
|
-
/*
|
|
48623
|
+
/*useOnlyExternalAliasing*/
|
|
48554
48624
|
false
|
|
48555
48625
|
)) {
|
|
48556
48626
|
return append(concatenate(concatenate([container], additionalContainers), reexportContainers), objectLiteralContainer);
|
|
@@ -48863,7 +48933,7 @@ ${lanes.join("\n")}
|
|
|
48863
48933
|
if (symbolFromSymbolTable.escapedName === symbol.escapedName && symbolFromSymbolTable.exportSymbol) {
|
|
48864
48934
|
if (isAccessible(
|
|
48865
48935
|
getMergedSymbol(symbolFromSymbolTable.exportSymbol),
|
|
48866
|
-
/*
|
|
48936
|
+
/*resolvedAliasSymbol*/
|
|
48867
48937
|
void 0,
|
|
48868
48938
|
ignoreQualification
|
|
48869
48939
|
)) {
|
|
@@ -49115,7 +49185,7 @@ ${lanes.join("\n")}
|
|
|
49115
49185
|
enclosingDeclaration,
|
|
49116
49186
|
firstIdentifier.escapedText,
|
|
49117
49187
|
meaning,
|
|
49118
|
-
/*
|
|
49188
|
+
/*nameNotFoundMessage*/
|
|
49119
49189
|
void 0,
|
|
49120
49190
|
/*nameArg*/
|
|
49121
49191
|
void 0,
|
|
@@ -49135,7 +49205,7 @@ ${lanes.join("\n")}
|
|
|
49135
49205
|
)),
|
|
49136
49206
|
firstIdentifier,
|
|
49137
49207
|
meaning,
|
|
49138
|
-
/*
|
|
49208
|
+
/*shouldComputeAliasesToMakeVisible*/
|
|
49139
49209
|
false
|
|
49140
49210
|
).accessibility === 0 /* Accessible */) {
|
|
49141
49211
|
return { accessibility: 0 /* Accessible */ };
|
|
@@ -49694,7 +49764,7 @@ ${lanes.join("\n")}
|
|
|
49694
49764
|
symbol,
|
|
49695
49765
|
context.enclosingDeclaration,
|
|
49696
49766
|
isInstanceType,
|
|
49697
|
-
/*
|
|
49767
|
+
/*shouldComputeAliasesToMakeVisible*/
|
|
49698
49768
|
false
|
|
49699
49769
|
).accessibility !== 0 /* Accessible */)) || symbol.flags & (384 /* Enum */ | 512 /* ValueModule */) || shouldWriteTypeOfFunctionSymbol()) {
|
|
49700
49770
|
return symbolToTypeNode(symbol, context, isInstanceType);
|
|
@@ -49790,7 +49860,7 @@ ${lanes.join("\n")}
|
|
|
49790
49860
|
function deepCloneOrReuseNodes(nodes, visitor, test, start, count) {
|
|
49791
49861
|
if (nodes && nodes.length === 0) {
|
|
49792
49862
|
return setTextRange(factory.createNodeArray(
|
|
49793
|
-
/*
|
|
49863
|
+
/*elements*/
|
|
49794
49864
|
void 0,
|
|
49795
49865
|
nodes.hasTrailingComma
|
|
49796
49866
|
), nodes);
|
|
@@ -50378,12 +50448,12 @@ ${lanes.join("\n")}
|
|
|
50378
50448
|
const thisTag = getJSDocThisTag(signature.declaration);
|
|
50379
50449
|
if (thisTag && thisTag.typeExpression) {
|
|
50380
50450
|
return factory.createParameterDeclaration(
|
|
50381
|
-
/*
|
|
50451
|
+
/*modifiers*/
|
|
50382
50452
|
void 0,
|
|
50383
|
-
/*
|
|
50453
|
+
/*dotDotDotToken*/
|
|
50384
50454
|
void 0,
|
|
50385
50455
|
"this",
|
|
50386
|
-
/*
|
|
50456
|
+
/*questionToken*/
|
|
50387
50457
|
void 0,
|
|
50388
50458
|
typeToTypeNodeHelper(getTypeFromTypeNode(thisTag.typeExpression), context)
|
|
50389
50459
|
);
|
|
@@ -50470,7 +50540,7 @@ ${lanes.join("\n")}
|
|
|
50470
50540
|
firstIdentifier,
|
|
50471
50541
|
firstIdentifier.escapedText,
|
|
50472
50542
|
111551 /* Value */ | 1048576 /* ExportValue */,
|
|
50473
|
-
/*
|
|
50543
|
+
/*nameNotFoundMessage*/
|
|
50474
50544
|
void 0,
|
|
50475
50545
|
/*nameArg*/
|
|
50476
50546
|
void 0,
|
|
@@ -50803,7 +50873,7 @@ ${lanes.join("\n")}
|
|
|
50803
50873
|
context.enclosingDeclaration,
|
|
50804
50874
|
escapedName,
|
|
50805
50875
|
788968 /* Type */,
|
|
50806
|
-
/*
|
|
50876
|
+
/*nameNotFoundMessage*/
|
|
50807
50877
|
void 0,
|
|
50808
50878
|
escapedName,
|
|
50809
50879
|
/*isUse*/
|
|
@@ -51045,7 +51115,7 @@ ${lanes.join("\n")}
|
|
|
51045
51115
|
67108863 /* All */,
|
|
51046
51116
|
/*ignoreErrors*/
|
|
51047
51117
|
true,
|
|
51048
|
-
/*
|
|
51118
|
+
/*dontResolveAlias*/
|
|
51049
51119
|
true
|
|
51050
51120
|
);
|
|
51051
51121
|
if (sym) {
|
|
@@ -51124,7 +51194,7 @@ ${lanes.join("\n")}
|
|
|
51124
51194
|
[factory.createParameterDeclaration(
|
|
51125
51195
|
/*modifiers*/
|
|
51126
51196
|
void 0,
|
|
51127
|
-
/*
|
|
51197
|
+
/*dotDotDotToken*/
|
|
51128
51198
|
void 0,
|
|
51129
51199
|
"x",
|
|
51130
51200
|
/*questionToken*/
|
|
@@ -51247,13 +51317,13 @@ ${lanes.join("\n")}
|
|
|
51247
51317
|
const serializePropertySymbolForClass = makeSerializePropertySymbol(
|
|
51248
51318
|
factory.createPropertyDeclaration,
|
|
51249
51319
|
172 /* MethodDeclaration */,
|
|
51250
|
-
/*
|
|
51320
|
+
/*useAccessors*/
|
|
51251
51321
|
true
|
|
51252
51322
|
);
|
|
51253
51323
|
const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol(
|
|
51254
51324
|
(mods, name, question, type) => factory.createPropertySignature(mods, name, question, type),
|
|
51255
51325
|
171 /* MethodSignature */,
|
|
51256
|
-
/*
|
|
51326
|
+
/*useAccessors*/
|
|
51257
51327
|
false
|
|
51258
51328
|
);
|
|
51259
51329
|
const enclosingDeclaration = context.enclosingDeclaration;
|
|
@@ -51275,7 +51345,7 @@ ${lanes.join("\n")}
|
|
|
51275
51345
|
sym,
|
|
51276
51346
|
decl,
|
|
51277
51347
|
meaning,
|
|
51278
|
-
/*
|
|
51348
|
+
/*shouldComputeAliasesToMakeVisible*/
|
|
51279
51349
|
false
|
|
51280
51350
|
);
|
|
51281
51351
|
if (accessibleResult.accessibility === 0 /* Accessible */) {
|
|
@@ -51334,7 +51404,7 @@ ${lanes.join("\n")}
|
|
|
51334
51404
|
factory.createNamedExports(map(flatMap(excessExports, (e) => getNamesOfDeclaration(e)), (id) => factory.createExportSpecifier(
|
|
51335
51405
|
/*isTypeOnly*/
|
|
51336
51406
|
false,
|
|
51337
|
-
/*
|
|
51407
|
+
/*propertyName*/
|
|
51338
51408
|
void 0,
|
|
51339
51409
|
id
|
|
51340
51410
|
))),
|
|
@@ -51627,7 +51697,7 @@ ${lanes.join("\n")}
|
|
|
51627
51697
|
addResult(factory.createExportAssignment(
|
|
51628
51698
|
/*modifiers*/
|
|
51629
51699
|
void 0,
|
|
51630
|
-
/*
|
|
51700
|
+
/*isExportEquals*/
|
|
51631
51701
|
false,
|
|
51632
51702
|
factory.createIdentifier(getInternalSymbolName(symbol, symbolName2))
|
|
51633
51703
|
), 0 /* None */);
|
|
@@ -52050,7 +52120,7 @@ ${lanes.join("\n")}
|
|
|
52050
52120
|
)])
|
|
52051
52121
|
),
|
|
52052
52122
|
factory.createStringLiteral(specifier2),
|
|
52053
|
-
/*
|
|
52123
|
+
/*assertClause*/
|
|
52054
52124
|
void 0
|
|
52055
52125
|
), 0 /* None */);
|
|
52056
52126
|
break;
|
|
@@ -52139,7 +52209,7 @@ ${lanes.join("\n")}
|
|
|
52139
52209
|
factory.createImportClause(
|
|
52140
52210
|
/*isTypeOnly*/
|
|
52141
52211
|
false,
|
|
52142
|
-
/*
|
|
52212
|
+
/*name*/
|
|
52143
52213
|
void 0,
|
|
52144
52214
|
factory.createNamespaceImport(factory.createIdentifier(localName))
|
|
52145
52215
|
),
|
|
@@ -52167,7 +52237,7 @@ ${lanes.join("\n")}
|
|
|
52167
52237
|
factory.createImportClause(
|
|
52168
52238
|
/*isTypeOnly*/
|
|
52169
52239
|
false,
|
|
52170
|
-
/*
|
|
52240
|
+
/*name*/
|
|
52171
52241
|
void 0,
|
|
52172
52242
|
factory.createNamedImports([
|
|
52173
52243
|
factory.createImportSpecifier(
|
|
@@ -52528,7 +52598,7 @@ ${lanes.join("\n")}
|
|
|
52528
52598
|
addResult(statement, 0 /* None */);
|
|
52529
52599
|
return factory.createExpressionWithTypeArguments(
|
|
52530
52600
|
factory.createIdentifier(tempName),
|
|
52531
|
-
/*
|
|
52601
|
+
/*typeArguments*/
|
|
52532
52602
|
void 0
|
|
52533
52603
|
);
|
|
52534
52604
|
}
|
|
@@ -52553,7 +52623,7 @@ ${lanes.join("\n")}
|
|
|
52553
52623
|
if (t.symbol) {
|
|
52554
52624
|
return factory.createExpressionWithTypeArguments(
|
|
52555
52625
|
symbolToExpression(t.symbol, context, 788968 /* Type */),
|
|
52556
|
-
/*
|
|
52626
|
+
/*typeArguments*/
|
|
52557
52627
|
void 0
|
|
52558
52628
|
);
|
|
52559
52629
|
}
|
|
@@ -52859,7 +52929,9 @@ ${lanes.join("\n")}
|
|
|
52859
52929
|
declaration,
|
|
52860
52930
|
firstIdentifier.escapedText,
|
|
52861
52931
|
111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */,
|
|
52932
|
+
/*nameNotFoundMessage*/
|
|
52862
52933
|
void 0,
|
|
52934
|
+
/*nameArg*/
|
|
52863
52935
|
void 0,
|
|
52864
52936
|
/*isUse*/
|
|
52865
52937
|
false
|
|
@@ -53644,7 +53716,14 @@ ${lanes.join("\n")}
|
|
|
53644
53716
|
symbol.links.bindingElement = e;
|
|
53645
53717
|
members.set(symbol.escapedName, symbol);
|
|
53646
53718
|
});
|
|
53647
|
-
const result = createAnonymousType(
|
|
53719
|
+
const result = createAnonymousType(
|
|
53720
|
+
/*symbol*/
|
|
53721
|
+
void 0,
|
|
53722
|
+
members,
|
|
53723
|
+
emptyArray,
|
|
53724
|
+
emptyArray,
|
|
53725
|
+
stringIndexInfo ? [stringIndexInfo] : emptyArray
|
|
53726
|
+
);
|
|
53648
53727
|
result.objectFlags |= objectFlags;
|
|
53649
53728
|
if (includePatternInType) {
|
|
53650
53729
|
result.pattern = pattern;
|
|
@@ -53806,7 +53885,7 @@ ${lanes.join("\n")}
|
|
|
53806
53885
|
} else if (isParameter(declaration) || isPropertyDeclaration(declaration) || isPropertySignature(declaration) || isVariableDeclaration(declaration) || isBindingElement(declaration) || isJSDocPropertyLikeTag(declaration)) {
|
|
53807
53886
|
type = getWidenedTypeForVariableLikeDeclaration(
|
|
53808
53887
|
declaration,
|
|
53809
|
-
/*
|
|
53888
|
+
/*reportErrors*/
|
|
53810
53889
|
true
|
|
53811
53890
|
);
|
|
53812
53891
|
} else if (isEnumDeclaration(declaration)) {
|
|
@@ -53863,7 +53942,7 @@ ${lanes.join("\n")}
|
|
|
53863
53942
|
const accessor = tryCast(getDeclarationOfKind(symbol, 170 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration);
|
|
53864
53943
|
let type = getter && isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) || getAnnotatedAccessorType(getter) || getAnnotatedAccessorType(setter) || getAnnotatedAccessorType(accessor) || getter && getter.body && getReturnTypeFromBody(getter) || accessor && accessor.initializer && getWidenedTypeForVariableLikeDeclaration(
|
|
53865
53944
|
accessor,
|
|
53866
|
-
/*
|
|
53945
|
+
/*reportErrors*/
|
|
53867
53946
|
true
|
|
53868
53947
|
);
|
|
53869
53948
|
if (!type) {
|
|
@@ -53977,7 +54056,7 @@ ${lanes.join("\n")}
|
|
|
53977
54056
|
const targetSymbol = resolveAlias(symbol);
|
|
53978
54057
|
const exportSymbol = symbol.declarations && getTargetOfAliasDeclaration(
|
|
53979
54058
|
getDeclarationOfAliasSymbol(symbol),
|
|
53980
|
-
/*
|
|
54059
|
+
/*dontRecursivelyResolve*/
|
|
53981
54060
|
true
|
|
53982
54061
|
);
|
|
53983
54062
|
const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0);
|
|
@@ -55008,8 +55087,10 @@ ${lanes.join("\n")}
|
|
|
55008
55087
|
const isAbstract = !!declaration && hasSyntacticModifier(declaration, 256 /* Abstract */);
|
|
55009
55088
|
if (baseSignatures.length === 0) {
|
|
55010
55089
|
return [createSignature(
|
|
55090
|
+
/*declaration*/
|
|
55011
55091
|
void 0,
|
|
55012
55092
|
classType.localTypeParameters,
|
|
55093
|
+
/*thisParameter*/
|
|
55013
55094
|
void 0,
|
|
55014
55095
|
emptyArray,
|
|
55015
55096
|
classType,
|
|
@@ -55999,7 +56080,7 @@ ${lanes.join("\n")}
|
|
|
55999
56080
|
return type.resolvedApparentType || (type.resolvedApparentType = getTypeWithThisArgument(
|
|
56000
56081
|
type,
|
|
56001
56082
|
type,
|
|
56002
|
-
/*
|
|
56083
|
+
/*needApparentType*/
|
|
56003
56084
|
true
|
|
56004
56085
|
));
|
|
56005
56086
|
}
|
|
@@ -56496,7 +56577,9 @@ ${lanes.join("\n")}
|
|
|
56496
56577
|
param,
|
|
56497
56578
|
paramSymbol.escapedName,
|
|
56498
56579
|
111551 /* Value */,
|
|
56580
|
+
/*nameNotFoundMessage*/
|
|
56499
56581
|
void 0,
|
|
56582
|
+
/*nameArg*/
|
|
56500
56583
|
void 0,
|
|
56501
56584
|
/*isUse*/
|
|
56502
56585
|
false
|
|
@@ -57393,7 +57476,14 @@ ${lanes.join("\n")}
|
|
|
57393
57476
|
/*isReadonly*/
|
|
57394
57477
|
false
|
|
57395
57478
|
)] : emptyArray;
|
|
57396
|
-
return createAnonymousType(
|
|
57479
|
+
return createAnonymousType(
|
|
57480
|
+
/*symbol*/
|
|
57481
|
+
void 0,
|
|
57482
|
+
emptySymbols,
|
|
57483
|
+
emptyArray,
|
|
57484
|
+
emptyArray,
|
|
57485
|
+
indexInfo
|
|
57486
|
+
);
|
|
57397
57487
|
}
|
|
57398
57488
|
return anyType;
|
|
57399
57489
|
}
|
|
@@ -57501,6 +57591,7 @@ ${lanes.join("\n")}
|
|
|
57501
57591
|
}
|
|
57502
57592
|
function getGlobalSymbol(name, meaning, diagnostic) {
|
|
57503
57593
|
return resolveName(
|
|
57594
|
+
/*location*/
|
|
57504
57595
|
void 0,
|
|
57505
57596
|
name,
|
|
57506
57597
|
meaning,
|
|
@@ -59060,7 +59151,7 @@ ${lanes.join("\n")}
|
|
|
59060
59151
|
let errorInfo;
|
|
59061
59152
|
if (indexType.flags & 1024 /* EnumLiteral */) {
|
|
59062
59153
|
errorInfo = chainDiagnosticMessages(
|
|
59063
|
-
/*
|
|
59154
|
+
/*details*/
|
|
59064
59155
|
void 0,
|
|
59065
59156
|
Diagnostics.Property_0_does_not_exist_on_type_1,
|
|
59066
59157
|
"[" + typeToString(indexType) + "]",
|
|
@@ -59069,7 +59160,7 @@ ${lanes.join("\n")}
|
|
|
59069
59160
|
} else if (indexType.flags & 8192 /* UniqueESSymbol */) {
|
|
59070
59161
|
const symbolName2 = getFullyQualifiedName(indexType.symbol, accessExpression);
|
|
59071
59162
|
errorInfo = chainDiagnosticMessages(
|
|
59072
|
-
/*
|
|
59163
|
+
/*details*/
|
|
59073
59164
|
void 0,
|
|
59074
59165
|
Diagnostics.Property_0_does_not_exist_on_type_1,
|
|
59075
59166
|
"[" + symbolName2 + "]",
|
|
@@ -59077,7 +59168,7 @@ ${lanes.join("\n")}
|
|
|
59077
59168
|
);
|
|
59078
59169
|
} else if (indexType.flags & 128 /* StringLiteral */) {
|
|
59079
59170
|
errorInfo = chainDiagnosticMessages(
|
|
59080
|
-
/*
|
|
59171
|
+
/*details*/
|
|
59081
59172
|
void 0,
|
|
59082
59173
|
Diagnostics.Property_0_does_not_exist_on_type_1,
|
|
59083
59174
|
indexType.value,
|
|
@@ -59085,7 +59176,7 @@ ${lanes.join("\n")}
|
|
|
59085
59176
|
);
|
|
59086
59177
|
} else if (indexType.flags & 256 /* NumberLiteral */) {
|
|
59087
59178
|
errorInfo = chainDiagnosticMessages(
|
|
59088
|
-
/*
|
|
59179
|
+
/*details*/
|
|
59089
59180
|
void 0,
|
|
59090
59181
|
Diagnostics.Property_0_does_not_exist_on_type_1,
|
|
59091
59182
|
indexType.value,
|
|
@@ -59093,7 +59184,7 @@ ${lanes.join("\n")}
|
|
|
59093
59184
|
);
|
|
59094
59185
|
} else if (indexType.flags & (8 /* Number */ | 4 /* String */)) {
|
|
59095
59186
|
errorInfo = chainDiagnosticMessages(
|
|
59096
|
-
/*
|
|
59187
|
+
/*details*/
|
|
59097
59188
|
void 0,
|
|
59098
59189
|
Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,
|
|
59099
59190
|
typeToString(indexType),
|
|
@@ -60713,7 +60804,7 @@ ${lanes.join("\n")}
|
|
|
60713
60804
|
targetReturn,
|
|
60714
60805
|
relation,
|
|
60715
60806
|
returnExpression,
|
|
60716
|
-
/*
|
|
60807
|
+
/*headMessage*/
|
|
60717
60808
|
void 0,
|
|
60718
60809
|
containingMessageChain,
|
|
60719
60810
|
resultObj
|
|
@@ -61037,7 +61128,7 @@ ${lanes.join("\n")}
|
|
|
61037
61128
|
const childrenTargetType = getIndexedAccessType(target, getStringLiteralType(childrenPropName));
|
|
61038
61129
|
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;
|
|
61039
61130
|
invalidTextDiagnostic = { ...diagnostic, key: "!!ALREADY FORMATTED!!", message: formatMessage(
|
|
61040
|
-
/*
|
|
61131
|
+
/*dummy*/
|
|
61041
61132
|
void 0,
|
|
61042
61133
|
diagnostic,
|
|
61043
61134
|
tagNameText,
|
|
@@ -61128,7 +61219,7 @@ ${lanes.join("\n")}
|
|
|
61128
61219
|
false,
|
|
61129
61220
|
/*errorReporter*/
|
|
61130
61221
|
void 0,
|
|
61131
|
-
/*
|
|
61222
|
+
/*incompatibleErrorReporter*/
|
|
61132
61223
|
void 0,
|
|
61133
61224
|
compareTypesAssignable,
|
|
61134
61225
|
/*reportUnreliableMarkers*/
|
|
@@ -61202,12 +61293,7 @@ ${lanes.join("\n")}
|
|
|
61202
61293
|
const paramCount = sourceRestType || targetRestType ? Math.min(sourceCount, targetCount) : Math.max(sourceCount, targetCount);
|
|
61203
61294
|
const restIndex = sourceRestType || targetRestType ? paramCount - 1 : -1;
|
|
61204
61295
|
for (let i = 0; i < paramCount; i++) {
|
|
61205
|
-
const sourceType = i === restIndex ? getRestTypeAtPosition(
|
|
61206
|
-
source,
|
|
61207
|
-
i,
|
|
61208
|
-
/*readonly*/
|
|
61209
|
-
true
|
|
61210
|
-
) : tryGetTypeAtPosition(source, i);
|
|
61296
|
+
const sourceType = i === restIndex ? getRestTypeAtPosition(source, i) : tryGetTypeAtPosition(source, i);
|
|
61211
61297
|
const targetType = i === restIndex ? getRestTypeAtPosition(target, i) : tryGetTypeAtPosition(target, i);
|
|
61212
61298
|
if (sourceType && targetType) {
|
|
61213
61299
|
const sourceSig = checkMode & 3 /* Callback */ ? void 0 : getSingleCallSignature(getNonNullableType(sourceType));
|
|
@@ -61600,7 +61686,7 @@ ${lanes.join("\n")}
|
|
|
61600
61686
|
reportError(...stack[0]);
|
|
61601
61687
|
if (info) {
|
|
61602
61688
|
reportRelationError(
|
|
61603
|
-
/*
|
|
61689
|
+
/*message*/
|
|
61604
61690
|
void 0,
|
|
61605
61691
|
...info
|
|
61606
61692
|
);
|
|
@@ -61675,7 +61761,7 @@ ${lanes.join("\n")}
|
|
|
61675
61761
|
}
|
|
61676
61762
|
if (info) {
|
|
61677
61763
|
reportRelationError(
|
|
61678
|
-
/*
|
|
61764
|
+
/*message*/
|
|
61679
61765
|
void 0,
|
|
61680
61766
|
...info
|
|
61681
61767
|
);
|
|
@@ -62117,7 +62203,7 @@ ${lanes.join("\n")}
|
|
|
62117
62203
|
if (containsType(targetTypes, source2)) {
|
|
62118
62204
|
return -1 /* True */;
|
|
62119
62205
|
}
|
|
62120
|
-
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 */)) {
|
|
62206
|
+
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 */)) {
|
|
62121
62207
|
const alternateForm = source2 === source2.regularType ? source2.freshType : source2.regularType;
|
|
62122
62208
|
const primitive = source2.flags & 128 /* StringLiteral */ ? stringType : source2.flags & 256 /* NumberLiteral */ ? numberType : source2.flags & 2048 /* BigIntLiteral */ ? bigintType : void 0;
|
|
62123
62209
|
return primitive && containsType(targetTypes, primitive) || alternateForm && containsType(targetTypes, alternateForm) ? -1 /* True */ : 0 /* False */;
|
|
@@ -62348,7 +62434,7 @@ ${lanes.join("\n")}
|
|
|
62348
62434
|
target2,
|
|
62349
62435
|
intersectionState,
|
|
62350
62436
|
relation,
|
|
62351
|
-
/*
|
|
62437
|
+
/*ignoreConstraints*/
|
|
62352
62438
|
false
|
|
62353
62439
|
);
|
|
62354
62440
|
const entry = relation.get(id);
|
|
@@ -62744,7 +62830,7 @@ ${lanes.join("\n")}
|
|
|
62744
62830
|
constraint,
|
|
62745
62831
|
2 /* Target */,
|
|
62746
62832
|
reportErrors2,
|
|
62747
|
-
/*
|
|
62833
|
+
/*headMessage*/
|
|
62748
62834
|
void 0,
|
|
62749
62835
|
intersectionState
|
|
62750
62836
|
)) {
|
|
@@ -63156,7 +63242,7 @@ ${lanes.join("\n")}
|
|
|
63156
63242
|
source2,
|
|
63157
63243
|
type,
|
|
63158
63244
|
0 /* Call */,
|
|
63159
|
-
/*
|
|
63245
|
+
/*reportErrors*/
|
|
63160
63246
|
false,
|
|
63161
63247
|
0 /* None */
|
|
63162
63248
|
);
|
|
@@ -63165,7 +63251,7 @@ ${lanes.join("\n")}
|
|
|
63165
63251
|
source2,
|
|
63166
63252
|
type,
|
|
63167
63253
|
1 /* Construct */,
|
|
63168
|
-
/*
|
|
63254
|
+
/*reportErrors*/
|
|
63169
63255
|
false,
|
|
63170
63256
|
0 /* None */
|
|
63171
63257
|
);
|
|
@@ -63175,7 +63261,7 @@ ${lanes.join("\n")}
|
|
|
63175
63261
|
type,
|
|
63176
63262
|
/*sourceIsPrimitive*/
|
|
63177
63263
|
false,
|
|
63178
|
-
/*
|
|
63264
|
+
/*reportErrors*/
|
|
63179
63265
|
false,
|
|
63180
63266
|
0 /* None */
|
|
63181
63267
|
);
|
|
@@ -64665,6 +64751,7 @@ ${lanes.join("\n")}
|
|
|
64665
64751
|
param,
|
|
64666
64752
|
param.name.escapedText,
|
|
64667
64753
|
788968 /* Type */,
|
|
64754
|
+
/*nameNotFoundMessage*/
|
|
64668
64755
|
void 0,
|
|
64669
64756
|
param.name.escapedText,
|
|
64670
64757
|
/*isUse*/
|
|
@@ -64892,7 +64979,14 @@ ${lanes.join("\n")}
|
|
|
64892
64979
|
/*isReadonly*/
|
|
64893
64980
|
false
|
|
64894
64981
|
)] : emptyArray;
|
|
64895
|
-
return createAnonymousType(
|
|
64982
|
+
return createAnonymousType(
|
|
64983
|
+
/*symbol*/
|
|
64984
|
+
void 0,
|
|
64985
|
+
members,
|
|
64986
|
+
emptyArray,
|
|
64987
|
+
emptyArray,
|
|
64988
|
+
indexInfos
|
|
64989
|
+
);
|
|
64896
64990
|
}
|
|
64897
64991
|
function inferTypeForHomomorphicMappedType(source, target, constraint) {
|
|
64898
64992
|
if (inInferTypeForHomomorphicMappedType) {
|
|
@@ -66388,7 +66482,7 @@ ${lanes.join("\n")}
|
|
|
66388
66482
|
return source.flags & 1048576 /* Union */ ? !forEach(source.types, (t) => !contains(types, t)) : contains(types, source);
|
|
66389
66483
|
}
|
|
66390
66484
|
function isTypeSubsetOf(source, target) {
|
|
66391
|
-
return source === target || target.flags & 1048576 /* Union */ && isTypeSubsetOfUnion(source, target);
|
|
66485
|
+
return !!(source === target || source.flags & 131072 /* Never */ || target.flags & 1048576 /* Union */ && isTypeSubsetOfUnion(source, target));
|
|
66392
66486
|
}
|
|
66393
66487
|
function isTypeSubsetOfUnion(source, target) {
|
|
66394
66488
|
if (source.flags & 1048576 /* Union */) {
|
|
@@ -67088,7 +67182,7 @@ ${lanes.join("\n")}
|
|
|
67088
67182
|
return type;
|
|
67089
67183
|
}
|
|
67090
67184
|
pushIfUnique(antecedentTypes, type);
|
|
67091
|
-
if (!isTypeSubsetOf(type,
|
|
67185
|
+
if (!isTypeSubsetOf(type, initialType)) {
|
|
67092
67186
|
subtypeReduction = true;
|
|
67093
67187
|
}
|
|
67094
67188
|
if (isIncomplete(flowType)) {
|
|
@@ -67103,7 +67197,7 @@ ${lanes.join("\n")}
|
|
|
67103
67197
|
return type;
|
|
67104
67198
|
}
|
|
67105
67199
|
antecedentTypes.push(type);
|
|
67106
|
-
if (!isTypeSubsetOf(type,
|
|
67200
|
+
if (!isTypeSubsetOf(type, initialType)) {
|
|
67107
67201
|
subtypeReduction = true;
|
|
67108
67202
|
}
|
|
67109
67203
|
if (isIncomplete(flowType)) {
|
|
@@ -67157,7 +67251,7 @@ ${lanes.join("\n")}
|
|
|
67157
67251
|
}
|
|
67158
67252
|
const type = getTypeFromFlowType(flowType);
|
|
67159
67253
|
pushIfUnique(antecedentTypes, type);
|
|
67160
|
-
if (!isTypeSubsetOf(type,
|
|
67254
|
+
if (!isTypeSubsetOf(type, initialType)) {
|
|
67161
67255
|
subtypeReduction = true;
|
|
67162
67256
|
}
|
|
67163
67257
|
if (type === declaredType) {
|
|
@@ -68237,7 +68331,7 @@ ${lanes.join("\n")}
|
|
|
68237
68331
|
const isNodeInTypeQuery = isInTypeQuery(node);
|
|
68238
68332
|
let container = getThisContainer(
|
|
68239
68333
|
node,
|
|
68240
|
-
/*
|
|
68334
|
+
/*includeArrowFunctions*/
|
|
68241
68335
|
true,
|
|
68242
68336
|
/*includeClassComputedPropertyName*/
|
|
68243
68337
|
true
|
|
@@ -68251,7 +68345,7 @@ ${lanes.join("\n")}
|
|
|
68251
68345
|
if (container.kind === 217 /* ArrowFunction */) {
|
|
68252
68346
|
container = getThisContainer(
|
|
68253
68347
|
container,
|
|
68254
|
-
/*
|
|
68348
|
+
/*includeArrowFunctions*/
|
|
68255
68349
|
false,
|
|
68256
68350
|
!thisInComputedPropertyName
|
|
68257
68351
|
);
|
|
@@ -68864,6 +68958,7 @@ ${lanes.join("\n")}
|
|
|
68864
68958
|
id,
|
|
68865
68959
|
id.escapedText,
|
|
68866
68960
|
111551 /* Value */,
|
|
68961
|
+
/*nameNotFoundMessage*/
|
|
68867
68962
|
void 0,
|
|
68868
68963
|
id.escapedText,
|
|
68869
68964
|
/*isUse*/
|
|
@@ -68913,7 +69008,9 @@ ${lanes.join("\n")}
|
|
|
68913
69008
|
declaration.left,
|
|
68914
69009
|
name,
|
|
68915
69010
|
111551 /* Value */,
|
|
69011
|
+
/*nameNotFoundMessage*/
|
|
68916
69012
|
void 0,
|
|
69013
|
+
/*nameArg*/
|
|
68917
69014
|
void 0,
|
|
68918
69015
|
/*isUse*/
|
|
68919
69016
|
true,
|
|
@@ -70266,7 +70363,7 @@ ${lanes.join("\n")}
|
|
|
70266
70363
|
location,
|
|
70267
70364
|
namespaceName,
|
|
70268
70365
|
1920 /* Namespace */,
|
|
70269
|
-
/*
|
|
70366
|
+
/*nameNotFoundMessage*/
|
|
70270
70367
|
void 0,
|
|
70271
70368
|
namespaceName,
|
|
70272
70369
|
/*isUse*/
|
|
@@ -70289,7 +70386,7 @@ ${lanes.join("\n")}
|
|
|
70289
70386
|
const s = resolveSymbol(getGlobalSymbol(
|
|
70290
70387
|
JsxNames.JSX,
|
|
70291
70388
|
1920 /* Namespace */,
|
|
70292
|
-
/*
|
|
70389
|
+
/*diagnostic*/
|
|
70293
70390
|
void 0
|
|
70294
70391
|
));
|
|
70295
70392
|
if (s === unknownSymbol) {
|
|
@@ -70383,7 +70480,7 @@ ${lanes.join("\n")}
|
|
|
70383
70480
|
function generateInitialErrorChain() {
|
|
70384
70481
|
const componentName = getTextOfNode(openingLikeElement.tagName);
|
|
70385
70482
|
return chainDiagnosticMessages(
|
|
70386
|
-
/*
|
|
70483
|
+
/*details*/
|
|
70387
70484
|
void 0,
|
|
70388
70485
|
Diagnostics._0_cannot_be_used_as_a_JSX_component,
|
|
70389
70486
|
componentName
|
|
@@ -70641,7 +70738,7 @@ ${lanes.join("\n")}
|
|
|
70641
70738
|
function getThisParameterFromNodeContext(node) {
|
|
70642
70739
|
const thisContainer = getThisContainer(
|
|
70643
70740
|
node,
|
|
70644
|
-
/*
|
|
70741
|
+
/*includeArrowFunctions*/
|
|
70645
70742
|
false,
|
|
70646
70743
|
/*includeClassComputedPropertyName*/
|
|
70647
70744
|
false
|
|
@@ -70779,9 +70876,9 @@ ${lanes.join("\n")}
|
|
|
70779
70876
|
if (symbol) {
|
|
70780
70877
|
markPropertyAsReferenced(
|
|
70781
70878
|
symbol,
|
|
70782
|
-
/*
|
|
70879
|
+
/*nodeForCheckWriteOnly*/
|
|
70783
70880
|
void 0,
|
|
70784
|
-
/*
|
|
70881
|
+
/*isSelfTypeAccess*/
|
|
70785
70882
|
false
|
|
70786
70883
|
);
|
|
70787
70884
|
}
|
|
@@ -71322,7 +71419,7 @@ ${lanes.join("\n")}
|
|
|
71322
71419
|
return isPropertyAccessible(
|
|
71323
71420
|
node,
|
|
71324
71421
|
node.kind === 209 /* PropertyAccessExpression */ && node.expression.kind === 107 /* SuperKeyword */,
|
|
71325
|
-
/*
|
|
71422
|
+
/*isWrite*/
|
|
71326
71423
|
false,
|
|
71327
71424
|
type,
|
|
71328
71425
|
property
|
|
@@ -71336,7 +71433,7 @@ ${lanes.join("\n")}
|
|
|
71336
71433
|
return !!prop && isPropertyAccessible(
|
|
71337
71434
|
node,
|
|
71338
71435
|
isSuper,
|
|
71339
|
-
/*
|
|
71436
|
+
/*isWrite*/
|
|
71340
71437
|
false,
|
|
71341
71438
|
type,
|
|
71342
71439
|
prop
|
|
@@ -72049,7 +72146,17 @@ ${lanes.join("\n")}
|
|
|
72049
72146
|
function isPromiseResolveArityError(node) {
|
|
72050
72147
|
if (!isCallExpression(node) || !isIdentifier(node.expression))
|
|
72051
72148
|
return false;
|
|
72052
|
-
const symbol = resolveName(
|
|
72149
|
+
const symbol = resolveName(
|
|
72150
|
+
node.expression,
|
|
72151
|
+
node.expression.escapedText,
|
|
72152
|
+
111551 /* Value */,
|
|
72153
|
+
/*nameNotFoundMessage*/
|
|
72154
|
+
void 0,
|
|
72155
|
+
/*nameArg*/
|
|
72156
|
+
void 0,
|
|
72157
|
+
/*isUse*/
|
|
72158
|
+
false
|
|
72159
|
+
);
|
|
72053
72160
|
const decl = symbol == null ? void 0 : symbol.valueDeclaration;
|
|
72054
72161
|
if (!decl || !isParameter(decl) || !isFunctionExpressionOrArrowFunction(decl.parent) || !isNewExpression(decl.parent.parent) || !isIdentifier(decl.parent.parent.expression)) {
|
|
72055
72162
|
return false;
|
|
@@ -72528,7 +72635,7 @@ ${lanes.join("\n")}
|
|
|
72528
72635
|
parameters,
|
|
72529
72636
|
/*resolvedReturnType*/
|
|
72530
72637
|
getIntersectionType(candidates.map(getReturnTypeOfSignature)),
|
|
72531
|
-
/*
|
|
72638
|
+
/*resolvedTypePredicate*/
|
|
72532
72639
|
void 0,
|
|
72533
72640
|
minArgumentCount,
|
|
72534
72641
|
flags
|
|
@@ -72649,7 +72756,7 @@ ${lanes.join("\n")}
|
|
|
72649
72756
|
if (isLineBreak(text.charCodeAt(skipTrivia(
|
|
72650
72757
|
text,
|
|
72651
72758
|
node.expression.end,
|
|
72652
|
-
/*
|
|
72759
|
+
/*stopAfterLineBreak*/
|
|
72653
72760
|
true
|
|
72654
72761
|
) - 1))) {
|
|
72655
72762
|
relatedInformation = createDiagnosticForNode(node.expression, Diagnostics.Are_you_missing_a_semicolon);
|
|
@@ -72828,7 +72935,7 @@ ${lanes.join("\n")}
|
|
|
72828
72935
|
}
|
|
72829
72936
|
if (!hasSignatures) {
|
|
72830
72937
|
errorInfo = chainDiagnosticMessages(
|
|
72831
|
-
/*
|
|
72938
|
+
/*details*/
|
|
72832
72939
|
void 0,
|
|
72833
72940
|
isCall ? Diagnostics.No_constituent_of_type_0_is_callable : Diagnostics.No_constituent_of_type_0_is_constructable,
|
|
72834
72941
|
typeToString(apparentType)
|
|
@@ -72869,7 +72976,7 @@ ${lanes.join("\n")}
|
|
|
72869
72976
|
if (isCallExpression(errorTarget.parent)) {
|
|
72870
72977
|
const { start, length: length2 } = getDiagnosticSpanForCallNode(
|
|
72871
72978
|
errorTarget.parent,
|
|
72872
|
-
/*
|
|
72979
|
+
/*doNotIncludeArguments*/
|
|
72873
72980
|
true
|
|
72874
72981
|
);
|
|
72875
72982
|
diagnostic.start = start;
|
|
@@ -72977,10 +73084,10 @@ ${lanes.join("\n")}
|
|
|
72977
73084
|
[factory.createParameterDeclaration(
|
|
72978
73085
|
/*modifiers*/
|
|
72979
73086
|
void 0,
|
|
72980
|
-
/*
|
|
73087
|
+
/*dotDotDotToken*/
|
|
72981
73088
|
void 0,
|
|
72982
73089
|
"props",
|
|
72983
|
-
/*
|
|
73090
|
+
/*questionToken*/
|
|
72984
73091
|
void 0,
|
|
72985
73092
|
nodeBuilder.typeToTypeNode(result, node)
|
|
72986
73093
|
)],
|
|
@@ -73000,7 +73107,7 @@ ${lanes.join("\n")}
|
|
|
73000
73107
|
void 0,
|
|
73001
73108
|
[parameterSymbol],
|
|
73002
73109
|
typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType,
|
|
73003
|
-
/*
|
|
73110
|
+
/*resolvedTypePredicate*/
|
|
73004
73111
|
void 0,
|
|
73005
73112
|
1,
|
|
73006
73113
|
0 /* None */
|
|
@@ -73070,8 +73177,11 @@ ${lanes.join("\n")}
|
|
|
73070
73177
|
return cached;
|
|
73071
73178
|
}
|
|
73072
73179
|
links.resolvedSignature = resolvingSignature;
|
|
73073
|
-
|
|
73180
|
+
let result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */);
|
|
73074
73181
|
if (result !== resolvingSignature) {
|
|
73182
|
+
if (links.resolvedSignature !== resolvingSignature) {
|
|
73183
|
+
result = links.resolvedSignature;
|
|
73184
|
+
}
|
|
73075
73185
|
links.resolvedSignature = flowLoopStart === flowLoopCount ? result : cached;
|
|
73076
73186
|
}
|
|
73077
73187
|
return result;
|
|
@@ -73317,9 +73427,9 @@ ${lanes.join("\n")}
|
|
|
73317
73427
|
const esModuleSymbol = resolveESModuleSymbol(
|
|
73318
73428
|
moduleSymbol,
|
|
73319
73429
|
specifier,
|
|
73320
|
-
/*
|
|
73430
|
+
/*dontResolveAlias*/
|
|
73321
73431
|
true,
|
|
73322
|
-
/*
|
|
73432
|
+
/*suppressInteropError*/
|
|
73323
73433
|
false
|
|
73324
73434
|
);
|
|
73325
73435
|
if (esModuleSymbol) {
|
|
@@ -73389,7 +73499,7 @@ ${lanes.join("\n")}
|
|
|
73389
73499
|
function isCommonJsRequire(node) {
|
|
73390
73500
|
if (!isRequireCall(
|
|
73391
73501
|
node,
|
|
73392
|
-
/*
|
|
73502
|
+
/*requireStringLiteralLikeArgument*/
|
|
73393
73503
|
true
|
|
73394
73504
|
)) {
|
|
73395
73505
|
return false;
|
|
@@ -73430,14 +73540,14 @@ ${lanes.join("\n")}
|
|
|
73430
73540
|
checkDeprecatedSignature(signature, node);
|
|
73431
73541
|
return getReturnTypeOfSignature(signature);
|
|
73432
73542
|
}
|
|
73433
|
-
function checkAssertion(node) {
|
|
73543
|
+
function checkAssertion(node, checkMode) {
|
|
73434
73544
|
if (node.kind === 214 /* TypeAssertionExpression */) {
|
|
73435
73545
|
const file = getSourceFileOfNode(node);
|
|
73436
73546
|
if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) {
|
|
73437
73547
|
grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead);
|
|
73438
73548
|
}
|
|
73439
73549
|
}
|
|
73440
|
-
return checkAssertionWorker(node,
|
|
73550
|
+
return checkAssertionWorker(node, checkMode);
|
|
73441
73551
|
}
|
|
73442
73552
|
function isValidConstAssertionArgument(node) {
|
|
73443
73553
|
switch (node.kind) {
|
|
@@ -73470,8 +73580,9 @@ ${lanes.join("\n")}
|
|
|
73470
73580
|
}
|
|
73471
73581
|
return false;
|
|
73472
73582
|
}
|
|
73473
|
-
function checkAssertionWorker(
|
|
73474
|
-
|
|
73583
|
+
function checkAssertionWorker(node, checkMode) {
|
|
73584
|
+
const { type, expression } = getAssertionTypeAndExpression(node);
|
|
73585
|
+
const exprType = checkExpression(expression, checkMode);
|
|
73475
73586
|
if (isConstTypeReference(type)) {
|
|
73476
73587
|
if (!isValidConstAssertionArgument(expression)) {
|
|
73477
73588
|
error(expression, Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals);
|
|
@@ -73479,7 +73590,29 @@ ${lanes.join("\n")}
|
|
|
73479
73590
|
return getRegularTypeOfLiteralType(exprType);
|
|
73480
73591
|
}
|
|
73481
73592
|
checkSourceElement(type);
|
|
73482
|
-
|
|
73593
|
+
checkNodeDeferred(node);
|
|
73594
|
+
return getTypeFromTypeNode(type);
|
|
73595
|
+
}
|
|
73596
|
+
function getAssertionTypeAndExpression(node) {
|
|
73597
|
+
let type;
|
|
73598
|
+
let expression;
|
|
73599
|
+
switch (node.kind) {
|
|
73600
|
+
case 232 /* AsExpression */:
|
|
73601
|
+
case 214 /* TypeAssertionExpression */:
|
|
73602
|
+
type = node.type;
|
|
73603
|
+
expression = node.expression;
|
|
73604
|
+
break;
|
|
73605
|
+
case 215 /* ParenthesizedExpression */:
|
|
73606
|
+
type = getJSDocTypeAssertionType(node);
|
|
73607
|
+
expression = node.expression;
|
|
73608
|
+
break;
|
|
73609
|
+
}
|
|
73610
|
+
return { type, expression };
|
|
73611
|
+
}
|
|
73612
|
+
function checkAssertionDeferred(node) {
|
|
73613
|
+
const { type, expression } = getAssertionTypeAndExpression(node);
|
|
73614
|
+
const errNode = isParenthesizedExpression(node) ? type : node;
|
|
73615
|
+
const exprType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(checkExpression(expression)));
|
|
73483
73616
|
const targetType = getTypeFromTypeNode(type);
|
|
73484
73617
|
if (!isErrorType(targetType)) {
|
|
73485
73618
|
addLazyDiagnostic(() => {
|
|
@@ -73494,7 +73627,6 @@ ${lanes.join("\n")}
|
|
|
73494
73627
|
}
|
|
73495
73628
|
});
|
|
73496
73629
|
}
|
|
73497
|
-
return targetType;
|
|
73498
73630
|
}
|
|
73499
73631
|
function checkNonNullChain(node) {
|
|
73500
73632
|
const leftType = checkExpression(node.expression);
|
|
@@ -73546,7 +73678,14 @@ ${lanes.join("\n")}
|
|
|
73546
73678
|
hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0);
|
|
73547
73679
|
hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);
|
|
73548
73680
|
if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {
|
|
73549
|
-
const result3 = createAnonymousType(
|
|
73681
|
+
const result3 = createAnonymousType(
|
|
73682
|
+
/*symbol*/
|
|
73683
|
+
void 0,
|
|
73684
|
+
resolved.members,
|
|
73685
|
+
callSignatures,
|
|
73686
|
+
constructSignatures,
|
|
73687
|
+
resolved.indexInfos
|
|
73688
|
+
);
|
|
73550
73689
|
result3.objectFlags |= 8388608 /* InstantiationExpressionType */;
|
|
73551
73690
|
result3.node = node;
|
|
73552
73691
|
return result3;
|
|
@@ -73735,12 +73874,12 @@ ${lanes.join("\n")}
|
|
|
73735
73874
|
}
|
|
73736
73875
|
return void 0;
|
|
73737
73876
|
}
|
|
73738
|
-
function getRestTypeAtPosition(source, pos
|
|
73877
|
+
function getRestTypeAtPosition(source, pos) {
|
|
73739
73878
|
const parameterCount = getParameterCount(source);
|
|
73740
73879
|
const minArgumentCount = getMinArgumentCount(source);
|
|
73741
73880
|
const restType = getEffectiveRestType(source);
|
|
73742
73881
|
if (restType && pos >= parameterCount - 1) {
|
|
73743
|
-
return pos === parameterCount - 1 ? restType : createArrayType(getIndexedAccessType(restType, numberType)
|
|
73882
|
+
return pos === parameterCount - 1 ? restType : createArrayType(getIndexedAccessType(restType, numberType));
|
|
73744
73883
|
}
|
|
73745
73884
|
const types = [];
|
|
73746
73885
|
const flags = [];
|
|
@@ -73758,7 +73897,13 @@ ${lanes.join("\n")}
|
|
|
73758
73897
|
names.push(name);
|
|
73759
73898
|
}
|
|
73760
73899
|
}
|
|
73761
|
-
return createTupleType(
|
|
73900
|
+
return createTupleType(
|
|
73901
|
+
types,
|
|
73902
|
+
flags,
|
|
73903
|
+
/*readonly*/
|
|
73904
|
+
false,
|
|
73905
|
+
length(names) === length(types) ? names : void 0
|
|
73906
|
+
);
|
|
73762
73907
|
}
|
|
73763
73908
|
function getParameterCount(signature) {
|
|
73764
73909
|
const length2 = signature.parameters.length;
|
|
@@ -73988,13 +74133,13 @@ ${lanes.join("\n")}
|
|
|
73988
74133
|
}
|
|
73989
74134
|
function createClassAccessorDecoratorTargetType(thisType, valueType) {
|
|
73990
74135
|
return tryCreateTypeReference(getGlobalClassAccessorDecoratorTargetType(
|
|
73991
|
-
/*
|
|
74136
|
+
/*reportErrors*/
|
|
73992
74137
|
true
|
|
73993
74138
|
), [thisType, valueType]);
|
|
73994
74139
|
}
|
|
73995
74140
|
function createClassAccessorDecoratorResultType(thisType, valueType) {
|
|
73996
74141
|
return tryCreateTypeReference(getGlobalClassAccessorDecoratorResultType(
|
|
73997
|
-
/*
|
|
74142
|
+
/*reportErrors*/
|
|
73998
74143
|
true
|
|
73999
74144
|
), [thisType, valueType]);
|
|
74000
74145
|
}
|
|
@@ -74512,8 +74657,11 @@ ${lanes.join("\n")}
|
|
|
74512
74657
|
}
|
|
74513
74658
|
const returnType = getReturnTypeFromBody(node, checkMode);
|
|
74514
74659
|
const returnOnlySignature = createSignature(
|
|
74660
|
+
/*declaration*/
|
|
74515
74661
|
void 0,
|
|
74662
|
+
/*typeParameters*/
|
|
74516
74663
|
void 0,
|
|
74664
|
+
/*thisParameter*/
|
|
74517
74665
|
void 0,
|
|
74518
74666
|
emptyArray,
|
|
74519
74667
|
returnType,
|
|
@@ -75561,6 +75709,7 @@ ${lanes.join("\n")}
|
|
|
75561
75709
|
prop.valueDeclaration,
|
|
75562
75710
|
name,
|
|
75563
75711
|
788968 /* Type */,
|
|
75712
|
+
/*nameNotFoundMessage*/
|
|
75564
75713
|
void 0,
|
|
75565
75714
|
name,
|
|
75566
75715
|
/*isUse*/
|
|
@@ -76167,7 +76316,7 @@ ${lanes.join("\n")}
|
|
|
76167
76316
|
}
|
|
76168
76317
|
if (isCallExpression(expr) && expr.expression.kind !== 107 /* SuperKeyword */ && !isRequireCall(
|
|
76169
76318
|
expr,
|
|
76170
|
-
/*
|
|
76319
|
+
/*requireStringLiteralLikeArgument*/
|
|
76171
76320
|
true
|
|
76172
76321
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
76173
76322
|
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));
|
|
@@ -76227,8 +76376,7 @@ ${lanes.join("\n")}
|
|
|
76227
76376
|
return checkSatisfiesExpressionWorker(node.expression, getJSDocSatisfiesExpressionType(node), checkMode);
|
|
76228
76377
|
}
|
|
76229
76378
|
if (isJSDocTypeAssertion(node)) {
|
|
76230
|
-
|
|
76231
|
-
return checkAssertionWorker(type, type, node.expression, checkMode);
|
|
76379
|
+
return checkAssertionWorker(node, checkMode);
|
|
76232
76380
|
}
|
|
76233
76381
|
}
|
|
76234
76382
|
return checkExpression(node.expression, checkMode);
|
|
@@ -76303,7 +76451,7 @@ ${lanes.join("\n")}
|
|
|
76303
76451
|
return checkTypeOfExpression(node);
|
|
76304
76452
|
case 214 /* TypeAssertionExpression */:
|
|
76305
76453
|
case 232 /* AsExpression */:
|
|
76306
|
-
return checkAssertion(node);
|
|
76454
|
+
return checkAssertion(node, checkMode);
|
|
76307
76455
|
case 233 /* NonNullExpression */:
|
|
76308
76456
|
return checkNonNullAssertion(node);
|
|
76309
76457
|
case 231 /* ExpressionWithTypeArguments */:
|
|
@@ -77820,7 +77968,7 @@ ${lanes.join("\n")}
|
|
|
77820
77968
|
void 0,
|
|
77821
77969
|
/*nameArg*/
|
|
77822
77970
|
void 0,
|
|
77823
|
-
/*
|
|
77971
|
+
/*isUse*/
|
|
77824
77972
|
true
|
|
77825
77973
|
);
|
|
77826
77974
|
if (rootSymbol && rootSymbol.flags & 2097152 /* Alias */) {
|
|
@@ -78564,7 +78712,7 @@ ${lanes.join("\n")}
|
|
|
78564
78712
|
node,
|
|
78565
78713
|
node.name.escapedText,
|
|
78566
78714
|
3 /* Variable */,
|
|
78567
|
-
/*
|
|
78715
|
+
/*nameNotFoundMessage*/
|
|
78568
78716
|
void 0,
|
|
78569
78717
|
/*nameArg*/
|
|
78570
78718
|
void 0,
|
|
@@ -79382,12 +79530,12 @@ ${lanes.join("\n")}
|
|
|
79382
79530
|
const suggestAwait = (
|
|
79383
79531
|
// for (const x of Promise<...>) or [...Promise<...>]
|
|
79384
79532
|
!!getAwaitedTypeOfPromise(type) || !allowAsyncIterables && isForOfStatement(errorNode.parent) && errorNode.parent.expression === errorNode && getGlobalAsyncIterableType(
|
|
79385
|
-
|
|
79533
|
+
/*reportErrors*/
|
|
79386
79534
|
false
|
|
79387
79535
|
) !== emptyGenericType && isTypeAssignableTo(
|
|
79388
79536
|
type,
|
|
79389
79537
|
getGlobalAsyncIterableType(
|
|
79390
|
-
|
|
79538
|
+
/*reportErrors*/
|
|
79391
79539
|
false
|
|
79392
79540
|
)
|
|
79393
79541
|
)
|
|
@@ -80255,7 +80403,7 @@ ${lanes.join("\n")}
|
|
|
80255
80403
|
type,
|
|
80256
80404
|
typeWithThis,
|
|
80257
80405
|
param,
|
|
80258
|
-
/*
|
|
80406
|
+
/*memberIsParameterProperty*/
|
|
80259
80407
|
true
|
|
80260
80408
|
);
|
|
80261
80409
|
}
|
|
@@ -80269,7 +80417,7 @@ ${lanes.join("\n")}
|
|
|
80269
80417
|
type,
|
|
80270
80418
|
typeWithThis,
|
|
80271
80419
|
member,
|
|
80272
|
-
/*
|
|
80420
|
+
/*memberIsParameterProperty*/
|
|
80273
80421
|
false
|
|
80274
80422
|
);
|
|
80275
80423
|
}
|
|
@@ -80373,7 +80521,7 @@ ${lanes.join("\n")}
|
|
|
80373
80521
|
getTypeOfSymbol(prop),
|
|
80374
80522
|
getTypeOfSymbol(baseProp),
|
|
80375
80523
|
member.name || member,
|
|
80376
|
-
/*
|
|
80524
|
+
/*headMessage*/
|
|
80377
80525
|
void 0,
|
|
80378
80526
|
rootChain
|
|
80379
80527
|
)) {
|
|
@@ -80421,7 +80569,7 @@ ${lanes.join("\n")}
|
|
|
80421
80569
|
memberHasOverrideModifier,
|
|
80422
80570
|
hasAbstractModifier(member),
|
|
80423
80571
|
isStatic(member),
|
|
80424
|
-
/*
|
|
80572
|
+
/*memberIsParameterProperty*/
|
|
80425
80573
|
false,
|
|
80426
80574
|
symbolName(memberSymbol)
|
|
80427
80575
|
);
|
|
@@ -81889,6 +82037,10 @@ ${lanes.join("\n")}
|
|
|
81889
82037
|
case 282 /* JsxElement */:
|
|
81890
82038
|
checkJsxElementDeferred(node);
|
|
81891
82039
|
break;
|
|
82040
|
+
case 214 /* TypeAssertionExpression */:
|
|
82041
|
+
case 232 /* AsExpression */:
|
|
82042
|
+
case 215 /* ParenthesizedExpression */:
|
|
82043
|
+
checkAssertionDeferred(node);
|
|
81892
82044
|
}
|
|
81893
82045
|
currentNode = saveCurrentNode;
|
|
81894
82046
|
(_b = tracing) == null ? void 0 : _b.pop();
|
|
@@ -82251,7 +82403,12 @@ ${lanes.join("\n")}
|
|
|
82251
82403
|
meaning = 1920 /* Namespace */;
|
|
82252
82404
|
}
|
|
82253
82405
|
meaning |= 2097152 /* Alias */;
|
|
82254
|
-
const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName(
|
|
82406
|
+
const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName(
|
|
82407
|
+
name,
|
|
82408
|
+
meaning,
|
|
82409
|
+
/*ignoreErrors*/
|
|
82410
|
+
true
|
|
82411
|
+
) : void 0;
|
|
82255
82412
|
if (entityNameSymbol) {
|
|
82256
82413
|
return entityNameSymbol;
|
|
82257
82414
|
}
|
|
@@ -82280,7 +82437,7 @@ ${lanes.join("\n")}
|
|
|
82280
82437
|
meaning,
|
|
82281
82438
|
/*ignoreErrors*/
|
|
82282
82439
|
false,
|
|
82283
|
-
/*
|
|
82440
|
+
/*dontResolveAlias*/
|
|
82284
82441
|
true,
|
|
82285
82442
|
getHostSignatureFromJSDoc(name)
|
|
82286
82443
|
);
|
|
@@ -82303,7 +82460,7 @@ ${lanes.join("\n")}
|
|
|
82303
82460
|
meaning,
|
|
82304
82461
|
/*ignoreErrors*/
|
|
82305
82462
|
true,
|
|
82306
|
-
/*
|
|
82463
|
+
/*dontResolveAlias*/
|
|
82307
82464
|
true,
|
|
82308
82465
|
getSourceFileOfNode(container)
|
|
82309
82466
|
) || result;
|
|
@@ -82476,7 +82633,7 @@ ${lanes.join("\n")}
|
|
|
82476
82633
|
case 14 /* NoSubstitutionTemplateLiteral */:
|
|
82477
82634
|
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(
|
|
82478
82635
|
node.parent,
|
|
82479
|
-
/*
|
|
82636
|
+
/*requireStringLiteralLikeArgument*/
|
|
82480
82637
|
false
|
|
82481
82638
|
) || isImportCall(node.parent)) || isLiteralTypeNode(node.parent) && isLiteralImportTypeNode(node.parent.parent) && node.parent.parent.argument === node.parent) {
|
|
82482
82639
|
return resolveExternalModuleName(node, node, ignoreErrors);
|
|
@@ -83090,7 +83247,7 @@ ${lanes.join("\n")}
|
|
|
83090
83247
|
location,
|
|
83091
83248
|
reference.escapedText,
|
|
83092
83249
|
111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */,
|
|
83093
|
-
/*
|
|
83250
|
+
/*nameNotFoundMessage*/
|
|
83094
83251
|
void 0,
|
|
83095
83252
|
/*nameArg*/
|
|
83096
83253
|
void 0,
|
|
@@ -83107,7 +83264,7 @@ ${lanes.join("\n")}
|
|
|
83107
83264
|
reference,
|
|
83108
83265
|
reference.escapedText,
|
|
83109
83266
|
111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */,
|
|
83110
|
-
/*
|
|
83267
|
+
/*nameNotFoundMessage*/
|
|
83111
83268
|
void 0,
|
|
83112
83269
|
/*nameArg*/
|
|
83113
83270
|
void 0,
|
|
@@ -83524,7 +83681,14 @@ ${lanes.join("\n")}
|
|
|
83524
83681
|
anyArrayType = createArrayType(anyType);
|
|
83525
83682
|
autoArrayType = createArrayType(autoType);
|
|
83526
83683
|
if (autoArrayType === emptyObjectType) {
|
|
83527
|
-
autoArrayType = createAnonymousType(
|
|
83684
|
+
autoArrayType = createAnonymousType(
|
|
83685
|
+
/*symbol*/
|
|
83686
|
+
void 0,
|
|
83687
|
+
emptySymbols,
|
|
83688
|
+
emptyArray,
|
|
83689
|
+
emptyArray,
|
|
83690
|
+
emptyArray
|
|
83691
|
+
);
|
|
83528
83692
|
}
|
|
83529
83693
|
globalReadonlyArrayType = getGlobalTypeOrUndefined(
|
|
83530
83694
|
"ReadonlyArray",
|
|
@@ -84642,7 +84806,7 @@ ${lanes.join("\n")}
|
|
|
84642
84806
|
if (node.label && current.label.escapedText === node.label.escapedText) {
|
|
84643
84807
|
const isMisplacedContinueLabel = node.kind === 249 /* ContinueStatement */ && !isIterationStatement(
|
|
84644
84808
|
current.statement,
|
|
84645
|
-
/*
|
|
84809
|
+
/*lookInLabeledStatements*/
|
|
84646
84810
|
true
|
|
84647
84811
|
);
|
|
84648
84812
|
if (isMisplacedContinueLabel) {
|
|
@@ -84659,7 +84823,7 @@ ${lanes.join("\n")}
|
|
|
84659
84823
|
default:
|
|
84660
84824
|
if (isIterationStatement(
|
|
84661
84825
|
current,
|
|
84662
|
-
/*
|
|
84826
|
+
/*lookInLabeledStatements*/
|
|
84663
84827
|
false
|
|
84664
84828
|
) && !node.label) {
|
|
84665
84829
|
return false;
|
|
@@ -88605,7 +88769,7 @@ ${lanes.join("\n")}
|
|
|
88605
88769
|
let facts = 0 /* None */;
|
|
88606
88770
|
if (some(getProperties(
|
|
88607
88771
|
node,
|
|
88608
|
-
/*
|
|
88772
|
+
/*requireInitializer*/
|
|
88609
88773
|
true,
|
|
88610
88774
|
/*isStatic*/
|
|
88611
88775
|
true
|
|
@@ -90483,10 +90647,10 @@ ${lanes.join("\n")}
|
|
|
90483
90647
|
filter(node.modifiers, (m) => isModifier(m) && !isStaticModifier(m) && !isAccessorModifier(m)),
|
|
90484
90648
|
node.asteriskToken,
|
|
90485
90649
|
functionName,
|
|
90486
|
-
/*
|
|
90650
|
+
/*typeParameters*/
|
|
90487
90651
|
void 0,
|
|
90488
90652
|
visitParameterList(node.parameters, visitor, context),
|
|
90489
|
-
/*
|
|
90653
|
+
/*type*/
|
|
90490
90654
|
void 0,
|
|
90491
90655
|
visitFunctionBody(node.body, visitor, context)
|
|
90492
90656
|
)
|
|
@@ -91091,7 +91255,7 @@ ${lanes.join("\n")}
|
|
|
91091
91255
|
info.brandCheckIdentifier,
|
|
91092
91256
|
right,
|
|
91093
91257
|
info.kind,
|
|
91094
|
-
/*
|
|
91258
|
+
/*f*/
|
|
91095
91259
|
void 0
|
|
91096
91260
|
);
|
|
91097
91261
|
case "f" /* Field */:
|
|
@@ -91163,7 +91327,7 @@ ${lanes.join("\n")}
|
|
|
91163
91327
|
if (facts & 4 /* NeedsClassSuperReference */) {
|
|
91164
91328
|
const temp = factory2.createTempVariable(
|
|
91165
91329
|
hoistVariableDeclaration,
|
|
91166
|
-
/*
|
|
91330
|
+
/*reservedInNestedScopes*/
|
|
91167
91331
|
true
|
|
91168
91332
|
);
|
|
91169
91333
|
getClassLexicalEnvironment().superClassReference = temp;
|
|
@@ -91996,7 +92160,7 @@ ${lanes.join("\n")}
|
|
|
91996
92160
|
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(
|
|
91997
92161
|
/*recordTempVariable*/
|
|
91998
92162
|
void 0,
|
|
91999
|
-
/*
|
|
92163
|
+
/*reservedInNestedScopes*/
|
|
92000
92164
|
true,
|
|
92001
92165
|
prefix,
|
|
92002
92166
|
suffix
|
|
@@ -92714,11 +92878,11 @@ ${lanes.join("\n")}
|
|
|
92714
92878
|
}
|
|
92715
92879
|
function visitClassDeclaration(node) {
|
|
92716
92880
|
if (!(classOrConstructorParameterIsDecorated(
|
|
92717
|
-
/*
|
|
92881
|
+
/*useLegacyDecorators*/
|
|
92718
92882
|
true,
|
|
92719
92883
|
node
|
|
92720
92884
|
) || childIsDecorated(
|
|
92721
|
-
/*
|
|
92885
|
+
/*useLegacyDecorators*/
|
|
92722
92886
|
true,
|
|
92723
92887
|
node
|
|
92724
92888
|
))) {
|
|
@@ -92973,7 +93137,7 @@ ${lanes.join("\n")}
|
|
|
92973
93137
|
}
|
|
92974
93138
|
function isDecoratedClassElement(member, isStaticElement, parent2) {
|
|
92975
93139
|
return nodeOrChildIsDecorated(
|
|
92976
|
-
/*
|
|
93140
|
+
/*useLegacyDecorators*/
|
|
92977
93141
|
true,
|
|
92978
93142
|
member,
|
|
92979
93143
|
parent2
|
|
@@ -93331,7 +93495,7 @@ ${lanes.join("\n")}
|
|
|
93331
93495
|
case 223 /* PostfixUnaryExpression */:
|
|
93332
93496
|
return visitPreOrPostfixUnaryExpression(
|
|
93333
93497
|
node,
|
|
93334
|
-
/*
|
|
93498
|
+
/*discarded*/
|
|
93335
93499
|
false
|
|
93336
93500
|
);
|
|
93337
93501
|
case 209 /* PropertyAccessExpression */:
|
|
@@ -93482,7 +93646,7 @@ ${lanes.join("\n")}
|
|
|
93482
93646
|
let hasStaticPrivateClassElements = false;
|
|
93483
93647
|
for (const member of node.members) {
|
|
93484
93648
|
if (isNamedClassElement(member) && nodeOrChildIsDecorated(
|
|
93485
|
-
/*
|
|
93649
|
+
/*useLegacyDecorators*/
|
|
93486
93650
|
false,
|
|
93487
93651
|
member,
|
|
93488
93652
|
node
|
|
@@ -93721,7 +93885,7 @@ ${lanes.join("\n")}
|
|
|
93721
93885
|
if (leadingBlockStatements) {
|
|
93722
93886
|
const leadingStaticBlockBody = factory2.createBlock(
|
|
93723
93887
|
leadingBlockStatements,
|
|
93724
|
-
/*
|
|
93888
|
+
/*multiLine*/
|
|
93725
93889
|
true
|
|
93726
93890
|
);
|
|
93727
93891
|
const leadingStaticBlock = factory2.createClassStaticBlockDeclaration(leadingStaticBlockBody);
|
|
@@ -93736,7 +93900,7 @@ ${lanes.join("\n")}
|
|
|
93736
93900
|
if (trailingBlockStatements) {
|
|
93737
93901
|
const trailingStaticBlockBody = factory2.createBlock(
|
|
93738
93902
|
trailingBlockStatements,
|
|
93739
|
-
/*
|
|
93903
|
+
/*multiLine*/
|
|
93740
93904
|
true
|
|
93741
93905
|
);
|
|
93742
93906
|
const trailingStaticBlock = factory2.createClassStaticBlockDeclaration(trailingStaticBlockBody);
|
|
@@ -93802,11 +93966,11 @@ ${lanes.join("\n")}
|
|
|
93802
93966
|
}
|
|
93803
93967
|
function isDecoratedClassLike(node) {
|
|
93804
93968
|
return classOrConstructorParameterIsDecorated(
|
|
93805
|
-
/*
|
|
93969
|
+
/*useLegacyDecorators*/
|
|
93806
93970
|
false,
|
|
93807
93971
|
node
|
|
93808
93972
|
) || childIsDecorated(
|
|
93809
|
-
/*
|
|
93973
|
+
/*useLegacyDecorators*/
|
|
93810
93974
|
false,
|
|
93811
93975
|
node
|
|
93812
93976
|
);
|
|
@@ -95492,15 +95656,15 @@ ${lanes.join("\n")}
|
|
|
95492
95656
|
getterAndSetter.push(factory2.createPropertyAssignment(
|
|
95493
95657
|
"get",
|
|
95494
95658
|
factory2.createArrowFunction(
|
|
95495
|
-
/*
|
|
95659
|
+
/*modifiers*/
|
|
95496
95660
|
void 0,
|
|
95497
|
-
/*
|
|
95661
|
+
/*typeParameters*/
|
|
95498
95662
|
void 0,
|
|
95499
95663
|
/* parameters */
|
|
95500
95664
|
[],
|
|
95501
|
-
/*
|
|
95665
|
+
/*type*/
|
|
95502
95666
|
void 0,
|
|
95503
|
-
/*
|
|
95667
|
+
/*equalsGreaterThanToken*/
|
|
95504
95668
|
void 0,
|
|
95505
95669
|
setEmitFlags(
|
|
95506
95670
|
factory2.createPropertyAccessExpression(
|
|
@@ -95519,29 +95683,29 @@ ${lanes.join("\n")}
|
|
|
95519
95683
|
factory2.createPropertyAssignment(
|
|
95520
95684
|
"set",
|
|
95521
95685
|
factory2.createArrowFunction(
|
|
95522
|
-
/*
|
|
95686
|
+
/*modifiers*/
|
|
95523
95687
|
void 0,
|
|
95524
|
-
/*
|
|
95688
|
+
/*typeParameters*/
|
|
95525
95689
|
void 0,
|
|
95526
95690
|
/* parameters */
|
|
95527
95691
|
[
|
|
95528
95692
|
factory2.createParameterDeclaration(
|
|
95529
|
-
/*
|
|
95693
|
+
/*modifiers*/
|
|
95530
95694
|
void 0,
|
|
95531
|
-
/*
|
|
95695
|
+
/*dotDotDotToken*/
|
|
95532
95696
|
void 0,
|
|
95533
95697
|
"v",
|
|
95534
|
-
/*
|
|
95698
|
+
/*questionToken*/
|
|
95535
95699
|
void 0,
|
|
95536
|
-
/*
|
|
95700
|
+
/*type*/
|
|
95537
95701
|
void 0,
|
|
95538
|
-
/*
|
|
95702
|
+
/*initializer*/
|
|
95539
95703
|
void 0
|
|
95540
95704
|
)
|
|
95541
95705
|
],
|
|
95542
|
-
/*
|
|
95706
|
+
/*type*/
|
|
95543
95707
|
void 0,
|
|
95544
|
-
/*
|
|
95708
|
+
/*equalsGreaterThanToken*/
|
|
95545
95709
|
void 0,
|
|
95546
95710
|
factory2.createAssignment(
|
|
95547
95711
|
setEmitFlags(
|
|
@@ -95568,7 +95732,7 @@ ${lanes.join("\n")}
|
|
|
95568
95732
|
);
|
|
95569
95733
|
});
|
|
95570
95734
|
return factory2.createVariableStatement(
|
|
95571
|
-
/*
|
|
95735
|
+
/*modifiers*/
|
|
95572
95736
|
void 0,
|
|
95573
95737
|
factory2.createVariableDeclarationList(
|
|
95574
95738
|
[
|
|
@@ -95576,20 +95740,20 @@ ${lanes.join("\n")}
|
|
|
95576
95740
|
factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */),
|
|
95577
95741
|
/*exclamationToken*/
|
|
95578
95742
|
void 0,
|
|
95579
|
-
/*
|
|
95743
|
+
/*type*/
|
|
95580
95744
|
void 0,
|
|
95581
95745
|
factory2.createCallExpression(
|
|
95582
95746
|
factory2.createPropertyAccessExpression(
|
|
95583
95747
|
factory2.createIdentifier("Object"),
|
|
95584
95748
|
"create"
|
|
95585
95749
|
),
|
|
95586
|
-
/*
|
|
95750
|
+
/*typeArguments*/
|
|
95587
95751
|
void 0,
|
|
95588
95752
|
[
|
|
95589
95753
|
factory2.createNull(),
|
|
95590
95754
|
factory2.createObjectLiteralExpression(
|
|
95591
95755
|
accessors,
|
|
95592
|
-
/*
|
|
95756
|
+
/*multiLine*/
|
|
95593
95757
|
true
|
|
95594
95758
|
)
|
|
95595
95759
|
]
|
|
@@ -96467,7 +96631,7 @@ ${lanes.join("\n")}
|
|
|
96467
96631
|
enclosingFunctionFlags & 2 /* Async */ ? void 0 : node.asteriskToken,
|
|
96468
96632
|
visitNode(node.name, visitor, isPropertyName),
|
|
96469
96633
|
visitNode(
|
|
96470
|
-
/*
|
|
96634
|
+
/*node*/
|
|
96471
96635
|
void 0,
|
|
96472
96636
|
visitor,
|
|
96473
96637
|
isQuestionToken
|
|
@@ -96693,7 +96857,7 @@ ${lanes.join("\n")}
|
|
|
96693
96857
|
context,
|
|
96694
96858
|
1 /* ObjectRest */,
|
|
96695
96859
|
factory2.getGeneratedNameForNode(parameter),
|
|
96696
|
-
/*
|
|
96860
|
+
/*hoistTempVariables*/
|
|
96697
96861
|
false,
|
|
96698
96862
|
/*skipInitializer*/
|
|
96699
96863
|
true
|
|
@@ -97266,7 +97430,7 @@ ${lanes.join("\n")}
|
|
|
97266
97430
|
}
|
|
97267
97431
|
const declaration = factory2.createVariableDeclaration(
|
|
97268
97432
|
factory2.createUniqueName("_jsxFileName", 16 /* Optimistic */ | 32 /* FileLevel */),
|
|
97269
|
-
/*
|
|
97433
|
+
/*exclamationToken*/
|
|
97270
97434
|
void 0,
|
|
97271
97435
|
/*type*/
|
|
97272
97436
|
void 0,
|
|
@@ -97335,7 +97499,7 @@ ${lanes.join("\n")}
|
|
|
97335
97499
|
/*modifiers*/
|
|
97336
97500
|
void 0,
|
|
97337
97501
|
factory2.createImportClause(
|
|
97338
|
-
/*
|
|
97502
|
+
/*isTypeOnly*/
|
|
97339
97503
|
false,
|
|
97340
97504
|
/*name*/
|
|
97341
97505
|
void 0,
|
|
@@ -97358,12 +97522,12 @@ ${lanes.join("\n")}
|
|
|
97358
97522
|
factory2.createVariableDeclarationList([
|
|
97359
97523
|
factory2.createVariableDeclaration(
|
|
97360
97524
|
factory2.createObjectBindingPattern(arrayFrom(importSpecifiersMap.values(), (s) => factory2.createBindingElement(
|
|
97361
|
-
/*
|
|
97525
|
+
/*dotDotDotToken*/
|
|
97362
97526
|
void 0,
|
|
97363
97527
|
s.propertyName,
|
|
97364
97528
|
s.name
|
|
97365
97529
|
))),
|
|
97366
|
-
/*
|
|
97530
|
+
/*exclamationToken*/
|
|
97367
97531
|
void 0,
|
|
97368
97532
|
/*type*/
|
|
97369
97533
|
void 0,
|
|
@@ -99693,7 +99857,7 @@ ${lanes.join("\n")}
|
|
|
99693
99857
|
visitor,
|
|
99694
99858
|
context,
|
|
99695
99859
|
0 /* All */,
|
|
99696
|
-
/*
|
|
99860
|
+
/*rval*/
|
|
99697
99861
|
void 0,
|
|
99698
99862
|
(ancestorFacts & 32 /* ExportedVariableStatement */) !== 0
|
|
99699
99863
|
);
|
|
@@ -104074,7 +104238,7 @@ ${lanes.join("\n")}
|
|
|
104074
104238
|
/*whenTrue*/
|
|
104075
104239
|
createImportCallExpressionCommonJS(
|
|
104076
104240
|
temp,
|
|
104077
|
-
/*
|
|
104241
|
+
/*isInlineable*/
|
|
104078
104242
|
true
|
|
104079
104243
|
),
|
|
104080
104244
|
/*colonToken*/
|
|
@@ -104510,9 +104674,9 @@ ${lanes.join("\n")}
|
|
|
104510
104674
|
createExportExpression(
|
|
104511
104675
|
factory2.getExportName(specifier),
|
|
104512
104676
|
exportedValue,
|
|
104513
|
-
/*
|
|
104677
|
+
/*location*/
|
|
104514
104678
|
void 0,
|
|
104515
|
-
/*
|
|
104679
|
+
/*liveBinding*/
|
|
104516
104680
|
true
|
|
104517
104681
|
)
|
|
104518
104682
|
),
|
|
@@ -104822,7 +104986,7 @@ ${lanes.join("\n")}
|
|
|
104822
104986
|
statements = appendExportsOfDeclaration(
|
|
104823
104987
|
statements,
|
|
104824
104988
|
importBinding,
|
|
104825
|
-
/*
|
|
104989
|
+
/*liveBinding*/
|
|
104826
104990
|
true
|
|
104827
104991
|
);
|
|
104828
104992
|
}
|
|
@@ -104891,7 +105055,7 @@ ${lanes.join("\n")}
|
|
|
104891
105055
|
name,
|
|
104892
105056
|
/*location*/
|
|
104893
105057
|
exportSpecifier.name,
|
|
104894
|
-
/*
|
|
105058
|
+
/*allowComments*/
|
|
104895
105059
|
void 0,
|
|
104896
105060
|
liveBinding
|
|
104897
105061
|
);
|
|
@@ -104935,7 +105099,7 @@ ${lanes.join("\n")}
|
|
|
104935
105099
|
const statement = setTextRange(factory2.createExpressionStatement(createExportExpression(
|
|
104936
105100
|
name,
|
|
104937
105101
|
value,
|
|
104938
|
-
/*
|
|
105102
|
+
/*location*/
|
|
104939
105103
|
void 0,
|
|
104940
105104
|
liveBinding
|
|
104941
105105
|
)), location);
|
|
@@ -105417,7 +105581,7 @@ ${lanes.join("\n")}
|
|
|
105417
105581
|
void 0,
|
|
105418
105582
|
factory2.createObjectLiteralExpression(
|
|
105419
105583
|
exportedNames,
|
|
105420
|
-
/*
|
|
105584
|
+
/*multiLine*/
|
|
105421
105585
|
true
|
|
105422
105586
|
)
|
|
105423
105587
|
)
|
|
@@ -105509,7 +105673,7 @@ ${lanes.join("\n")}
|
|
|
105509
105673
|
)
|
|
105510
105674
|
)
|
|
105511
105675
|
],
|
|
105512
|
-
/*
|
|
105676
|
+
/*multiLine*/
|
|
105513
105677
|
true
|
|
105514
105678
|
)
|
|
105515
105679
|
);
|
|
@@ -105574,7 +105738,7 @@ ${lanes.join("\n")}
|
|
|
105574
105738
|
void 0,
|
|
105575
105739
|
[factory2.createObjectLiteralExpression(
|
|
105576
105740
|
properties,
|
|
105577
|
-
/*
|
|
105741
|
+
/*multiLine*/
|
|
105578
105742
|
true
|
|
105579
105743
|
)]
|
|
105580
105744
|
)
|
|
@@ -107131,18 +107295,18 @@ ${lanes.join("\n")}
|
|
|
107131
107295
|
getTrailingCommentRanges(text, skipTrivia(
|
|
107132
107296
|
text,
|
|
107133
107297
|
previousSibling.end + 1,
|
|
107134
|
-
/*
|
|
107298
|
+
/*stopAfterLineBreak*/
|
|
107135
107299
|
false,
|
|
107136
|
-
/*
|
|
107300
|
+
/*stopAtComments*/
|
|
107137
107301
|
true
|
|
107138
107302
|
)),
|
|
107139
107303
|
getLeadingCommentRanges(text, node.pos)
|
|
107140
107304
|
) : getTrailingCommentRanges(text, skipTrivia(
|
|
107141
107305
|
text,
|
|
107142
107306
|
node.pos,
|
|
107143
|
-
/*
|
|
107307
|
+
/*stopAfterLineBreak*/
|
|
107144
107308
|
false,
|
|
107145
|
-
/*
|
|
107309
|
+
/*stopAtComments*/
|
|
107146
107310
|
true
|
|
107147
107311
|
));
|
|
107148
107312
|
return commentRanges && commentRanges.length && hasInternalAnnotation(last(commentRanges), currentSourceFile);
|
|
@@ -107257,7 +107421,7 @@ ${lanes.join("\n")}
|
|
|
107257
107421
|
symbol,
|
|
107258
107422
|
enclosingDeclaration2,
|
|
107259
107423
|
meaning,
|
|
107260
|
-
/*
|
|
107424
|
+
/*shouldComputeAliasToMarkVisible*/
|
|
107261
107425
|
true
|
|
107262
107426
|
));
|
|
107263
107427
|
recordTypeReferenceDirectivesIfNecessary(resolver.getTypeReferenceDirectivesForSymbol(symbol, meaning));
|
|
@@ -107603,7 +107767,7 @@ ${lanes.join("\n")}
|
|
|
107603
107767
|
return factory2.updateBindingElement(
|
|
107604
107768
|
elem,
|
|
107605
107769
|
elem.dotDotDotToken,
|
|
107606
|
-
/*
|
|
107770
|
+
/*propertyName*/
|
|
107607
107771
|
void 0,
|
|
107608
107772
|
elem.propertyName,
|
|
107609
107773
|
shouldPrintWithInitializer(elem) ? elem.initializer : void 0
|
|
@@ -107965,7 +108129,7 @@ ${lanes.join("\n")}
|
|
|
107965
108129
|
return cleanup(factory2.createPropertyDeclaration(
|
|
107966
108130
|
ensureModifiers(input),
|
|
107967
108131
|
input.name,
|
|
107968
|
-
/*
|
|
108132
|
+
/*questionOrExclamationToken*/
|
|
107969
108133
|
void 0,
|
|
107970
108134
|
/*type*/
|
|
107971
108135
|
void 0,
|
|
@@ -108529,7 +108693,7 @@ ${lanes.join("\n")}
|
|
|
108529
108693
|
elems.push(factory2.createPropertyDeclaration(
|
|
108530
108694
|
ensureModifiers(param),
|
|
108531
108695
|
elem.name,
|
|
108532
|
-
/*
|
|
108696
|
+
/*questionOrExclamationToken*/
|
|
108533
108697
|
void 0,
|
|
108534
108698
|
ensureType(
|
|
108535
108699
|
elem,
|
|
@@ -108551,7 +108715,7 @@ ${lanes.join("\n")}
|
|
|
108551
108715
|
/*modifiers*/
|
|
108552
108716
|
void 0,
|
|
108553
108717
|
factory2.createPrivateIdentifier("#private"),
|
|
108554
|
-
/*
|
|
108718
|
+
/*questionOrExclamationToken*/
|
|
108555
108719
|
void 0,
|
|
108556
108720
|
/*type*/
|
|
108557
108721
|
void 0,
|
|
@@ -109937,7 +110101,7 @@ ${lanes.join("\n")}
|
|
|
109937
110101
|
declarationMapText,
|
|
109938
110102
|
buildInfoPath,
|
|
109939
110103
|
buildInfo,
|
|
109940
|
-
/*
|
|
110104
|
+
/*oldFileOfCurrentEmit*/
|
|
109941
110105
|
true
|
|
109942
110106
|
);
|
|
109943
110107
|
const outputFiles = [];
|
|
@@ -110126,7 +110290,7 @@ ${lanes.join("\n")}
|
|
|
110126
110290
|
writeBundle(
|
|
110127
110291
|
bundle,
|
|
110128
110292
|
beginPrint(),
|
|
110129
|
-
/*
|
|
110293
|
+
/*sourceMapGenerator*/
|
|
110130
110294
|
void 0
|
|
110131
110295
|
);
|
|
110132
110296
|
return endPrint();
|
|
@@ -110135,7 +110299,7 @@ ${lanes.join("\n")}
|
|
|
110135
110299
|
writeFile2(
|
|
110136
110300
|
sourceFile,
|
|
110137
110301
|
beginPrint(),
|
|
110138
|
-
/*
|
|
110302
|
+
/*sourceMapGenerator*/
|
|
110139
110303
|
void 0
|
|
110140
110304
|
);
|
|
110141
110305
|
return endPrint();
|
|
@@ -111616,7 +111780,7 @@ ${lanes.join("\n")}
|
|
|
111616
111780
|
const indented = writeLineSeparatorsAndIndentBefore(node.expression, node);
|
|
111617
111781
|
emitExpression(
|
|
111618
111782
|
node.expression,
|
|
111619
|
-
/*
|
|
111783
|
+
/*parenthesizerRule*/
|
|
111620
111784
|
void 0
|
|
111621
111785
|
);
|
|
111622
111786
|
writeLineSeparatorsAfter(node.expression, node);
|
|
@@ -111830,7 +111994,7 @@ ${lanes.join("\n")}
|
|
|
111830
111994
|
function emitAsExpression(node) {
|
|
111831
111995
|
emitExpression(
|
|
111832
111996
|
node.expression,
|
|
111833
|
-
/*
|
|
111997
|
+
/*parenthesizerRule*/
|
|
111834
111998
|
void 0
|
|
111835
111999
|
);
|
|
111836
112000
|
if (node.type) {
|
|
@@ -111847,7 +112011,7 @@ ${lanes.join("\n")}
|
|
|
111847
112011
|
function emitSatisfiesExpression(node) {
|
|
111848
112012
|
emitExpression(
|
|
111849
112013
|
node.expression,
|
|
111850
|
-
/*
|
|
112014
|
+
/*parenthesizerRule*/
|
|
111851
112015
|
void 0
|
|
111852
112016
|
);
|
|
111853
112017
|
if (node.type) {
|
|
@@ -114167,7 +114331,7 @@ ${lanes.join("\n")}
|
|
|
114167
114331
|
case 165 /* ComputedPropertyName */:
|
|
114168
114332
|
return makeTempVariableName(
|
|
114169
114333
|
0 /* Auto */,
|
|
114170
|
-
/*
|
|
114334
|
+
/*reservedInNestedScopes*/
|
|
114171
114335
|
true,
|
|
114172
114336
|
privateName,
|
|
114173
114337
|
prefix,
|
|
@@ -114176,7 +114340,7 @@ ${lanes.join("\n")}
|
|
|
114176
114340
|
default:
|
|
114177
114341
|
return makeTempVariableName(
|
|
114178
114342
|
0 /* Auto */,
|
|
114179
|
-
/*
|
|
114343
|
+
/*reservedInNestedScopes*/
|
|
114180
114344
|
false,
|
|
114181
114345
|
privateName,
|
|
114182
114346
|
prefix,
|
|
@@ -116464,7 +116628,7 @@ ${lanes.join("\n")}
|
|
|
116464
116628
|
return resolveTypeReferenceDirectiveNamesWorker(
|
|
116465
116629
|
typeDirectiveNames,
|
|
116466
116630
|
containingFile,
|
|
116467
|
-
/*
|
|
116631
|
+
/*reusedNames*/
|
|
116468
116632
|
void 0
|
|
116469
116633
|
);
|
|
116470
116634
|
}
|
|
@@ -116792,7 +116956,7 @@ ${lanes.join("\n")}
|
|
|
116792
116956
|
void 0,
|
|
116793
116957
|
/*transformers*/
|
|
116794
116958
|
noTransformers,
|
|
116795
|
-
/*
|
|
116959
|
+
/*emitOnly*/
|
|
116796
116960
|
false,
|
|
116797
116961
|
/*onlyBuildInfo*/
|
|
116798
116962
|
true
|
|
@@ -117388,7 +117552,7 @@ ${lanes.join("\n")}
|
|
|
117388
117552
|
const node = getNodeAtPosition(file2, r.lastIndex);
|
|
117389
117553
|
if (shouldProcessRequires && isRequireCall(
|
|
117390
117554
|
node,
|
|
117391
|
-
/*
|
|
117555
|
+
/*requireStringLiteralLikeArgument*/
|
|
117392
117556
|
true
|
|
117393
117557
|
)) {
|
|
117394
117558
|
setParentRecursive(
|
|
@@ -117985,7 +118149,7 @@ ${lanes.join("\n")}
|
|
|
117985
118149
|
commandLine = host.getParsedCommandLine(refPath);
|
|
117986
118150
|
if (!commandLine) {
|
|
117987
118151
|
addFileToFilesByName(
|
|
117988
|
-
/*
|
|
118152
|
+
/*file*/
|
|
117989
118153
|
void 0,
|
|
117990
118154
|
sourceFilePath,
|
|
117991
118155
|
/*redirectedPath*/
|
|
@@ -119449,7 +119613,7 @@ ${lanes.join("\n")}
|
|
|
119449
119613
|
), sourceFiles);
|
|
119450
119614
|
},
|
|
119451
119615
|
cancellationToken,
|
|
119452
|
-
/*
|
|
119616
|
+
/*emitOnly*/
|
|
119453
119617
|
true,
|
|
119454
119618
|
/*customTransformers*/
|
|
119455
119619
|
void 0,
|
|
@@ -120650,7 +120814,7 @@ ${lanes.join("\n")}
|
|
|
120650
120814
|
continue;
|
|
120651
120815
|
} else {
|
|
120652
120816
|
result = state.program.getSemanticDiagnostics(
|
|
120653
|
-
/*
|
|
120817
|
+
/*sourceFile*/
|
|
120654
120818
|
void 0,
|
|
120655
120819
|
cancellationToken
|
|
120656
120820
|
);
|
|
@@ -121484,7 +121648,7 @@ ${lanes.join("\n")}
|
|
|
121484
121648
|
} else {
|
|
121485
121649
|
resolutions.forEach((resolution) => watchAffectingLocationsOfResolution(
|
|
121486
121650
|
resolution,
|
|
121487
|
-
/*
|
|
121651
|
+
/*addToResolutionsWithOnlyAffectingLocations*/
|
|
121488
121652
|
true
|
|
121489
121653
|
));
|
|
121490
121654
|
}
|
|
@@ -121841,7 +122005,7 @@ ${lanes.join("\n")}
|
|
|
121841
122005
|
return getRelativePathFromDirectory(
|
|
121842
122006
|
cwd,
|
|
121843
122007
|
error.fileName,
|
|
121844
|
-
/*
|
|
122008
|
+
/*ignoreCase*/
|
|
121845
122009
|
false
|
|
121846
122010
|
) + line;
|
|
121847
122011
|
}
|
|
@@ -123027,7 +123191,6 @@ ${lanes.join("\n")}
|
|
|
123027
123191
|
);
|
|
123028
123192
|
}
|
|
123029
123193
|
function updateExtendedConfigFilesWatches(forProjectPath, options, watchOptions2, watchType) {
|
|
123030
|
-
Debug.assert(configFileName);
|
|
123031
123194
|
updateSharedExtendedConfigFileWatcher(
|
|
123032
123195
|
forProjectPath,
|
|
123033
123196
|
options,
|
|
@@ -123043,7 +123206,7 @@ ${lanes.join("\n")}
|
|
|
123043
123206
|
if (!(projects == null ? void 0 : projects.size))
|
|
123044
123207
|
return;
|
|
123045
123208
|
projects.forEach((projectPath) => {
|
|
123046
|
-
if (toPath3(configFileName) === projectPath) {
|
|
123209
|
+
if (configFileName && toPath3(configFileName) === projectPath) {
|
|
123047
123210
|
reloadLevel = 2 /* Full */;
|
|
123048
123211
|
} else {
|
|
123049
123212
|
const config = parsedConfigs == null ? void 0 : parsedConfigs.get(projectPath);
|
|
@@ -123801,7 +123964,7 @@ ${lanes.join("\n")}
|
|
|
123801
123964
|
void 0,
|
|
123802
123965
|
(name, text, writeByteOrderMark, _onError, _sourceFiles, data) => outputFiles.push({ name, text, writeByteOrderMark, data }),
|
|
123803
123966
|
cancellationToken,
|
|
123804
|
-
/*
|
|
123967
|
+
/*emitOnlyDtsFiles*/
|
|
123805
123968
|
false,
|
|
123806
123969
|
customTransformers || ((_b = (_a2 = state.host).getCustomTransformers) == null ? void 0 : _b.call(_a2, project))
|
|
123807
123970
|
);
|
|
@@ -126793,7 +126956,7 @@ ${lanes.join("\n")}
|
|
|
126793
126956
|
}
|
|
126794
126957
|
const start = allowPositionInLeadingTrivia ? children[middle].getFullStart() : children[middle].getStart(
|
|
126795
126958
|
sourceFile,
|
|
126796
|
-
/*
|
|
126959
|
+
/*includeJsDocComment*/
|
|
126797
126960
|
true
|
|
126798
126961
|
);
|
|
126799
126962
|
if (start > position) {
|
|
@@ -126828,7 +126991,7 @@ ${lanes.join("\n")}
|
|
|
126828
126991
|
}
|
|
126829
126992
|
start != null ? start : start = allowPositionInLeadingTrivia ? node.getFullStart() : node.getStart(
|
|
126830
126993
|
sourceFile,
|
|
126831
|
-
/*
|
|
126994
|
+
/*includeJsDocComment*/
|
|
126832
126995
|
true
|
|
126833
126996
|
);
|
|
126834
126997
|
if (start > position) {
|
|
@@ -126915,7 +127078,13 @@ ${lanes.join("\n")}
|
|
|
126915
127078
|
sourceFile,
|
|
126916
127079
|
n.kind
|
|
126917
127080
|
);
|
|
126918
|
-
|
|
127081
|
+
if (candidate2) {
|
|
127082
|
+
if (isJSDocCommentContainingNode(candidate2) && candidate2.getChildren(sourceFile).length) {
|
|
127083
|
+
return find2(candidate2);
|
|
127084
|
+
}
|
|
127085
|
+
return findRightmostToken(candidate2, sourceFile);
|
|
127086
|
+
}
|
|
127087
|
+
return void 0;
|
|
126919
127088
|
} else {
|
|
126920
127089
|
return find2(child);
|
|
126921
127090
|
}
|
|
@@ -127844,7 +128013,7 @@ ${lanes.join("\n")}
|
|
|
127844
128013
|
signature,
|
|
127845
128014
|
enclosingDeclaration,
|
|
127846
128015
|
flags,
|
|
127847
|
-
/*
|
|
128016
|
+
/*kind*/
|
|
127848
128017
|
void 0,
|
|
127849
128018
|
writer
|
|
127850
128019
|
);
|
|
@@ -128492,13 +128661,13 @@ ${lanes.join("\n")}
|
|
|
128492
128661
|
const fileNameCase = ts_codefix_exports.moduleSymbolToValidIdentifier(
|
|
128493
128662
|
getSymbolParentOrFail(symbol),
|
|
128494
128663
|
scriptTarget,
|
|
128495
|
-
/*
|
|
128664
|
+
/*forceCapitalize*/
|
|
128496
128665
|
false
|
|
128497
128666
|
);
|
|
128498
128667
|
const capitalized = ts_codefix_exports.moduleSymbolToValidIdentifier(
|
|
128499
128668
|
getSymbolParentOrFail(symbol),
|
|
128500
128669
|
scriptTarget,
|
|
128501
|
-
/*
|
|
128670
|
+
/*forceCapitalize*/
|
|
128502
128671
|
true
|
|
128503
128672
|
);
|
|
128504
128673
|
if (fileNameCase === capitalized)
|
|
@@ -129206,7 +129375,7 @@ ${lanes.join("\n")}
|
|
|
129206
129375
|
const lastTemplateStackToken = lastOrUndefined(templateStack);
|
|
129207
129376
|
if (lastTemplateStackToken === 15 /* TemplateHead */) {
|
|
129208
129377
|
token = scanner2.reScanTemplateToken(
|
|
129209
|
-
/*
|
|
129378
|
+
/*isTaggedTemplate*/
|
|
129210
129379
|
false
|
|
129211
129380
|
);
|
|
129212
129381
|
if (token === 17 /* TemplateTail */) {
|
|
@@ -130922,7 +131091,7 @@ ${lanes.join("\n")}
|
|
|
130922
131091
|
candidate,
|
|
130923
131092
|
span,
|
|
130924
131093
|
chunk.text,
|
|
130925
|
-
/*ignoreCase
|
|
131094
|
+
/*ignoreCase*/
|
|
130926
131095
|
true
|
|
130927
131096
|
)) {
|
|
130928
131097
|
return createPatternMatch(
|
|
@@ -130932,7 +131101,7 @@ ${lanes.join("\n")}
|
|
|
130932
131101
|
candidate,
|
|
130933
131102
|
span,
|
|
130934
131103
|
chunk.text,
|
|
130935
|
-
/*ignoreCase
|
|
131104
|
+
/*ignoreCase*/
|
|
130936
131105
|
false
|
|
130937
131106
|
)
|
|
130938
131107
|
);
|
|
@@ -130941,7 +131110,7 @@ ${lanes.join("\n")}
|
|
|
130941
131110
|
if (chunk.text.length < candidate.length && isUpperCaseLetter(candidate.charCodeAt(index))) {
|
|
130942
131111
|
return createPatternMatch(
|
|
130943
131112
|
2 /* substring */,
|
|
130944
|
-
/*isCaseSensitive
|
|
131113
|
+
/*isCaseSensitive*/
|
|
130945
131114
|
false
|
|
130946
131115
|
);
|
|
130947
131116
|
}
|
|
@@ -130949,7 +131118,7 @@ ${lanes.join("\n")}
|
|
|
130949
131118
|
if (candidate.indexOf(chunk.text) > 0) {
|
|
130950
131119
|
return createPatternMatch(
|
|
130951
131120
|
2 /* substring */,
|
|
130952
|
-
/*isCaseSensitive
|
|
131121
|
+
/*isCaseSensitive*/
|
|
130953
131122
|
true
|
|
130954
131123
|
);
|
|
130955
131124
|
}
|
|
@@ -130959,13 +131128,13 @@ ${lanes.join("\n")}
|
|
|
130959
131128
|
candidate,
|
|
130960
131129
|
candidateParts,
|
|
130961
131130
|
chunk,
|
|
130962
|
-
/*ignoreCase
|
|
131131
|
+
/*ignoreCase*/
|
|
130963
131132
|
false
|
|
130964
131133
|
) ? true : tryCamelCaseMatch(
|
|
130965
131134
|
candidate,
|
|
130966
131135
|
candidateParts,
|
|
130967
131136
|
chunk,
|
|
130968
|
-
/*ignoreCase
|
|
131137
|
+
/*ignoreCase*/
|
|
130969
131138
|
true
|
|
130970
131139
|
) ? false : void 0;
|
|
130971
131140
|
if (isCaseSensitive !== void 0) {
|
|
@@ -131119,14 +131288,14 @@ ${lanes.join("\n")}
|
|
|
131119
131288
|
function breakIntoCharacterSpans(identifier) {
|
|
131120
131289
|
return breakIntoSpans(
|
|
131121
131290
|
identifier,
|
|
131122
|
-
/*word
|
|
131291
|
+
/*word*/
|
|
131123
131292
|
false
|
|
131124
131293
|
);
|
|
131125
131294
|
}
|
|
131126
131295
|
function breakIntoWordSpans(identifier) {
|
|
131127
131296
|
return breakIntoSpans(
|
|
131128
131297
|
identifier,
|
|
131129
|
-
/*word
|
|
131298
|
+
/*word*/
|
|
131130
131299
|
true
|
|
131131
131300
|
);
|
|
131132
131301
|
}
|
|
@@ -131498,7 +131667,7 @@ ${lanes.join("\n")}
|
|
|
131498
131667
|
if (length(stack)) {
|
|
131499
131668
|
if (lastOrUndefined(stack) === 15 /* TemplateHead */) {
|
|
131500
131669
|
if (scanner.reScanTemplateToken(
|
|
131501
|
-
/*
|
|
131670
|
+
/*isTaggedTemplate*/
|
|
131502
131671
|
false
|
|
131503
131672
|
) === 17 /* TemplateTail */) {
|
|
131504
131673
|
stack.pop();
|
|
@@ -131747,7 +131916,7 @@ ${lanes.join("\n")}
|
|
|
131747
131916
|
const init = node.declarationList.declarations[0].initializer;
|
|
131748
131917
|
if (init && isRequireCall(
|
|
131749
131918
|
init,
|
|
131750
|
-
/*
|
|
131919
|
+
/*requireStringLiteralLikeArgument*/
|
|
131751
131920
|
true
|
|
131752
131921
|
)) {
|
|
131753
131922
|
diags.push(createDiagnosticForNode(init, Diagnostics.require_call_may_be_converted_to_an_import));
|
|
@@ -131773,7 +131942,7 @@ ${lanes.join("\n")}
|
|
|
131773
131942
|
case 241 /* VariableStatement */:
|
|
131774
131943
|
return statement.declarationList.declarations.some((decl) => !!decl.initializer && isRequireCall(
|
|
131775
131944
|
propertyAccessLeftHandSide(decl.initializer),
|
|
131776
|
-
/*
|
|
131945
|
+
/*requireStringLiteralLikeArgument*/
|
|
131777
131946
|
true
|
|
131778
131947
|
));
|
|
131779
131948
|
case 242 /* ExpressionStatement */: {
|
|
@@ -131781,7 +131950,7 @@ ${lanes.join("\n")}
|
|
|
131781
131950
|
if (!isBinaryExpression(expression))
|
|
131782
131951
|
return isRequireCall(
|
|
131783
131952
|
expression,
|
|
131784
|
-
/*
|
|
131953
|
+
/*requireStringLiteralLikeArgument*/
|
|
131785
131954
|
true
|
|
131786
131955
|
);
|
|
131787
131956
|
const kind = getAssignmentDeclarationKind(expression);
|
|
@@ -131975,7 +132144,7 @@ ${lanes.join("\n")}
|
|
|
131975
132144
|
languageVersion: getEmitScriptTarget(options),
|
|
131976
132145
|
impliedNodeFormat: getImpliedNodeFormatForFile(
|
|
131977
132146
|
toPath(inputFileName, "", compilerHost.getCanonicalFileName),
|
|
131978
|
-
/*
|
|
132147
|
+
/*packageJsonInfoCache*/
|
|
131979
132148
|
void 0,
|
|
131980
132149
|
compilerHost,
|
|
131981
132150
|
options
|
|
@@ -132550,10 +132719,10 @@ ${lanes.join("\n")}
|
|
|
132550
132719
|
if (ctorFunction !== void 0) {
|
|
132551
132720
|
const ctorNode = setTextRange(
|
|
132552
132721
|
factory.createConstructorDeclaration(
|
|
132553
|
-
/*
|
|
132722
|
+
/*modifiers*/
|
|
132554
132723
|
void 0,
|
|
132555
132724
|
[],
|
|
132556
|
-
/*
|
|
132725
|
+
/*body*/
|
|
132557
132726
|
void 0
|
|
132558
132727
|
),
|
|
132559
132728
|
ctorFunction
|
|
@@ -132572,12 +132741,12 @@ ${lanes.join("\n")}
|
|
|
132572
132741
|
}
|
|
132573
132742
|
}
|
|
132574
132743
|
lastANode = a.node = setTextRange(factory.createClassDeclaration(
|
|
132575
|
-
/*
|
|
132744
|
+
/*modifiers*/
|
|
132576
132745
|
void 0,
|
|
132577
132746
|
a.name || factory.createIdentifier("__class__"),
|
|
132578
|
-
/*
|
|
132747
|
+
/*typeParameters*/
|
|
132579
132748
|
void 0,
|
|
132580
|
-
/*
|
|
132749
|
+
/*heritageClauses*/
|
|
132581
132750
|
void 0,
|
|
132582
132751
|
[]
|
|
132583
132752
|
), a.node);
|
|
@@ -132594,12 +132763,12 @@ ${lanes.join("\n")}
|
|
|
132594
132763
|
if (!a.additionalNodes)
|
|
132595
132764
|
a.additionalNodes = [];
|
|
132596
132765
|
a.additionalNodes.push(setTextRange(factory.createClassDeclaration(
|
|
132597
|
-
/*
|
|
132766
|
+
/*modifiers*/
|
|
132598
132767
|
void 0,
|
|
132599
132768
|
a.name || factory.createIdentifier("__class__"),
|
|
132600
|
-
/*
|
|
132769
|
+
/*typeParameters*/
|
|
132601
132770
|
void 0,
|
|
132602
|
-
/*
|
|
132771
|
+
/*heritageClauses*/
|
|
132603
132772
|
void 0,
|
|
132604
132773
|
[]
|
|
132605
132774
|
), b.node));
|
|
@@ -133558,7 +133727,7 @@ ${lanes.join("\n")}
|
|
|
133558
133727
|
result,
|
|
133559
133728
|
parseConfigHost,
|
|
133560
133729
|
getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory),
|
|
133561
|
-
/*
|
|
133730
|
+
/*existingOptions*/
|
|
133562
133731
|
void 0,
|
|
133563
133732
|
getNormalizedAbsolutePath(configFileName, currentDirectory)
|
|
133564
133733
|
);
|
|
@@ -135288,7 +135457,7 @@ ${lanes.join("\n")}
|
|
|
135288
135457
|
const result = transformNodes(
|
|
135289
135458
|
/*resolver*/
|
|
135290
135459
|
void 0,
|
|
135291
|
-
/*
|
|
135460
|
+
/*host*/
|
|
135292
135461
|
void 0,
|
|
135293
135462
|
factory,
|
|
135294
135463
|
compilerOptions,
|
|
@@ -136089,9 +136258,9 @@ ${lanes.join("\n")}
|
|
|
136089
136258
|
() => {
|
|
136090
136259
|
const result = preProcessFile(
|
|
136091
136260
|
getSnapshotText(sourceTextSnapshot),
|
|
136092
|
-
/*
|
|
136261
|
+
/*readImportFiles*/
|
|
136093
136262
|
true,
|
|
136094
|
-
/*
|
|
136263
|
+
/*detectJavaScriptImports*/
|
|
136095
136264
|
true
|
|
136096
136265
|
);
|
|
136097
136266
|
return {
|
|
@@ -136160,7 +136329,7 @@ ${lanes.join("\n")}
|
|
|
136160
136329
|
}
|
|
136161
136330
|
discoverTypings(discoverTypingsJson) {
|
|
136162
136331
|
const getCanonicalFileName = createGetCanonicalFileName(
|
|
136163
|
-
/*
|
|
136332
|
+
/*useCaseSensitiveFileNames*/
|
|
136164
136333
|
false
|
|
136165
136334
|
);
|
|
136166
136335
|
return this.forwardJSONCall("discoverTypings()", () => {
|
|
@@ -136202,7 +136371,7 @@ ${lanes.join("\n")}
|
|
|
136202
136371
|
const languageService = createLanguageService(
|
|
136203
136372
|
hostAdapter,
|
|
136204
136373
|
this.documentRegistry,
|
|
136205
|
-
/*
|
|
136374
|
+
/*syntaxOnlyOrLanguageServiceMode*/
|
|
136206
136375
|
false
|
|
136207
136376
|
);
|
|
136208
136377
|
return new LanguageServiceShimObject(this, host, languageService);
|
|
@@ -138239,7 +138408,7 @@ ${lanes.join("\n")}
|
|
|
138239
138408
|
const prototypes = firstDeclaration.parent.right;
|
|
138240
138409
|
createClassElement(
|
|
138241
138410
|
prototypes.symbol,
|
|
138242
|
-
|
|
138411
|
+
/*modifiers*/
|
|
138243
138412
|
void 0,
|
|
138244
138413
|
memberElements
|
|
138245
138414
|
);
|
|
@@ -138311,7 +138480,7 @@ ${lanes.join("\n")}
|
|
|
138311
138480
|
members.push(factory.createPropertyDeclaration(
|
|
138312
138481
|
modifiers,
|
|
138313
138482
|
symbol2.name,
|
|
138314
|
-
/*
|
|
138483
|
+
/*questionOrExclamationToken*/
|
|
138315
138484
|
void 0,
|
|
138316
138485
|
/*type*/
|
|
138317
138486
|
void 0,
|
|
@@ -138351,7 +138520,7 @@ ${lanes.join("\n")}
|
|
|
138351
138520
|
const prop = factory.createPropertyDeclaration(
|
|
138352
138521
|
modifiers,
|
|
138353
138522
|
memberDeclaration.name,
|
|
138354
|
-
/*
|
|
138523
|
+
/*questionOrExclamationToken*/
|
|
138355
138524
|
void 0,
|
|
138356
138525
|
/*type*/
|
|
138357
138526
|
void 0,
|
|
@@ -138820,7 +138989,7 @@ ${lanes.join("\n")}
|
|
|
138820
138989
|
hasContinuation,
|
|
138821
138990
|
/*continuationArgName*/
|
|
138822
138991
|
void 0,
|
|
138823
|
-
/*
|
|
138992
|
+
/*inputArgName*/
|
|
138824
138993
|
void 0,
|
|
138825
138994
|
node,
|
|
138826
138995
|
transformer
|
|
@@ -139233,7 +139402,7 @@ ${lanes.join("\n")}
|
|
|
139233
139402
|
case 211 /* CallExpression */:
|
|
139234
139403
|
if (isRequireCall(
|
|
139235
139404
|
importNode,
|
|
139236
|
-
/*
|
|
139405
|
+
/*requireStringLiteralLikeArgument*/
|
|
139237
139406
|
false
|
|
139238
139407
|
)) {
|
|
139239
139408
|
changes.replaceNode(importingFile, importNode, factory.createPropertyAccessExpression(getSynthesizedDeepClone(importNode), "default"));
|
|
@@ -139308,11 +139477,11 @@ ${lanes.join("\n")}
|
|
|
139308
139477
|
case 211 /* CallExpression */: {
|
|
139309
139478
|
if (isRequireCall(
|
|
139310
139479
|
expression,
|
|
139311
|
-
/*
|
|
139480
|
+
/*requireStringLiteralLikeArgument*/
|
|
139312
139481
|
true
|
|
139313
139482
|
)) {
|
|
139314
139483
|
changes.replaceNode(sourceFile, statement, makeImport(
|
|
139315
|
-
/*
|
|
139484
|
+
/*defaultImport*/
|
|
139316
139485
|
void 0,
|
|
139317
139486
|
/*namedImports*/
|
|
139318
139487
|
void 0,
|
|
@@ -139343,14 +139512,14 @@ ${lanes.join("\n")}
|
|
|
139343
139512
|
return convertedImports([]);
|
|
139344
139513
|
} else if (isRequireCall(
|
|
139345
139514
|
initializer,
|
|
139346
|
-
/*
|
|
139515
|
+
/*requireStringLiteralLikeArgument*/
|
|
139347
139516
|
true
|
|
139348
139517
|
)) {
|
|
139349
139518
|
foundImport = true;
|
|
139350
139519
|
return convertSingleImport(name, initializer.arguments[0], checker, identifiers, target, quotePreference);
|
|
139351
139520
|
} else if (isPropertyAccessExpression(initializer) && isRequireCall(
|
|
139352
139521
|
initializer.expression,
|
|
139353
|
-
/*
|
|
139522
|
+
/*requireStringLiteralLikeArgument*/
|
|
139354
139523
|
true
|
|
139355
139524
|
)) {
|
|
139356
139525
|
foundImport = true;
|
|
@@ -139406,7 +139575,7 @@ ${lanes.join("\n")}
|
|
|
139406
139575
|
} else {
|
|
139407
139576
|
const replacement = isObjectLiteralExpression(right) ? tryChangeModuleExportsObject(right, useSitesToUnqualify) : isRequireCall(
|
|
139408
139577
|
right,
|
|
139409
|
-
/*
|
|
139578
|
+
/*requireStringLiteralLikeArgument*/
|
|
139410
139579
|
true
|
|
139411
139580
|
) ? convertReExportAll(right.arguments[0], checker) : void 0;
|
|
139412
139581
|
if (replacement) {
|
|
@@ -139474,7 +139643,7 @@ ${lanes.join("\n")}
|
|
|
139474
139643
|
}
|
|
139475
139644
|
function reExportStar(moduleSpecifier) {
|
|
139476
139645
|
return makeExportDeclaration(
|
|
139477
|
-
/*
|
|
139646
|
+
/*exportSpecifiers*/
|
|
139478
139647
|
void 0,
|
|
139479
139648
|
moduleSpecifier
|
|
139480
139649
|
);
|
|
@@ -139556,7 +139725,7 @@ ${lanes.join("\n")}
|
|
|
139556
139725
|
const importSpecifiers = mapAllOrFail(name.elements, (e) => e.dotDotDotToken || e.initializer || e.propertyName && !isIdentifier(e.propertyName) || !isIdentifier(e.name) ? void 0 : makeImportSpecifier(e.propertyName && e.propertyName.text, e.name.text));
|
|
139557
139726
|
if (importSpecifiers) {
|
|
139558
139727
|
return convertedImports([makeImport(
|
|
139559
|
-
/*
|
|
139728
|
+
/*defaultImport*/
|
|
139560
139729
|
void 0,
|
|
139561
139730
|
importSpecifiers,
|
|
139562
139731
|
moduleSpecifier,
|
|
@@ -139689,7 +139858,7 @@ ${lanes.join("\n")}
|
|
|
139689
139858
|
moduleSpecifier,
|
|
139690
139859
|
quotePreference
|
|
139691
139860
|
) : makeImport(
|
|
139692
|
-
/*
|
|
139861
|
+
/*defaultImport*/
|
|
139693
139862
|
void 0,
|
|
139694
139863
|
[makeImportSpecifier(propertyName, localName)],
|
|
139695
139864
|
moduleSpecifier,
|
|
@@ -140354,7 +140523,7 @@ ${lanes.join("\n")}
|
|
|
140354
140523
|
symbol,
|
|
140355
140524
|
symbolName2,
|
|
140356
140525
|
moduleSymbol,
|
|
140357
|
-
/*
|
|
140526
|
+
/*preferCapitalized*/
|
|
140358
140527
|
false,
|
|
140359
140528
|
program,
|
|
140360
140529
|
host,
|
|
@@ -142407,7 +142576,7 @@ ${lanes.join("\n")}
|
|
|
142407
142576
|
checker,
|
|
142408
142577
|
declaration,
|
|
142409
142578
|
checker.getTypeFromTypeNode(declaration.type),
|
|
142410
|
-
/*
|
|
142579
|
+
/*isFunctionType*/
|
|
142411
142580
|
false
|
|
142412
142581
|
);
|
|
142413
142582
|
case Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:
|
|
@@ -142421,7 +142590,7 @@ ${lanes.join("\n")}
|
|
|
142421
142590
|
checker,
|
|
142422
142591
|
declaration,
|
|
142423
142592
|
type,
|
|
142424
|
-
/*
|
|
142593
|
+
/*isFunctionType*/
|
|
142425
142594
|
true
|
|
142426
142595
|
);
|
|
142427
142596
|
case Diagnostics.Type_0_is_not_assignable_to_type_1.code:
|
|
@@ -142434,7 +142603,7 @@ ${lanes.join("\n")}
|
|
|
142434
142603
|
checker,
|
|
142435
142604
|
initializer,
|
|
142436
142605
|
checker.getTypeAtLocation(node.parent),
|
|
142437
|
-
/*
|
|
142606
|
+
/*isFunctionType*/
|
|
142438
142607
|
true
|
|
142439
142608
|
);
|
|
142440
142609
|
}
|
|
@@ -142487,7 +142656,7 @@ ${lanes.join("\n")}
|
|
|
142487
142656
|
declaration,
|
|
142488
142657
|
expression,
|
|
142489
142658
|
commentSource,
|
|
142490
|
-
/*
|
|
142659
|
+
/*withParen*/
|
|
142491
142660
|
false
|
|
142492
142661
|
));
|
|
142493
142662
|
return createCodeFixAction(fixId23, changes, Diagnostics.Remove_braces_from_arrow_function_body, fixRemoveBracesFromArrowFunctionBody, Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues);
|
|
@@ -142546,7 +142715,7 @@ ${lanes.join("\n")}
|
|
|
142546
142715
|
info.declaration,
|
|
142547
142716
|
info.expression,
|
|
142548
142717
|
info.commentSource,
|
|
142549
|
-
/*
|
|
142718
|
+
/*withParen*/
|
|
142550
142719
|
false
|
|
142551
142720
|
);
|
|
142552
142721
|
break;
|
|
@@ -142583,9 +142752,9 @@ ${lanes.join("\n")}
|
|
|
142583
142752
|
const properties = arrayFrom(checker.getUnmatchedProperties(
|
|
142584
142753
|
checker.getTypeAtLocation(parent2),
|
|
142585
142754
|
checker.getParameterType(signature, argIndex),
|
|
142586
|
-
/*
|
|
142755
|
+
/*requireOptionalProperties*/
|
|
142587
142756
|
false,
|
|
142588
|
-
/*
|
|
142757
|
+
/*matchDiscriminantProperties*/
|
|
142589
142758
|
false
|
|
142590
142759
|
));
|
|
142591
142760
|
if (!length(properties))
|
|
@@ -142599,9 +142768,9 @@ ${lanes.join("\n")}
|
|
|
142599
142768
|
const properties = arrayFrom(checker.getUnmatchedProperties(
|
|
142600
142769
|
checker.getTypeAtLocation(parent2.initializer),
|
|
142601
142770
|
targetType,
|
|
142602
|
-
/*
|
|
142771
|
+
/*requireOptionalProperties*/
|
|
142603
142772
|
false,
|
|
142604
|
-
/*
|
|
142773
|
+
/*matchDiscriminantProperties*/
|
|
142605
142774
|
false
|
|
142606
142775
|
));
|
|
142607
142776
|
if (!length(properties))
|
|
@@ -142694,7 +142863,7 @@ ${lanes.join("\n")}
|
|
|
142694
142863
|
/*modifiers*/
|
|
142695
142864
|
void 0,
|
|
142696
142865
|
tokenName,
|
|
142697
|
-
/*
|
|
142866
|
+
/*questionOrExclamationToken*/
|
|
142698
142867
|
void 0,
|
|
142699
142868
|
/*type*/
|
|
142700
142869
|
void 0,
|
|
@@ -142757,7 +142926,7 @@ ${lanes.join("\n")}
|
|
|
142757
142926
|
const property = isClassLike(node) ? factory.createPropertyDeclaration(
|
|
142758
142927
|
modifiers,
|
|
142759
142928
|
tokenName,
|
|
142760
|
-
/*
|
|
142929
|
+
/*questionOrExclamationToken*/
|
|
142761
142930
|
void 0,
|
|
142762
142931
|
typeNode,
|
|
142763
142932
|
/*initializer*/
|
|
@@ -143759,7 +143928,7 @@ ${lanes.join("\n")}
|
|
|
143759
143928
|
preferences,
|
|
143760
143929
|
sourceFile,
|
|
143761
143930
|
span.start,
|
|
143762
|
-
/*
|
|
143931
|
+
/*useHtmlEntity*/
|
|
143763
143932
|
false
|
|
143764
143933
|
));
|
|
143765
143934
|
const changeToHtmlEntity = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange18(
|
|
@@ -143767,7 +143936,7 @@ ${lanes.join("\n")}
|
|
|
143767
143936
|
preferences,
|
|
143768
143937
|
sourceFile,
|
|
143769
143938
|
span.start,
|
|
143770
|
-
/*
|
|
143939
|
+
/*useHtmlEntity*/
|
|
143771
143940
|
true
|
|
143772
143941
|
));
|
|
143773
143942
|
return [
|
|
@@ -144901,7 +145070,7 @@ ${lanes.join("\n")}
|
|
|
144901
145070
|
if (importableReference && changes.tryInsertTypeAnnotation(sourceFile, declaration, importableReference.typeNode)) {
|
|
144902
145071
|
forEach(importableReference.symbols, (s) => importAdder.addImportFromExportedSymbol(
|
|
144903
145072
|
s,
|
|
144904
|
-
/*
|
|
145073
|
+
/*isValidTypeOnlyUseSite*/
|
|
144905
145074
|
true
|
|
144906
145075
|
));
|
|
144907
145076
|
return true;
|
|
@@ -144957,7 +145126,7 @@ ${lanes.join("\n")}
|
|
|
144957
145126
|
/*isBracketed*/
|
|
144958
145127
|
!!isOptional,
|
|
144959
145128
|
factory.createJSDocTypeExpression(typeNode),
|
|
144960
|
-
/*
|
|
145129
|
+
/*isNameFirst*/
|
|
144961
145130
|
false,
|
|
144962
145131
|
/*comment*/
|
|
144963
145132
|
void 0
|
|
@@ -145825,7 +145994,7 @@ ${lanes.join("\n")}
|
|
|
145825
145994
|
preferences,
|
|
145826
145995
|
importAdder,
|
|
145827
145996
|
addClassElement,
|
|
145828
|
-
/*
|
|
145997
|
+
/*body*/
|
|
145829
145998
|
void 0
|
|
145830
145999
|
);
|
|
145831
146000
|
}
|
|
@@ -146293,7 +146462,7 @@ ${lanes.join("\n")}
|
|
|
146293
146462
|
const parameters = createDummyParameters(
|
|
146294
146463
|
maxNonRestArgs,
|
|
146295
146464
|
maxArgsParameterSymbolNames,
|
|
146296
|
-
/*
|
|
146465
|
+
/*types*/
|
|
146297
146466
|
void 0,
|
|
146298
146467
|
minArgumentCount,
|
|
146299
146468
|
/*inJs*/
|
|
@@ -146362,7 +146531,7 @@ ${lanes.join("\n")}
|
|
|
146362
146531
|
)]
|
|
146363
146532
|
)
|
|
146364
146533
|
)],
|
|
146365
|
-
/*
|
|
146534
|
+
/*multiLine*/
|
|
146366
146535
|
true
|
|
146367
146536
|
);
|
|
146368
146537
|
}
|
|
@@ -146979,7 +147148,7 @@ ${lanes.join("\n")}
|
|
|
146979
147148
|
const { parent: parent2 } = getTokenAtPosition(sourceFile, pos);
|
|
146980
147149
|
if (!isRequireCall(
|
|
146981
147150
|
parent2,
|
|
146982
|
-
/*
|
|
147151
|
+
/*requireStringLiteralLikeArgument*/
|
|
146983
147152
|
true
|
|
146984
147153
|
)) {
|
|
146985
147154
|
Debug.failBadSyntaxKind(parent2);
|
|
@@ -147142,7 +147311,7 @@ ${lanes.join("\n")}
|
|
|
147142
147311
|
importType.assertions,
|
|
147143
147312
|
importType.qualifier,
|
|
147144
147313
|
importType.typeArguments,
|
|
147145
|
-
/*
|
|
147314
|
+
/*isTypeOf*/
|
|
147146
147315
|
true
|
|
147147
147316
|
);
|
|
147148
147317
|
changes.replaceNode(sourceFile, importType, newTypeNode);
|
|
@@ -148473,14 +148642,14 @@ ${lanes.join("\n")}
|
|
|
148473
148642
|
const emptyStmt = factory.createEmptyStatement();
|
|
148474
148643
|
body = factory.createBlock(
|
|
148475
148644
|
[emptyStmt],
|
|
148476
|
-
/*
|
|
148645
|
+
/*multiLine*/
|
|
148477
148646
|
true
|
|
148478
148647
|
);
|
|
148479
148648
|
setSnippetElement(emptyStmt, { kind: 0 /* TabStop */, order: 0 });
|
|
148480
148649
|
} else {
|
|
148481
148650
|
body = factory.createBlock(
|
|
148482
148651
|
[],
|
|
148483
|
-
/*
|
|
148652
|
+
/*multiLine*/
|
|
148484
148653
|
true
|
|
148485
148654
|
);
|
|
148486
148655
|
}
|
|
@@ -148658,14 +148827,14 @@ ${lanes.join("\n")}
|
|
|
148658
148827
|
const emptyStmt = factory.createEmptyStatement();
|
|
148659
148828
|
body = factory.createBlock(
|
|
148660
148829
|
[emptyStmt],
|
|
148661
|
-
/*
|
|
148830
|
+
/*multiLine*/
|
|
148662
148831
|
true
|
|
148663
148832
|
);
|
|
148664
148833
|
setSnippetElement(emptyStmt, { kind: 0 /* TabStop */, order: 0 });
|
|
148665
148834
|
} else {
|
|
148666
148835
|
body = factory.createBlock(
|
|
148667
148836
|
[],
|
|
148668
|
-
/*
|
|
148837
|
+
/*multiLine*/
|
|
148669
148838
|
true
|
|
148670
148839
|
);
|
|
148671
148840
|
}
|
|
@@ -149640,7 +149809,7 @@ ${lanes.join("\n")}
|
|
|
149640
149809
|
if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, symbol)) {
|
|
149641
149810
|
addPropertySymbol(
|
|
149642
149811
|
symbol,
|
|
149643
|
-
/*
|
|
149812
|
+
/*insertAwait*/
|
|
149644
149813
|
false,
|
|
149645
149814
|
insertQuestionDot
|
|
149646
149815
|
);
|
|
@@ -149656,7 +149825,7 @@ ${lanes.join("\n")}
|
|
|
149656
149825
|
if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, promiseType, symbol)) {
|
|
149657
149826
|
addPropertySymbol(
|
|
149658
149827
|
symbol,
|
|
149659
|
-
/*
|
|
149828
|
+
/*insertAwait*/
|
|
149660
149829
|
true,
|
|
149661
149830
|
insertQuestionDot
|
|
149662
149831
|
);
|
|
@@ -150155,7 +150324,7 @@ ${lanes.join("\n")}
|
|
|
150155
150324
|
objectLikeContainer,
|
|
150156
150325
|
/*isSuper*/
|
|
150157
150326
|
false,
|
|
150158
|
-
/*
|
|
150327
|
+
/*isWrite*/
|
|
150159
150328
|
false,
|
|
150160
150329
|
typeForObject,
|
|
150161
150330
|
propertySymbol
|
|
@@ -151245,7 +151414,7 @@ ${lanes.join("\n")}
|
|
|
151245
151414
|
options,
|
|
151246
151415
|
/*formatContext*/
|
|
151247
151416
|
void 0,
|
|
151248
|
-
/*isTypeOnlyLocation
|
|
151417
|
+
/*isTypeOnlyLocation*/
|
|
151249
151418
|
void 0,
|
|
151250
151419
|
/*propertyAccessToConvert*/
|
|
151251
151420
|
void 0,
|
|
@@ -151510,7 +151679,7 @@ ${lanes.join("\n")}
|
|
|
151510
151679
|
const scriptPath = sourceFile.path;
|
|
151511
151680
|
const scriptDirectory = getDirectoryPath(scriptPath);
|
|
151512
151681
|
const extensionOptions = getExtensionOptions(compilerOptions, 1 /* ModuleSpecifier */, sourceFile, typeChecker, preferences, mode);
|
|
151513
|
-
return isPathRelativeToScript(literalValue) || !compilerOptions.baseUrl && (isRootedDiskPath(literalValue) || isUrl(literalValue)) ? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, extensionOptions) : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, mode, compilerOptions, host, extensionOptions, typeChecker);
|
|
151682
|
+
return isPathRelativeToScript(literalValue) || !compilerOptions.baseUrl && !compilerOptions.paths && (isRootedDiskPath(literalValue) || isUrl(literalValue)) ? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, extensionOptions) : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, mode, compilerOptions, host, extensionOptions, typeChecker);
|
|
151514
151683
|
}
|
|
151515
151684
|
function getExtensionOptions(compilerOptions, referenceKind, importingSourceFile, typeChecker, preferences, resolutionMode) {
|
|
151516
151685
|
return {
|
|
@@ -151713,8 +151882,7 @@ ${lanes.join("\n")}
|
|
|
151713
151882
|
const result = createNameAndKindSet();
|
|
151714
151883
|
const moduleResolution = getEmitModuleResolutionKind(compilerOptions);
|
|
151715
151884
|
if (baseUrl) {
|
|
151716
|
-
const
|
|
151717
|
-
const absolute = normalizePath(combinePaths(projectDir, baseUrl));
|
|
151885
|
+
const absolute = normalizePath(combinePaths(host.getCurrentDirectory(), baseUrl));
|
|
151718
151886
|
getCompletionEntriesForDirectoryFragment(
|
|
151719
151887
|
fragment,
|
|
151720
151888
|
absolute,
|
|
@@ -151726,9 +151894,10 @@ ${lanes.join("\n")}
|
|
|
151726
151894
|
void 0,
|
|
151727
151895
|
result
|
|
151728
151896
|
);
|
|
151729
|
-
|
|
151730
|
-
|
|
151731
|
-
|
|
151897
|
+
}
|
|
151898
|
+
if (paths) {
|
|
151899
|
+
const absolute = getPathsBasePath(compilerOptions, host);
|
|
151900
|
+
addCompletionEntriesFromPaths(result, fragment, absolute, extensionOptions, host, paths);
|
|
151732
151901
|
}
|
|
151733
151902
|
const fragmentDirectory = getFragmentDirectory(fragment);
|
|
151734
151903
|
for (const ambientName of getAmbientModuleCompletions(fragment, fragmentDirectory, typeChecker)) {
|
|
@@ -152168,7 +152337,7 @@ ${lanes.join("\n")}
|
|
|
152168
152337
|
} else if (direct.exportClause.kind === 278 /* NamespaceExport */) {
|
|
152169
152338
|
addIndirectUser(
|
|
152170
152339
|
getSourceFileLikeForImportDeclaration(direct),
|
|
152171
|
-
|
|
152340
|
+
/*addTransitiveDependencies*/
|
|
152172
152341
|
true
|
|
152173
152342
|
);
|
|
152174
152343
|
} else {
|
|
@@ -152179,7 +152348,7 @@ ${lanes.join("\n")}
|
|
|
152179
152348
|
if (!isAvailableThroughGlobal && direct.isTypeOf && !direct.qualifier && isExported2(direct)) {
|
|
152180
152349
|
addIndirectUser(
|
|
152181
152350
|
direct.getSourceFile(),
|
|
152182
|
-
|
|
152351
|
+
/*addTransitiveDependencies*/
|
|
152183
152352
|
true
|
|
152184
152353
|
);
|
|
152185
152354
|
}
|
|
@@ -152198,7 +152367,7 @@ ${lanes.join("\n")}
|
|
|
152198
152367
|
/** addTransitiveDependencies */
|
|
152199
152368
|
!!isExported2(
|
|
152200
152369
|
importCall,
|
|
152201
|
-
|
|
152370
|
+
/*stopAtAmbientModule*/
|
|
152202
152371
|
true
|
|
152203
152372
|
)
|
|
152204
152373
|
);
|
|
@@ -152220,7 +152389,7 @@ ${lanes.join("\n")}
|
|
|
152220
152389
|
if (isReExport || findNamespaceReExports(sourceFileLike, name, checker)) {
|
|
152221
152390
|
addIndirectUser(
|
|
152222
152391
|
sourceFileLike,
|
|
152223
|
-
|
|
152392
|
+
/*addTransitiveDependencies*/
|
|
152224
152393
|
true
|
|
152225
152394
|
);
|
|
152226
152395
|
} else {
|
|
@@ -152246,7 +152415,7 @@ ${lanes.join("\n")}
|
|
|
152246
152415
|
if (!isImportTypeNode(directImport)) {
|
|
152247
152416
|
addIndirectUser(
|
|
152248
152417
|
getSourceFileLikeForImportDeclaration(directImport),
|
|
152249
|
-
|
|
152418
|
+
/*addTransitiveDependencies*/
|
|
152250
152419
|
true
|
|
152251
152420
|
);
|
|
152252
152421
|
}
|
|
@@ -152377,10 +152546,10 @@ ${lanes.join("\n")}
|
|
|
152377
152546
|
}
|
|
152378
152547
|
}
|
|
152379
152548
|
}
|
|
152380
|
-
forEachImport(referencingFile, (
|
|
152549
|
+
forEachImport(referencingFile, (importDecl, moduleSpecifier) => {
|
|
152381
152550
|
const moduleSymbol = checker.getSymbolAtLocation(moduleSpecifier);
|
|
152382
152551
|
if (moduleSymbol === searchModuleSymbol) {
|
|
152383
|
-
refs.push({ kind: "import", literal: moduleSpecifier });
|
|
152552
|
+
refs.push(nodeIsSynthesized(importDecl) ? { kind: "implicit", literal: moduleSpecifier, referencingFile } : { kind: "import", literal: moduleSpecifier });
|
|
152384
152553
|
}
|
|
152385
152554
|
});
|
|
152386
152555
|
}
|
|
@@ -153303,6 +153472,12 @@ ${lanes.join("\n")}
|
|
|
153303
153472
|
}
|
|
153304
153473
|
}
|
|
153305
153474
|
return nodeEntry(reference.literal);
|
|
153475
|
+
} else if (reference.kind === "implicit") {
|
|
153476
|
+
const range = reference.literal.text !== externalHelpersModuleNameText && forEachChildRecursively(
|
|
153477
|
+
reference.referencingFile,
|
|
153478
|
+
(n) => !(n.transformFlags & 2 /* ContainsJsx */) ? "skip" : isJsxElement(n) || isJsxSelfClosingElement(n) || isJsxFragment(n) ? n : void 0
|
|
153479
|
+
) || reference.referencingFile.statements[0] || reference.referencingFile;
|
|
153480
|
+
return nodeEntry(range);
|
|
153306
153481
|
} else {
|
|
153307
153482
|
return {
|
|
153308
153483
|
kind: 0 /* Span */,
|
|
@@ -154196,7 +154371,7 @@ ${lanes.join("\n")}
|
|
|
154196
154371
|
function getReferencesForThisKeyword(thisOrSuperKeyword, sourceFiles, cancellationToken) {
|
|
154197
154372
|
let searchSpaceNode = getThisContainer(
|
|
154198
154373
|
thisOrSuperKeyword,
|
|
154199
|
-
/*
|
|
154374
|
+
/*includeArrowFunctions*/
|
|
154200
154375
|
false,
|
|
154201
154376
|
/*includeClassComputedPropertyName*/
|
|
154202
154377
|
false
|
|
@@ -154236,7 +154411,7 @@ ${lanes.join("\n")}
|
|
|
154236
154411
|
}
|
|
154237
154412
|
const container = getThisContainer(
|
|
154238
154413
|
node,
|
|
154239
|
-
/*
|
|
154414
|
+
/*includeArrowFunctions*/
|
|
154240
154415
|
false,
|
|
154241
154416
|
/*includeClassComputedPropertyName*/
|
|
154242
154417
|
false
|
|
@@ -156947,7 +157122,7 @@ ${lanes.join("\n")}
|
|
|
156947
157122
|
changes.deleteRange(importingSourceFile, { pos: ref.getStart(importingSourceFile), end: namedBindings.getStart(importingSourceFile) });
|
|
156948
157123
|
const quotePreference = isStringLiteral(clause.parent.moduleSpecifier) ? quotePreferenceFromString(clause.parent.moduleSpecifier, importingSourceFile) : 1 /* Double */;
|
|
156949
157124
|
const newImport = makeImport(
|
|
156950
|
-
/*
|
|
157125
|
+
/*defaultImport*/
|
|
156951
157126
|
void 0,
|
|
156952
157127
|
[makeImportSpecifier2(exportName, ref.text)],
|
|
156953
157128
|
clause.parent.moduleSpecifier,
|
|
@@ -157351,7 +157526,7 @@ ${lanes.join("\n")}
|
|
|
157351
157526
|
typeName.text,
|
|
157352
157527
|
typeName,
|
|
157353
157528
|
262144 /* TypeParameter */,
|
|
157354
|
-
/*
|
|
157529
|
+
/*excludeGlobals*/
|
|
157355
157530
|
true
|
|
157356
157531
|
);
|
|
157357
157532
|
for (const decl of (symbol == null ? void 0 : symbol.declarations) || emptyArray) {
|
|
@@ -157382,7 +157557,7 @@ ${lanes.join("\n")}
|
|
|
157382
157557
|
node.exprName.text,
|
|
157383
157558
|
node.exprName,
|
|
157384
157559
|
111551 /* Value */,
|
|
157385
|
-
/*
|
|
157560
|
+
/*excludeGlobals*/
|
|
157386
157561
|
false
|
|
157387
157562
|
);
|
|
157388
157563
|
if ((symbol == null ? void 0 : symbol.valueDeclaration) && rangeContainsSkipTrivia(enclosingNode, symbol.valueDeclaration, file) && !rangeContainsSkipTrivia(selection, symbol.valueDeclaration, file)) {
|
|
@@ -157403,7 +157578,7 @@ ${lanes.join("\n")}
|
|
|
157403
157578
|
function doTypeAliasChange(changes, file, name, info) {
|
|
157404
157579
|
const { enclosingNode, selection, typeParameters } = info;
|
|
157405
157580
|
const newTypeNode = factory.createTypeAliasDeclaration(
|
|
157406
|
-
/*
|
|
157581
|
+
/*modifiers*/
|
|
157407
157582
|
void 0,
|
|
157408
157583
|
name,
|
|
157409
157584
|
typeParameters.map((id) => factory.updateTypeParameterDeclaration(
|
|
@@ -157411,7 +157586,7 @@ ${lanes.join("\n")}
|
|
|
157411
157586
|
id.modifiers,
|
|
157412
157587
|
id.name,
|
|
157413
157588
|
id.constraint,
|
|
157414
|
-
/*
|
|
157589
|
+
/*defaultType*/
|
|
157415
157590
|
void 0
|
|
157416
157591
|
)),
|
|
157417
157592
|
selection
|
|
@@ -157420,12 +157595,12 @@ ${lanes.join("\n")}
|
|
|
157420
157595
|
file,
|
|
157421
157596
|
enclosingNode,
|
|
157422
157597
|
ignoreSourceNewlines(newTypeNode),
|
|
157423
|
-
/*
|
|
157598
|
+
/*blankLineBetween*/
|
|
157424
157599
|
true
|
|
157425
157600
|
);
|
|
157426
157601
|
changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map((id) => factory.createTypeReferenceNode(
|
|
157427
157602
|
id.name,
|
|
157428
|
-
/*
|
|
157603
|
+
/*typeArguments*/
|
|
157429
157604
|
void 0
|
|
157430
157605
|
))), { leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.Exclude, trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.ExcludeWhitespace });
|
|
157431
157606
|
}
|
|
@@ -157433,11 +157608,11 @@ ${lanes.join("\n")}
|
|
|
157433
157608
|
var _a2;
|
|
157434
157609
|
const { enclosingNode, selection, typeParameters, typeElements } = info;
|
|
157435
157610
|
const newTypeNode = factory.createInterfaceDeclaration(
|
|
157436
|
-
/*
|
|
157611
|
+
/*modifiers*/
|
|
157437
157612
|
void 0,
|
|
157438
157613
|
name,
|
|
157439
157614
|
typeParameters,
|
|
157440
|
-
/*
|
|
157615
|
+
/*heritageClauses*/
|
|
157441
157616
|
void 0,
|
|
157442
157617
|
typeElements
|
|
157443
157618
|
);
|
|
@@ -157446,12 +157621,12 @@ ${lanes.join("\n")}
|
|
|
157446
157621
|
file,
|
|
157447
157622
|
enclosingNode,
|
|
157448
157623
|
ignoreSourceNewlines(newTypeNode),
|
|
157449
|
-
/*
|
|
157624
|
+
/*blankLineBetween*/
|
|
157450
157625
|
true
|
|
157451
157626
|
);
|
|
157452
157627
|
changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map((id) => factory.createTypeReferenceNode(
|
|
157453
157628
|
id.name,
|
|
157454
|
-
/*
|
|
157629
|
+
/*typeArguments*/
|
|
157455
157630
|
void 0
|
|
157456
157631
|
))), { leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.Exclude, trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.ExcludeWhitespace });
|
|
157457
157632
|
}
|
|
@@ -157480,7 +157655,7 @@ ${lanes.join("\n")}
|
|
|
157480
157655
|
templates.push(template);
|
|
157481
157656
|
});
|
|
157482
157657
|
const jsDoc = factory.createJSDocComment(
|
|
157483
|
-
/*
|
|
157658
|
+
/*comment*/
|
|
157484
157659
|
void 0,
|
|
157485
157660
|
factory.createNodeArray(concatenate(templates, [node]))
|
|
157486
157661
|
);
|
|
@@ -157495,13 +157670,13 @@ ${lanes.join("\n")}
|
|
|
157495
157670
|
file,
|
|
157496
157671
|
enclosingNode,
|
|
157497
157672
|
jsDoc,
|
|
157498
|
-
/*
|
|
157673
|
+
/*blankLineBetween*/
|
|
157499
157674
|
true
|
|
157500
157675
|
);
|
|
157501
157676
|
}
|
|
157502
157677
|
changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map((id) => factory.createTypeReferenceNode(
|
|
157503
157678
|
id.name,
|
|
157504
|
-
/*
|
|
157679
|
+
/*typeArguments*/
|
|
157505
157680
|
void 0
|
|
157506
157681
|
))));
|
|
157507
157682
|
}
|
|
@@ -157677,7 +157852,7 @@ ${lanes.join("\n")}
|
|
|
157677
157852
|
case 241 /* VariableStatement */:
|
|
157678
157853
|
return node.declarationList.declarations.every((d) => !!d.initializer && isRequireCall(
|
|
157679
157854
|
d.initializer,
|
|
157680
|
-
/*
|
|
157855
|
+
/*requireStringLiteralLikeArgument*/
|
|
157681
157856
|
true
|
|
157682
157857
|
));
|
|
157683
157858
|
default:
|
|
@@ -157867,7 +158042,7 @@ ${lanes.join("\n")}
|
|
|
157867
158042
|
for (const decl of statement.declarationList.declarations) {
|
|
157868
158043
|
if (decl.initializer && isRequireCall(
|
|
157869
158044
|
decl.initializer,
|
|
157870
|
-
/*
|
|
158045
|
+
/*requireStringLiteralLikeArgument*/
|
|
157871
158046
|
true
|
|
157872
158047
|
)) {
|
|
157873
158048
|
cb(decl);
|
|
@@ -158159,7 +158334,7 @@ ${lanes.join("\n")}
|
|
|
158159
158334
|
function isVariableDeclarationInImport(decl) {
|
|
158160
158335
|
return isSourceFile(decl.parent.parent.parent) && !!decl.initializer && isRequireCall(
|
|
158161
158336
|
decl.initializer,
|
|
158162
|
-
/*
|
|
158337
|
+
/*requireStringLiteralLikeArgument*/
|
|
158163
158338
|
true
|
|
158164
158339
|
);
|
|
158165
158340
|
}
|
|
@@ -158693,7 +158868,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158693
158868
|
const returnStatement2 = factory.createReturnStatement(expression);
|
|
158694
158869
|
body = factory.createBlock(
|
|
158695
158870
|
[returnStatement2],
|
|
158696
|
-
/*
|
|
158871
|
+
/*multiLine*/
|
|
158697
158872
|
true
|
|
158698
158873
|
);
|
|
158699
158874
|
copyLeadingComments(
|
|
@@ -158701,7 +158876,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158701
158876
|
returnStatement2,
|
|
158702
158877
|
file,
|
|
158703
158878
|
3 /* MultiLineCommentTrivia */,
|
|
158704
|
-
/*
|
|
158879
|
+
/*hasTrailingNewLine*/
|
|
158705
158880
|
true
|
|
158706
158881
|
);
|
|
158707
158882
|
} else if (actionName2 === removeBracesAction.name && returnStatement) {
|
|
@@ -158712,7 +158887,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158712
158887
|
body,
|
|
158713
158888
|
file,
|
|
158714
158889
|
3 /* MultiLineCommentTrivia */,
|
|
158715
|
-
/*
|
|
158890
|
+
/*hasTrailingNewLine*/
|
|
158716
158891
|
false
|
|
158717
158892
|
);
|
|
158718
158893
|
copyLeadingComments(
|
|
@@ -158720,7 +158895,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158720
158895
|
body,
|
|
158721
158896
|
file,
|
|
158722
158897
|
3 /* MultiLineCommentTrivia */,
|
|
158723
|
-
/*
|
|
158898
|
+
/*hasTrailingNewLine*/
|
|
158724
158899
|
false
|
|
158725
158900
|
);
|
|
158726
158901
|
copyTrailingComments(
|
|
@@ -158728,7 +158903,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158728
158903
|
body,
|
|
158729
158904
|
file,
|
|
158730
158905
|
3 /* MultiLineCommentTrivia */,
|
|
158731
|
-
/*
|
|
158906
|
+
/*hasTrailingNewLine*/
|
|
158732
158907
|
false
|
|
158733
158908
|
);
|
|
158734
158909
|
} else {
|
|
@@ -158919,14 +159094,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158919
159094
|
body,
|
|
158920
159095
|
returnStatement,
|
|
158921
159096
|
file,
|
|
158922
|
-
/*
|
|
159097
|
+
/*commentKind*/
|
|
158923
159098
|
void 0,
|
|
158924
|
-
/*
|
|
159099
|
+
/*hasTrailingNewLine*/
|
|
158925
159100
|
true
|
|
158926
159101
|
);
|
|
158927
159102
|
return factory.createBlock(
|
|
158928
159103
|
[returnStatement],
|
|
158929
|
-
/*
|
|
159104
|
+
/*multiLine*/
|
|
158930
159105
|
true
|
|
158931
159106
|
);
|
|
158932
159107
|
} else {
|
|
@@ -158949,7 +159124,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
158949
159124
|
const newNode = factory.createFunctionExpression(
|
|
158950
159125
|
func.modifiers,
|
|
158951
159126
|
func.asteriskToken,
|
|
158952
|
-
/*
|
|
159127
|
+
/*name*/
|
|
158953
159128
|
void 0,
|
|
158954
159129
|
func.typeParameters,
|
|
158955
159130
|
func.parameters,
|
|
@@ -159760,7 +159935,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
159760
159935
|
node.expression,
|
|
159761
159936
|
file,
|
|
159762
159937
|
3 /* MultiLineCommentTrivia */,
|
|
159763
|
-
/*
|
|
159938
|
+
/*hasTrailingNewLine*/
|
|
159764
159939
|
false
|
|
159765
159940
|
);
|
|
159766
159941
|
copyTrailingAsLeadingComments(
|
|
@@ -159768,7 +159943,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
159768
159943
|
node.expression,
|
|
159769
159944
|
file,
|
|
159770
159945
|
3 /* MultiLineCommentTrivia */,
|
|
159771
|
-
/*
|
|
159946
|
+
/*hasTrailingNewLine*/
|
|
159772
159947
|
false
|
|
159773
159948
|
);
|
|
159774
159949
|
}
|
|
@@ -159804,7 +159979,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
159804
159979
|
targetNode,
|
|
159805
159980
|
file,
|
|
159806
159981
|
3 /* MultiLineCommentTrivia */,
|
|
159807
|
-
/*
|
|
159982
|
+
/*hasTrailingNewLine*/
|
|
159808
159983
|
false
|
|
159809
159984
|
);
|
|
159810
159985
|
}
|
|
@@ -159817,7 +159992,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
159817
159992
|
targetNode,
|
|
159818
159993
|
file,
|
|
159819
159994
|
3 /* MultiLineCommentTrivia */,
|
|
159820
|
-
/*
|
|
159995
|
+
/*hasTrailingNewLine*/
|
|
159821
159996
|
false
|
|
159822
159997
|
);
|
|
159823
159998
|
copyOperatorComments(index, targetNode);
|
|
@@ -160329,7 +160504,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160329
160504
|
if (rangeFacts & 8 /* UsesThis */) {
|
|
160330
160505
|
const container = getThisContainer(
|
|
160331
160506
|
nodeToCheck,
|
|
160332
|
-
|
|
160507
|
+
/*includeArrowFunctions*/
|
|
160333
160508
|
false,
|
|
160334
160509
|
/*includeClassComputedPropertyName*/
|
|
160335
160510
|
false
|
|
@@ -160900,7 +161075,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160900
161075
|
edits,
|
|
160901
161076
|
renameFilename,
|
|
160902
161077
|
functionNameText,
|
|
160903
|
-
/*
|
|
161078
|
+
/*preferLastLocation*/
|
|
160904
161079
|
false
|
|
160905
161080
|
);
|
|
160906
161081
|
return { renameFilename, renameLocation, edits };
|
|
@@ -160943,7 +161118,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160943
161118
|
const newVariable = factory.createPropertyDeclaration(
|
|
160944
161119
|
modifiers,
|
|
160945
161120
|
localNameText,
|
|
160946
|
-
/*
|
|
161121
|
+
/*questionOrExclamationToken*/
|
|
160947
161122
|
void 0,
|
|
160948
161123
|
variableType,
|
|
160949
161124
|
initializer
|
|
@@ -161033,7 +161208,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
161033
161208
|
edits,
|
|
161034
161209
|
renameFilename,
|
|
161035
161210
|
localNameText,
|
|
161036
|
-
/*
|
|
161211
|
+
/*preferLastLocation*/
|
|
161037
161212
|
true
|
|
161038
161213
|
);
|
|
161039
161214
|
return { renameFilename, renameLocation, edits };
|
|
@@ -161087,12 +161262,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
161087
161262
|
if (!firstParameter || isIdentifier(firstParameter.name) && firstParameter.name.escapedText !== "this") {
|
|
161088
161263
|
const thisType = checker.getTypeOfSymbolAtLocation(functionSignature.thisParameter, node);
|
|
161089
161264
|
parameters.splice(0, 0, factory.createParameterDeclaration(
|
|
161090
|
-
/*
|
|
161265
|
+
/*modifiers*/
|
|
161091
161266
|
void 0,
|
|
161092
|
-
/*
|
|
161267
|
+
/*dotDotDotToken*/
|
|
161093
161268
|
void 0,
|
|
161094
161269
|
"this",
|
|
161095
|
-
/*
|
|
161270
|
+
/*questionToken*/
|
|
161096
161271
|
void 0,
|
|
161097
161272
|
checker.typeToTypeNode(thisType, scope, 1 /* NoTruncation */)
|
|
161098
161273
|
));
|
|
@@ -161154,7 +161329,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
161154
161329
|
if (isBlock(body) && !hasWritesOrVariableDeclarations && substitutions.size === 0) {
|
|
161155
161330
|
return { body: factory.createBlock(
|
|
161156
161331
|
body.statements,
|
|
161157
|
-
/*
|
|
161332
|
+
/*multiLine*/
|
|
161158
161333
|
true
|
|
161159
161334
|
), returnValueProperty: void 0 };
|
|
161160
161335
|
}
|
|
@@ -164767,7 +164942,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
164767
164942
|
const end = skipTrivia(
|
|
164768
164943
|
sourceFile.text,
|
|
164769
164944
|
nextToken.end,
|
|
164770
|
-
/*
|
|
164945
|
+
/*stopAfterLineBreak*/
|
|
164771
164946
|
false,
|
|
164772
164947
|
/*stopAtComments*/
|
|
164773
164948
|
true
|
|
@@ -165086,7 +165261,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
165086
165261
|
if (token === 19 /* CloseBraceToken */) {
|
|
165087
165262
|
lastScanAction = 3 /* RescanTemplateToken */;
|
|
165088
165263
|
return scanner2.reScanTemplateToken(
|
|
165089
|
-
/*
|
|
165264
|
+
/*isTaggedTemplate*/
|
|
165090
165265
|
false
|
|
165091
165266
|
);
|
|
165092
165267
|
}
|
|
@@ -165097,7 +165272,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
165097
165272
|
case 5 /* RescanJsxText */:
|
|
165098
165273
|
lastScanAction = 5 /* RescanJsxText */;
|
|
165099
165274
|
return scanner2.reScanJsxToken(
|
|
165100
|
-
/*
|
|
165275
|
+
/*allowMultilineJsxText*/
|
|
165101
165276
|
false
|
|
165102
165277
|
);
|
|
165103
165278
|
case 6 /* RescanJsxAttributeValue */:
|
|
@@ -168628,7 +168803,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
168628
168803
|
this,
|
|
168629
168804
|
/*fileExists*/
|
|
168630
168805
|
false,
|
|
168631
|
-
/*
|
|
168806
|
+
/*detachFromProject*/
|
|
168632
168807
|
false
|
|
168633
168808
|
);
|
|
168634
168809
|
p.onFileAddedOrRemoved(this.isSymlink());
|
|
@@ -170704,7 +170879,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
170704
170879
|
packageJson,
|
|
170705
170880
|
program,
|
|
170706
170881
|
symlinkCache,
|
|
170707
|
-
/*
|
|
170882
|
+
/*resolveJs*/
|
|
170708
170883
|
true
|
|
170709
170884
|
);
|
|
170710
170885
|
rootNames = concatenate(rootNames, entrypoints);
|
|
@@ -176863,7 +177038,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
176863
177038
|
tags: this.mapJSDocTagInfo(
|
|
176864
177039
|
quickInfo.tags,
|
|
176865
177040
|
project,
|
|
176866
|
-
/*
|
|
177041
|
+
/*richResponse*/
|
|
176867
177042
|
false
|
|
176868
177043
|
)
|
|
176869
177044
|
};
|
|
@@ -177260,7 +177435,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
177260
177435
|
const projectItems = project.getLanguageService().getNavigateToItems(
|
|
177261
177436
|
searchValue,
|
|
177262
177437
|
maxResultCount,
|
|
177263
|
-
/*
|
|
177438
|
+
/*fileName*/
|
|
177264
177439
|
void 0,
|
|
177265
177440
|
/*excludeDts*/
|
|
177266
177441
|
project.isNonTsProject()
|