@typescript-deploys/pr-build 4.9.0-pr-50329-13 → 4.9.0-pr-50397-33
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/.gitattributes +1 -0
- package/lib/cs/diagnosticMessages.generated.json +1 -1
- package/lib/de/diagnosticMessages.generated.json +1 -1
- package/lib/es/diagnosticMessages.generated.json +1 -1
- package/lib/fr/diagnosticMessages.generated.json +1 -1
- package/lib/it/diagnosticMessages.generated.json +1 -1
- package/lib/ja/diagnosticMessages.generated.json +1 -1
- package/lib/ko/diagnosticMessages.generated.json +1 -1
- package/lib/lib.es2020.intl.d.ts +1 -1
- package/lib/pl/diagnosticMessages.generated.json +1 -1
- package/lib/pt-br/diagnosticMessages.generated.json +1 -1
- package/lib/ru/diagnosticMessages.generated.json +1 -1
- package/lib/tr/diagnosticMessages.generated.json +1 -1
- package/lib/tsc.js +1380 -1214
- package/lib/tsserver.js +1432 -1270
- package/lib/tsserverlibrary.d.ts +62 -118
- package/lib/tsserverlibrary.js +1432 -1270
- package/lib/typescript.d.ts +62 -118
- package/lib/typescript.js +1431 -1269
- package/lib/typescriptServices.d.ts +62 -118
- package/lib/typescriptServices.js +1431 -1269
- package/lib/typingsInstaller.js +1415 -1253
- package/lib/zh-cn/diagnosticMessages.generated.json +47 -47
- package/lib/zh-tw/diagnosticMessages.generated.json +1 -1
- package/package.json +27 -22
- package/CODE_OF_CONDUCT.md +0 -1
- package/CopyrightNotice.txt +0 -15
package/lib/typingsInstaller.js
CHANGED
|
@@ -89,7 +89,7 @@ var ts;
|
|
|
89
89
|
// The following is baselined as a literal template type without intervention
|
|
90
90
|
/** The version of the TypeScript compiler release */
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
92
|
-
ts.version = ts.versionMajorMinor + ".0-insiders.
|
|
92
|
+
ts.version = ts.versionMajorMinor + ".0-insiders.20220824";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -110,7 +110,7 @@ var ts;
|
|
|
110
110
|
function tryGetNativeMap() {
|
|
111
111
|
// Internet Explorer's Map doesn't support iteration, so don't use it.
|
|
112
112
|
var gMap = globals === null || globals === void 0 ? void 0 : globals.Map;
|
|
113
|
-
// eslint-disable-next-line no-in-operator
|
|
113
|
+
// eslint-disable-next-line local/no-in-operator
|
|
114
114
|
var constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : undefined;
|
|
115
115
|
if (!constructor) {
|
|
116
116
|
throw new Error("No compatible Map implementation found.");
|
|
@@ -124,7 +124,7 @@ var ts;
|
|
|
124
124
|
function tryGetNativeSet() {
|
|
125
125
|
// Internet Explorer's Set doesn't support iteration, so don't use it.
|
|
126
126
|
var gSet = globals === null || globals === void 0 ? void 0 : globals.Set;
|
|
127
|
-
// eslint-disable-next-line no-in-operator
|
|
127
|
+
// eslint-disable-next-line local/no-in-operator
|
|
128
128
|
var constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : undefined;
|
|
129
129
|
if (!constructor) {
|
|
130
130
|
throw new Error("No compatible Set implementation found.");
|
|
@@ -2478,6 +2478,7 @@ var ts;
|
|
|
2478
2478
|
var currentAssertionLevel = 0 /* None */;
|
|
2479
2479
|
Debug.currentLogLevel = LogLevel.Warning;
|
|
2480
2480
|
Debug.isDebugging = false;
|
|
2481
|
+
Debug.enableDeprecationWarnings = true;
|
|
2481
2482
|
function getTypeScriptVersion() {
|
|
2482
2483
|
return typeScriptVersion !== null && typeScriptVersion !== void 0 ? typeScriptVersion : (typeScriptVersion = new ts.Version(ts.version));
|
|
2483
2484
|
}
|
|
@@ -2822,7 +2823,7 @@ var ts;
|
|
|
2822
2823
|
Debug.formatControlFlowGraph = formatControlFlowGraph;
|
|
2823
2824
|
var flowNodeProto;
|
|
2824
2825
|
function attachFlowNodeDebugInfoWorker(flowNode) {
|
|
2825
|
-
if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line no-in-operator
|
|
2826
|
+
if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line local/no-in-operator
|
|
2826
2827
|
Object.defineProperties(flowNode, {
|
|
2827
2828
|
// for use with vscode-js-debug's new customDescriptionGenerator in launch.json
|
|
2828
2829
|
__tsDebuggerDisplay: {
|
|
@@ -2868,7 +2869,7 @@ var ts;
|
|
|
2868
2869
|
Debug.attachFlowNodeDebugInfo = attachFlowNodeDebugInfo;
|
|
2869
2870
|
var nodeArrayProto;
|
|
2870
2871
|
function attachNodeArrayDebugInfoWorker(array) {
|
|
2871
|
-
if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line no-in-operator
|
|
2872
|
+
if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line local/no-in-operator
|
|
2872
2873
|
Object.defineProperties(array, {
|
|
2873
2874
|
__tsDebuggerDisplay: {
|
|
2874
2875
|
value: function (defaultValue) {
|
|
@@ -3101,7 +3102,7 @@ var ts;
|
|
|
3101
3102
|
function createWarningDeprecation(name, errorAfter, since, message) {
|
|
3102
3103
|
var hasWrittenDeprecation = false;
|
|
3103
3104
|
return function () {
|
|
3104
|
-
if (!hasWrittenDeprecation) {
|
|
3105
|
+
if (Debug.enableDeprecationWarnings && !hasWrittenDeprecation) {
|
|
3105
3106
|
log.warn(formatDeprecationMessage(name, /*error*/ false, errorAfter, since, message));
|
|
3106
3107
|
hasWrittenDeprecation = true;
|
|
3107
3108
|
}
|
|
@@ -4057,7 +4058,7 @@ var ts;
|
|
|
4057
4058
|
var substitutionType = type;
|
|
4058
4059
|
substitutionProperties = {
|
|
4059
4060
|
substitutionBaseType: (_o = substitutionType.baseType) === null || _o === void 0 ? void 0 : _o.id,
|
|
4060
|
-
|
|
4061
|
+
constraintType: (_p = substitutionType.constraint) === null || _p === void 0 ? void 0 : _p.id,
|
|
4061
4062
|
};
|
|
4062
4063
|
}
|
|
4063
4064
|
var reverseMappedProperties = {};
|
|
@@ -21380,7 +21381,7 @@ var ts;
|
|
|
21380
21381
|
case 165 /* Decorator */: {
|
|
21381
21382
|
var parent_2 = node.parent;
|
|
21382
21383
|
return ts.canHaveDecorators(parent_2) ? parent_2.modifiers :
|
|
21383
|
-
ts.canHaveIllegalDecorators(parent_2) ? parent_2.
|
|
21384
|
+
ts.canHaveIllegalDecorators(parent_2) ? parent_2.illegalDecorators :
|
|
21384
21385
|
undefined;
|
|
21385
21386
|
}
|
|
21386
21387
|
case 291 /* HeritageClause */:
|
|
@@ -23457,7 +23458,7 @@ var ts;
|
|
|
23457
23458
|
node.body = body;
|
|
23458
23459
|
node.transformFlags = propagateChildFlags(body) | 16777216 /* ContainsClassFields */;
|
|
23459
23460
|
// The following properties are used only to report grammar errors
|
|
23460
|
-
node.
|
|
23461
|
+
node.illegalDecorators = undefined;
|
|
23461
23462
|
node.modifiers = undefined;
|
|
23462
23463
|
return node;
|
|
23463
23464
|
}
|
|
@@ -23469,7 +23470,7 @@ var ts;
|
|
|
23469
23470
|
}
|
|
23470
23471
|
function finishUpdateClassStaticBlockDeclaration(updated, original) {
|
|
23471
23472
|
if (updated !== original) {
|
|
23472
|
-
updated.
|
|
23473
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
23473
23474
|
updated.modifiers = original.modifiers;
|
|
23474
23475
|
}
|
|
23475
23476
|
return update(updated, original);
|
|
@@ -23482,7 +23483,7 @@ var ts;
|
|
|
23482
23483
|
/*type*/ undefined, body);
|
|
23483
23484
|
node.transformFlags |= 1024 /* ContainsES2015 */;
|
|
23484
23485
|
// The following properties are used only to report grammar errors
|
|
23485
|
-
node.
|
|
23486
|
+
node.illegalDecorators = undefined;
|
|
23486
23487
|
node.typeParameters = undefined;
|
|
23487
23488
|
node.type = undefined;
|
|
23488
23489
|
return node;
|
|
@@ -23497,7 +23498,7 @@ var ts;
|
|
|
23497
23498
|
}
|
|
23498
23499
|
function finishUpdateConstructorDeclaration(updated, original) {
|
|
23499
23500
|
if (updated !== original) {
|
|
23500
|
-
updated.
|
|
23501
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
23501
23502
|
updated.typeParameters = original.typeParameters;
|
|
23502
23503
|
updated.type = original.type;
|
|
23503
23504
|
}
|
|
@@ -25245,7 +25246,7 @@ var ts;
|
|
|
25245
25246
|
}
|
|
25246
25247
|
}
|
|
25247
25248
|
// The following properties are used only to report grammar errors
|
|
25248
|
-
node.
|
|
25249
|
+
node.illegalDecorators = undefined;
|
|
25249
25250
|
return node;
|
|
25250
25251
|
}
|
|
25251
25252
|
// @api
|
|
@@ -25263,7 +25264,7 @@ var ts;
|
|
|
25263
25264
|
function finishUpdateFunctionDeclaration(updated, original) {
|
|
25264
25265
|
if (updated !== original) {
|
|
25265
25266
|
// copy children used only for error reporting
|
|
25266
|
-
updated.
|
|
25267
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25267
25268
|
}
|
|
25268
25269
|
return finishUpdateBaseSignatureDeclaration(updated, original);
|
|
25269
25270
|
}
|
|
@@ -25297,7 +25298,7 @@ var ts;
|
|
|
25297
25298
|
node.members = createNodeArray(members);
|
|
25298
25299
|
node.transformFlags = 1 /* ContainsTypeScript */;
|
|
25299
25300
|
// The following properties are used only to report grammar errors
|
|
25300
|
-
node.
|
|
25301
|
+
node.illegalDecorators = undefined;
|
|
25301
25302
|
return node;
|
|
25302
25303
|
}
|
|
25303
25304
|
// @api
|
|
@@ -25312,7 +25313,7 @@ var ts;
|
|
|
25312
25313
|
}
|
|
25313
25314
|
function finishUpdateInterfaceDeclaration(updated, original) {
|
|
25314
25315
|
if (updated !== original) {
|
|
25315
|
-
updated.
|
|
25316
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25316
25317
|
}
|
|
25317
25318
|
return update(updated, original);
|
|
25318
25319
|
}
|
|
@@ -25322,7 +25323,7 @@ var ts;
|
|
|
25322
25323
|
node.type = type;
|
|
25323
25324
|
node.transformFlags = 1 /* ContainsTypeScript */;
|
|
25324
25325
|
// The following properties are used only to report grammar errors
|
|
25325
|
-
node.
|
|
25326
|
+
node.illegalDecorators = undefined;
|
|
25326
25327
|
return node;
|
|
25327
25328
|
}
|
|
25328
25329
|
// @api
|
|
@@ -25336,7 +25337,7 @@ var ts;
|
|
|
25336
25337
|
}
|
|
25337
25338
|
function finishUpdateTypeAliasDeclaration(updated, original) {
|
|
25338
25339
|
if (updated !== original) {
|
|
25339
|
-
updated.
|
|
25340
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25340
25341
|
}
|
|
25341
25342
|
return update(updated, original);
|
|
25342
25343
|
}
|
|
@@ -25349,7 +25350,7 @@ var ts;
|
|
|
25349
25350
|
1 /* ContainsTypeScript */;
|
|
25350
25351
|
node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; // Enum declarations cannot contain `await`
|
|
25351
25352
|
// The following properties are used only to report grammar errors
|
|
25352
|
-
node.
|
|
25353
|
+
node.illegalDecorators = undefined;
|
|
25353
25354
|
return node;
|
|
25354
25355
|
}
|
|
25355
25356
|
// @api
|
|
@@ -25362,7 +25363,7 @@ var ts;
|
|
|
25362
25363
|
}
|
|
25363
25364
|
function finishUpdateEnumDeclaration(updated, original) {
|
|
25364
25365
|
if (updated !== original) {
|
|
25365
|
-
updated.
|
|
25366
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25366
25367
|
}
|
|
25367
25368
|
return update(updated, original);
|
|
25368
25369
|
}
|
|
@@ -25386,7 +25387,7 @@ var ts;
|
|
|
25386
25387
|
}
|
|
25387
25388
|
node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; // Module declarations cannot contain `await`.
|
|
25388
25389
|
// The following properties are used only to report grammar errors
|
|
25389
|
-
node.
|
|
25390
|
+
node.illegalDecorators = undefined;
|
|
25390
25391
|
return node;
|
|
25391
25392
|
}
|
|
25392
25393
|
// @api
|
|
@@ -25399,7 +25400,7 @@ var ts;
|
|
|
25399
25400
|
}
|
|
25400
25401
|
function finishUpdateModuleDeclaration(updated, original) {
|
|
25401
25402
|
if (updated !== original) {
|
|
25402
|
-
updated.
|
|
25403
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25403
25404
|
}
|
|
25404
25405
|
return update(updated, original);
|
|
25405
25406
|
}
|
|
@@ -25435,7 +25436,7 @@ var ts;
|
|
|
25435
25436
|
/*modifiers*/ undefined, name);
|
|
25436
25437
|
node.transformFlags = 1 /* ContainsTypeScript */;
|
|
25437
25438
|
// The following properties are used only to report grammar errors
|
|
25438
|
-
node.
|
|
25439
|
+
node.illegalDecorators = undefined;
|
|
25439
25440
|
node.modifiers = undefined;
|
|
25440
25441
|
return node;
|
|
25441
25442
|
}
|
|
@@ -25447,7 +25448,7 @@ var ts;
|
|
|
25447
25448
|
}
|
|
25448
25449
|
function finishUpdateNamespaceExportDeclaration(updated, original) {
|
|
25449
25450
|
if (updated !== original) {
|
|
25450
|
-
updated.
|
|
25451
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25451
25452
|
updated.modifiers = original.modifiers;
|
|
25452
25453
|
}
|
|
25453
25454
|
return update(updated, original);
|
|
@@ -25462,7 +25463,7 @@ var ts;
|
|
|
25462
25463
|
node.transformFlags |= 1 /* ContainsTypeScript */;
|
|
25463
25464
|
node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; // Import= declaration is always parsed in an Await context
|
|
25464
25465
|
// The following properties are used only to report grammar errors
|
|
25465
|
-
node.
|
|
25466
|
+
node.illegalDecorators = undefined;
|
|
25466
25467
|
return node;
|
|
25467
25468
|
}
|
|
25468
25469
|
// @api
|
|
@@ -25476,7 +25477,7 @@ var ts;
|
|
|
25476
25477
|
}
|
|
25477
25478
|
function finishUpdateImportEqualsDeclaration(updated, original) {
|
|
25478
25479
|
if (updated !== original) {
|
|
25479
|
-
updated.
|
|
25480
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25480
25481
|
}
|
|
25481
25482
|
return update(updated, original);
|
|
25482
25483
|
}
|
|
@@ -25492,7 +25493,7 @@ var ts;
|
|
|
25492
25493
|
propagateChildFlags(node.moduleSpecifier);
|
|
25493
25494
|
node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context
|
|
25494
25495
|
// The following properties are used only to report grammar errors
|
|
25495
|
-
node.
|
|
25496
|
+
node.illegalDecorators = undefined;
|
|
25496
25497
|
return node;
|
|
25497
25498
|
}
|
|
25498
25499
|
// @api
|
|
@@ -25506,7 +25507,7 @@ var ts;
|
|
|
25506
25507
|
}
|
|
25507
25508
|
function finishUpdateImportDeclaration(updated, original) {
|
|
25508
25509
|
if (updated !== original) {
|
|
25509
|
-
updated.
|
|
25510
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25510
25511
|
}
|
|
25511
25512
|
return update(updated, original);
|
|
25512
25513
|
}
|
|
@@ -25652,7 +25653,7 @@ var ts;
|
|
|
25652
25653
|
node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.expression);
|
|
25653
25654
|
node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context
|
|
25654
25655
|
// The following properties are used only to report grammar errors
|
|
25655
|
-
node.
|
|
25656
|
+
node.illegalDecorators = undefined;
|
|
25656
25657
|
return node;
|
|
25657
25658
|
}
|
|
25658
25659
|
// @api
|
|
@@ -25664,7 +25665,7 @@ var ts;
|
|
|
25664
25665
|
}
|
|
25665
25666
|
function finishUpdateExportAssignment(updated, original) {
|
|
25666
25667
|
if (updated !== original) {
|
|
25667
|
-
updated.
|
|
25668
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25668
25669
|
}
|
|
25669
25670
|
return update(updated, original);
|
|
25670
25671
|
}
|
|
@@ -25682,7 +25683,7 @@ var ts;
|
|
|
25682
25683
|
propagateChildFlags(node.moduleSpecifier);
|
|
25683
25684
|
node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context
|
|
25684
25685
|
// The following properties are used only to report grammar errors
|
|
25685
|
-
node.
|
|
25686
|
+
node.illegalDecorators = undefined;
|
|
25686
25687
|
return node;
|
|
25687
25688
|
}
|
|
25688
25689
|
// @api
|
|
@@ -25697,7 +25698,7 @@ var ts;
|
|
|
25697
25698
|
}
|
|
25698
25699
|
function finishUpdateExportDeclaration(updated, original) {
|
|
25699
25700
|
if (updated !== original) {
|
|
25700
|
-
updated.
|
|
25701
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25701
25702
|
}
|
|
25702
25703
|
return update(updated, original);
|
|
25703
25704
|
}
|
|
@@ -26461,7 +26462,7 @@ var ts;
|
|
|
26461
26462
|
propagateChildFlags(node.name) |
|
|
26462
26463
|
propagateChildFlags(node.initializer);
|
|
26463
26464
|
// The following properties are used only to report grammar errors
|
|
26464
|
-
node.
|
|
26465
|
+
node.illegalDecorators = undefined;
|
|
26465
26466
|
node.modifiers = undefined;
|
|
26466
26467
|
node.questionToken = undefined;
|
|
26467
26468
|
node.exclamationToken = undefined;
|
|
@@ -26477,7 +26478,7 @@ var ts;
|
|
|
26477
26478
|
function finishUpdatePropertyAssignment(updated, original) {
|
|
26478
26479
|
// copy children used only for error reporting
|
|
26479
26480
|
if (updated !== original) {
|
|
26480
|
-
updated.
|
|
26481
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
26481
26482
|
updated.modifiers = original.modifiers;
|
|
26482
26483
|
updated.questionToken = original.questionToken;
|
|
26483
26484
|
updated.exclamationToken = original.exclamationToken;
|
|
@@ -26494,7 +26495,7 @@ var ts;
|
|
|
26494
26495
|
1024 /* ContainsES2015 */;
|
|
26495
26496
|
// The following properties are used only to report grammar errors
|
|
26496
26497
|
node.equalsToken = undefined;
|
|
26497
|
-
node.
|
|
26498
|
+
node.illegalDecorators = undefined;
|
|
26498
26499
|
node.modifiers = undefined;
|
|
26499
26500
|
node.questionToken = undefined;
|
|
26500
26501
|
node.exclamationToken = undefined;
|
|
@@ -26511,7 +26512,7 @@ var ts;
|
|
|
26511
26512
|
if (updated !== original) {
|
|
26512
26513
|
// copy children used only for error reporting
|
|
26513
26514
|
updated.equalsToken = original.equalsToken;
|
|
26514
|
-
updated.
|
|
26515
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
26515
26516
|
updated.modifiers = original.modifiers;
|
|
26516
26517
|
updated.questionToken = original.questionToken;
|
|
26517
26518
|
updated.exclamationToken = original.exclamationToken;
|
|
@@ -30523,17 +30524,6 @@ var ts;
|
|
|
30523
30524
|
|| kind === 173 /* SetAccessor */;
|
|
30524
30525
|
}
|
|
30525
30526
|
ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
|
|
30526
|
-
function canHaveDecorators(node) {
|
|
30527
|
-
var kind = node.kind;
|
|
30528
|
-
return kind === 164 /* Parameter */
|
|
30529
|
-
|| kind === 167 /* PropertyDeclaration */
|
|
30530
|
-
|| kind === 169 /* MethodDeclaration */
|
|
30531
|
-
|| kind === 172 /* GetAccessor */
|
|
30532
|
-
|| kind === 173 /* SetAccessor */
|
|
30533
|
-
|| kind === 226 /* ClassExpression */
|
|
30534
|
-
|| kind === 257 /* ClassDeclaration */;
|
|
30535
|
-
}
|
|
30536
|
-
ts.canHaveDecorators = canHaveDecorators;
|
|
30537
30527
|
function canHaveIllegalDecorators(node) {
|
|
30538
30528
|
var kind = node.kind;
|
|
30539
30529
|
return kind === 296 /* PropertyAssignment */
|
|
@@ -30555,35 +30545,6 @@ var ts;
|
|
|
30555
30545
|
|| kind === 271 /* ExportAssignment */;
|
|
30556
30546
|
}
|
|
30557
30547
|
ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
|
|
30558
|
-
function canHaveModifiers(node) {
|
|
30559
|
-
var kind = node.kind;
|
|
30560
|
-
return kind === 163 /* TypeParameter */
|
|
30561
|
-
|| kind === 164 /* Parameter */
|
|
30562
|
-
|| kind === 166 /* PropertySignature */
|
|
30563
|
-
|| kind === 167 /* PropertyDeclaration */
|
|
30564
|
-
|| kind === 168 /* MethodSignature */
|
|
30565
|
-
|| kind === 169 /* MethodDeclaration */
|
|
30566
|
-
|| kind === 171 /* Constructor */
|
|
30567
|
-
|| kind === 172 /* GetAccessor */
|
|
30568
|
-
|| kind === 173 /* SetAccessor */
|
|
30569
|
-
|| kind === 176 /* IndexSignature */
|
|
30570
|
-
|| kind === 180 /* ConstructorType */
|
|
30571
|
-
|| kind === 213 /* FunctionExpression */
|
|
30572
|
-
|| kind === 214 /* ArrowFunction */
|
|
30573
|
-
|| kind === 226 /* ClassExpression */
|
|
30574
|
-
|| kind === 237 /* VariableStatement */
|
|
30575
|
-
|| kind === 256 /* FunctionDeclaration */
|
|
30576
|
-
|| kind === 257 /* ClassDeclaration */
|
|
30577
|
-
|| kind === 258 /* InterfaceDeclaration */
|
|
30578
|
-
|| kind === 259 /* TypeAliasDeclaration */
|
|
30579
|
-
|| kind === 260 /* EnumDeclaration */
|
|
30580
|
-
|| kind === 261 /* ModuleDeclaration */
|
|
30581
|
-
|| kind === 265 /* ImportEqualsDeclaration */
|
|
30582
|
-
|| kind === 266 /* ImportDeclaration */
|
|
30583
|
-
|| kind === 271 /* ExportAssignment */
|
|
30584
|
-
|| kind === 272 /* ExportDeclaration */;
|
|
30585
|
-
}
|
|
30586
|
-
ts.canHaveModifiers = canHaveModifiers;
|
|
30587
30548
|
function canHaveIllegalModifiers(node) {
|
|
30588
30549
|
var kind = node.kind;
|
|
30589
30550
|
return kind === 170 /* ClassStaticBlockDeclaration */
|
|
@@ -30872,9 +30833,50 @@ var ts;
|
|
|
30872
30833
|
return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
|
|
30873
30834
|
}
|
|
30874
30835
|
ts.setTextRange = setTextRange;
|
|
30836
|
+
function canHaveModifiers(node) {
|
|
30837
|
+
var kind = node.kind;
|
|
30838
|
+
return kind === 163 /* TypeParameter */
|
|
30839
|
+
|| kind === 164 /* Parameter */
|
|
30840
|
+
|| kind === 166 /* PropertySignature */
|
|
30841
|
+
|| kind === 167 /* PropertyDeclaration */
|
|
30842
|
+
|| kind === 168 /* MethodSignature */
|
|
30843
|
+
|| kind === 169 /* MethodDeclaration */
|
|
30844
|
+
|| kind === 171 /* Constructor */
|
|
30845
|
+
|| kind === 172 /* GetAccessor */
|
|
30846
|
+
|| kind === 173 /* SetAccessor */
|
|
30847
|
+
|| kind === 176 /* IndexSignature */
|
|
30848
|
+
|| kind === 180 /* ConstructorType */
|
|
30849
|
+
|| kind === 213 /* FunctionExpression */
|
|
30850
|
+
|| kind === 214 /* ArrowFunction */
|
|
30851
|
+
|| kind === 226 /* ClassExpression */
|
|
30852
|
+
|| kind === 237 /* VariableStatement */
|
|
30853
|
+
|| kind === 256 /* FunctionDeclaration */
|
|
30854
|
+
|| kind === 257 /* ClassDeclaration */
|
|
30855
|
+
|| kind === 258 /* InterfaceDeclaration */
|
|
30856
|
+
|| kind === 259 /* TypeAliasDeclaration */
|
|
30857
|
+
|| kind === 260 /* EnumDeclaration */
|
|
30858
|
+
|| kind === 261 /* ModuleDeclaration */
|
|
30859
|
+
|| kind === 265 /* ImportEqualsDeclaration */
|
|
30860
|
+
|| kind === 266 /* ImportDeclaration */
|
|
30861
|
+
|| kind === 271 /* ExportAssignment */
|
|
30862
|
+
|| kind === 272 /* ExportDeclaration */;
|
|
30863
|
+
}
|
|
30864
|
+
ts.canHaveModifiers = canHaveModifiers;
|
|
30865
|
+
function canHaveDecorators(node) {
|
|
30866
|
+
var kind = node.kind;
|
|
30867
|
+
return kind === 164 /* Parameter */
|
|
30868
|
+
|| kind === 167 /* PropertyDeclaration */
|
|
30869
|
+
|| kind === 169 /* MethodDeclaration */
|
|
30870
|
+
|| kind === 172 /* GetAccessor */
|
|
30871
|
+
|| kind === 173 /* SetAccessor */
|
|
30872
|
+
|| kind === 226 /* ClassExpression */
|
|
30873
|
+
|| kind === 257 /* ClassDeclaration */;
|
|
30874
|
+
}
|
|
30875
|
+
ts.canHaveDecorators = canHaveDecorators;
|
|
30875
30876
|
})(ts || (ts = {}));
|
|
30876
30877
|
var ts;
|
|
30877
30878
|
(function (ts) {
|
|
30879
|
+
var _a;
|
|
30878
30880
|
var SignatureFlags;
|
|
30879
30881
|
(function (SignatureFlags) {
|
|
30880
30882
|
SignatureFlags[SignatureFlags["None"] = 0] = "None";
|
|
@@ -30962,6 +30964,715 @@ var ts;
|
|
|
30962
30964
|
function isImportMeta(node) {
|
|
30963
30965
|
return ts.isMetaProperty(node) && node.keywordToken === 100 /* ImportKeyword */ && node.name.escapedText === "meta";
|
|
30964
30966
|
}
|
|
30967
|
+
var forEachChildTable = (_a = {},
|
|
30968
|
+
_a[161 /* QualifiedName */] = function forEachChildInQualifiedName(node, cbNode, _cbNodes) {
|
|
30969
|
+
return visitNode(cbNode, node.left) ||
|
|
30970
|
+
visitNode(cbNode, node.right);
|
|
30971
|
+
},
|
|
30972
|
+
_a[163 /* TypeParameter */] = function forEachChildInTypeParameter(node, cbNode, cbNodes) {
|
|
30973
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
30974
|
+
visitNode(cbNode, node.name) ||
|
|
30975
|
+
visitNode(cbNode, node.constraint) ||
|
|
30976
|
+
visitNode(cbNode, node.default) ||
|
|
30977
|
+
visitNode(cbNode, node.expression);
|
|
30978
|
+
},
|
|
30979
|
+
_a[297 /* ShorthandPropertyAssignment */] = function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) {
|
|
30980
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
30981
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
30982
|
+
visitNode(cbNode, node.name) ||
|
|
30983
|
+
visitNode(cbNode, node.questionToken) ||
|
|
30984
|
+
visitNode(cbNode, node.exclamationToken) ||
|
|
30985
|
+
visitNode(cbNode, node.equalsToken) ||
|
|
30986
|
+
visitNode(cbNode, node.objectAssignmentInitializer);
|
|
30987
|
+
},
|
|
30988
|
+
_a[298 /* SpreadAssignment */] = function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) {
|
|
30989
|
+
return visitNode(cbNode, node.expression);
|
|
30990
|
+
},
|
|
30991
|
+
_a[164 /* Parameter */] = function forEachChildInParameter(node, cbNode, cbNodes) {
|
|
30992
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
30993
|
+
visitNode(cbNode, node.dotDotDotToken) ||
|
|
30994
|
+
visitNode(cbNode, node.name) ||
|
|
30995
|
+
visitNode(cbNode, node.questionToken) ||
|
|
30996
|
+
visitNode(cbNode, node.type) ||
|
|
30997
|
+
visitNode(cbNode, node.initializer);
|
|
30998
|
+
},
|
|
30999
|
+
_a[167 /* PropertyDeclaration */] = function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) {
|
|
31000
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31001
|
+
visitNode(cbNode, node.name) ||
|
|
31002
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31003
|
+
visitNode(cbNode, node.exclamationToken) ||
|
|
31004
|
+
visitNode(cbNode, node.type) ||
|
|
31005
|
+
visitNode(cbNode, node.initializer);
|
|
31006
|
+
},
|
|
31007
|
+
_a[166 /* PropertySignature */] = function forEachChildInPropertySignature(node, cbNode, cbNodes) {
|
|
31008
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31009
|
+
visitNode(cbNode, node.name) ||
|
|
31010
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31011
|
+
visitNode(cbNode, node.type) ||
|
|
31012
|
+
visitNode(cbNode, node.initializer);
|
|
31013
|
+
},
|
|
31014
|
+
_a[296 /* PropertyAssignment */] = function forEachChildInPropertyAssignment(node, cbNode, cbNodes) {
|
|
31015
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31016
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31017
|
+
visitNode(cbNode, node.name) ||
|
|
31018
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31019
|
+
visitNode(cbNode, node.exclamationToken) ||
|
|
31020
|
+
visitNode(cbNode, node.initializer);
|
|
31021
|
+
},
|
|
31022
|
+
_a[254 /* VariableDeclaration */] = function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) {
|
|
31023
|
+
return visitNode(cbNode, node.name) ||
|
|
31024
|
+
visitNode(cbNode, node.exclamationToken) ||
|
|
31025
|
+
visitNode(cbNode, node.type) ||
|
|
31026
|
+
visitNode(cbNode, node.initializer);
|
|
31027
|
+
},
|
|
31028
|
+
_a[203 /* BindingElement */] = function forEachChildInBindingElement(node, cbNode, _cbNodes) {
|
|
31029
|
+
return visitNode(cbNode, node.dotDotDotToken) ||
|
|
31030
|
+
visitNode(cbNode, node.propertyName) ||
|
|
31031
|
+
visitNode(cbNode, node.name) ||
|
|
31032
|
+
visitNode(cbNode, node.initializer);
|
|
31033
|
+
},
|
|
31034
|
+
_a[176 /* IndexSignature */] = function forEachChildInIndexSignature(node, cbNode, cbNodes) {
|
|
31035
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31036
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31037
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31038
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31039
|
+
visitNode(cbNode, node.type);
|
|
31040
|
+
},
|
|
31041
|
+
_a[180 /* ConstructorType */] = function forEachChildInConstructorType(node, cbNode, cbNodes) {
|
|
31042
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31043
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31044
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31045
|
+
visitNode(cbNode, node.type);
|
|
31046
|
+
},
|
|
31047
|
+
_a[179 /* FunctionType */] = function forEachChildInFunctionType(node, cbNode, cbNodes) {
|
|
31048
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31049
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31050
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31051
|
+
visitNode(cbNode, node.type);
|
|
31052
|
+
},
|
|
31053
|
+
_a[174 /* CallSignature */] = forEachChildInCallOrConstructSignature,
|
|
31054
|
+
_a[175 /* ConstructSignature */] = forEachChildInCallOrConstructSignature,
|
|
31055
|
+
_a[169 /* MethodDeclaration */] = function forEachChildInMethodDeclaration(node, cbNode, cbNodes) {
|
|
31056
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31057
|
+
visitNode(cbNode, node.asteriskToken) ||
|
|
31058
|
+
visitNode(cbNode, node.name) ||
|
|
31059
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31060
|
+
visitNode(cbNode, node.exclamationToken) ||
|
|
31061
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31062
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31063
|
+
visitNode(cbNode, node.type) ||
|
|
31064
|
+
visitNode(cbNode, node.body);
|
|
31065
|
+
},
|
|
31066
|
+
_a[168 /* MethodSignature */] = function forEachChildInMethodSignature(node, cbNode, cbNodes) {
|
|
31067
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31068
|
+
visitNode(cbNode, node.name) ||
|
|
31069
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31070
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31071
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31072
|
+
visitNode(cbNode, node.type);
|
|
31073
|
+
},
|
|
31074
|
+
_a[171 /* Constructor */] = function forEachChildInConstructor(node, cbNode, cbNodes) {
|
|
31075
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31076
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31077
|
+
visitNode(cbNode, node.name) ||
|
|
31078
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31079
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31080
|
+
visitNode(cbNode, node.type) ||
|
|
31081
|
+
visitNode(cbNode, node.body);
|
|
31082
|
+
},
|
|
31083
|
+
_a[172 /* GetAccessor */] = function forEachChildInGetAccessor(node, cbNode, cbNodes) {
|
|
31084
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31085
|
+
visitNode(cbNode, node.name) ||
|
|
31086
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31087
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31088
|
+
visitNode(cbNode, node.type) ||
|
|
31089
|
+
visitNode(cbNode, node.body);
|
|
31090
|
+
},
|
|
31091
|
+
_a[173 /* SetAccessor */] = function forEachChildInSetAccessor(node, cbNode, cbNodes) {
|
|
31092
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31093
|
+
visitNode(cbNode, node.name) ||
|
|
31094
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31095
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31096
|
+
visitNode(cbNode, node.type) ||
|
|
31097
|
+
visitNode(cbNode, node.body);
|
|
31098
|
+
},
|
|
31099
|
+
_a[256 /* FunctionDeclaration */] = function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) {
|
|
31100
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31101
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31102
|
+
visitNode(cbNode, node.asteriskToken) ||
|
|
31103
|
+
visitNode(cbNode, node.name) ||
|
|
31104
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31105
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31106
|
+
visitNode(cbNode, node.type) ||
|
|
31107
|
+
visitNode(cbNode, node.body);
|
|
31108
|
+
},
|
|
31109
|
+
_a[213 /* FunctionExpression */] = function forEachChildInFunctionExpression(node, cbNode, cbNodes) {
|
|
31110
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31111
|
+
visitNode(cbNode, node.asteriskToken) ||
|
|
31112
|
+
visitNode(cbNode, node.name) ||
|
|
31113
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31114
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31115
|
+
visitNode(cbNode, node.type) ||
|
|
31116
|
+
visitNode(cbNode, node.body);
|
|
31117
|
+
},
|
|
31118
|
+
_a[214 /* ArrowFunction */] = function forEachChildInArrowFunction(node, cbNode, cbNodes) {
|
|
31119
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31120
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31121
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31122
|
+
visitNode(cbNode, node.type) ||
|
|
31123
|
+
visitNode(cbNode, node.equalsGreaterThanToken) ||
|
|
31124
|
+
visitNode(cbNode, node.body);
|
|
31125
|
+
},
|
|
31126
|
+
_a[170 /* ClassStaticBlockDeclaration */] = function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) {
|
|
31127
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31128
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31129
|
+
visitNode(cbNode, node.body);
|
|
31130
|
+
},
|
|
31131
|
+
_a[178 /* TypeReference */] = function forEachChildInTypeReference(node, cbNode, cbNodes) {
|
|
31132
|
+
return visitNode(cbNode, node.typeName) ||
|
|
31133
|
+
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31134
|
+
},
|
|
31135
|
+
_a[177 /* TypePredicate */] = function forEachChildInTypePredicate(node, cbNode, _cbNodes) {
|
|
31136
|
+
return visitNode(cbNode, node.assertsModifier) ||
|
|
31137
|
+
visitNode(cbNode, node.parameterName) ||
|
|
31138
|
+
visitNode(cbNode, node.type);
|
|
31139
|
+
},
|
|
31140
|
+
_a[181 /* TypeQuery */] = function forEachChildInTypeQuery(node, cbNode, cbNodes) {
|
|
31141
|
+
return visitNode(cbNode, node.exprName) ||
|
|
31142
|
+
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31143
|
+
},
|
|
31144
|
+
_a[182 /* TypeLiteral */] = function forEachChildInTypeLiteral(node, cbNode, cbNodes) {
|
|
31145
|
+
return visitNodes(cbNode, cbNodes, node.members);
|
|
31146
|
+
},
|
|
31147
|
+
_a[183 /* ArrayType */] = function forEachChildInArrayType(node, cbNode, _cbNodes) {
|
|
31148
|
+
return visitNode(cbNode, node.elementType);
|
|
31149
|
+
},
|
|
31150
|
+
_a[184 /* TupleType */] = function forEachChildInTupleType(node, cbNode, cbNodes) {
|
|
31151
|
+
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31152
|
+
},
|
|
31153
|
+
_a[187 /* UnionType */] = forEachChildInUnionOrIntersectionType,
|
|
31154
|
+
_a[188 /* IntersectionType */] = forEachChildInUnionOrIntersectionType,
|
|
31155
|
+
_a[189 /* ConditionalType */] = function forEachChildInConditionalType(node, cbNode, _cbNodes) {
|
|
31156
|
+
return visitNode(cbNode, node.checkType) ||
|
|
31157
|
+
visitNode(cbNode, node.extendsType) ||
|
|
31158
|
+
visitNode(cbNode, node.trueType) ||
|
|
31159
|
+
visitNode(cbNode, node.falseType);
|
|
31160
|
+
},
|
|
31161
|
+
_a[190 /* InferType */] = function forEachChildInInferType(node, cbNode, _cbNodes) {
|
|
31162
|
+
return visitNode(cbNode, node.typeParameter);
|
|
31163
|
+
},
|
|
31164
|
+
_a[200 /* ImportType */] = function forEachChildInImportType(node, cbNode, cbNodes) {
|
|
31165
|
+
return visitNode(cbNode, node.argument) ||
|
|
31166
|
+
visitNode(cbNode, node.assertions) ||
|
|
31167
|
+
visitNode(cbNode, node.qualifier) ||
|
|
31168
|
+
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31169
|
+
},
|
|
31170
|
+
_a[295 /* ImportTypeAssertionContainer */] = function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) {
|
|
31171
|
+
return visitNode(cbNode, node.assertClause);
|
|
31172
|
+
},
|
|
31173
|
+
_a[191 /* ParenthesizedType */] = forEachChildInParenthesizedTypeOrTypeOperator,
|
|
31174
|
+
_a[193 /* TypeOperator */] = forEachChildInParenthesizedTypeOrTypeOperator,
|
|
31175
|
+
_a[194 /* IndexedAccessType */] = function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) {
|
|
31176
|
+
return visitNode(cbNode, node.objectType) ||
|
|
31177
|
+
visitNode(cbNode, node.indexType);
|
|
31178
|
+
},
|
|
31179
|
+
_a[195 /* MappedType */] = function forEachChildInMappedType(node, cbNode, cbNodes) {
|
|
31180
|
+
return visitNode(cbNode, node.readonlyToken) ||
|
|
31181
|
+
visitNode(cbNode, node.typeParameter) ||
|
|
31182
|
+
visitNode(cbNode, node.nameType) ||
|
|
31183
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31184
|
+
visitNode(cbNode, node.type) ||
|
|
31185
|
+
visitNodes(cbNode, cbNodes, node.members);
|
|
31186
|
+
},
|
|
31187
|
+
_a[196 /* LiteralType */] = function forEachChildInLiteralType(node, cbNode, _cbNodes) {
|
|
31188
|
+
return visitNode(cbNode, node.literal);
|
|
31189
|
+
},
|
|
31190
|
+
_a[197 /* NamedTupleMember */] = function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) {
|
|
31191
|
+
return visitNode(cbNode, node.dotDotDotToken) ||
|
|
31192
|
+
visitNode(cbNode, node.name) ||
|
|
31193
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31194
|
+
visitNode(cbNode, node.type);
|
|
31195
|
+
},
|
|
31196
|
+
_a[201 /* ObjectBindingPattern */] = forEachChildInObjectOrArrayBindingPattern,
|
|
31197
|
+
_a[202 /* ArrayBindingPattern */] = forEachChildInObjectOrArrayBindingPattern,
|
|
31198
|
+
_a[204 /* ArrayLiteralExpression */] = function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) {
|
|
31199
|
+
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31200
|
+
},
|
|
31201
|
+
_a[205 /* ObjectLiteralExpression */] = function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) {
|
|
31202
|
+
return visitNodes(cbNode, cbNodes, node.properties);
|
|
31203
|
+
},
|
|
31204
|
+
_a[206 /* PropertyAccessExpression */] = function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) {
|
|
31205
|
+
return visitNode(cbNode, node.expression) ||
|
|
31206
|
+
visitNode(cbNode, node.questionDotToken) ||
|
|
31207
|
+
visitNode(cbNode, node.name);
|
|
31208
|
+
},
|
|
31209
|
+
_a[207 /* ElementAccessExpression */] = function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) {
|
|
31210
|
+
return visitNode(cbNode, node.expression) ||
|
|
31211
|
+
visitNode(cbNode, node.questionDotToken) ||
|
|
31212
|
+
visitNode(cbNode, node.argumentExpression);
|
|
31213
|
+
},
|
|
31214
|
+
_a[208 /* CallExpression */] = forEachChildInCallOrNewExpression,
|
|
31215
|
+
_a[209 /* NewExpression */] = forEachChildInCallOrNewExpression,
|
|
31216
|
+
_a[210 /* TaggedTemplateExpression */] = function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) {
|
|
31217
|
+
return visitNode(cbNode, node.tag) ||
|
|
31218
|
+
visitNode(cbNode, node.questionDotToken) ||
|
|
31219
|
+
visitNodes(cbNode, cbNodes, node.typeArguments) ||
|
|
31220
|
+
visitNode(cbNode, node.template);
|
|
31221
|
+
},
|
|
31222
|
+
_a[211 /* TypeAssertionExpression */] = function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) {
|
|
31223
|
+
return visitNode(cbNode, node.type) ||
|
|
31224
|
+
visitNode(cbNode, node.expression);
|
|
31225
|
+
},
|
|
31226
|
+
_a[212 /* ParenthesizedExpression */] = function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) {
|
|
31227
|
+
return visitNode(cbNode, node.expression);
|
|
31228
|
+
},
|
|
31229
|
+
_a[215 /* DeleteExpression */] = function forEachChildInDeleteExpression(node, cbNode, _cbNodes) {
|
|
31230
|
+
return visitNode(cbNode, node.expression);
|
|
31231
|
+
},
|
|
31232
|
+
_a[216 /* TypeOfExpression */] = function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) {
|
|
31233
|
+
return visitNode(cbNode, node.expression);
|
|
31234
|
+
},
|
|
31235
|
+
_a[217 /* VoidExpression */] = function forEachChildInVoidExpression(node, cbNode, _cbNodes) {
|
|
31236
|
+
return visitNode(cbNode, node.expression);
|
|
31237
|
+
},
|
|
31238
|
+
_a[219 /* PrefixUnaryExpression */] = function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) {
|
|
31239
|
+
return visitNode(cbNode, node.operand);
|
|
31240
|
+
},
|
|
31241
|
+
_a[224 /* YieldExpression */] = function forEachChildInYieldExpression(node, cbNode, _cbNodes) {
|
|
31242
|
+
return visitNode(cbNode, node.asteriskToken) ||
|
|
31243
|
+
visitNode(cbNode, node.expression);
|
|
31244
|
+
},
|
|
31245
|
+
_a[218 /* AwaitExpression */] = function forEachChildInAwaitExpression(node, cbNode, _cbNodes) {
|
|
31246
|
+
return visitNode(cbNode, node.expression);
|
|
31247
|
+
},
|
|
31248
|
+
_a[220 /* PostfixUnaryExpression */] = function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) {
|
|
31249
|
+
return visitNode(cbNode, node.operand);
|
|
31250
|
+
},
|
|
31251
|
+
_a[221 /* BinaryExpression */] = function forEachChildInBinaryExpression(node, cbNode, _cbNodes) {
|
|
31252
|
+
return visitNode(cbNode, node.left) ||
|
|
31253
|
+
visitNode(cbNode, node.operatorToken) ||
|
|
31254
|
+
visitNode(cbNode, node.right);
|
|
31255
|
+
},
|
|
31256
|
+
_a[229 /* AsExpression */] = function forEachChildInAsExpression(node, cbNode, _cbNodes) {
|
|
31257
|
+
return visitNode(cbNode, node.expression) ||
|
|
31258
|
+
visitNode(cbNode, node.type);
|
|
31259
|
+
},
|
|
31260
|
+
_a[230 /* NonNullExpression */] = function forEachChildInNonNullExpression(node, cbNode, _cbNodes) {
|
|
31261
|
+
return visitNode(cbNode, node.expression);
|
|
31262
|
+
},
|
|
31263
|
+
_a[231 /* MetaProperty */] = function forEachChildInMetaProperty(node, cbNode, _cbNodes) {
|
|
31264
|
+
return visitNode(cbNode, node.name);
|
|
31265
|
+
},
|
|
31266
|
+
_a[222 /* ConditionalExpression */] = function forEachChildInConditionalExpression(node, cbNode, _cbNodes) {
|
|
31267
|
+
return visitNode(cbNode, node.condition) ||
|
|
31268
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31269
|
+
visitNode(cbNode, node.whenTrue) ||
|
|
31270
|
+
visitNode(cbNode, node.colonToken) ||
|
|
31271
|
+
visitNode(cbNode, node.whenFalse);
|
|
31272
|
+
},
|
|
31273
|
+
_a[225 /* SpreadElement */] = function forEachChildInSpreadElement(node, cbNode, _cbNodes) {
|
|
31274
|
+
return visitNode(cbNode, node.expression);
|
|
31275
|
+
},
|
|
31276
|
+
_a[235 /* Block */] = forEachChildInBlock,
|
|
31277
|
+
_a[262 /* ModuleBlock */] = forEachChildInBlock,
|
|
31278
|
+
_a[305 /* SourceFile */] = function forEachChildInSourceFile(node, cbNode, cbNodes) {
|
|
31279
|
+
return visitNodes(cbNode, cbNodes, node.statements) ||
|
|
31280
|
+
visitNode(cbNode, node.endOfFileToken);
|
|
31281
|
+
},
|
|
31282
|
+
_a[237 /* VariableStatement */] = function forEachChildInVariableStatement(node, cbNode, cbNodes) {
|
|
31283
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31284
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31285
|
+
visitNode(cbNode, node.declarationList);
|
|
31286
|
+
},
|
|
31287
|
+
_a[255 /* VariableDeclarationList */] = function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) {
|
|
31288
|
+
return visitNodes(cbNode, cbNodes, node.declarations);
|
|
31289
|
+
},
|
|
31290
|
+
_a[238 /* ExpressionStatement */] = function forEachChildInExpressionStatement(node, cbNode, _cbNodes) {
|
|
31291
|
+
return visitNode(cbNode, node.expression);
|
|
31292
|
+
},
|
|
31293
|
+
_a[239 /* IfStatement */] = function forEachChildInIfStatement(node, cbNode, _cbNodes) {
|
|
31294
|
+
return visitNode(cbNode, node.expression) ||
|
|
31295
|
+
visitNode(cbNode, node.thenStatement) ||
|
|
31296
|
+
visitNode(cbNode, node.elseStatement);
|
|
31297
|
+
},
|
|
31298
|
+
_a[240 /* DoStatement */] = function forEachChildInDoStatement(node, cbNode, _cbNodes) {
|
|
31299
|
+
return visitNode(cbNode, node.statement) ||
|
|
31300
|
+
visitNode(cbNode, node.expression);
|
|
31301
|
+
},
|
|
31302
|
+
_a[241 /* WhileStatement */] = function forEachChildInWhileStatement(node, cbNode, _cbNodes) {
|
|
31303
|
+
return visitNode(cbNode, node.expression) ||
|
|
31304
|
+
visitNode(cbNode, node.statement);
|
|
31305
|
+
},
|
|
31306
|
+
_a[242 /* ForStatement */] = function forEachChildInForStatement(node, cbNode, _cbNodes) {
|
|
31307
|
+
return visitNode(cbNode, node.initializer) ||
|
|
31308
|
+
visitNode(cbNode, node.condition) ||
|
|
31309
|
+
visitNode(cbNode, node.incrementor) ||
|
|
31310
|
+
visitNode(cbNode, node.statement);
|
|
31311
|
+
},
|
|
31312
|
+
_a[243 /* ForInStatement */] = function forEachChildInForInStatement(node, cbNode, _cbNodes) {
|
|
31313
|
+
return visitNode(cbNode, node.initializer) ||
|
|
31314
|
+
visitNode(cbNode, node.expression) ||
|
|
31315
|
+
visitNode(cbNode, node.statement);
|
|
31316
|
+
},
|
|
31317
|
+
_a[244 /* ForOfStatement */] = function forEachChildInForOfStatement(node, cbNode, _cbNodes) {
|
|
31318
|
+
return visitNode(cbNode, node.awaitModifier) ||
|
|
31319
|
+
visitNode(cbNode, node.initializer) ||
|
|
31320
|
+
visitNode(cbNode, node.expression) ||
|
|
31321
|
+
visitNode(cbNode, node.statement);
|
|
31322
|
+
},
|
|
31323
|
+
_a[245 /* ContinueStatement */] = forEachChildInContinueOrBreakStatement,
|
|
31324
|
+
_a[246 /* BreakStatement */] = forEachChildInContinueOrBreakStatement,
|
|
31325
|
+
_a[247 /* ReturnStatement */] = function forEachChildInReturnStatement(node, cbNode, _cbNodes) {
|
|
31326
|
+
return visitNode(cbNode, node.expression);
|
|
31327
|
+
},
|
|
31328
|
+
_a[248 /* WithStatement */] = function forEachChildInWithStatement(node, cbNode, _cbNodes) {
|
|
31329
|
+
return visitNode(cbNode, node.expression) ||
|
|
31330
|
+
visitNode(cbNode, node.statement);
|
|
31331
|
+
},
|
|
31332
|
+
_a[249 /* SwitchStatement */] = function forEachChildInSwitchStatement(node, cbNode, _cbNodes) {
|
|
31333
|
+
return visitNode(cbNode, node.expression) ||
|
|
31334
|
+
visitNode(cbNode, node.caseBlock);
|
|
31335
|
+
},
|
|
31336
|
+
_a[263 /* CaseBlock */] = function forEachChildInCaseBlock(node, cbNode, cbNodes) {
|
|
31337
|
+
return visitNodes(cbNode, cbNodes, node.clauses);
|
|
31338
|
+
},
|
|
31339
|
+
_a[289 /* CaseClause */] = function forEachChildInCaseClause(node, cbNode, cbNodes) {
|
|
31340
|
+
return visitNode(cbNode, node.expression) ||
|
|
31341
|
+
visitNodes(cbNode, cbNodes, node.statements);
|
|
31342
|
+
},
|
|
31343
|
+
_a[290 /* DefaultClause */] = function forEachChildInDefaultClause(node, cbNode, cbNodes) {
|
|
31344
|
+
return visitNodes(cbNode, cbNodes, node.statements);
|
|
31345
|
+
},
|
|
31346
|
+
_a[250 /* LabeledStatement */] = function forEachChildInLabeledStatement(node, cbNode, _cbNodes) {
|
|
31347
|
+
return visitNode(cbNode, node.label) ||
|
|
31348
|
+
visitNode(cbNode, node.statement);
|
|
31349
|
+
},
|
|
31350
|
+
_a[251 /* ThrowStatement */] = function forEachChildInThrowStatement(node, cbNode, _cbNodes) {
|
|
31351
|
+
return visitNode(cbNode, node.expression);
|
|
31352
|
+
},
|
|
31353
|
+
_a[252 /* TryStatement */] = function forEachChildInTryStatement(node, cbNode, _cbNodes) {
|
|
31354
|
+
return visitNode(cbNode, node.tryBlock) ||
|
|
31355
|
+
visitNode(cbNode, node.catchClause) ||
|
|
31356
|
+
visitNode(cbNode, node.finallyBlock);
|
|
31357
|
+
},
|
|
31358
|
+
_a[292 /* CatchClause */] = function forEachChildInCatchClause(node, cbNode, _cbNodes) {
|
|
31359
|
+
return visitNode(cbNode, node.variableDeclaration) ||
|
|
31360
|
+
visitNode(cbNode, node.block);
|
|
31361
|
+
},
|
|
31362
|
+
_a[165 /* Decorator */] = function forEachChildInDecorator(node, cbNode, _cbNodes) {
|
|
31363
|
+
return visitNode(cbNode, node.expression);
|
|
31364
|
+
},
|
|
31365
|
+
_a[257 /* ClassDeclaration */] = forEachChildInClassDeclarationOrExpression,
|
|
31366
|
+
_a[226 /* ClassExpression */] = forEachChildInClassDeclarationOrExpression,
|
|
31367
|
+
_a[258 /* InterfaceDeclaration */] = function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) {
|
|
31368
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31369
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31370
|
+
visitNode(cbNode, node.name) ||
|
|
31371
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31372
|
+
visitNodes(cbNode, cbNodes, node.heritageClauses) ||
|
|
31373
|
+
visitNodes(cbNode, cbNodes, node.members);
|
|
31374
|
+
},
|
|
31375
|
+
_a[259 /* TypeAliasDeclaration */] = function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) {
|
|
31376
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31377
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31378
|
+
visitNode(cbNode, node.name) ||
|
|
31379
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31380
|
+
visitNode(cbNode, node.type);
|
|
31381
|
+
},
|
|
31382
|
+
_a[260 /* EnumDeclaration */] = function forEachChildInEnumDeclaration(node, cbNode, cbNodes) {
|
|
31383
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31384
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31385
|
+
visitNode(cbNode, node.name) ||
|
|
31386
|
+
visitNodes(cbNode, cbNodes, node.members);
|
|
31387
|
+
},
|
|
31388
|
+
_a[299 /* EnumMember */] = function forEachChildInEnumMember(node, cbNode, _cbNodes) {
|
|
31389
|
+
return visitNode(cbNode, node.name) ||
|
|
31390
|
+
visitNode(cbNode, node.initializer);
|
|
31391
|
+
},
|
|
31392
|
+
_a[261 /* ModuleDeclaration */] = function forEachChildInModuleDeclaration(node, cbNode, cbNodes) {
|
|
31393
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31394
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31395
|
+
visitNode(cbNode, node.name) ||
|
|
31396
|
+
visitNode(cbNode, node.body);
|
|
31397
|
+
},
|
|
31398
|
+
_a[265 /* ImportEqualsDeclaration */] = function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) {
|
|
31399
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31400
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31401
|
+
visitNode(cbNode, node.name) ||
|
|
31402
|
+
visitNode(cbNode, node.moduleReference);
|
|
31403
|
+
},
|
|
31404
|
+
_a[266 /* ImportDeclaration */] = function forEachChildInImportDeclaration(node, cbNode, cbNodes) {
|
|
31405
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31406
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31407
|
+
visitNode(cbNode, node.importClause) ||
|
|
31408
|
+
visitNode(cbNode, node.moduleSpecifier) ||
|
|
31409
|
+
visitNode(cbNode, node.assertClause);
|
|
31410
|
+
},
|
|
31411
|
+
_a[267 /* ImportClause */] = function forEachChildInImportClause(node, cbNode, _cbNodes) {
|
|
31412
|
+
return visitNode(cbNode, node.name) ||
|
|
31413
|
+
visitNode(cbNode, node.namedBindings);
|
|
31414
|
+
},
|
|
31415
|
+
_a[293 /* AssertClause */] = function forEachChildInAssertClause(node, cbNode, cbNodes) {
|
|
31416
|
+
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31417
|
+
},
|
|
31418
|
+
_a[294 /* AssertEntry */] = function forEachChildInAssertEntry(node, cbNode, _cbNodes) {
|
|
31419
|
+
return visitNode(cbNode, node.name) ||
|
|
31420
|
+
visitNode(cbNode, node.value);
|
|
31421
|
+
},
|
|
31422
|
+
_a[264 /* NamespaceExportDeclaration */] = function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) {
|
|
31423
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31424
|
+
visitNode(cbNode, node.name);
|
|
31425
|
+
},
|
|
31426
|
+
_a[268 /* NamespaceImport */] = function forEachChildInNamespaceImport(node, cbNode, _cbNodes) {
|
|
31427
|
+
return visitNode(cbNode, node.name);
|
|
31428
|
+
},
|
|
31429
|
+
_a[274 /* NamespaceExport */] = function forEachChildInNamespaceExport(node, cbNode, _cbNodes) {
|
|
31430
|
+
return visitNode(cbNode, node.name);
|
|
31431
|
+
},
|
|
31432
|
+
_a[269 /* NamedImports */] = forEachChildInNamedImportsOrExports,
|
|
31433
|
+
_a[273 /* NamedExports */] = forEachChildInNamedImportsOrExports,
|
|
31434
|
+
_a[272 /* ExportDeclaration */] = function forEachChildInExportDeclaration(node, cbNode, cbNodes) {
|
|
31435
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31436
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31437
|
+
visitNode(cbNode, node.exportClause) ||
|
|
31438
|
+
visitNode(cbNode, node.moduleSpecifier) ||
|
|
31439
|
+
visitNode(cbNode, node.assertClause);
|
|
31440
|
+
},
|
|
31441
|
+
_a[270 /* ImportSpecifier */] = forEachChildInImportOrExportSpecifier,
|
|
31442
|
+
_a[275 /* ExportSpecifier */] = forEachChildInImportOrExportSpecifier,
|
|
31443
|
+
_a[271 /* ExportAssignment */] = function forEachChildInExportAssignment(node, cbNode, cbNodes) {
|
|
31444
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31445
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31446
|
+
visitNode(cbNode, node.expression);
|
|
31447
|
+
},
|
|
31448
|
+
_a[223 /* TemplateExpression */] = function forEachChildInTemplateExpression(node, cbNode, cbNodes) {
|
|
31449
|
+
return visitNode(cbNode, node.head) ||
|
|
31450
|
+
visitNodes(cbNode, cbNodes, node.templateSpans);
|
|
31451
|
+
},
|
|
31452
|
+
_a[233 /* TemplateSpan */] = function forEachChildInTemplateSpan(node, cbNode, _cbNodes) {
|
|
31453
|
+
return visitNode(cbNode, node.expression) ||
|
|
31454
|
+
visitNode(cbNode, node.literal);
|
|
31455
|
+
},
|
|
31456
|
+
_a[198 /* TemplateLiteralType */] = function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) {
|
|
31457
|
+
return visitNode(cbNode, node.head) ||
|
|
31458
|
+
visitNodes(cbNode, cbNodes, node.templateSpans);
|
|
31459
|
+
},
|
|
31460
|
+
_a[199 /* TemplateLiteralTypeSpan */] = function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) {
|
|
31461
|
+
return visitNode(cbNode, node.type) ||
|
|
31462
|
+
visitNode(cbNode, node.literal);
|
|
31463
|
+
},
|
|
31464
|
+
_a[162 /* ComputedPropertyName */] = function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) {
|
|
31465
|
+
return visitNode(cbNode, node.expression);
|
|
31466
|
+
},
|
|
31467
|
+
_a[291 /* HeritageClause */] = function forEachChildInHeritageClause(node, cbNode, cbNodes) {
|
|
31468
|
+
return visitNodes(cbNode, cbNodes, node.types);
|
|
31469
|
+
},
|
|
31470
|
+
_a[228 /* ExpressionWithTypeArguments */] = function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) {
|
|
31471
|
+
return visitNode(cbNode, node.expression) ||
|
|
31472
|
+
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31473
|
+
},
|
|
31474
|
+
_a[277 /* ExternalModuleReference */] = function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) {
|
|
31475
|
+
return visitNode(cbNode, node.expression);
|
|
31476
|
+
},
|
|
31477
|
+
_a[276 /* MissingDeclaration */] = function forEachChildInMissingDeclaration(node, cbNode, cbNodes) {
|
|
31478
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31479
|
+
visitNodes(cbNode, cbNodes, node.modifiers);
|
|
31480
|
+
},
|
|
31481
|
+
_a[351 /* CommaListExpression */] = function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
|
|
31482
|
+
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31483
|
+
},
|
|
31484
|
+
_a[278 /* JsxElement */] = function forEachChildInJsxElement(node, cbNode, cbNodes) {
|
|
31485
|
+
return visitNode(cbNode, node.openingElement) ||
|
|
31486
|
+
visitNodes(cbNode, cbNodes, node.children) ||
|
|
31487
|
+
visitNode(cbNode, node.closingElement);
|
|
31488
|
+
},
|
|
31489
|
+
_a[282 /* JsxFragment */] = function forEachChildInJsxFragment(node, cbNode, cbNodes) {
|
|
31490
|
+
return visitNode(cbNode, node.openingFragment) ||
|
|
31491
|
+
visitNodes(cbNode, cbNodes, node.children) ||
|
|
31492
|
+
visitNode(cbNode, node.closingFragment);
|
|
31493
|
+
},
|
|
31494
|
+
_a[279 /* JsxSelfClosingElement */] = forEachChildInJsxOpeningOrSelfClosingElement,
|
|
31495
|
+
_a[280 /* JsxOpeningElement */] = forEachChildInJsxOpeningOrSelfClosingElement,
|
|
31496
|
+
_a[286 /* JsxAttributes */] = function forEachChildInJsxAttributes(node, cbNode, cbNodes) {
|
|
31497
|
+
return visitNodes(cbNode, cbNodes, node.properties);
|
|
31498
|
+
},
|
|
31499
|
+
_a[285 /* JsxAttribute */] = function forEachChildInJsxAttribute(node, cbNode, _cbNodes) {
|
|
31500
|
+
return visitNode(cbNode, node.name) ||
|
|
31501
|
+
visitNode(cbNode, node.initializer);
|
|
31502
|
+
},
|
|
31503
|
+
_a[287 /* JsxSpreadAttribute */] = function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) {
|
|
31504
|
+
return visitNode(cbNode, node.expression);
|
|
31505
|
+
},
|
|
31506
|
+
_a[288 /* JsxExpression */] = function forEachChildInJsxExpression(node, cbNode, _cbNodes) {
|
|
31507
|
+
return visitNode(cbNode, node.dotDotDotToken) ||
|
|
31508
|
+
visitNode(cbNode, node.expression);
|
|
31509
|
+
},
|
|
31510
|
+
_a[281 /* JsxClosingElement */] = function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) {
|
|
31511
|
+
return visitNode(cbNode, node.tagName);
|
|
31512
|
+
},
|
|
31513
|
+
_a[185 /* OptionalType */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31514
|
+
_a[186 /* RestType */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31515
|
+
_a[309 /* JSDocTypeExpression */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31516
|
+
_a[315 /* JSDocNonNullableType */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31517
|
+
_a[314 /* JSDocNullableType */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31518
|
+
_a[316 /* JSDocOptionalType */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31519
|
+
_a[318 /* JSDocVariadicType */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31520
|
+
_a[317 /* JSDocFunctionType */] = function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) {
|
|
31521
|
+
return visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31522
|
+
visitNode(cbNode, node.type);
|
|
31523
|
+
},
|
|
31524
|
+
_a[320 /* JSDoc */] = function forEachChildInJSDoc(node, cbNode, cbNodes) {
|
|
31525
|
+
return (typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment))
|
|
31526
|
+
|| visitNodes(cbNode, cbNodes, node.tags);
|
|
31527
|
+
},
|
|
31528
|
+
_a[346 /* JSDocSeeTag */] = function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) {
|
|
31529
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31530
|
+
visitNode(cbNode, node.name) ||
|
|
31531
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31532
|
+
},
|
|
31533
|
+
_a[310 /* JSDocNameReference */] = function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) {
|
|
31534
|
+
return visitNode(cbNode, node.name);
|
|
31535
|
+
},
|
|
31536
|
+
_a[311 /* JSDocMemberName */] = function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) {
|
|
31537
|
+
return visitNode(cbNode, node.left) ||
|
|
31538
|
+
visitNode(cbNode, node.right);
|
|
31539
|
+
},
|
|
31540
|
+
_a[340 /* JSDocParameterTag */] = forEachChildInJSDocParameterOrPropertyTag,
|
|
31541
|
+
_a[347 /* JSDocPropertyTag */] = forEachChildInJSDocParameterOrPropertyTag,
|
|
31542
|
+
_a[330 /* JSDocAuthorTag */] = function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) {
|
|
31543
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31544
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31545
|
+
},
|
|
31546
|
+
_a[329 /* JSDocImplementsTag */] = function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) {
|
|
31547
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31548
|
+
visitNode(cbNode, node.class) ||
|
|
31549
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31550
|
+
},
|
|
31551
|
+
_a[328 /* JSDocAugmentsTag */] = function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) {
|
|
31552
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31553
|
+
visitNode(cbNode, node.class) ||
|
|
31554
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31555
|
+
},
|
|
31556
|
+
_a[344 /* JSDocTemplateTag */] = function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) {
|
|
31557
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31558
|
+
visitNode(cbNode, node.constraint) ||
|
|
31559
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31560
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31561
|
+
},
|
|
31562
|
+
_a[345 /* JSDocTypedefTag */] = function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) {
|
|
31563
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31564
|
+
(node.typeExpression &&
|
|
31565
|
+
node.typeExpression.kind === 309 /* JSDocTypeExpression */
|
|
31566
|
+
? visitNode(cbNode, node.typeExpression) ||
|
|
31567
|
+
visitNode(cbNode, node.fullName) ||
|
|
31568
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment))
|
|
31569
|
+
: visitNode(cbNode, node.fullName) ||
|
|
31570
|
+
visitNode(cbNode, node.typeExpression) ||
|
|
31571
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment)));
|
|
31572
|
+
},
|
|
31573
|
+
_a[338 /* JSDocCallbackTag */] = function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) {
|
|
31574
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31575
|
+
visitNode(cbNode, node.fullName) ||
|
|
31576
|
+
visitNode(cbNode, node.typeExpression) ||
|
|
31577
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31578
|
+
},
|
|
31579
|
+
_a[341 /* JSDocReturnTag */] = forEachChildInJSDocReturnTag,
|
|
31580
|
+
_a[343 /* JSDocTypeTag */] = forEachChildInJSDocReturnTag,
|
|
31581
|
+
_a[342 /* JSDocThisTag */] = forEachChildInJSDocReturnTag,
|
|
31582
|
+
_a[339 /* JSDocEnumTag */] = forEachChildInJSDocReturnTag,
|
|
31583
|
+
_a[323 /* JSDocSignature */] = function forEachChildInJSDocSignature(node, cbNode, _cbNodes) {
|
|
31584
|
+
return ts.forEach(node.typeParameters, cbNode) ||
|
|
31585
|
+
ts.forEach(node.parameters, cbNode) ||
|
|
31586
|
+
visitNode(cbNode, node.type);
|
|
31587
|
+
},
|
|
31588
|
+
_a[324 /* JSDocLink */] = forEachChildInJSDocLinkCodeOrPlain,
|
|
31589
|
+
_a[325 /* JSDocLinkCode */] = forEachChildInJSDocLinkCodeOrPlain,
|
|
31590
|
+
_a[326 /* JSDocLinkPlain */] = forEachChildInJSDocLinkCodeOrPlain,
|
|
31591
|
+
_a[322 /* JSDocTypeLiteral */] = function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) {
|
|
31592
|
+
return ts.forEach(node.jsDocPropertyTags, cbNode);
|
|
31593
|
+
},
|
|
31594
|
+
_a[327 /* JSDocTag */] = forEachChildInJSDocTag,
|
|
31595
|
+
_a[332 /* JSDocClassTag */] = forEachChildInJSDocTag,
|
|
31596
|
+
_a[333 /* JSDocPublicTag */] = forEachChildInJSDocTag,
|
|
31597
|
+
_a[334 /* JSDocPrivateTag */] = forEachChildInJSDocTag,
|
|
31598
|
+
_a[335 /* JSDocProtectedTag */] = forEachChildInJSDocTag,
|
|
31599
|
+
_a[336 /* JSDocReadonlyTag */] = forEachChildInJSDocTag,
|
|
31600
|
+
_a[331 /* JSDocDeprecatedTag */] = forEachChildInJSDocTag,
|
|
31601
|
+
_a[350 /* PartiallyEmittedExpression */] = forEachChildInPartiallyEmittedExpression,
|
|
31602
|
+
_a);
|
|
31603
|
+
// shared
|
|
31604
|
+
function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
|
|
31605
|
+
return visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31606
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31607
|
+
visitNode(cbNode, node.type);
|
|
31608
|
+
}
|
|
31609
|
+
;
|
|
31610
|
+
function forEachChildInUnionOrIntersectionType(node, cbNode, cbNodes) {
|
|
31611
|
+
return visitNodes(cbNode, cbNodes, node.types);
|
|
31612
|
+
}
|
|
31613
|
+
function forEachChildInParenthesizedTypeOrTypeOperator(node, cbNode, _cbNodes) {
|
|
31614
|
+
return visitNode(cbNode, node.type);
|
|
31615
|
+
}
|
|
31616
|
+
function forEachChildInObjectOrArrayBindingPattern(node, cbNode, cbNodes) {
|
|
31617
|
+
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31618
|
+
}
|
|
31619
|
+
function forEachChildInCallOrNewExpression(node, cbNode, cbNodes) {
|
|
31620
|
+
return visitNode(cbNode, node.expression) ||
|
|
31621
|
+
// TODO: should we separate these branches out?
|
|
31622
|
+
visitNode(cbNode, node.questionDotToken) ||
|
|
31623
|
+
visitNodes(cbNode, cbNodes, node.typeArguments) ||
|
|
31624
|
+
visitNodes(cbNode, cbNodes, node.arguments);
|
|
31625
|
+
}
|
|
31626
|
+
function forEachChildInBlock(node, cbNode, cbNodes) {
|
|
31627
|
+
return visitNodes(cbNode, cbNodes, node.statements);
|
|
31628
|
+
}
|
|
31629
|
+
function forEachChildInContinueOrBreakStatement(node, cbNode, _cbNodes) {
|
|
31630
|
+
return visitNode(cbNode, node.label);
|
|
31631
|
+
}
|
|
31632
|
+
function forEachChildInClassDeclarationOrExpression(node, cbNode, cbNodes) {
|
|
31633
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31634
|
+
visitNode(cbNode, node.name) ||
|
|
31635
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31636
|
+
visitNodes(cbNode, cbNodes, node.heritageClauses) ||
|
|
31637
|
+
visitNodes(cbNode, cbNodes, node.members);
|
|
31638
|
+
}
|
|
31639
|
+
function forEachChildInNamedImportsOrExports(node, cbNode, cbNodes) {
|
|
31640
|
+
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31641
|
+
}
|
|
31642
|
+
function forEachChildInImportOrExportSpecifier(node, cbNode, _cbNodes) {
|
|
31643
|
+
return visitNode(cbNode, node.propertyName) ||
|
|
31644
|
+
visitNode(cbNode, node.name);
|
|
31645
|
+
}
|
|
31646
|
+
function forEachChildInJsxOpeningOrSelfClosingElement(node, cbNode, cbNodes) {
|
|
31647
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31648
|
+
visitNodes(cbNode, cbNodes, node.typeArguments) ||
|
|
31649
|
+
visitNode(cbNode, node.attributes);
|
|
31650
|
+
}
|
|
31651
|
+
function forEachChildInOptionalRestOrJSDocParameterModifier(node, cbNode, _cbNodes) {
|
|
31652
|
+
return visitNode(cbNode, node.type);
|
|
31653
|
+
}
|
|
31654
|
+
function forEachChildInJSDocParameterOrPropertyTag(node, cbNode, cbNodes) {
|
|
31655
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31656
|
+
(node.isNameFirst
|
|
31657
|
+
? visitNode(cbNode, node.name) || visitNode(cbNode, node.typeExpression)
|
|
31658
|
+
: visitNode(cbNode, node.typeExpression) || visitNode(cbNode, node.name)) ||
|
|
31659
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31660
|
+
}
|
|
31661
|
+
function forEachChildInJSDocReturnTag(node, cbNode, cbNodes) {
|
|
31662
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31663
|
+
visitNode(cbNode, node.typeExpression) ||
|
|
31664
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31665
|
+
}
|
|
31666
|
+
function forEachChildInJSDocLinkCodeOrPlain(node, cbNode, _cbNodes) {
|
|
31667
|
+
return visitNode(cbNode, node.name);
|
|
31668
|
+
}
|
|
31669
|
+
function forEachChildInJSDocTag(node, cbNode, cbNodes) {
|
|
31670
|
+
return visitNode(cbNode, node.tagName)
|
|
31671
|
+
|| (typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31672
|
+
}
|
|
31673
|
+
function forEachChildInPartiallyEmittedExpression(node, cbNode, _cbNodes) {
|
|
31674
|
+
return visitNode(cbNode, node.expression);
|
|
31675
|
+
}
|
|
30965
31676
|
/**
|
|
30966
31677
|
* Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes
|
|
30967
31678
|
* stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; otherwise,
|
|
@@ -30976,562 +31687,11 @@ var ts;
|
|
|
30976
31687
|
* that they appear in the source code. The language service depends on this property to locate nodes by position.
|
|
30977
31688
|
*/
|
|
30978
31689
|
function forEachChild(node, cbNode, cbNodes) {
|
|
30979
|
-
if (
|
|
31690
|
+
if (node === undefined || node.kind <= 160 /* LastToken */) {
|
|
30980
31691
|
return;
|
|
30981
31692
|
}
|
|
30982
|
-
|
|
30983
|
-
|
|
30984
|
-
return visitNode(cbNode, node.left) ||
|
|
30985
|
-
visitNode(cbNode, node.right);
|
|
30986
|
-
case 163 /* TypeParameter */:
|
|
30987
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
30988
|
-
visitNode(cbNode, node.name) ||
|
|
30989
|
-
visitNode(cbNode, node.constraint) ||
|
|
30990
|
-
visitNode(cbNode, node.default) ||
|
|
30991
|
-
visitNode(cbNode, node.expression);
|
|
30992
|
-
case 297 /* ShorthandPropertyAssignment */:
|
|
30993
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
30994
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
30995
|
-
visitNode(cbNode, node.name) ||
|
|
30996
|
-
visitNode(cbNode, node.questionToken) ||
|
|
30997
|
-
visitNode(cbNode, node.exclamationToken) ||
|
|
30998
|
-
visitNode(cbNode, node.equalsToken) ||
|
|
30999
|
-
visitNode(cbNode, node.objectAssignmentInitializer);
|
|
31000
|
-
case 298 /* SpreadAssignment */:
|
|
31001
|
-
return visitNode(cbNode, node.expression);
|
|
31002
|
-
case 164 /* Parameter */:
|
|
31003
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31004
|
-
visitNode(cbNode, node.dotDotDotToken) ||
|
|
31005
|
-
visitNode(cbNode, node.name) ||
|
|
31006
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31007
|
-
visitNode(cbNode, node.type) ||
|
|
31008
|
-
visitNode(cbNode, node.initializer);
|
|
31009
|
-
case 167 /* PropertyDeclaration */:
|
|
31010
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31011
|
-
visitNode(cbNode, node.name) ||
|
|
31012
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31013
|
-
visitNode(cbNode, node.exclamationToken) ||
|
|
31014
|
-
visitNode(cbNode, node.type) ||
|
|
31015
|
-
visitNode(cbNode, node.initializer);
|
|
31016
|
-
case 166 /* PropertySignature */:
|
|
31017
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31018
|
-
visitNode(cbNode, node.name) ||
|
|
31019
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31020
|
-
visitNode(cbNode, node.type) ||
|
|
31021
|
-
visitNode(cbNode, node.initializer);
|
|
31022
|
-
case 296 /* PropertyAssignment */:
|
|
31023
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31024
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31025
|
-
visitNode(cbNode, node.name) ||
|
|
31026
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31027
|
-
visitNode(cbNode, node.exclamationToken) ||
|
|
31028
|
-
visitNode(cbNode, node.initializer);
|
|
31029
|
-
case 254 /* VariableDeclaration */:
|
|
31030
|
-
return visitNode(cbNode, node.name) ||
|
|
31031
|
-
visitNode(cbNode, node.exclamationToken) ||
|
|
31032
|
-
visitNode(cbNode, node.type) ||
|
|
31033
|
-
visitNode(cbNode, node.initializer);
|
|
31034
|
-
case 203 /* BindingElement */:
|
|
31035
|
-
return visitNode(cbNode, node.dotDotDotToken) ||
|
|
31036
|
-
visitNode(cbNode, node.propertyName) ||
|
|
31037
|
-
visitNode(cbNode, node.name) ||
|
|
31038
|
-
visitNode(cbNode, node.initializer);
|
|
31039
|
-
case 176 /* IndexSignature */:
|
|
31040
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31041
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31042
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31043
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31044
|
-
visitNode(cbNode, node.type);
|
|
31045
|
-
case 180 /* ConstructorType */:
|
|
31046
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31047
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31048
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31049
|
-
visitNode(cbNode, node.type);
|
|
31050
|
-
case 179 /* FunctionType */:
|
|
31051
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31052
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31053
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31054
|
-
visitNode(cbNode, node.type);
|
|
31055
|
-
case 174 /* CallSignature */:
|
|
31056
|
-
case 175 /* ConstructSignature */:
|
|
31057
|
-
return visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31058
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31059
|
-
visitNode(cbNode, node.type);
|
|
31060
|
-
case 169 /* MethodDeclaration */:
|
|
31061
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31062
|
-
visitNode(cbNode, node.asteriskToken) ||
|
|
31063
|
-
visitNode(cbNode, node.name) ||
|
|
31064
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31065
|
-
visitNode(cbNode, node.exclamationToken) ||
|
|
31066
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31067
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31068
|
-
visitNode(cbNode, node.type) ||
|
|
31069
|
-
visitNode(cbNode, node.body);
|
|
31070
|
-
case 168 /* MethodSignature */:
|
|
31071
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31072
|
-
visitNode(cbNode, node.name) ||
|
|
31073
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31074
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31075
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31076
|
-
visitNode(cbNode, node.type);
|
|
31077
|
-
case 171 /* Constructor */:
|
|
31078
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31079
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31080
|
-
visitNode(cbNode, node.name) ||
|
|
31081
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31082
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31083
|
-
visitNode(cbNode, node.type) ||
|
|
31084
|
-
visitNode(cbNode, node.body);
|
|
31085
|
-
case 172 /* GetAccessor */:
|
|
31086
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31087
|
-
visitNode(cbNode, node.name) ||
|
|
31088
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31089
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31090
|
-
visitNode(cbNode, node.type) ||
|
|
31091
|
-
visitNode(cbNode, node.body);
|
|
31092
|
-
case 173 /* SetAccessor */:
|
|
31093
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31094
|
-
visitNode(cbNode, node.name) ||
|
|
31095
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31096
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31097
|
-
visitNode(cbNode, node.type) ||
|
|
31098
|
-
visitNode(cbNode, node.body);
|
|
31099
|
-
case 256 /* FunctionDeclaration */:
|
|
31100
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31101
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31102
|
-
visitNode(cbNode, node.asteriskToken) ||
|
|
31103
|
-
visitNode(cbNode, node.name) ||
|
|
31104
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31105
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31106
|
-
visitNode(cbNode, node.type) ||
|
|
31107
|
-
visitNode(cbNode, node.body);
|
|
31108
|
-
case 213 /* FunctionExpression */:
|
|
31109
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31110
|
-
visitNode(cbNode, node.asteriskToken) ||
|
|
31111
|
-
visitNode(cbNode, node.name) ||
|
|
31112
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31113
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31114
|
-
visitNode(cbNode, node.type) ||
|
|
31115
|
-
visitNode(cbNode, node.body);
|
|
31116
|
-
case 214 /* ArrowFunction */:
|
|
31117
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31118
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31119
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31120
|
-
visitNode(cbNode, node.type) ||
|
|
31121
|
-
visitNode(cbNode, node.equalsGreaterThanToken) ||
|
|
31122
|
-
visitNode(cbNode, node.body);
|
|
31123
|
-
case 170 /* ClassStaticBlockDeclaration */:
|
|
31124
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31125
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31126
|
-
visitNode(cbNode, node.body);
|
|
31127
|
-
case 178 /* TypeReference */:
|
|
31128
|
-
return visitNode(cbNode, node.typeName) ||
|
|
31129
|
-
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31130
|
-
case 177 /* TypePredicate */:
|
|
31131
|
-
return visitNode(cbNode, node.assertsModifier) ||
|
|
31132
|
-
visitNode(cbNode, node.parameterName) ||
|
|
31133
|
-
visitNode(cbNode, node.type);
|
|
31134
|
-
case 181 /* TypeQuery */:
|
|
31135
|
-
return visitNode(cbNode, node.exprName) ||
|
|
31136
|
-
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31137
|
-
case 182 /* TypeLiteral */:
|
|
31138
|
-
return visitNodes(cbNode, cbNodes, node.members);
|
|
31139
|
-
case 183 /* ArrayType */:
|
|
31140
|
-
return visitNode(cbNode, node.elementType);
|
|
31141
|
-
case 184 /* TupleType */:
|
|
31142
|
-
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31143
|
-
case 187 /* UnionType */:
|
|
31144
|
-
case 188 /* IntersectionType */:
|
|
31145
|
-
return visitNodes(cbNode, cbNodes, node.types);
|
|
31146
|
-
case 189 /* ConditionalType */:
|
|
31147
|
-
return visitNode(cbNode, node.checkType) ||
|
|
31148
|
-
visitNode(cbNode, node.extendsType) ||
|
|
31149
|
-
visitNode(cbNode, node.trueType) ||
|
|
31150
|
-
visitNode(cbNode, node.falseType);
|
|
31151
|
-
case 190 /* InferType */:
|
|
31152
|
-
return visitNode(cbNode, node.typeParameter);
|
|
31153
|
-
case 200 /* ImportType */:
|
|
31154
|
-
return visitNode(cbNode, node.argument) ||
|
|
31155
|
-
visitNode(cbNode, node.assertions) ||
|
|
31156
|
-
visitNode(cbNode, node.qualifier) ||
|
|
31157
|
-
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31158
|
-
case 295 /* ImportTypeAssertionContainer */:
|
|
31159
|
-
return visitNode(cbNode, node.assertClause);
|
|
31160
|
-
case 191 /* ParenthesizedType */:
|
|
31161
|
-
case 193 /* TypeOperator */:
|
|
31162
|
-
return visitNode(cbNode, node.type);
|
|
31163
|
-
case 194 /* IndexedAccessType */:
|
|
31164
|
-
return visitNode(cbNode, node.objectType) ||
|
|
31165
|
-
visitNode(cbNode, node.indexType);
|
|
31166
|
-
case 195 /* MappedType */:
|
|
31167
|
-
return visitNode(cbNode, node.readonlyToken) ||
|
|
31168
|
-
visitNode(cbNode, node.typeParameter) ||
|
|
31169
|
-
visitNode(cbNode, node.nameType) ||
|
|
31170
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31171
|
-
visitNode(cbNode, node.type) ||
|
|
31172
|
-
visitNodes(cbNode, cbNodes, node.members);
|
|
31173
|
-
case 196 /* LiteralType */:
|
|
31174
|
-
return visitNode(cbNode, node.literal);
|
|
31175
|
-
case 197 /* NamedTupleMember */:
|
|
31176
|
-
return visitNode(cbNode, node.dotDotDotToken) ||
|
|
31177
|
-
visitNode(cbNode, node.name) ||
|
|
31178
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31179
|
-
visitNode(cbNode, node.type);
|
|
31180
|
-
case 201 /* ObjectBindingPattern */:
|
|
31181
|
-
case 202 /* ArrayBindingPattern */:
|
|
31182
|
-
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31183
|
-
case 204 /* ArrayLiteralExpression */:
|
|
31184
|
-
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31185
|
-
case 205 /* ObjectLiteralExpression */:
|
|
31186
|
-
return visitNodes(cbNode, cbNodes, node.properties);
|
|
31187
|
-
case 206 /* PropertyAccessExpression */:
|
|
31188
|
-
return visitNode(cbNode, node.expression) ||
|
|
31189
|
-
visitNode(cbNode, node.questionDotToken) ||
|
|
31190
|
-
visitNode(cbNode, node.name);
|
|
31191
|
-
case 207 /* ElementAccessExpression */:
|
|
31192
|
-
return visitNode(cbNode, node.expression) ||
|
|
31193
|
-
visitNode(cbNode, node.questionDotToken) ||
|
|
31194
|
-
visitNode(cbNode, node.argumentExpression);
|
|
31195
|
-
case 208 /* CallExpression */:
|
|
31196
|
-
case 209 /* NewExpression */:
|
|
31197
|
-
return visitNode(cbNode, node.expression) ||
|
|
31198
|
-
visitNode(cbNode, node.questionDotToken) ||
|
|
31199
|
-
visitNodes(cbNode, cbNodes, node.typeArguments) ||
|
|
31200
|
-
visitNodes(cbNode, cbNodes, node.arguments);
|
|
31201
|
-
case 210 /* TaggedTemplateExpression */:
|
|
31202
|
-
return visitNode(cbNode, node.tag) ||
|
|
31203
|
-
visitNode(cbNode, node.questionDotToken) ||
|
|
31204
|
-
visitNodes(cbNode, cbNodes, node.typeArguments) ||
|
|
31205
|
-
visitNode(cbNode, node.template);
|
|
31206
|
-
case 211 /* TypeAssertionExpression */:
|
|
31207
|
-
return visitNode(cbNode, node.type) ||
|
|
31208
|
-
visitNode(cbNode, node.expression);
|
|
31209
|
-
case 212 /* ParenthesizedExpression */:
|
|
31210
|
-
return visitNode(cbNode, node.expression);
|
|
31211
|
-
case 215 /* DeleteExpression */:
|
|
31212
|
-
return visitNode(cbNode, node.expression);
|
|
31213
|
-
case 216 /* TypeOfExpression */:
|
|
31214
|
-
return visitNode(cbNode, node.expression);
|
|
31215
|
-
case 217 /* VoidExpression */:
|
|
31216
|
-
return visitNode(cbNode, node.expression);
|
|
31217
|
-
case 219 /* PrefixUnaryExpression */:
|
|
31218
|
-
return visitNode(cbNode, node.operand);
|
|
31219
|
-
case 224 /* YieldExpression */:
|
|
31220
|
-
return visitNode(cbNode, node.asteriskToken) ||
|
|
31221
|
-
visitNode(cbNode, node.expression);
|
|
31222
|
-
case 218 /* AwaitExpression */:
|
|
31223
|
-
return visitNode(cbNode, node.expression);
|
|
31224
|
-
case 220 /* PostfixUnaryExpression */:
|
|
31225
|
-
return visitNode(cbNode, node.operand);
|
|
31226
|
-
case 221 /* BinaryExpression */:
|
|
31227
|
-
return visitNode(cbNode, node.left) ||
|
|
31228
|
-
visitNode(cbNode, node.operatorToken) ||
|
|
31229
|
-
visitNode(cbNode, node.right);
|
|
31230
|
-
case 229 /* AsExpression */:
|
|
31231
|
-
return visitNode(cbNode, node.expression) ||
|
|
31232
|
-
visitNode(cbNode, node.type);
|
|
31233
|
-
case 230 /* NonNullExpression */:
|
|
31234
|
-
return visitNode(cbNode, node.expression);
|
|
31235
|
-
case 231 /* MetaProperty */:
|
|
31236
|
-
return visitNode(cbNode, node.name);
|
|
31237
|
-
case 222 /* ConditionalExpression */:
|
|
31238
|
-
return visitNode(cbNode, node.condition) ||
|
|
31239
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31240
|
-
visitNode(cbNode, node.whenTrue) ||
|
|
31241
|
-
visitNode(cbNode, node.colonToken) ||
|
|
31242
|
-
visitNode(cbNode, node.whenFalse);
|
|
31243
|
-
case 225 /* SpreadElement */:
|
|
31244
|
-
return visitNode(cbNode, node.expression);
|
|
31245
|
-
case 235 /* Block */:
|
|
31246
|
-
case 262 /* ModuleBlock */:
|
|
31247
|
-
return visitNodes(cbNode, cbNodes, node.statements);
|
|
31248
|
-
case 305 /* SourceFile */:
|
|
31249
|
-
return visitNodes(cbNode, cbNodes, node.statements) ||
|
|
31250
|
-
visitNode(cbNode, node.endOfFileToken);
|
|
31251
|
-
case 237 /* VariableStatement */:
|
|
31252
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31253
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31254
|
-
visitNode(cbNode, node.declarationList);
|
|
31255
|
-
case 255 /* VariableDeclarationList */:
|
|
31256
|
-
return visitNodes(cbNode, cbNodes, node.declarations);
|
|
31257
|
-
case 238 /* ExpressionStatement */:
|
|
31258
|
-
return visitNode(cbNode, node.expression);
|
|
31259
|
-
case 239 /* IfStatement */:
|
|
31260
|
-
return visitNode(cbNode, node.expression) ||
|
|
31261
|
-
visitNode(cbNode, node.thenStatement) ||
|
|
31262
|
-
visitNode(cbNode, node.elseStatement);
|
|
31263
|
-
case 240 /* DoStatement */:
|
|
31264
|
-
return visitNode(cbNode, node.statement) ||
|
|
31265
|
-
visitNode(cbNode, node.expression);
|
|
31266
|
-
case 241 /* WhileStatement */:
|
|
31267
|
-
return visitNode(cbNode, node.expression) ||
|
|
31268
|
-
visitNode(cbNode, node.statement);
|
|
31269
|
-
case 242 /* ForStatement */:
|
|
31270
|
-
return visitNode(cbNode, node.initializer) ||
|
|
31271
|
-
visitNode(cbNode, node.condition) ||
|
|
31272
|
-
visitNode(cbNode, node.incrementor) ||
|
|
31273
|
-
visitNode(cbNode, node.statement);
|
|
31274
|
-
case 243 /* ForInStatement */:
|
|
31275
|
-
return visitNode(cbNode, node.initializer) ||
|
|
31276
|
-
visitNode(cbNode, node.expression) ||
|
|
31277
|
-
visitNode(cbNode, node.statement);
|
|
31278
|
-
case 244 /* ForOfStatement */:
|
|
31279
|
-
return visitNode(cbNode, node.awaitModifier) ||
|
|
31280
|
-
visitNode(cbNode, node.initializer) ||
|
|
31281
|
-
visitNode(cbNode, node.expression) ||
|
|
31282
|
-
visitNode(cbNode, node.statement);
|
|
31283
|
-
case 245 /* ContinueStatement */:
|
|
31284
|
-
case 246 /* BreakStatement */:
|
|
31285
|
-
return visitNode(cbNode, node.label);
|
|
31286
|
-
case 247 /* ReturnStatement */:
|
|
31287
|
-
return visitNode(cbNode, node.expression);
|
|
31288
|
-
case 248 /* WithStatement */:
|
|
31289
|
-
return visitNode(cbNode, node.expression) ||
|
|
31290
|
-
visitNode(cbNode, node.statement);
|
|
31291
|
-
case 249 /* SwitchStatement */:
|
|
31292
|
-
return visitNode(cbNode, node.expression) ||
|
|
31293
|
-
visitNode(cbNode, node.caseBlock);
|
|
31294
|
-
case 263 /* CaseBlock */:
|
|
31295
|
-
return visitNodes(cbNode, cbNodes, node.clauses);
|
|
31296
|
-
case 289 /* CaseClause */:
|
|
31297
|
-
return visitNode(cbNode, node.expression) ||
|
|
31298
|
-
visitNodes(cbNode, cbNodes, node.statements);
|
|
31299
|
-
case 290 /* DefaultClause */:
|
|
31300
|
-
return visitNodes(cbNode, cbNodes, node.statements);
|
|
31301
|
-
case 250 /* LabeledStatement */:
|
|
31302
|
-
return visitNode(cbNode, node.label) ||
|
|
31303
|
-
visitNode(cbNode, node.statement);
|
|
31304
|
-
case 251 /* ThrowStatement */:
|
|
31305
|
-
return visitNode(cbNode, node.expression);
|
|
31306
|
-
case 252 /* TryStatement */:
|
|
31307
|
-
return visitNode(cbNode, node.tryBlock) ||
|
|
31308
|
-
visitNode(cbNode, node.catchClause) ||
|
|
31309
|
-
visitNode(cbNode, node.finallyBlock);
|
|
31310
|
-
case 292 /* CatchClause */:
|
|
31311
|
-
return visitNode(cbNode, node.variableDeclaration) ||
|
|
31312
|
-
visitNode(cbNode, node.block);
|
|
31313
|
-
case 165 /* Decorator */:
|
|
31314
|
-
return visitNode(cbNode, node.expression);
|
|
31315
|
-
case 257 /* ClassDeclaration */:
|
|
31316
|
-
case 226 /* ClassExpression */:
|
|
31317
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31318
|
-
visitNode(cbNode, node.name) ||
|
|
31319
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31320
|
-
visitNodes(cbNode, cbNodes, node.heritageClauses) ||
|
|
31321
|
-
visitNodes(cbNode, cbNodes, node.members);
|
|
31322
|
-
case 258 /* InterfaceDeclaration */:
|
|
31323
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31324
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31325
|
-
visitNode(cbNode, node.name) ||
|
|
31326
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31327
|
-
visitNodes(cbNode, cbNodes, node.heritageClauses) ||
|
|
31328
|
-
visitNodes(cbNode, cbNodes, node.members);
|
|
31329
|
-
case 259 /* TypeAliasDeclaration */:
|
|
31330
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31331
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31332
|
-
visitNode(cbNode, node.name) ||
|
|
31333
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31334
|
-
visitNode(cbNode, node.type);
|
|
31335
|
-
case 260 /* EnumDeclaration */:
|
|
31336
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31337
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31338
|
-
visitNode(cbNode, node.name) ||
|
|
31339
|
-
visitNodes(cbNode, cbNodes, node.members);
|
|
31340
|
-
case 299 /* EnumMember */:
|
|
31341
|
-
return visitNode(cbNode, node.name) ||
|
|
31342
|
-
visitNode(cbNode, node.initializer);
|
|
31343
|
-
case 261 /* ModuleDeclaration */:
|
|
31344
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31345
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31346
|
-
visitNode(cbNode, node.name) ||
|
|
31347
|
-
visitNode(cbNode, node.body);
|
|
31348
|
-
case 265 /* ImportEqualsDeclaration */:
|
|
31349
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31350
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31351
|
-
visitNode(cbNode, node.name) ||
|
|
31352
|
-
visitNode(cbNode, node.moduleReference);
|
|
31353
|
-
case 266 /* ImportDeclaration */:
|
|
31354
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31355
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31356
|
-
visitNode(cbNode, node.importClause) ||
|
|
31357
|
-
visitNode(cbNode, node.moduleSpecifier) ||
|
|
31358
|
-
visitNode(cbNode, node.assertClause);
|
|
31359
|
-
case 267 /* ImportClause */:
|
|
31360
|
-
return visitNode(cbNode, node.name) ||
|
|
31361
|
-
visitNode(cbNode, node.namedBindings);
|
|
31362
|
-
case 293 /* AssertClause */:
|
|
31363
|
-
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31364
|
-
case 294 /* AssertEntry */:
|
|
31365
|
-
return visitNode(cbNode, node.name) ||
|
|
31366
|
-
visitNode(cbNode, node.value);
|
|
31367
|
-
case 264 /* NamespaceExportDeclaration */:
|
|
31368
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31369
|
-
visitNode(cbNode, node.name);
|
|
31370
|
-
case 268 /* NamespaceImport */:
|
|
31371
|
-
return visitNode(cbNode, node.name);
|
|
31372
|
-
case 274 /* NamespaceExport */:
|
|
31373
|
-
return visitNode(cbNode, node.name);
|
|
31374
|
-
case 269 /* NamedImports */:
|
|
31375
|
-
case 273 /* NamedExports */:
|
|
31376
|
-
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31377
|
-
case 272 /* ExportDeclaration */:
|
|
31378
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31379
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31380
|
-
visitNode(cbNode, node.exportClause) ||
|
|
31381
|
-
visitNode(cbNode, node.moduleSpecifier) ||
|
|
31382
|
-
visitNode(cbNode, node.assertClause);
|
|
31383
|
-
case 270 /* ImportSpecifier */:
|
|
31384
|
-
case 275 /* ExportSpecifier */:
|
|
31385
|
-
return visitNode(cbNode, node.propertyName) ||
|
|
31386
|
-
visitNode(cbNode, node.name);
|
|
31387
|
-
case 271 /* ExportAssignment */:
|
|
31388
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31389
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31390
|
-
visitNode(cbNode, node.expression);
|
|
31391
|
-
case 223 /* TemplateExpression */:
|
|
31392
|
-
return visitNode(cbNode, node.head) ||
|
|
31393
|
-
visitNodes(cbNode, cbNodes, node.templateSpans);
|
|
31394
|
-
case 233 /* TemplateSpan */:
|
|
31395
|
-
return visitNode(cbNode, node.expression) ||
|
|
31396
|
-
visitNode(cbNode, node.literal);
|
|
31397
|
-
case 198 /* TemplateLiteralType */:
|
|
31398
|
-
return visitNode(cbNode, node.head) ||
|
|
31399
|
-
visitNodes(cbNode, cbNodes, node.templateSpans);
|
|
31400
|
-
case 199 /* TemplateLiteralTypeSpan */:
|
|
31401
|
-
return visitNode(cbNode, node.type) ||
|
|
31402
|
-
visitNode(cbNode, node.literal);
|
|
31403
|
-
case 162 /* ComputedPropertyName */:
|
|
31404
|
-
return visitNode(cbNode, node.expression);
|
|
31405
|
-
case 291 /* HeritageClause */:
|
|
31406
|
-
return visitNodes(cbNode, cbNodes, node.types);
|
|
31407
|
-
case 228 /* ExpressionWithTypeArguments */:
|
|
31408
|
-
return visitNode(cbNode, node.expression) ||
|
|
31409
|
-
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31410
|
-
case 277 /* ExternalModuleReference */:
|
|
31411
|
-
return visitNode(cbNode, node.expression);
|
|
31412
|
-
case 276 /* MissingDeclaration */:
|
|
31413
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31414
|
-
visitNodes(cbNode, cbNodes, node.modifiers);
|
|
31415
|
-
case 351 /* CommaListExpression */:
|
|
31416
|
-
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31417
|
-
case 278 /* JsxElement */:
|
|
31418
|
-
return visitNode(cbNode, node.openingElement) ||
|
|
31419
|
-
visitNodes(cbNode, cbNodes, node.children) ||
|
|
31420
|
-
visitNode(cbNode, node.closingElement);
|
|
31421
|
-
case 282 /* JsxFragment */:
|
|
31422
|
-
return visitNode(cbNode, node.openingFragment) ||
|
|
31423
|
-
visitNodes(cbNode, cbNodes, node.children) ||
|
|
31424
|
-
visitNode(cbNode, node.closingFragment);
|
|
31425
|
-
case 279 /* JsxSelfClosingElement */:
|
|
31426
|
-
case 280 /* JsxOpeningElement */:
|
|
31427
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31428
|
-
visitNodes(cbNode, cbNodes, node.typeArguments) ||
|
|
31429
|
-
visitNode(cbNode, node.attributes);
|
|
31430
|
-
case 286 /* JsxAttributes */:
|
|
31431
|
-
return visitNodes(cbNode, cbNodes, node.properties);
|
|
31432
|
-
case 285 /* JsxAttribute */:
|
|
31433
|
-
return visitNode(cbNode, node.name) ||
|
|
31434
|
-
visitNode(cbNode, node.initializer);
|
|
31435
|
-
case 287 /* JsxSpreadAttribute */:
|
|
31436
|
-
return visitNode(cbNode, node.expression);
|
|
31437
|
-
case 288 /* JsxExpression */:
|
|
31438
|
-
return visitNode(cbNode, node.dotDotDotToken) ||
|
|
31439
|
-
visitNode(cbNode, node.expression);
|
|
31440
|
-
case 281 /* JsxClosingElement */:
|
|
31441
|
-
return visitNode(cbNode, node.tagName);
|
|
31442
|
-
case 185 /* OptionalType */:
|
|
31443
|
-
case 186 /* RestType */:
|
|
31444
|
-
case 309 /* JSDocTypeExpression */:
|
|
31445
|
-
case 315 /* JSDocNonNullableType */:
|
|
31446
|
-
case 314 /* JSDocNullableType */:
|
|
31447
|
-
case 316 /* JSDocOptionalType */:
|
|
31448
|
-
case 318 /* JSDocVariadicType */:
|
|
31449
|
-
return visitNode(cbNode, node.type);
|
|
31450
|
-
case 317 /* JSDocFunctionType */:
|
|
31451
|
-
return visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31452
|
-
visitNode(cbNode, node.type);
|
|
31453
|
-
case 320 /* JSDoc */:
|
|
31454
|
-
return (typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment))
|
|
31455
|
-
|| visitNodes(cbNode, cbNodes, node.tags);
|
|
31456
|
-
case 346 /* JSDocSeeTag */:
|
|
31457
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31458
|
-
visitNode(cbNode, node.name) ||
|
|
31459
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31460
|
-
case 310 /* JSDocNameReference */:
|
|
31461
|
-
return visitNode(cbNode, node.name);
|
|
31462
|
-
case 311 /* JSDocMemberName */:
|
|
31463
|
-
return visitNode(cbNode, node.left) ||
|
|
31464
|
-
visitNode(cbNode, node.right);
|
|
31465
|
-
case 340 /* JSDocParameterTag */:
|
|
31466
|
-
case 347 /* JSDocPropertyTag */:
|
|
31467
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31468
|
-
(node.isNameFirst
|
|
31469
|
-
? visitNode(cbNode, node.name) ||
|
|
31470
|
-
visitNode(cbNode, node.typeExpression) ||
|
|
31471
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment))
|
|
31472
|
-
: visitNode(cbNode, node.typeExpression) ||
|
|
31473
|
-
visitNode(cbNode, node.name) ||
|
|
31474
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment)));
|
|
31475
|
-
case 330 /* JSDocAuthorTag */:
|
|
31476
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31477
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31478
|
-
case 329 /* JSDocImplementsTag */:
|
|
31479
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31480
|
-
visitNode(cbNode, node.class) ||
|
|
31481
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31482
|
-
case 328 /* JSDocAugmentsTag */:
|
|
31483
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31484
|
-
visitNode(cbNode, node.class) ||
|
|
31485
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31486
|
-
case 344 /* JSDocTemplateTag */:
|
|
31487
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31488
|
-
visitNode(cbNode, node.constraint) ||
|
|
31489
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31490
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31491
|
-
case 345 /* JSDocTypedefTag */:
|
|
31492
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31493
|
-
(node.typeExpression &&
|
|
31494
|
-
node.typeExpression.kind === 309 /* JSDocTypeExpression */
|
|
31495
|
-
? visitNode(cbNode, node.typeExpression) ||
|
|
31496
|
-
visitNode(cbNode, node.fullName) ||
|
|
31497
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment))
|
|
31498
|
-
: visitNode(cbNode, node.fullName) ||
|
|
31499
|
-
visitNode(cbNode, node.typeExpression) ||
|
|
31500
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment)));
|
|
31501
|
-
case 338 /* JSDocCallbackTag */:
|
|
31502
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31503
|
-
visitNode(cbNode, node.fullName) ||
|
|
31504
|
-
visitNode(cbNode, node.typeExpression) ||
|
|
31505
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31506
|
-
case 341 /* JSDocReturnTag */:
|
|
31507
|
-
case 343 /* JSDocTypeTag */:
|
|
31508
|
-
case 342 /* JSDocThisTag */:
|
|
31509
|
-
case 339 /* JSDocEnumTag */:
|
|
31510
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31511
|
-
visitNode(cbNode, node.typeExpression) ||
|
|
31512
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31513
|
-
case 323 /* JSDocSignature */:
|
|
31514
|
-
return ts.forEach(node.typeParameters, cbNode) ||
|
|
31515
|
-
ts.forEach(node.parameters, cbNode) ||
|
|
31516
|
-
visitNode(cbNode, node.type);
|
|
31517
|
-
case 324 /* JSDocLink */:
|
|
31518
|
-
case 325 /* JSDocLinkCode */:
|
|
31519
|
-
case 326 /* JSDocLinkPlain */:
|
|
31520
|
-
return visitNode(cbNode, node.name);
|
|
31521
|
-
case 322 /* JSDocTypeLiteral */:
|
|
31522
|
-
return ts.forEach(node.jsDocPropertyTags, cbNode);
|
|
31523
|
-
case 327 /* JSDocTag */:
|
|
31524
|
-
case 332 /* JSDocClassTag */:
|
|
31525
|
-
case 333 /* JSDocPublicTag */:
|
|
31526
|
-
case 334 /* JSDocPrivateTag */:
|
|
31527
|
-
case 335 /* JSDocProtectedTag */:
|
|
31528
|
-
case 336 /* JSDocReadonlyTag */:
|
|
31529
|
-
case 331 /* JSDocDeprecatedTag */:
|
|
31530
|
-
return visitNode(cbNode, node.tagName)
|
|
31531
|
-
|| (typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31532
|
-
case 350 /* PartiallyEmittedExpression */:
|
|
31533
|
-
return visitNode(cbNode, node.expression);
|
|
31534
|
-
}
|
|
31693
|
+
var fn = forEachChildTable[node.kind];
|
|
31694
|
+
return fn === undefined ? undefined : fn(node, cbNode, cbNodes);
|
|
31535
31695
|
}
|
|
31536
31696
|
ts.forEachChild = forEachChild;
|
|
31537
31697
|
/** @internal */
|
|
@@ -33961,7 +34121,7 @@ var ts;
|
|
|
33961
34121
|
var type = parseTypeAnnotation();
|
|
33962
34122
|
parseTypeMemberSemicolon();
|
|
33963
34123
|
var node = factory.createIndexSignature(modifiers, parameters, type);
|
|
33964
|
-
node.
|
|
34124
|
+
node.illegalDecorators = decorators;
|
|
33965
34125
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
33966
34126
|
}
|
|
33967
34127
|
function parsePropertyOrMethodSignature(pos, hasJSDoc, modifiers) {
|
|
@@ -36121,7 +36281,7 @@ var ts;
|
|
|
36121
36281
|
node = factory.createPropertyAssignment(name, initializer);
|
|
36122
36282
|
}
|
|
36123
36283
|
// Decorators, Modifiers, questionToken, and exclamationToken are not supported by property assignments and are reported in the grammar checker
|
|
36124
|
-
node.
|
|
36284
|
+
node.illegalDecorators = decorators;
|
|
36125
36285
|
node.modifiers = modifiers;
|
|
36126
36286
|
node.questionToken = questionToken;
|
|
36127
36287
|
node.exclamationToken = exclamationToken;
|
|
@@ -36769,7 +36929,7 @@ var ts;
|
|
|
36769
36929
|
// would follow. For recovery and error reporting purposes, return an incomplete declaration.
|
|
36770
36930
|
var missing = createMissingNode(276 /* MissingDeclaration */, /*reportAtCurrentPosition*/ true, ts.Diagnostics.Declaration_expected);
|
|
36771
36931
|
ts.setTextRangePos(missing, pos);
|
|
36772
|
-
missing.
|
|
36932
|
+
missing.illegalDecorators = decorators;
|
|
36773
36933
|
missing.modifiers = modifiers;
|
|
36774
36934
|
return missing;
|
|
36775
36935
|
}
|
|
@@ -36912,7 +37072,7 @@ var ts;
|
|
|
36912
37072
|
parseSemicolon();
|
|
36913
37073
|
var node = factory.createVariableStatement(modifiers, declarationList);
|
|
36914
37074
|
// Decorators are not allowed on a variable statement, so we keep track of them to report them in the grammar checker.
|
|
36915
|
-
node.
|
|
37075
|
+
node.illegalDecorators = decorators;
|
|
36916
37076
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
36917
37077
|
}
|
|
36918
37078
|
function parseFunctionDeclaration(pos, hasJSDoc, decorators, modifiers) {
|
|
@@ -36932,7 +37092,7 @@ var ts;
|
|
|
36932
37092
|
var body = parseFunctionBlockOrSemicolon(isGenerator | isAsync, ts.Diagnostics.or_expected);
|
|
36933
37093
|
setAwaitContext(savedAwaitContext);
|
|
36934
37094
|
var node = factory.createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body);
|
|
36935
|
-
node.
|
|
37095
|
+
node.illegalDecorators = decorators;
|
|
36936
37096
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
36937
37097
|
}
|
|
36938
37098
|
function parseConstructorName() {
|
|
@@ -36955,7 +37115,7 @@ var ts;
|
|
|
36955
37115
|
var body = parseFunctionBlockOrSemicolon(0 /* None */, ts.Diagnostics.or_expected);
|
|
36956
37116
|
var node = factory.createConstructorDeclaration(modifiers, parameters, body);
|
|
36957
37117
|
// Attach invalid nodes if they exist so that we can report them in the grammar checker.
|
|
36958
|
-
node.
|
|
37118
|
+
node.illegalDecorators = decorators;
|
|
36959
37119
|
node.typeParameters = typeParameters;
|
|
36960
37120
|
node.type = type;
|
|
36961
37121
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
@@ -37071,7 +37231,7 @@ var ts;
|
|
|
37071
37231
|
parseExpectedToken(124 /* StaticKeyword */);
|
|
37072
37232
|
var body = parseClassStaticBlockBody();
|
|
37073
37233
|
var node = withJSDoc(finishNode(factory.createClassStaticBlockDeclaration(body), pos), hasJSDoc);
|
|
37074
|
-
node.
|
|
37234
|
+
node.illegalDecorators = decorators;
|
|
37075
37235
|
node.modifiers = modifiers;
|
|
37076
37236
|
return node;
|
|
37077
37237
|
}
|
|
@@ -37312,7 +37472,7 @@ var ts;
|
|
|
37312
37472
|
var heritageClauses = parseHeritageClauses();
|
|
37313
37473
|
var members = parseObjectTypeMembers();
|
|
37314
37474
|
var node = factory.createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members);
|
|
37315
|
-
node.
|
|
37475
|
+
node.illegalDecorators = decorators;
|
|
37316
37476
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37317
37477
|
}
|
|
37318
37478
|
function parseTypeAliasDeclaration(pos, hasJSDoc, decorators, modifiers) {
|
|
@@ -37323,7 +37483,7 @@ var ts;
|
|
|
37323
37483
|
var type = token() === 138 /* IntrinsicKeyword */ && tryParse(parseKeywordAndNoDot) || parseType();
|
|
37324
37484
|
parseSemicolon();
|
|
37325
37485
|
var node = factory.createTypeAliasDeclaration(modifiers, name, typeParameters, type);
|
|
37326
|
-
node.
|
|
37486
|
+
node.illegalDecorators = decorators;
|
|
37327
37487
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37328
37488
|
}
|
|
37329
37489
|
// In an ambient declaration, the grammar only allows integer literals as initializers.
|
|
@@ -37349,7 +37509,7 @@ var ts;
|
|
|
37349
37509
|
members = createMissingList();
|
|
37350
37510
|
}
|
|
37351
37511
|
var node = factory.createEnumDeclaration(modifiers, name, members);
|
|
37352
|
-
node.
|
|
37512
|
+
node.illegalDecorators = decorators;
|
|
37353
37513
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37354
37514
|
}
|
|
37355
37515
|
function parseModuleBlock() {
|
|
@@ -37373,7 +37533,7 @@ var ts;
|
|
|
37373
37533
|
? parseModuleOrNamespaceDeclaration(getNodePos(), /*hasJSDoc*/ false, /*decorators*/ undefined, /*modifiers*/ undefined, 4 /* NestedNamespace */ | namespaceFlag)
|
|
37374
37534
|
: parseModuleBlock();
|
|
37375
37535
|
var node = factory.createModuleDeclaration(modifiers, name, body, flags);
|
|
37376
|
-
node.
|
|
37536
|
+
node.illegalDecorators = decorators;
|
|
37377
37537
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37378
37538
|
}
|
|
37379
37539
|
function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, decorators, modifiers) {
|
|
@@ -37396,7 +37556,7 @@ var ts;
|
|
|
37396
37556
|
parseSemicolon();
|
|
37397
37557
|
}
|
|
37398
37558
|
var node = factory.createModuleDeclaration(modifiers, name, body, flags);
|
|
37399
|
-
node.
|
|
37559
|
+
node.illegalDecorators = decorators;
|
|
37400
37560
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37401
37561
|
}
|
|
37402
37562
|
function parseModuleDeclaration(pos, hasJSDoc, decorators, modifiers) {
|
|
@@ -37436,7 +37596,7 @@ var ts;
|
|
|
37436
37596
|
parseSemicolon();
|
|
37437
37597
|
var node = factory.createNamespaceExportDeclaration(name);
|
|
37438
37598
|
// NamespaceExportDeclaration nodes cannot have decorators or modifiers, so we attach them here so we can report them in the grammar checker
|
|
37439
|
-
node.
|
|
37599
|
+
node.illegalDecorators = decorators;
|
|
37440
37600
|
node.modifiers = modifiers;
|
|
37441
37601
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37442
37602
|
}
|
|
@@ -37476,7 +37636,7 @@ var ts;
|
|
|
37476
37636
|
}
|
|
37477
37637
|
parseSemicolon();
|
|
37478
37638
|
var node = factory.createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause);
|
|
37479
|
-
node.
|
|
37639
|
+
node.illegalDecorators = decorators;
|
|
37480
37640
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37481
37641
|
}
|
|
37482
37642
|
function parseAssertEntry() {
|
|
@@ -37521,7 +37681,7 @@ var ts;
|
|
|
37521
37681
|
var moduleReference = parseModuleReference();
|
|
37522
37682
|
parseSemicolon();
|
|
37523
37683
|
var node = factory.createImportEqualsDeclaration(modifiers, isTypeOnly, identifier, moduleReference);
|
|
37524
|
-
node.
|
|
37684
|
+
node.illegalDecorators = decorators;
|
|
37525
37685
|
var finished = withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37526
37686
|
return finished;
|
|
37527
37687
|
}
|
|
@@ -37711,7 +37871,7 @@ var ts;
|
|
|
37711
37871
|
parseSemicolon();
|
|
37712
37872
|
setAwaitContext(savedAwaitContext);
|
|
37713
37873
|
var node = factory.createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause);
|
|
37714
|
-
node.
|
|
37874
|
+
node.illegalDecorators = decorators;
|
|
37715
37875
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37716
37876
|
}
|
|
37717
37877
|
function parseExportAssignment(pos, hasJSDoc, decorators, modifiers) {
|
|
@@ -37728,7 +37888,7 @@ var ts;
|
|
|
37728
37888
|
parseSemicolon();
|
|
37729
37889
|
setAwaitContext(savedAwaitContext);
|
|
37730
37890
|
var node = factory.createExportAssignment(modifiers, isExportEquals, expression);
|
|
37731
|
-
node.
|
|
37891
|
+
node.illegalDecorators = decorators;
|
|
37732
37892
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37733
37893
|
}
|
|
37734
37894
|
var ParsingContext;
|
|
@@ -43092,10 +43252,12 @@ var ts;
|
|
|
43092
43252
|
if (resolved) {
|
|
43093
43253
|
var fileName = resolved.fileName, packageId = resolved.packageId;
|
|
43094
43254
|
var resolvedFileName = options.preserveSymlinks ? fileName : realPath(fileName, host, traceEnabled);
|
|
43255
|
+
var pathsAreEqual = arePathsEqual(fileName, resolvedFileName, host);
|
|
43095
43256
|
resolvedTypeReferenceDirective = {
|
|
43096
43257
|
primary: primary,
|
|
43097
|
-
|
|
43098
|
-
|
|
43258
|
+
// If the fileName and realpath are differing only in casing prefer fileName so that we can issue correct errors for casing under forceConsistentCasingInFileNames
|
|
43259
|
+
resolvedFileName: pathsAreEqual ? fileName : resolvedFileName,
|
|
43260
|
+
originalPath: pathsAreEqual ? undefined : fileName,
|
|
43099
43261
|
packageId: packageId,
|
|
43100
43262
|
isExternalLibraryImport: pathContainsNodeModules(fileName),
|
|
43101
43263
|
};
|
|
@@ -43880,8 +44042,10 @@ var ts;
|
|
|
43880
44042
|
var resolvedValue = resolved_1.value;
|
|
43881
44043
|
if (!compilerOptions.preserveSymlinks && resolvedValue && !resolvedValue.originalPath) {
|
|
43882
44044
|
var path = realPath(resolvedValue.path, host, traceEnabled);
|
|
43883
|
-
var
|
|
43884
|
-
|
|
44045
|
+
var pathsAreEqual = arePathsEqual(path, resolvedValue.path, host);
|
|
44046
|
+
var originalPath = pathsAreEqual ? undefined : resolvedValue.path;
|
|
44047
|
+
// If the path and realpath are differing only in casing prefer path so that we can issue correct errors for casing under forceConsistentCasingInFileNames
|
|
44048
|
+
resolvedValue = __assign(__assign({}, resolvedValue), { path: pathsAreEqual ? resolvedValue.path : path, originalPath: originalPath });
|
|
43885
44049
|
}
|
|
43886
44050
|
// For node_modules lookups, get the real path so that multiple accesses to an `npm link`-ed module do not create duplicate files.
|
|
43887
44051
|
return { value: resolvedValue && { resolved: resolvedValue, isExternalLibraryImport: true } };
|
|
@@ -49545,10 +49709,10 @@ var ts;
|
|
|
49545
49709
|
}
|
|
49546
49710
|
// Issue errors globally
|
|
49547
49711
|
var file = ts.getSourceFileOfNode(location);
|
|
49548
|
-
addErrorOrSuggestion(isError, "message" in message ? ts.createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForFileFromMessageChain(file, message)); // eslint-disable-line no-in-operator
|
|
49712
|
+
addErrorOrSuggestion(isError, "message" in message ? ts.createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForFileFromMessageChain(file, message)); // eslint-disable-line local/no-in-operator
|
|
49549
49713
|
return;
|
|
49550
49714
|
}
|
|
49551
|
-
addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line no-in-operator
|
|
49715
|
+
addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line local/no-in-operator
|
|
49552
49716
|
}
|
|
49553
49717
|
function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, arg0, arg1, arg2, arg3) {
|
|
49554
49718
|
var diagnostic = error(location, message, arg0, arg1, arg2, arg3);
|
|
@@ -51022,41 +51186,61 @@ var ts;
|
|
|
51022
51186
|
return typeof file.externalModuleIndicator !== "object" && !resolveExportByName(moduleSymbol, ts.escapeLeadingUnderscores("__esModule"), /*sourceNode*/ undefined, dontResolveAlias);
|
|
51023
51187
|
}
|
|
51024
51188
|
function getTargetOfImportClause(node, dontResolveAlias) {
|
|
51025
|
-
var _a;
|
|
51026
51189
|
var moduleSymbol = resolveExternalModuleName(node, node.parent.moduleSpecifier);
|
|
51027
51190
|
if (moduleSymbol) {
|
|
51028
|
-
|
|
51029
|
-
|
|
51030
|
-
|
|
51031
|
-
|
|
51032
|
-
|
|
51033
|
-
|
|
51034
|
-
|
|
51035
|
-
|
|
51036
|
-
|
|
51037
|
-
|
|
51038
|
-
|
|
51039
|
-
|
|
51040
|
-
|
|
51041
|
-
|
|
51042
|
-
|
|
51043
|
-
|
|
51044
|
-
|
|
51045
|
-
|
|
51046
|
-
|
|
51047
|
-
|
|
51048
|
-
|
|
51049
|
-
|
|
51191
|
+
return getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias);
|
|
51192
|
+
}
|
|
51193
|
+
}
|
|
51194
|
+
function getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias) {
|
|
51195
|
+
var _a;
|
|
51196
|
+
var exportDefaultSymbol;
|
|
51197
|
+
if (ts.isShorthandAmbientModuleSymbol(moduleSymbol)) {
|
|
51198
|
+
exportDefaultSymbol = moduleSymbol;
|
|
51199
|
+
}
|
|
51200
|
+
else {
|
|
51201
|
+
exportDefaultSymbol = resolveExportByName(moduleSymbol, "default" /* Default */, node, dontResolveAlias);
|
|
51202
|
+
}
|
|
51203
|
+
var file = (_a = moduleSymbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isSourceFile);
|
|
51204
|
+
var specifier = getModuleSpecifierForImportOrExport(node);
|
|
51205
|
+
if (!specifier) {
|
|
51206
|
+
return exportDefaultSymbol;
|
|
51207
|
+
}
|
|
51208
|
+
var hasDefaultOnly = isOnlyImportedAsDefault(specifier);
|
|
51209
|
+
var hasSyntheticDefault = canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, specifier);
|
|
51210
|
+
if (!exportDefaultSymbol && !hasSyntheticDefault && !hasDefaultOnly) {
|
|
51211
|
+
if (hasExportAssignmentSymbol(moduleSymbol)) {
|
|
51212
|
+
var compilerOptionName = moduleKind >= ts.ModuleKind.ES2015 ? "allowSyntheticDefaultImports" : "esModuleInterop";
|
|
51213
|
+
var exportEqualsSymbol = moduleSymbol.exports.get("export=" /* ExportEquals */);
|
|
51214
|
+
var exportAssignment = exportEqualsSymbol.valueDeclaration;
|
|
51215
|
+
var err = error(node.name, ts.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName);
|
|
51216
|
+
if (exportAssignment) {
|
|
51217
|
+
ts.addRelatedInfo(err, ts.createDiagnosticForNode(exportAssignment, ts.Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag, compilerOptionName));
|
|
51050
51218
|
}
|
|
51051
51219
|
}
|
|
51052
|
-
else if (
|
|
51053
|
-
|
|
51054
|
-
|
|
51055
|
-
|
|
51056
|
-
|
|
51220
|
+
else if (ts.isImportClause(node)) {
|
|
51221
|
+
reportNonDefaultExport(moduleSymbol, node);
|
|
51222
|
+
}
|
|
51223
|
+
else {
|
|
51224
|
+
errorNoModuleMemberSymbol(moduleSymbol, moduleSymbol, node, ts.isImportOrExportSpecifier(node) && node.propertyName || node.name);
|
|
51057
51225
|
}
|
|
51058
|
-
|
|
51059
|
-
|
|
51226
|
+
}
|
|
51227
|
+
else if (hasSyntheticDefault || hasDefaultOnly) {
|
|
51228
|
+
// per emit behavior, a synthetic default overrides a "real" .default member if `__esModule` is not present
|
|
51229
|
+
var resolved = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias);
|
|
51230
|
+
markSymbolOfAliasDeclarationIfTypeOnly(node, moduleSymbol, resolved, /*overwriteTypeOnly*/ false);
|
|
51231
|
+
return resolved;
|
|
51232
|
+
}
|
|
51233
|
+
markSymbolOfAliasDeclarationIfTypeOnly(node, exportDefaultSymbol, /*finalTarget*/ undefined, /*overwriteTypeOnly*/ false);
|
|
51234
|
+
return exportDefaultSymbol;
|
|
51235
|
+
}
|
|
51236
|
+
function getModuleSpecifierForImportOrExport(node) {
|
|
51237
|
+
switch (node.kind) {
|
|
51238
|
+
case 267 /* ImportClause */: return node.parent.moduleSpecifier;
|
|
51239
|
+
case 265 /* ImportEqualsDeclaration */: return ts.isExternalModuleReference(node.moduleReference) ? node.moduleReference.expression : undefined;
|
|
51240
|
+
case 268 /* NamespaceImport */: return node.parent.parent.moduleSpecifier;
|
|
51241
|
+
case 270 /* ImportSpecifier */: return node.parent.parent.parent.moduleSpecifier;
|
|
51242
|
+
case 275 /* ExportSpecifier */: return node.parent.parent.moduleSpecifier;
|
|
51243
|
+
default: return ts.Debug.assertNever(node);
|
|
51060
51244
|
}
|
|
51061
51245
|
}
|
|
51062
51246
|
function reportNonDefaultExport(moduleSymbol, node) {
|
|
@@ -51146,7 +51330,7 @@ var ts;
|
|
|
51146
51330
|
}
|
|
51147
51331
|
}
|
|
51148
51332
|
function getExternalModuleMember(node, specifier, dontResolveAlias) {
|
|
51149
|
-
var _a
|
|
51333
|
+
var _a;
|
|
51150
51334
|
if (dontResolveAlias === void 0) { dontResolveAlias = false; }
|
|
51151
51335
|
var moduleSpecifier = ts.getExternalModuleRequireArgument(node) || node.moduleSpecifier;
|
|
51152
51336
|
var moduleSymbol = resolveExternalModuleName(node, moduleSpecifier); // TODO: GH#18217
|
|
@@ -51182,29 +51366,33 @@ var ts;
|
|
|
51182
51366
|
combineValueAndTypeSymbols(symbolFromVariable, symbolFromModule) :
|
|
51183
51367
|
symbolFromModule || symbolFromVariable;
|
|
51184
51368
|
if (!symbol) {
|
|
51185
|
-
|
|
51186
|
-
var declarationName = ts.declarationNameToString(name);
|
|
51187
|
-
var suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol);
|
|
51188
|
-
if (suggestion !== undefined) {
|
|
51189
|
-
var suggestionName = symbolToString(suggestion);
|
|
51190
|
-
var diagnostic = error(name, ts.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName);
|
|
51191
|
-
if (suggestion.valueDeclaration) {
|
|
51192
|
-
ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(suggestion.valueDeclaration, ts.Diagnostics._0_is_declared_here, suggestionName));
|
|
51193
|
-
}
|
|
51194
|
-
}
|
|
51195
|
-
else {
|
|
51196
|
-
if ((_b = moduleSymbol.exports) === null || _b === void 0 ? void 0 : _b.has("default" /* Default */)) {
|
|
51197
|
-
error(name, ts.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, moduleName, declarationName);
|
|
51198
|
-
}
|
|
51199
|
-
else {
|
|
51200
|
-
reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName);
|
|
51201
|
-
}
|
|
51202
|
-
}
|
|
51369
|
+
errorNoModuleMemberSymbol(moduleSymbol, targetSymbol, node, name);
|
|
51203
51370
|
}
|
|
51204
51371
|
return symbol;
|
|
51205
51372
|
}
|
|
51206
51373
|
}
|
|
51207
51374
|
}
|
|
51375
|
+
function errorNoModuleMemberSymbol(moduleSymbol, targetSymbol, node, name) {
|
|
51376
|
+
var _a;
|
|
51377
|
+
var moduleName = getFullyQualifiedName(moduleSymbol, node);
|
|
51378
|
+
var declarationName = ts.declarationNameToString(name);
|
|
51379
|
+
var suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol);
|
|
51380
|
+
if (suggestion !== undefined) {
|
|
51381
|
+
var suggestionName = symbolToString(suggestion);
|
|
51382
|
+
var diagnostic = error(name, ts.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName);
|
|
51383
|
+
if (suggestion.valueDeclaration) {
|
|
51384
|
+
ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(suggestion.valueDeclaration, ts.Diagnostics._0_is_declared_here, suggestionName));
|
|
51385
|
+
}
|
|
51386
|
+
}
|
|
51387
|
+
else {
|
|
51388
|
+
if ((_a = moduleSymbol.exports) === null || _a === void 0 ? void 0 : _a.has("default" /* Default */)) {
|
|
51389
|
+
error(name, ts.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, moduleName, declarationName);
|
|
51390
|
+
}
|
|
51391
|
+
else {
|
|
51392
|
+
reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName);
|
|
51393
|
+
}
|
|
51394
|
+
}
|
|
51395
|
+
}
|
|
51208
51396
|
function reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName) {
|
|
51209
51397
|
var _a, _b;
|
|
51210
51398
|
var localSymbol = (_b = (_a = moduleSymbol.valueDeclaration) === null || _a === void 0 ? void 0 : _a.locals) === null || _b === void 0 ? void 0 : _b.get(name.escapedText);
|
|
@@ -51250,6 +51438,13 @@ var ts;
|
|
|
51250
51438
|
}
|
|
51251
51439
|
}
|
|
51252
51440
|
function getTargetOfImportSpecifier(node, dontResolveAlias) {
|
|
51441
|
+
if (ts.isImportSpecifier(node) && ts.idText(node.propertyName || node.name) === "default" /* Default */) {
|
|
51442
|
+
var specifier = getModuleSpecifierForImportOrExport(node);
|
|
51443
|
+
var moduleSymbol = specifier && resolveExternalModuleName(node, specifier);
|
|
51444
|
+
if (moduleSymbol) {
|
|
51445
|
+
return getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias);
|
|
51446
|
+
}
|
|
51447
|
+
}
|
|
51253
51448
|
var root = ts.isBindingElement(node) ? ts.getRootDeclaration(node) : node.parent.parent.parent;
|
|
51254
51449
|
var commonJSPropertyAccess = getCommonJSPropertyAccess(root);
|
|
51255
51450
|
var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);
|
|
@@ -51271,6 +51466,13 @@ var ts;
|
|
|
51271
51466
|
return resolved;
|
|
51272
51467
|
}
|
|
51273
51468
|
function getTargetOfExportSpecifier(node, meaning, dontResolveAlias) {
|
|
51469
|
+
if (ts.idText(node.propertyName || node.name) === "default" /* Default */) {
|
|
51470
|
+
var specifier = getModuleSpecifierForImportOrExport(node);
|
|
51471
|
+
var moduleSymbol = specifier && resolveExternalModuleName(node, specifier);
|
|
51472
|
+
if (moduleSymbol) {
|
|
51473
|
+
return getTargetofModuleDefault(moduleSymbol, node, !!dontResolveAlias);
|
|
51474
|
+
}
|
|
51475
|
+
}
|
|
51274
51476
|
var resolved = node.parent.parent.moduleSpecifier ?
|
|
51275
51477
|
getExternalModuleMember(node.parent.parent, node, dontResolveAlias) :
|
|
51276
51478
|
resolveEntityName(node.propertyName || node.name, meaning, /*ignoreErrors*/ false, dontResolveAlias);
|
|
@@ -55719,7 +55921,7 @@ var ts;
|
|
|
55719
55921
|
// This is an else/if as accessors and properties can't merge in TS, but might in JS
|
|
55720
55922
|
// If this happens, we assume the accessor takes priority, as it imposes more constraints
|
|
55721
55923
|
else if (p.flags & (4 /* Property */ | 3 /* Variable */ | 98304 /* Accessor */)) {
|
|
55722
|
-
return ts.setTextRange(createProperty(ts.factory.createModifiersFromModifierFlags((isReadonlySymbol(p) ? 64 /* Readonly */ : 0) | flag), name, p.flags & 16777216 /* Optional */ ? ts.factory.createToken(57 /* QuestionToken */) : undefined, isPrivate ? undefined : serializeTypeForDeclaration(context,
|
|
55924
|
+
return ts.setTextRange(createProperty(ts.factory.createModifiersFromModifierFlags((isReadonlySymbol(p) ? 64 /* Readonly */ : 0) | flag), name, p.flags & 16777216 /* Optional */ ? ts.factory.createToken(57 /* QuestionToken */) : undefined, isPrivate ? undefined : serializeTypeForDeclaration(context, getWriteTypeOfSymbol(p), p, enclosingDeclaration, includePrivateSymbol, bundled),
|
|
55723
55925
|
// TODO: https://github.com/microsoft/TypeScript/pull/32372#discussion_r328386357
|
|
55724
55926
|
// interface members can't have initializers, however class members _can_
|
|
55725
55927
|
/*initializer*/ undefined), ((_d = p.declarations) === null || _d === void 0 ? void 0 : _d.find(ts.or(ts.isPropertyDeclaration, ts.isVariableDeclaration))) || firstPropertyLikeDecl);
|
|
@@ -59632,7 +59834,7 @@ var ts;
|
|
|
59632
59834
|
return constraint && getBaseConstraint(constraint);
|
|
59633
59835
|
}
|
|
59634
59836
|
if (t.flags & 33554432 /* Substitution */) {
|
|
59635
|
-
return getBaseConstraint(t
|
|
59837
|
+
return getBaseConstraint(getSubstitutionIntersection(t));
|
|
59636
59838
|
}
|
|
59637
59839
|
return t;
|
|
59638
59840
|
}
|
|
@@ -61043,21 +61245,26 @@ var ts;
|
|
|
61043
61245
|
}
|
|
61044
61246
|
return links.resolvedJSDocType;
|
|
61045
61247
|
}
|
|
61046
|
-
function getSubstitutionType(baseType,
|
|
61047
|
-
if (
|
|
61248
|
+
function getSubstitutionType(baseType, constraint) {
|
|
61249
|
+
if (constraint.flags & 3 /* AnyOrUnknown */ || constraint === baseType ||
|
|
61250
|
+
baseType.flags & 33554432 /* Substitution */ && baseType.constraint === constraint ||
|
|
61251
|
+
!isGenericType(baseType) && !isGenericType(constraint)) {
|
|
61048
61252
|
return baseType;
|
|
61049
61253
|
}
|
|
61050
|
-
var id = getTypeId(baseType) + ">" + getTypeId(
|
|
61254
|
+
var id = getTypeId(baseType) + ">" + getTypeId(constraint);
|
|
61051
61255
|
var cached = substitutionTypes.get(id);
|
|
61052
61256
|
if (cached) {
|
|
61053
61257
|
return cached;
|
|
61054
61258
|
}
|
|
61055
61259
|
var result = createType(33554432 /* Substitution */);
|
|
61056
61260
|
result.baseType = baseType;
|
|
61057
|
-
result.
|
|
61261
|
+
result.constraint = constraint;
|
|
61058
61262
|
substitutionTypes.set(id, result);
|
|
61059
61263
|
return result;
|
|
61060
61264
|
}
|
|
61265
|
+
function getSubstitutionIntersection(substitutionType) {
|
|
61266
|
+
return getIntersectionType([substitutionType.constraint, substitutionType.baseType]);
|
|
61267
|
+
}
|
|
61061
61268
|
function isUnaryTupleTypeNode(node) {
|
|
61062
61269
|
return node.kind === 184 /* TupleType */ && node.elements.length === 1;
|
|
61063
61270
|
}
|
|
@@ -61100,7 +61307,7 @@ var ts;
|
|
|
61100
61307
|
}
|
|
61101
61308
|
node = parent;
|
|
61102
61309
|
}
|
|
61103
|
-
return constraints ? getSubstitutionType(type, getIntersectionType(
|
|
61310
|
+
return constraints ? getSubstitutionType(type, getIntersectionType(constraints)) : type;
|
|
61104
61311
|
}
|
|
61105
61312
|
function isJSDocTypeReference(node) {
|
|
61106
61313
|
return !!(node.flags & 8388608 /* JSDoc */) && (node.kind === 178 /* TypeReference */ || node.kind === 200 /* ImportType */);
|
|
@@ -62415,7 +62622,7 @@ var ts;
|
|
|
62415
62622
|
type.flags & 16777216 /* Conditional */ ? type.root.isDistributive && type.checkType === typeVariable :
|
|
62416
62623
|
type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */) ? ts.every(type.types, isDistributive) :
|
|
62417
62624
|
type.flags & 8388608 /* IndexedAccess */ ? isDistributive(type.objectType) && isDistributive(type.indexType) :
|
|
62418
|
-
type.flags & 33554432 /* Substitution */ ? isDistributive(type.
|
|
62625
|
+
type.flags & 33554432 /* Substitution */ ? isDistributive(type.baseType) && isDistributive(type.constraint) :
|
|
62419
62626
|
type.flags & 268435456 /* StringMapping */ ? isDistributive(type.type) :
|
|
62420
62627
|
false;
|
|
62421
62628
|
}
|
|
@@ -62898,7 +63105,7 @@ var ts;
|
|
|
62898
63105
|
if (type.flags & 33554432 /* Substitution */) {
|
|
62899
63106
|
if (!(type.objectFlags & 2097152 /* IsGenericTypeComputed */)) {
|
|
62900
63107
|
type.objectFlags |= 2097152 /* IsGenericTypeComputed */ |
|
|
62901
|
-
getGenericObjectFlags(type.
|
|
63108
|
+
getGenericObjectFlags(type.baseType) | getGenericObjectFlags(type.constraint);
|
|
62902
63109
|
}
|
|
62903
63110
|
return type.objectFlags & 12582912 /* IsGenericType */;
|
|
62904
63111
|
}
|
|
@@ -63981,8 +64188,8 @@ var ts;
|
|
|
63981
64188
|
return !mapper ? makeUnaryTypeMapper(source, target) : makeCompositeTypeMapper(5 /* Merged */, mapper, makeUnaryTypeMapper(source, target));
|
|
63982
64189
|
}
|
|
63983
64190
|
function getRestrictiveTypeParameter(tp) {
|
|
63984
|
-
return tp.constraint ===
|
|
63985
|
-
tp.restrictiveInstantiation.constraint =
|
|
64191
|
+
return tp.constraint === noConstraintType ? tp : tp.restrictiveInstantiation || (tp.restrictiveInstantiation = createTypeParameter(tp.symbol),
|
|
64192
|
+
tp.restrictiveInstantiation.constraint = noConstraintType,
|
|
63986
64193
|
tp.restrictiveInstantiation);
|
|
63987
64194
|
}
|
|
63988
64195
|
function cloneTypeParameter(typeParameter) {
|
|
@@ -64345,17 +64552,17 @@ var ts;
|
|
|
64345
64552
|
return getConditionalTypeInstantiation(type, combineTypeMappers(type.mapper, mapper), aliasSymbol, aliasTypeArguments);
|
|
64346
64553
|
}
|
|
64347
64554
|
if (flags & 33554432 /* Substitution */) {
|
|
64348
|
-
var
|
|
64349
|
-
|
|
64350
|
-
|
|
64351
|
-
|
|
64352
|
-
|
|
64353
|
-
|
|
64354
|
-
|
|
64355
|
-
|
|
64356
|
-
|
|
64357
|
-
|
|
64358
|
-
|
|
64555
|
+
var newBaseType = instantiateType(type.baseType, mapper);
|
|
64556
|
+
var newConstraint = instantiateType(type.constraint, mapper);
|
|
64557
|
+
// A substitution type originates in the true branch of a conditional type and can be resolved
|
|
64558
|
+
// to just the base type in the same cases as the conditional type resolves to its true branch
|
|
64559
|
+
// (because the base type is then known to satisfy the constraint).
|
|
64560
|
+
if (newConstraint.flags & 3 /* AnyOrUnknown */ ||
|
|
64561
|
+
!isGenericType(newBaseType) && !isGenericType(newConstraint) ||
|
|
64562
|
+
isTypeAssignableTo(getRestrictiveInstantiation(newBaseType), getRestrictiveInstantiation(newConstraint))) {
|
|
64563
|
+
return newBaseType;
|
|
64564
|
+
}
|
|
64565
|
+
return getSubstitutionType(newBaseType, newConstraint);
|
|
64359
64566
|
}
|
|
64360
64567
|
return type;
|
|
64361
64568
|
}
|
|
@@ -65308,7 +65515,7 @@ var ts;
|
|
|
65308
65515
|
var t = isFreshLiteralType(type) ? type.regularType :
|
|
65309
65516
|
ts.getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type :
|
|
65310
65517
|
type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) :
|
|
65311
|
-
type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : type
|
|
65518
|
+
type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) :
|
|
65312
65519
|
type.flags & 25165824 /* Simplifiable */ ? getSimplifiedType(type, writing) :
|
|
65313
65520
|
type;
|
|
65314
65521
|
if (t === type)
|
|
@@ -65665,38 +65872,6 @@ var ts;
|
|
|
65665
65872
|
}
|
|
65666
65873
|
return 0 /* False */;
|
|
65667
65874
|
}
|
|
65668
|
-
// Before normalization: Intersections applied to unions create an explosion of types when normalized -
|
|
65669
|
-
// handling those inner intersections can be very costly, so it can be beneficial to factor them out early.
|
|
65670
|
-
// If both the source and target are intersections, we can remove the common types from them before formal normalization,
|
|
65671
|
-
// and run a simplified comparison without those common members.
|
|
65672
|
-
if (originalSource.flags & originalTarget.flags & 2097152 /* Intersection */) {
|
|
65673
|
-
var combinedTypeSet_1 = new ts.Map();
|
|
65674
|
-
ts.forEach(originalSource.types, function (t) { return combinedTypeSet_1.set(getTypeId(t), 1); });
|
|
65675
|
-
var hasOverlap_1 = false;
|
|
65676
|
-
ts.forEach(originalTarget.types, function (t) {
|
|
65677
|
-
var id = getTypeId(t);
|
|
65678
|
-
if (combinedTypeSet_1.has(id)) {
|
|
65679
|
-
combinedTypeSet_1.set(getTypeId(t), 2);
|
|
65680
|
-
hasOverlap_1 = true;
|
|
65681
|
-
}
|
|
65682
|
-
});
|
|
65683
|
-
if (hasOverlap_1) {
|
|
65684
|
-
var filteredSource = ts.filter(originalSource.types, function (t) { return combinedTypeSet_1.get(getTypeId(t)) !== 2; });
|
|
65685
|
-
var filteredTarget = ts.filter(originalTarget.types, function (t) { return combinedTypeSet_1.get(getTypeId(t)) !== 2; });
|
|
65686
|
-
if (!ts.length(filteredTarget)) {
|
|
65687
|
-
return -1 /* True */; // Source has all parts of target
|
|
65688
|
-
}
|
|
65689
|
-
if (ts.length(filteredSource)) {
|
|
65690
|
-
var result_7;
|
|
65691
|
-
if (result_7 = isRelatedTo(getIntersectionType(filteredSource), getIntersectionType(filteredTarget), recursionFlags, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState)) {
|
|
65692
|
-
return result_7;
|
|
65693
|
-
}
|
|
65694
|
-
// In the false case, we may still be assignable at the structural level, rather than the algebraic level
|
|
65695
|
-
}
|
|
65696
|
-
// Even if every member of the source is in the target but the target still has members left, the source may still be assignable
|
|
65697
|
-
// to the target, either if some member of the original source is assignable to the other members of the target, or if there is structural assignability
|
|
65698
|
-
}
|
|
65699
|
-
}
|
|
65700
65875
|
// Normalize the source and target types: Turn fresh literal types into regular literal types,
|
|
65701
65876
|
// turn deferred type references into regular type references, simplify indexed access and
|
|
65702
65877
|
// conditional types, and resolve substitution types to either the substitution (on the source
|
|
@@ -65772,7 +65947,7 @@ var ts;
|
|
|
65772
65947
|
traceUnionsOrIntersectionsTooLarge(source, target);
|
|
65773
65948
|
var skipCaching = source.flags & 1048576 /* Union */ && source.types.length < 4 && !(target.flags & 1048576 /* Union */) ||
|
|
65774
65949
|
target.flags & 1048576 /* Union */ && target.types.length < 4 && !(source.flags & 469499904 /* StructuredOrInstantiable */);
|
|
65775
|
-
var
|
|
65950
|
+
var result_7 = skipCaching ?
|
|
65776
65951
|
unionOrIntersectionRelatedTo(source, target, reportErrors, intersectionState) :
|
|
65777
65952
|
recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags);
|
|
65778
65953
|
// For certain combinations involving intersections and optional, excess, or mismatched properties we need
|
|
@@ -65790,14 +65965,14 @@ var ts;
|
|
|
65790
65965
|
//
|
|
65791
65966
|
// We suppress recursive intersection property checks because they can generate lots of work when relating
|
|
65792
65967
|
// recursive intersections that are structurally similar but not exactly identical. See #37854.
|
|
65793
|
-
if (
|
|
65968
|
+
if (result_7 && !inPropertyCheck && (target.flags & 2097152 /* Intersection */ && (isPerformingExcessPropertyChecks || isPerformingCommonPropertyChecks) ||
|
|
65794
65969
|
isNonGenericObjectType(target) && !isArrayOrTupleType(target) && source.flags & 2097152 /* Intersection */ && getApparentType(source).flags & 3670016 /* StructuredType */ && !ts.some(source.types, function (t) { return !!(ts.getObjectFlags(t) & 262144 /* NonInferrableType */); }))) {
|
|
65795
65970
|
inPropertyCheck = true;
|
|
65796
|
-
|
|
65971
|
+
result_7 &= recursiveTypeRelatedTo(source, target, reportErrors, 4 /* PropertyCheck */, recursionFlags);
|
|
65797
65972
|
inPropertyCheck = false;
|
|
65798
65973
|
}
|
|
65799
|
-
if (
|
|
65800
|
-
return
|
|
65974
|
+
if (result_7) {
|
|
65975
|
+
return result_7;
|
|
65801
65976
|
}
|
|
65802
65977
|
}
|
|
65803
65978
|
if (reportErrors) {
|
|
@@ -66186,9 +66361,6 @@ var ts;
|
|
|
66186
66361
|
// equal and infinitely expanding. Fourth, if we have reached a depth of 100 nested comparisons, assume we have runaway recursion
|
|
66187
66362
|
// and issue an error. Otherwise, actually compare the structure of the two types.
|
|
66188
66363
|
function recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags) {
|
|
66189
|
-
if (relation.size > Math.pow(2, 20)) {
|
|
66190
|
-
debugger;
|
|
66191
|
-
}
|
|
66192
66364
|
if (overflow) {
|
|
66193
66365
|
return 0 /* False */;
|
|
66194
66366
|
}
|
|
@@ -66347,11 +66519,11 @@ var ts;
|
|
|
66347
66519
|
if (relation === identityRelation) {
|
|
66348
66520
|
// We've already checked that source.flags and target.flags are identical
|
|
66349
66521
|
if (sourceFlags & 3145728 /* UnionOrIntersection */) {
|
|
66350
|
-
var
|
|
66351
|
-
if (
|
|
66352
|
-
|
|
66522
|
+
var result_8 = eachTypeRelatedToSomeType(source, target);
|
|
66523
|
+
if (result_8) {
|
|
66524
|
+
result_8 &= eachTypeRelatedToSomeType(target, source);
|
|
66353
66525
|
}
|
|
66354
|
-
return
|
|
66526
|
+
return result_8;
|
|
66355
66527
|
}
|
|
66356
66528
|
if (sourceFlags & 4194304 /* Index */) {
|
|
66357
66529
|
return isRelatedTo(source.type, target.type, 3 /* Both */, /*reportErrors*/ false);
|
|
@@ -66377,7 +66549,11 @@ var ts;
|
|
|
66377
66549
|
}
|
|
66378
66550
|
}
|
|
66379
66551
|
if (sourceFlags & 33554432 /* Substitution */) {
|
|
66380
|
-
|
|
66552
|
+
if (result = isRelatedTo(source.baseType, target.baseType, 3 /* Both */, /*reportErrors*/ false)) {
|
|
66553
|
+
if (result &= isRelatedTo(source.constraint, target.constraint, 3 /* Both */, /*reportErrors*/ false)) {
|
|
66554
|
+
return result;
|
|
66555
|
+
}
|
|
66556
|
+
}
|
|
66381
66557
|
}
|
|
66382
66558
|
if (!(sourceFlags & 524288 /* Object */)) {
|
|
66383
66559
|
return 0 /* False */;
|
|
@@ -66840,9 +67016,9 @@ var ts;
|
|
|
66840
67016
|
if (sourceFlags & (524288 /* Object */ | 2097152 /* Intersection */) && targetFlags & 1048576 /* Union */) {
|
|
66841
67017
|
var objectOnlyTarget = extractTypesOfKind(target, 524288 /* Object */ | 2097152 /* Intersection */ | 33554432 /* Substitution */);
|
|
66842
67018
|
if (objectOnlyTarget.flags & 1048576 /* Union */) {
|
|
66843
|
-
var
|
|
66844
|
-
if (
|
|
66845
|
-
return
|
|
67019
|
+
var result_9 = typeRelatedToDiscriminatedType(source, objectOnlyTarget);
|
|
67020
|
+
if (result_9) {
|
|
67021
|
+
return result_9;
|
|
66846
67022
|
}
|
|
66847
67023
|
}
|
|
66848
67024
|
}
|
|
@@ -66902,13 +67078,13 @@ var ts;
|
|
|
66902
67078
|
var modifiersRelated = relation === comparableRelation || (relation === identityRelation ? getMappedTypeModifiers(source) === getMappedTypeModifiers(target) :
|
|
66903
67079
|
getCombinedMappedTypeOptionality(source) <= getCombinedMappedTypeOptionality(target));
|
|
66904
67080
|
if (modifiersRelated) {
|
|
66905
|
-
var
|
|
67081
|
+
var result_10;
|
|
66906
67082
|
var targetConstraint = getConstraintTypeFromMappedType(target);
|
|
66907
67083
|
var sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source), getCombinedMappedTypeOptionality(source) < 0 ? reportUnmeasurableMapper : reportUnreliableMapper);
|
|
66908
|
-
if (
|
|
67084
|
+
if (result_10 = isRelatedTo(targetConstraint, sourceConstraint, 3 /* Both */, reportErrors)) {
|
|
66909
67085
|
var mapper = createTypeMapper([getTypeParameterFromMappedType(source)], [getTypeParameterFromMappedType(target)]);
|
|
66910
67086
|
if (instantiateType(getNameTypeFromMappedType(source), mapper) === instantiateType(getNameTypeFromMappedType(target), mapper)) {
|
|
66911
|
-
return
|
|
67087
|
+
return result_10 & isRelatedTo(instantiateType(getTemplateTypeFromMappedType(source), mapper), getTemplateTypeFromMappedType(target), 3 /* Both */, reportErrors);
|
|
66912
67088
|
}
|
|
66913
67089
|
}
|
|
66914
67090
|
}
|
|
@@ -69381,7 +69557,7 @@ var ts;
|
|
|
69381
69557
|
}
|
|
69382
69558
|
else if (source.flags & 33554432 /* Substitution */) {
|
|
69383
69559
|
inferFromTypes(source.baseType, target);
|
|
69384
|
-
inferWithPriority(source
|
|
69560
|
+
inferWithPriority(getSubstitutionIntersection(source), target, 4 /* SubstituteSource */); // Make substitute inference at a lower priority
|
|
69385
69561
|
}
|
|
69386
69562
|
else if (target.flags & 16777216 /* Conditional */) {
|
|
69387
69563
|
invokeOnce(source, target, inferToConditionalType);
|
|
@@ -78259,10 +78435,10 @@ var ts;
|
|
|
78259
78435
|
hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0);
|
|
78260
78436
|
hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);
|
|
78261
78437
|
if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {
|
|
78262
|
-
var
|
|
78263
|
-
|
|
78264
|
-
|
|
78265
|
-
return
|
|
78438
|
+
var result_11 = createAnonymousType(undefined, resolved.members, callSignatures, constructSignatures, resolved.indexInfos);
|
|
78439
|
+
result_11.objectFlags |= 8388608 /* InstantiationExpressionType */;
|
|
78440
|
+
result_11.node = node;
|
|
78441
|
+
return result_11;
|
|
78266
78442
|
}
|
|
78267
78443
|
}
|
|
78268
78444
|
else if (type.flags & 58982400 /* InstantiableNonPrimitive */) {
|
|
@@ -82097,12 +82273,12 @@ var ts;
|
|
|
82097
82273
|
case 265 /* ImportEqualsDeclaration */:
|
|
82098
82274
|
case 268 /* NamespaceImport */:
|
|
82099
82275
|
case 267 /* ImportClause */:
|
|
82100
|
-
var
|
|
82276
|
+
var result_12 = 0 /* None */;
|
|
82101
82277
|
var target = resolveAlias(getSymbolOfNode(d));
|
|
82102
82278
|
ts.forEach(target.declarations, function (d) {
|
|
82103
|
-
|
|
82279
|
+
result_12 |= getDeclarationSpaces(d);
|
|
82104
82280
|
});
|
|
82105
|
-
return
|
|
82281
|
+
return result_12;
|
|
82106
82282
|
case 254 /* VariableDeclaration */:
|
|
82107
82283
|
case 203 /* BindingElement */:
|
|
82108
82284
|
case 256 /* FunctionDeclaration */:
|
|
@@ -88778,7 +88954,7 @@ var ts;
|
|
|
88778
88954
|
return checkGrammarDecorators(node) || checkGrammarModifiers(node);
|
|
88779
88955
|
}
|
|
88780
88956
|
function checkGrammarDecorators(node) {
|
|
88781
|
-
if (ts.canHaveIllegalDecorators(node) && ts.some(node.
|
|
88957
|
+
if (ts.canHaveIllegalDecorators(node) && ts.some(node.illegalDecorators)) {
|
|
88782
88958
|
return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_not_valid_here);
|
|
88783
88959
|
}
|
|
88784
88960
|
if (!ts.canHaveDecorators(node) || !ts.hasDecorators(node)) {
|
|
@@ -90431,6 +90607,7 @@ var ts;
|
|
|
90431
90607
|
})(ts || (ts = {}));
|
|
90432
90608
|
var ts;
|
|
90433
90609
|
(function (ts) {
|
|
90610
|
+
var _a;
|
|
90434
90611
|
function visitNode(node, visitor, test, lift) {
|
|
90435
90612
|
if (node === undefined || visitor === undefined) {
|
|
90436
90613
|
return node;
|
|
@@ -90645,12 +90822,10 @@ var ts;
|
|
|
90645
90822
|
return updated;
|
|
90646
90823
|
}
|
|
90647
90824
|
ts.visitFunctionBody = visitFunctionBody;
|
|
90648
|
-
|
|
90649
|
-
|
|
90650
|
-
*/
|
|
90651
|
-
function visitIterationBody(body, visitor, context) {
|
|
90825
|
+
function visitIterationBody(body, visitor, context, nodeVisitor) {
|
|
90826
|
+
if (nodeVisitor === void 0) { nodeVisitor = visitNode; }
|
|
90652
90827
|
context.startBlockScope();
|
|
90653
|
-
var updated =
|
|
90828
|
+
var updated = nodeVisitor(body, visitor, ts.isStatement, context.factory.liftToBlock);
|
|
90654
90829
|
var declarations = context.endBlockScope();
|
|
90655
90830
|
if (ts.some(declarations)) {
|
|
90656
90831
|
if (ts.isBlock(updated)) {
|
|
@@ -90669,456 +90844,443 @@ var ts;
|
|
|
90669
90844
|
if (node === undefined) {
|
|
90670
90845
|
return undefined;
|
|
90671
90846
|
}
|
|
90672
|
-
var
|
|
90673
|
-
|
|
90674
|
-
if ((kind > 0 /* FirstToken */ && kind <= 160 /* LastToken */) || kind === 192 /* ThisType */) {
|
|
90675
|
-
return node;
|
|
90676
|
-
}
|
|
90677
|
-
var factory = context.factory;
|
|
90678
|
-
switch (kind) {
|
|
90679
|
-
// Names
|
|
90680
|
-
case 79 /* Identifier */:
|
|
90681
|
-
ts.Debug.type(node);
|
|
90682
|
-
return factory.updateIdentifier(node, nodesVisitor(node.typeArguments, visitor, ts.isTypeNodeOrTypeParameterDeclaration));
|
|
90683
|
-
case 161 /* QualifiedName */:
|
|
90684
|
-
ts.Debug.type(node);
|
|
90685
|
-
return factory.updateQualifiedName(node, nodeVisitor(node.left, visitor, ts.isEntityName), nodeVisitor(node.right, visitor, ts.isIdentifier));
|
|
90686
|
-
case 162 /* ComputedPropertyName */:
|
|
90687
|
-
ts.Debug.type(node);
|
|
90688
|
-
return factory.updateComputedPropertyName(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90689
|
-
// Signature elements
|
|
90690
|
-
case 163 /* TypeParameter */:
|
|
90691
|
-
ts.Debug.type(node);
|
|
90692
|
-
return factory.updateTypeParameterDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.constraint, visitor, ts.isTypeNode), nodeVisitor(node.default, visitor, ts.isTypeNode));
|
|
90693
|
-
case 164 /* Parameter */:
|
|
90694
|
-
ts.Debug.type(node);
|
|
90695
|
-
return factory.updateParameterDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90696
|
-
case 165 /* Decorator */:
|
|
90697
|
-
ts.Debug.type(node);
|
|
90698
|
-
return factory.updateDecorator(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90699
|
-
// Type elements
|
|
90700
|
-
case 166 /* PropertySignature */:
|
|
90701
|
-
ts.Debug.type(node);
|
|
90702
|
-
return factory.updatePropertySignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isToken), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90703
|
-
case 167 /* PropertyDeclaration */:
|
|
90704
|
-
ts.Debug.type(node);
|
|
90705
|
-
return factory.updatePropertyDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName),
|
|
90706
|
-
// QuestionToken and ExclamationToken is uniqued in Property Declaration and the signature of 'updateProperty' is that too
|
|
90707
|
-
nodeVisitor(node.questionToken || node.exclamationToken, tokenVisitor, ts.isQuestionOrExclamationToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90708
|
-
case 168 /* MethodSignature */:
|
|
90709
|
-
ts.Debug.type(node);
|
|
90710
|
-
return factory.updateMethodSignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90711
|
-
case 169 /* MethodDeclaration */:
|
|
90712
|
-
ts.Debug.type(node);
|
|
90713
|
-
return factory.updateMethodDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90714
|
-
case 171 /* Constructor */:
|
|
90715
|
-
ts.Debug.type(node);
|
|
90716
|
-
return factory.updateConstructorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90717
|
-
case 172 /* GetAccessor */:
|
|
90718
|
-
ts.Debug.type(node);
|
|
90719
|
-
return factory.updateGetAccessorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90720
|
-
case 173 /* SetAccessor */:
|
|
90721
|
-
ts.Debug.type(node);
|
|
90722
|
-
return factory.updateSetAccessorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90723
|
-
case 170 /* ClassStaticBlockDeclaration */:
|
|
90724
|
-
ts.Debug.type(node);
|
|
90725
|
-
context.startLexicalEnvironment();
|
|
90726
|
-
context.suspendLexicalEnvironment();
|
|
90727
|
-
return factory.updateClassStaticBlockDeclaration(node, visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90728
|
-
case 174 /* CallSignature */:
|
|
90729
|
-
ts.Debug.type(node);
|
|
90730
|
-
return factory.updateCallSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90731
|
-
case 175 /* ConstructSignature */:
|
|
90732
|
-
ts.Debug.type(node);
|
|
90733
|
-
return factory.updateConstructSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90734
|
-
case 176 /* IndexSignature */:
|
|
90735
|
-
ts.Debug.type(node);
|
|
90736
|
-
return factory.updateIndexSignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90737
|
-
// Types
|
|
90738
|
-
case 177 /* TypePredicate */:
|
|
90739
|
-
ts.Debug.type(node);
|
|
90740
|
-
return factory.updateTypePredicateNode(node, nodeVisitor(node.assertsModifier, visitor, ts.isAssertsKeyword), nodeVisitor(node.parameterName, visitor, ts.isIdentifierOrThisTypeNode), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90741
|
-
case 178 /* TypeReference */:
|
|
90742
|
-
ts.Debug.type(node);
|
|
90743
|
-
return factory.updateTypeReferenceNode(node, nodeVisitor(node.typeName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90744
|
-
case 179 /* FunctionType */:
|
|
90745
|
-
ts.Debug.type(node);
|
|
90746
|
-
return factory.updateFunctionTypeNode(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90747
|
-
case 180 /* ConstructorType */:
|
|
90748
|
-
ts.Debug.type(node);
|
|
90749
|
-
return factory.updateConstructorTypeNode(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90750
|
-
case 181 /* TypeQuery */:
|
|
90751
|
-
ts.Debug.type(node);
|
|
90752
|
-
return factory.updateTypeQueryNode(node, nodeVisitor(node.exprName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90753
|
-
case 182 /* TypeLiteral */:
|
|
90754
|
-
ts.Debug.type(node);
|
|
90755
|
-
return factory.updateTypeLiteralNode(node, nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90756
|
-
case 183 /* ArrayType */:
|
|
90757
|
-
ts.Debug.type(node);
|
|
90758
|
-
return factory.updateArrayTypeNode(node, nodeVisitor(node.elementType, visitor, ts.isTypeNode));
|
|
90759
|
-
case 184 /* TupleType */:
|
|
90760
|
-
ts.Debug.type(node);
|
|
90761
|
-
return factory.updateTupleTypeNode(node, nodesVisitor(node.elements, visitor, ts.isTypeNode));
|
|
90762
|
-
case 185 /* OptionalType */:
|
|
90763
|
-
ts.Debug.type(node);
|
|
90764
|
-
return factory.updateOptionalTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90765
|
-
case 186 /* RestType */:
|
|
90766
|
-
ts.Debug.type(node);
|
|
90767
|
-
return factory.updateRestTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90768
|
-
case 187 /* UnionType */:
|
|
90769
|
-
ts.Debug.type(node);
|
|
90770
|
-
return factory.updateUnionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90771
|
-
case 188 /* IntersectionType */:
|
|
90772
|
-
ts.Debug.type(node);
|
|
90773
|
-
return factory.updateIntersectionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90774
|
-
case 189 /* ConditionalType */:
|
|
90775
|
-
ts.Debug.type(node);
|
|
90776
|
-
return factory.updateConditionalTypeNode(node, nodeVisitor(node.checkType, visitor, ts.isTypeNode), nodeVisitor(node.extendsType, visitor, ts.isTypeNode), nodeVisitor(node.trueType, visitor, ts.isTypeNode), nodeVisitor(node.falseType, visitor, ts.isTypeNode));
|
|
90777
|
-
case 190 /* InferType */:
|
|
90778
|
-
ts.Debug.type(node);
|
|
90779
|
-
return factory.updateInferTypeNode(node, nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration));
|
|
90780
|
-
case 200 /* ImportType */:
|
|
90781
|
-
ts.Debug.type(node);
|
|
90782
|
-
return factory.updateImportTypeNode(node, nodeVisitor(node.argument, visitor, ts.isTypeNode), nodeVisitor(node.assertions, visitor, ts.isNode), nodeVisitor(node.qualifier, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), node.isTypeOf);
|
|
90783
|
-
case 295 /* ImportTypeAssertionContainer */:
|
|
90784
|
-
ts.Debug.type(node);
|
|
90785
|
-
return factory.updateImportTypeAssertionContainer(node, nodeVisitor(node.assertClause, visitor, ts.isNode), node.multiLine);
|
|
90786
|
-
case 197 /* NamedTupleMember */:
|
|
90787
|
-
ts.Debug.type(node);
|
|
90788
|
-
return factory.updateNamedTupleMember(node, nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90789
|
-
case 191 /* ParenthesizedType */:
|
|
90790
|
-
ts.Debug.type(node);
|
|
90791
|
-
return factory.updateParenthesizedType(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90792
|
-
case 193 /* TypeOperator */:
|
|
90793
|
-
ts.Debug.type(node);
|
|
90794
|
-
return factory.updateTypeOperatorNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90795
|
-
case 194 /* IndexedAccessType */:
|
|
90796
|
-
ts.Debug.type(node);
|
|
90797
|
-
return factory.updateIndexedAccessTypeNode(node, nodeVisitor(node.objectType, visitor, ts.isTypeNode), nodeVisitor(node.indexType, visitor, ts.isTypeNode));
|
|
90798
|
-
case 195 /* MappedType */:
|
|
90799
|
-
ts.Debug.type(node);
|
|
90800
|
-
return factory.updateMappedTypeNode(node, nodeVisitor(node.readonlyToken, tokenVisitor, ts.isReadonlyKeywordOrPlusOrMinusToken), nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration), nodeVisitor(node.nameType, visitor, ts.isTypeNode), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionOrPlusOrMinusToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90801
|
-
case 196 /* LiteralType */:
|
|
90802
|
-
ts.Debug.type(node);
|
|
90803
|
-
return factory.updateLiteralTypeNode(node, nodeVisitor(node.literal, visitor, ts.isExpression));
|
|
90804
|
-
case 198 /* TemplateLiteralType */:
|
|
90805
|
-
ts.Debug.type(node);
|
|
90806
|
-
return factory.updateTemplateLiteralType(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateLiteralTypeSpan));
|
|
90807
|
-
case 199 /* TemplateLiteralTypeSpan */:
|
|
90808
|
-
ts.Debug.type(node);
|
|
90809
|
-
return factory.updateTemplateLiteralTypeSpan(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
90810
|
-
// Binding patterns
|
|
90811
|
-
case 201 /* ObjectBindingPattern */:
|
|
90812
|
-
ts.Debug.type(node);
|
|
90813
|
-
return factory.updateObjectBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isBindingElement));
|
|
90814
|
-
case 202 /* ArrayBindingPattern */:
|
|
90815
|
-
ts.Debug.type(node);
|
|
90816
|
-
return factory.updateArrayBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isArrayBindingElement));
|
|
90817
|
-
case 203 /* BindingElement */:
|
|
90818
|
-
ts.Debug.type(node);
|
|
90819
|
-
return factory.updateBindingElement(node, nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.propertyName, visitor, ts.isPropertyName), nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90820
|
-
// Expression
|
|
90821
|
-
case 204 /* ArrayLiteralExpression */:
|
|
90822
|
-
ts.Debug.type(node);
|
|
90823
|
-
return factory.updateArrayLiteralExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
90824
|
-
case 205 /* ObjectLiteralExpression */:
|
|
90825
|
-
ts.Debug.type(node);
|
|
90826
|
-
return factory.updateObjectLiteralExpression(node, nodesVisitor(node.properties, visitor, ts.isObjectLiteralElementLike));
|
|
90827
|
-
case 206 /* PropertyAccessExpression */:
|
|
90828
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90829
|
-
ts.Debug.type(node);
|
|
90830
|
-
return factory.updatePropertyAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.name, visitor, ts.isMemberName));
|
|
90831
|
-
}
|
|
90832
|
-
ts.Debug.type(node);
|
|
90833
|
-
return factory.updatePropertyAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.name, visitor, ts.isMemberName));
|
|
90834
|
-
case 207 /* ElementAccessExpression */:
|
|
90835
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90836
|
-
ts.Debug.type(node);
|
|
90837
|
-
return factory.updateElementAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));
|
|
90838
|
-
}
|
|
90839
|
-
ts.Debug.type(node);
|
|
90840
|
-
return factory.updateElementAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));
|
|
90841
|
-
case 208 /* CallExpression */:
|
|
90842
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90843
|
-
ts.Debug.type(node);
|
|
90844
|
-
return factory.updateCallChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90845
|
-
}
|
|
90846
|
-
ts.Debug.type(node);
|
|
90847
|
-
return factory.updateCallExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90848
|
-
case 209 /* NewExpression */:
|
|
90849
|
-
ts.Debug.type(node);
|
|
90850
|
-
return factory.updateNewExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90851
|
-
case 210 /* TaggedTemplateExpression */:
|
|
90852
|
-
ts.Debug.type(node);
|
|
90853
|
-
return factory.updateTaggedTemplateExpression(node, nodeVisitor(node.tag, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.template, visitor, ts.isTemplateLiteral));
|
|
90854
|
-
case 211 /* TypeAssertionExpression */:
|
|
90855
|
-
ts.Debug.type(node);
|
|
90856
|
-
return factory.updateTypeAssertion(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90857
|
-
case 212 /* ParenthesizedExpression */:
|
|
90858
|
-
ts.Debug.type(node);
|
|
90859
|
-
return factory.updateParenthesizedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90860
|
-
case 213 /* FunctionExpression */:
|
|
90861
|
-
ts.Debug.type(node);
|
|
90862
|
-
return factory.updateFunctionExpression(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90863
|
-
case 214 /* ArrowFunction */:
|
|
90864
|
-
ts.Debug.type(node);
|
|
90865
|
-
return factory.updateArrowFunction(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.equalsGreaterThanToken, tokenVisitor, ts.isEqualsGreaterThanToken), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90866
|
-
case 215 /* DeleteExpression */:
|
|
90867
|
-
ts.Debug.type(node);
|
|
90868
|
-
return factory.updateDeleteExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90869
|
-
case 216 /* TypeOfExpression */:
|
|
90870
|
-
ts.Debug.type(node);
|
|
90871
|
-
return factory.updateTypeOfExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90872
|
-
case 217 /* VoidExpression */:
|
|
90873
|
-
ts.Debug.type(node);
|
|
90874
|
-
return factory.updateVoidExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90875
|
-
case 218 /* AwaitExpression */:
|
|
90876
|
-
ts.Debug.type(node);
|
|
90877
|
-
return factory.updateAwaitExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90878
|
-
case 219 /* PrefixUnaryExpression */:
|
|
90879
|
-
ts.Debug.type(node);
|
|
90880
|
-
return factory.updatePrefixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
90881
|
-
case 220 /* PostfixUnaryExpression */:
|
|
90882
|
-
ts.Debug.type(node);
|
|
90883
|
-
return factory.updatePostfixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
90884
|
-
case 221 /* BinaryExpression */:
|
|
90885
|
-
ts.Debug.type(node);
|
|
90886
|
-
return factory.updateBinaryExpression(node, nodeVisitor(node.left, visitor, ts.isExpression), nodeVisitor(node.operatorToken, tokenVisitor, ts.isBinaryOperatorToken), nodeVisitor(node.right, visitor, ts.isExpression));
|
|
90887
|
-
case 222 /* ConditionalExpression */:
|
|
90888
|
-
ts.Debug.type(node);
|
|
90889
|
-
return factory.updateConditionalExpression(node, nodeVisitor(node.condition, visitor, ts.isExpression), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.whenTrue, visitor, ts.isExpression), nodeVisitor(node.colonToken, tokenVisitor, ts.isColonToken), nodeVisitor(node.whenFalse, visitor, ts.isExpression));
|
|
90890
|
-
case 223 /* TemplateExpression */:
|
|
90891
|
-
ts.Debug.type(node);
|
|
90892
|
-
return factory.updateTemplateExpression(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateSpan));
|
|
90893
|
-
case 224 /* YieldExpression */:
|
|
90894
|
-
ts.Debug.type(node);
|
|
90895
|
-
return factory.updateYieldExpression(node, nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90896
|
-
case 225 /* SpreadElement */:
|
|
90897
|
-
ts.Debug.type(node);
|
|
90898
|
-
return factory.updateSpreadElement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90899
|
-
case 226 /* ClassExpression */:
|
|
90900
|
-
ts.Debug.type(node);
|
|
90901
|
-
return factory.updateClassExpression(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isClassElement));
|
|
90902
|
-
case 228 /* ExpressionWithTypeArguments */:
|
|
90903
|
-
ts.Debug.type(node);
|
|
90904
|
-
return factory.updateExpressionWithTypeArguments(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90905
|
-
case 229 /* AsExpression */:
|
|
90906
|
-
ts.Debug.type(node);
|
|
90907
|
-
return factory.updateAsExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90908
|
-
case 230 /* NonNullExpression */:
|
|
90909
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90910
|
-
ts.Debug.type(node);
|
|
90911
|
-
return factory.updateNonNullChain(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90912
|
-
}
|
|
90913
|
-
ts.Debug.type(node);
|
|
90914
|
-
return factory.updateNonNullExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90915
|
-
case 231 /* MetaProperty */:
|
|
90916
|
-
ts.Debug.type(node);
|
|
90917
|
-
return factory.updateMetaProperty(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
90918
|
-
// Misc
|
|
90919
|
-
case 233 /* TemplateSpan */:
|
|
90920
|
-
ts.Debug.type(node);
|
|
90921
|
-
return factory.updateTemplateSpan(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
90922
|
-
// Element
|
|
90923
|
-
case 235 /* Block */:
|
|
90924
|
-
ts.Debug.type(node);
|
|
90925
|
-
return factory.updateBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
90926
|
-
case 237 /* VariableStatement */:
|
|
90927
|
-
ts.Debug.type(node);
|
|
90928
|
-
return factory.updateVariableStatement(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.declarationList, visitor, ts.isVariableDeclarationList));
|
|
90929
|
-
case 238 /* ExpressionStatement */:
|
|
90930
|
-
ts.Debug.type(node);
|
|
90931
|
-
return factory.updateExpressionStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90932
|
-
case 239 /* IfStatement */:
|
|
90933
|
-
ts.Debug.type(node);
|
|
90934
|
-
return factory.updateIfStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.thenStatement, visitor, ts.isStatement, factory.liftToBlock), nodeVisitor(node.elseStatement, visitor, ts.isStatement, factory.liftToBlock));
|
|
90935
|
-
case 240 /* DoStatement */:
|
|
90936
|
-
ts.Debug.type(node);
|
|
90937
|
-
return factory.updateDoStatement(node, visitIterationBody(node.statement, visitor, context), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90938
|
-
case 241 /* WhileStatement */:
|
|
90939
|
-
ts.Debug.type(node);
|
|
90940
|
-
return factory.updateWhileStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));
|
|
90941
|
-
case 242 /* ForStatement */:
|
|
90942
|
-
ts.Debug.type(node);
|
|
90943
|
-
return factory.updateForStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.condition, visitor, ts.isExpression), nodeVisitor(node.incrementor, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));
|
|
90944
|
-
case 243 /* ForInStatement */:
|
|
90945
|
-
ts.Debug.type(node);
|
|
90946
|
-
return factory.updateForInStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));
|
|
90947
|
-
case 244 /* ForOfStatement */:
|
|
90948
|
-
ts.Debug.type(node);
|
|
90949
|
-
return factory.updateForOfStatement(node, nodeVisitor(node.awaitModifier, tokenVisitor, ts.isAwaitKeyword), nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));
|
|
90950
|
-
case 245 /* ContinueStatement */:
|
|
90951
|
-
ts.Debug.type(node);
|
|
90952
|
-
return factory.updateContinueStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
90953
|
-
case 246 /* BreakStatement */:
|
|
90954
|
-
ts.Debug.type(node);
|
|
90955
|
-
return factory.updateBreakStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
90956
|
-
case 247 /* ReturnStatement */:
|
|
90957
|
-
ts.Debug.type(node);
|
|
90958
|
-
return factory.updateReturnStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90959
|
-
case 248 /* WithStatement */:
|
|
90960
|
-
ts.Debug.type(node);
|
|
90961
|
-
return factory.updateWithStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.statement, visitor, ts.isStatement, factory.liftToBlock));
|
|
90962
|
-
case 249 /* SwitchStatement */:
|
|
90963
|
-
ts.Debug.type(node);
|
|
90964
|
-
return factory.updateSwitchStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.caseBlock, visitor, ts.isCaseBlock));
|
|
90965
|
-
case 250 /* LabeledStatement */:
|
|
90966
|
-
ts.Debug.type(node);
|
|
90967
|
-
return factory.updateLabeledStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier), nodeVisitor(node.statement, visitor, ts.isStatement, factory.liftToBlock));
|
|
90968
|
-
case 251 /* ThrowStatement */:
|
|
90969
|
-
ts.Debug.type(node);
|
|
90970
|
-
return factory.updateThrowStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90971
|
-
case 252 /* TryStatement */:
|
|
90972
|
-
ts.Debug.type(node);
|
|
90973
|
-
return factory.updateTryStatement(node, nodeVisitor(node.tryBlock, visitor, ts.isBlock), nodeVisitor(node.catchClause, visitor, ts.isCatchClause), nodeVisitor(node.finallyBlock, visitor, ts.isBlock));
|
|
90974
|
-
case 254 /* VariableDeclaration */:
|
|
90975
|
-
ts.Debug.type(node);
|
|
90976
|
-
return factory.updateVariableDeclaration(node, nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.exclamationToken, tokenVisitor, ts.isExclamationToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90977
|
-
case 255 /* VariableDeclarationList */:
|
|
90978
|
-
ts.Debug.type(node);
|
|
90979
|
-
return factory.updateVariableDeclarationList(node, nodesVisitor(node.declarations, visitor, ts.isVariableDeclaration));
|
|
90980
|
-
case 256 /* FunctionDeclaration */:
|
|
90981
|
-
ts.Debug.type(node);
|
|
90982
|
-
return factory.updateFunctionDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90983
|
-
case 257 /* ClassDeclaration */:
|
|
90984
|
-
ts.Debug.type(node);
|
|
90985
|
-
return factory.updateClassDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isClassElement));
|
|
90986
|
-
case 258 /* InterfaceDeclaration */:
|
|
90987
|
-
ts.Debug.type(node);
|
|
90988
|
-
return factory.updateInterfaceDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90989
|
-
case 259 /* TypeAliasDeclaration */:
|
|
90990
|
-
ts.Debug.type(node);
|
|
90991
|
-
return factory.updateTypeAliasDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90992
|
-
case 260 /* EnumDeclaration */:
|
|
90993
|
-
ts.Debug.type(node);
|
|
90994
|
-
return factory.updateEnumDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.members, visitor, ts.isEnumMember));
|
|
90995
|
-
case 261 /* ModuleDeclaration */:
|
|
90996
|
-
ts.Debug.type(node);
|
|
90997
|
-
return factory.updateModuleDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isModuleName), nodeVisitor(node.body, visitor, ts.isModuleBody));
|
|
90998
|
-
case 262 /* ModuleBlock */:
|
|
90999
|
-
ts.Debug.type(node);
|
|
91000
|
-
return factory.updateModuleBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91001
|
-
case 263 /* CaseBlock */:
|
|
91002
|
-
ts.Debug.type(node);
|
|
91003
|
-
return factory.updateCaseBlock(node, nodesVisitor(node.clauses, visitor, ts.isCaseOrDefaultClause));
|
|
91004
|
-
case 264 /* NamespaceExportDeclaration */:
|
|
91005
|
-
ts.Debug.type(node);
|
|
91006
|
-
return factory.updateNamespaceExportDeclaration(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91007
|
-
case 265 /* ImportEqualsDeclaration */:
|
|
91008
|
-
ts.Debug.type(node);
|
|
91009
|
-
return factory.updateImportEqualsDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.moduleReference, visitor, ts.isModuleReference));
|
|
91010
|
-
case 266 /* ImportDeclaration */:
|
|
91011
|
-
ts.Debug.type(node);
|
|
91012
|
-
return factory.updateImportDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.importClause, visitor, ts.isImportClause), nodeVisitor(node.moduleSpecifier, visitor, ts.isExpression), nodeVisitor(node.assertClause, visitor, ts.isAssertClause));
|
|
91013
|
-
case 293 /* AssertClause */:
|
|
91014
|
-
ts.Debug.type(node);
|
|
91015
|
-
return factory.updateAssertClause(node, nodesVisitor(node.elements, visitor, ts.isAssertEntry), node.multiLine);
|
|
91016
|
-
case 294 /* AssertEntry */:
|
|
91017
|
-
ts.Debug.type(node);
|
|
91018
|
-
return factory.updateAssertEntry(node, nodeVisitor(node.name, visitor, ts.isAssertionKey), nodeVisitor(node.value, visitor, ts.isExpressionNode));
|
|
91019
|
-
case 267 /* ImportClause */:
|
|
91020
|
-
ts.Debug.type(node);
|
|
91021
|
-
return factory.updateImportClause(node, node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.namedBindings, visitor, ts.isNamedImportBindings));
|
|
91022
|
-
case 268 /* NamespaceImport */:
|
|
91023
|
-
ts.Debug.type(node);
|
|
91024
|
-
return factory.updateNamespaceImport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91025
|
-
case 274 /* NamespaceExport */:
|
|
91026
|
-
ts.Debug.type(node);
|
|
91027
|
-
return factory.updateNamespaceExport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91028
|
-
case 269 /* NamedImports */:
|
|
91029
|
-
ts.Debug.type(node);
|
|
91030
|
-
return factory.updateNamedImports(node, nodesVisitor(node.elements, visitor, ts.isImportSpecifier));
|
|
91031
|
-
case 270 /* ImportSpecifier */:
|
|
91032
|
-
ts.Debug.type(node);
|
|
91033
|
-
return factory.updateImportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91034
|
-
case 271 /* ExportAssignment */:
|
|
91035
|
-
ts.Debug.type(node);
|
|
91036
|
-
return factory.updateExportAssignment(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91037
|
-
case 272 /* ExportDeclaration */:
|
|
91038
|
-
ts.Debug.type(node);
|
|
91039
|
-
return factory.updateExportDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), node.isTypeOnly, nodeVisitor(node.exportClause, visitor, ts.isNamedExportBindings), nodeVisitor(node.moduleSpecifier, visitor, ts.isExpression), nodeVisitor(node.assertClause, visitor, ts.isAssertClause));
|
|
91040
|
-
case 273 /* NamedExports */:
|
|
91041
|
-
ts.Debug.type(node);
|
|
91042
|
-
return factory.updateNamedExports(node, nodesVisitor(node.elements, visitor, ts.isExportSpecifier));
|
|
91043
|
-
case 275 /* ExportSpecifier */:
|
|
91044
|
-
ts.Debug.type(node);
|
|
91045
|
-
return factory.updateExportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91046
|
-
// Module references
|
|
91047
|
-
case 277 /* ExternalModuleReference */:
|
|
91048
|
-
ts.Debug.type(node);
|
|
91049
|
-
return factory.updateExternalModuleReference(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91050
|
-
// JSX
|
|
91051
|
-
case 278 /* JsxElement */:
|
|
91052
|
-
ts.Debug.type(node);
|
|
91053
|
-
return factory.updateJsxElement(node, nodeVisitor(node.openingElement, visitor, ts.isJsxOpeningElement), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingElement, visitor, ts.isJsxClosingElement));
|
|
91054
|
-
case 279 /* JsxSelfClosingElement */:
|
|
91055
|
-
ts.Debug.type(node);
|
|
91056
|
-
return factory.updateJsxSelfClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91057
|
-
case 280 /* JsxOpeningElement */:
|
|
91058
|
-
ts.Debug.type(node);
|
|
91059
|
-
return factory.updateJsxOpeningElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91060
|
-
case 281 /* JsxClosingElement */:
|
|
91061
|
-
ts.Debug.type(node);
|
|
91062
|
-
return factory.updateJsxClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression));
|
|
91063
|
-
case 282 /* JsxFragment */:
|
|
91064
|
-
ts.Debug.type(node);
|
|
91065
|
-
return factory.updateJsxFragment(node, nodeVisitor(node.openingFragment, visitor, ts.isJsxOpeningFragment), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingFragment, visitor, ts.isJsxClosingFragment));
|
|
91066
|
-
case 285 /* JsxAttribute */:
|
|
91067
|
-
ts.Debug.type(node);
|
|
91068
|
-
return factory.updateJsxAttribute(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.initializer, visitor, ts.isStringLiteralOrJsxExpression));
|
|
91069
|
-
case 286 /* JsxAttributes */:
|
|
91070
|
-
ts.Debug.type(node);
|
|
91071
|
-
return factory.updateJsxAttributes(node, nodesVisitor(node.properties, visitor, ts.isJsxAttributeLike));
|
|
91072
|
-
case 287 /* JsxSpreadAttribute */:
|
|
91073
|
-
ts.Debug.type(node);
|
|
91074
|
-
return factory.updateJsxSpreadAttribute(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91075
|
-
case 288 /* JsxExpression */:
|
|
91076
|
-
ts.Debug.type(node);
|
|
91077
|
-
return factory.updateJsxExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91078
|
-
// Clauses
|
|
91079
|
-
case 289 /* CaseClause */:
|
|
91080
|
-
ts.Debug.type(node);
|
|
91081
|
-
return factory.updateCaseClause(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91082
|
-
case 290 /* DefaultClause */:
|
|
91083
|
-
ts.Debug.type(node);
|
|
91084
|
-
return factory.updateDefaultClause(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91085
|
-
case 291 /* HeritageClause */:
|
|
91086
|
-
ts.Debug.type(node);
|
|
91087
|
-
return factory.updateHeritageClause(node, nodesVisitor(node.types, visitor, ts.isExpressionWithTypeArguments));
|
|
91088
|
-
case 292 /* CatchClause */:
|
|
91089
|
-
ts.Debug.type(node);
|
|
91090
|
-
return factory.updateCatchClause(node, nodeVisitor(node.variableDeclaration, visitor, ts.isVariableDeclaration), nodeVisitor(node.block, visitor, ts.isBlock));
|
|
91091
|
-
// Property assignments
|
|
91092
|
-
case 296 /* PropertyAssignment */:
|
|
91093
|
-
ts.Debug.type(node);
|
|
91094
|
-
return factory.updatePropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91095
|
-
case 297 /* ShorthandPropertyAssignment */:
|
|
91096
|
-
ts.Debug.type(node);
|
|
91097
|
-
return factory.updateShorthandPropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.objectAssignmentInitializer, visitor, ts.isExpression));
|
|
91098
|
-
case 298 /* SpreadAssignment */:
|
|
91099
|
-
ts.Debug.type(node);
|
|
91100
|
-
return factory.updateSpreadAssignment(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91101
|
-
// Enum
|
|
91102
|
-
case 299 /* EnumMember */:
|
|
91103
|
-
ts.Debug.type(node);
|
|
91104
|
-
return factory.updateEnumMember(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91105
|
-
// Top-level nodes
|
|
91106
|
-
case 305 /* SourceFile */:
|
|
91107
|
-
ts.Debug.type(node);
|
|
91108
|
-
return factory.updateSourceFile(node, visitLexicalEnvironment(node.statements, visitor, context));
|
|
91109
|
-
// Transformation nodes
|
|
91110
|
-
case 350 /* PartiallyEmittedExpression */:
|
|
91111
|
-
ts.Debug.type(node);
|
|
91112
|
-
return factory.updatePartiallyEmittedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91113
|
-
case 351 /* CommaListExpression */:
|
|
91114
|
-
ts.Debug.type(node);
|
|
91115
|
-
return factory.updateCommaListExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
91116
|
-
default:
|
|
91117
|
-
// No need to visit nodes with no children.
|
|
91118
|
-
return node;
|
|
91119
|
-
}
|
|
90847
|
+
var fn = visitEachChildTable[node.kind];
|
|
90848
|
+
return fn === undefined ? node : fn(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor);
|
|
91120
90849
|
}
|
|
91121
90850
|
ts.visitEachChild = visitEachChild;
|
|
90851
|
+
// NOTE: Before you can add a new method to `visitEachChildTable`, you must first ensure the `Node` subtype you
|
|
90852
|
+
// wish to add is defined in the `HasChildren` union in types.ts.
|
|
90853
|
+
var visitEachChildTable = (_a = {},
|
|
90854
|
+
_a[79 /* Identifier */] = function visitEachChildOfIdentifier(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90855
|
+
return context.factory.updateIdentifier(node, nodesVisitor(node.typeArguments, visitor, ts.isTypeNodeOrTypeParameterDeclaration));
|
|
90856
|
+
},
|
|
90857
|
+
_a[161 /* QualifiedName */] = function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90858
|
+
return context.factory.updateQualifiedName(node, nodeVisitor(node.left, visitor, ts.isEntityName), nodeVisitor(node.right, visitor, ts.isIdentifier));
|
|
90859
|
+
},
|
|
90860
|
+
_a[162 /* ComputedPropertyName */] = function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90861
|
+
return context.factory.updateComputedPropertyName(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90862
|
+
},
|
|
90863
|
+
// Signature elements
|
|
90864
|
+
_a[163 /* TypeParameter */] = function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90865
|
+
return context.factory.updateTypeParameterDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.constraint, visitor, ts.isTypeNode), nodeVisitor(node.default, visitor, ts.isTypeNode));
|
|
90866
|
+
},
|
|
90867
|
+
_a[164 /* Parameter */] = function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90868
|
+
return context.factory.updateParameterDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90869
|
+
},
|
|
90870
|
+
_a[165 /* Decorator */] = function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90871
|
+
return context.factory.updateDecorator(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90872
|
+
},
|
|
90873
|
+
// Type elements
|
|
90874
|
+
_a[166 /* PropertySignature */] = function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90875
|
+
return context.factory.updatePropertySignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isToken), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90876
|
+
},
|
|
90877
|
+
_a[167 /* PropertyDeclaration */] = function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90878
|
+
var _a;
|
|
90879
|
+
return context.factory.updatePropertyDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName),
|
|
90880
|
+
// QuestionToken and ExclamationToken are mutually exclusive in PropertyDeclaration
|
|
90881
|
+
nodeVisitor((_a = node.questionToken) !== null && _a !== void 0 ? _a : node.exclamationToken, tokenVisitor, ts.isQuestionOrExclamationToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90882
|
+
},
|
|
90883
|
+
_a[168 /* MethodSignature */] = function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90884
|
+
return context.factory.updateMethodSignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90885
|
+
},
|
|
90886
|
+
_a[169 /* MethodDeclaration */] = function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90887
|
+
return context.factory.updateMethodDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90888
|
+
},
|
|
90889
|
+
_a[171 /* Constructor */] = function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90890
|
+
return context.factory.updateConstructorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90891
|
+
},
|
|
90892
|
+
_a[172 /* GetAccessor */] = function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90893
|
+
return context.factory.updateGetAccessorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90894
|
+
},
|
|
90895
|
+
_a[173 /* SetAccessor */] = function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90896
|
+
return context.factory.updateSetAccessorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90897
|
+
},
|
|
90898
|
+
_a[170 /* ClassStaticBlockDeclaration */] = function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90899
|
+
context.startLexicalEnvironment();
|
|
90900
|
+
context.suspendLexicalEnvironment();
|
|
90901
|
+
return context.factory.updateClassStaticBlockDeclaration(node, visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90902
|
+
},
|
|
90903
|
+
_a[174 /* CallSignature */] = function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90904
|
+
return context.factory.updateCallSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90905
|
+
},
|
|
90906
|
+
_a[175 /* ConstructSignature */] = function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90907
|
+
return context.factory.updateConstructSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90908
|
+
},
|
|
90909
|
+
_a[176 /* IndexSignature */] = function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90910
|
+
return context.factory.updateIndexSignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90911
|
+
},
|
|
90912
|
+
// Types
|
|
90913
|
+
_a[177 /* TypePredicate */] = function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90914
|
+
return context.factory.updateTypePredicateNode(node, nodeVisitor(node.assertsModifier, visitor, ts.isAssertsKeyword), nodeVisitor(node.parameterName, visitor, ts.isIdentifierOrThisTypeNode), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90915
|
+
},
|
|
90916
|
+
_a[178 /* TypeReference */] = function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90917
|
+
return context.factory.updateTypeReferenceNode(node, nodeVisitor(node.typeName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90918
|
+
},
|
|
90919
|
+
_a[179 /* FunctionType */] = function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90920
|
+
return context.factory.updateFunctionTypeNode(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90921
|
+
},
|
|
90922
|
+
_a[180 /* ConstructorType */] = function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90923
|
+
return context.factory.updateConstructorTypeNode(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90924
|
+
},
|
|
90925
|
+
_a[181 /* TypeQuery */] = function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90926
|
+
return context.factory.updateTypeQueryNode(node, nodeVisitor(node.exprName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90927
|
+
},
|
|
90928
|
+
_a[182 /* TypeLiteral */] = function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90929
|
+
return context.factory.updateTypeLiteralNode(node, nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90930
|
+
},
|
|
90931
|
+
_a[183 /* ArrayType */] = function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90932
|
+
return context.factory.updateArrayTypeNode(node, nodeVisitor(node.elementType, visitor, ts.isTypeNode));
|
|
90933
|
+
},
|
|
90934
|
+
_a[184 /* TupleType */] = function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90935
|
+
return context.factory.updateTupleTypeNode(node, nodesVisitor(node.elements, visitor, ts.isTypeNode));
|
|
90936
|
+
},
|
|
90937
|
+
_a[185 /* OptionalType */] = function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90938
|
+
return context.factory.updateOptionalTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90939
|
+
},
|
|
90940
|
+
_a[186 /* RestType */] = function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90941
|
+
return context.factory.updateRestTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90942
|
+
},
|
|
90943
|
+
_a[187 /* UnionType */] = function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90944
|
+
return context.factory.updateUnionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90945
|
+
},
|
|
90946
|
+
_a[188 /* IntersectionType */] = function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90947
|
+
return context.factory.updateIntersectionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90948
|
+
},
|
|
90949
|
+
_a[189 /* ConditionalType */] = function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90950
|
+
return context.factory.updateConditionalTypeNode(node, nodeVisitor(node.checkType, visitor, ts.isTypeNode), nodeVisitor(node.extendsType, visitor, ts.isTypeNode), nodeVisitor(node.trueType, visitor, ts.isTypeNode), nodeVisitor(node.falseType, visitor, ts.isTypeNode));
|
|
90951
|
+
},
|
|
90952
|
+
_a[190 /* InferType */] = function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90953
|
+
return context.factory.updateInferTypeNode(node, nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration));
|
|
90954
|
+
},
|
|
90955
|
+
_a[200 /* ImportType */] = function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90956
|
+
return context.factory.updateImportTypeNode(node, nodeVisitor(node.argument, visitor, ts.isTypeNode), nodeVisitor(node.assertions, visitor, ts.isImportTypeAssertionContainer), nodeVisitor(node.qualifier, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), node.isTypeOf);
|
|
90957
|
+
},
|
|
90958
|
+
_a[295 /* ImportTypeAssertionContainer */] = function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90959
|
+
return context.factory.updateImportTypeAssertionContainer(node, nodeVisitor(node.assertClause, visitor, ts.isAssertClause), node.multiLine);
|
|
90960
|
+
},
|
|
90961
|
+
_a[197 /* NamedTupleMember */] = function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90962
|
+
return context.factory.updateNamedTupleMember(node, nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90963
|
+
},
|
|
90964
|
+
_a[191 /* ParenthesizedType */] = function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90965
|
+
return context.factory.updateParenthesizedType(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90966
|
+
},
|
|
90967
|
+
_a[193 /* TypeOperator */] = function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90968
|
+
return context.factory.updateTypeOperatorNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90969
|
+
},
|
|
90970
|
+
_a[194 /* IndexedAccessType */] = function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90971
|
+
return context.factory.updateIndexedAccessTypeNode(node, nodeVisitor(node.objectType, visitor, ts.isTypeNode), nodeVisitor(node.indexType, visitor, ts.isTypeNode));
|
|
90972
|
+
},
|
|
90973
|
+
_a[195 /* MappedType */] = function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90974
|
+
return context.factory.updateMappedTypeNode(node, nodeVisitor(node.readonlyToken, tokenVisitor, ts.isReadonlyKeywordOrPlusOrMinusToken), nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration), nodeVisitor(node.nameType, visitor, ts.isTypeNode), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionOrPlusOrMinusToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90975
|
+
},
|
|
90976
|
+
_a[196 /* LiteralType */] = function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90977
|
+
return context.factory.updateLiteralTypeNode(node, nodeVisitor(node.literal, visitor, ts.isExpression));
|
|
90978
|
+
},
|
|
90979
|
+
_a[198 /* TemplateLiteralType */] = function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90980
|
+
return context.factory.updateTemplateLiteralType(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateLiteralTypeSpan));
|
|
90981
|
+
},
|
|
90982
|
+
_a[199 /* TemplateLiteralTypeSpan */] = function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90983
|
+
return context.factory.updateTemplateLiteralTypeSpan(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
90984
|
+
},
|
|
90985
|
+
// Binding patterns
|
|
90986
|
+
_a[201 /* ObjectBindingPattern */] = function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90987
|
+
return context.factory.updateObjectBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isBindingElement));
|
|
90988
|
+
},
|
|
90989
|
+
_a[202 /* ArrayBindingPattern */] = function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90990
|
+
return context.factory.updateArrayBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isArrayBindingElement));
|
|
90991
|
+
},
|
|
90992
|
+
_a[203 /* BindingElement */] = function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90993
|
+
return context.factory.updateBindingElement(node, nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.propertyName, visitor, ts.isPropertyName), nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90994
|
+
},
|
|
90995
|
+
// Expression
|
|
90996
|
+
_a[204 /* ArrayLiteralExpression */] = function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90997
|
+
return context.factory.updateArrayLiteralExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
90998
|
+
},
|
|
90999
|
+
_a[205 /* ObjectLiteralExpression */] = function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91000
|
+
return context.factory.updateObjectLiteralExpression(node, nodesVisitor(node.properties, visitor, ts.isObjectLiteralElementLike));
|
|
91001
|
+
},
|
|
91002
|
+
_a[206 /* PropertyAccessExpression */] = function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91003
|
+
return ts.isPropertyAccessChain(node) ?
|
|
91004
|
+
context.factory.updatePropertyAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.name, visitor, ts.isMemberName)) :
|
|
91005
|
+
context.factory.updatePropertyAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.name, visitor, ts.isMemberName));
|
|
91006
|
+
},
|
|
91007
|
+
_a[207 /* ElementAccessExpression */] = function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91008
|
+
return ts.isElementAccessChain(node) ?
|
|
91009
|
+
context.factory.updateElementAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.argumentExpression, visitor, ts.isExpression)) :
|
|
91010
|
+
context.factory.updateElementAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));
|
|
91011
|
+
},
|
|
91012
|
+
_a[208 /* CallExpression */] = function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91013
|
+
return ts.isCallChain(node) ?
|
|
91014
|
+
context.factory.updateCallChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression)) :
|
|
91015
|
+
context.factory.updateCallExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
91016
|
+
},
|
|
91017
|
+
_a[209 /* NewExpression */] = function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91018
|
+
return context.factory.updateNewExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
91019
|
+
},
|
|
91020
|
+
_a[210 /* TaggedTemplateExpression */] = function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91021
|
+
return context.factory.updateTaggedTemplateExpression(node, nodeVisitor(node.tag, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.template, visitor, ts.isTemplateLiteral));
|
|
91022
|
+
},
|
|
91023
|
+
_a[211 /* TypeAssertionExpression */] = function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91024
|
+
return context.factory.updateTypeAssertion(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91025
|
+
},
|
|
91026
|
+
_a[212 /* ParenthesizedExpression */] = function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91027
|
+
return context.factory.updateParenthesizedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91028
|
+
},
|
|
91029
|
+
_a[213 /* FunctionExpression */] = function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91030
|
+
return context.factory.updateFunctionExpression(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
91031
|
+
},
|
|
91032
|
+
_a[214 /* ArrowFunction */] = function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91033
|
+
return context.factory.updateArrowFunction(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.equalsGreaterThanToken, tokenVisitor, ts.isEqualsGreaterThanToken), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
91034
|
+
},
|
|
91035
|
+
_a[215 /* DeleteExpression */] = function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91036
|
+
return context.factory.updateDeleteExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91037
|
+
},
|
|
91038
|
+
_a[216 /* TypeOfExpression */] = function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91039
|
+
return context.factory.updateTypeOfExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91040
|
+
},
|
|
91041
|
+
_a[217 /* VoidExpression */] = function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91042
|
+
return context.factory.updateVoidExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91043
|
+
},
|
|
91044
|
+
_a[218 /* AwaitExpression */] = function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91045
|
+
return context.factory.updateAwaitExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91046
|
+
},
|
|
91047
|
+
_a[219 /* PrefixUnaryExpression */] = function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91048
|
+
return context.factory.updatePrefixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
91049
|
+
},
|
|
91050
|
+
_a[220 /* PostfixUnaryExpression */] = function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91051
|
+
return context.factory.updatePostfixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
91052
|
+
},
|
|
91053
|
+
_a[221 /* BinaryExpression */] = function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91054
|
+
return context.factory.updateBinaryExpression(node, nodeVisitor(node.left, visitor, ts.isExpression), nodeVisitor(node.operatorToken, tokenVisitor, ts.isBinaryOperatorToken), nodeVisitor(node.right, visitor, ts.isExpression));
|
|
91055
|
+
},
|
|
91056
|
+
_a[222 /* ConditionalExpression */] = function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91057
|
+
return context.factory.updateConditionalExpression(node, nodeVisitor(node.condition, visitor, ts.isExpression), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.whenTrue, visitor, ts.isExpression), nodeVisitor(node.colonToken, tokenVisitor, ts.isColonToken), nodeVisitor(node.whenFalse, visitor, ts.isExpression));
|
|
91058
|
+
},
|
|
91059
|
+
_a[223 /* TemplateExpression */] = function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91060
|
+
return context.factory.updateTemplateExpression(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateSpan));
|
|
91061
|
+
},
|
|
91062
|
+
_a[224 /* YieldExpression */] = function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91063
|
+
return context.factory.updateYieldExpression(node, nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91064
|
+
},
|
|
91065
|
+
_a[225 /* SpreadElement */] = function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91066
|
+
return context.factory.updateSpreadElement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91067
|
+
},
|
|
91068
|
+
_a[226 /* ClassExpression */] = function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91069
|
+
return context.factory.updateClassExpression(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isClassElement));
|
|
91070
|
+
},
|
|
91071
|
+
_a[228 /* ExpressionWithTypeArguments */] = function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91072
|
+
return context.factory.updateExpressionWithTypeArguments(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
91073
|
+
},
|
|
91074
|
+
_a[229 /* AsExpression */] = function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91075
|
+
return context.factory.updateAsExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
91076
|
+
},
|
|
91077
|
+
_a[230 /* NonNullExpression */] = function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91078
|
+
return ts.isOptionalChain(node) ?
|
|
91079
|
+
context.factory.updateNonNullChain(node, nodeVisitor(node.expression, visitor, ts.isExpression)) :
|
|
91080
|
+
context.factory.updateNonNullExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91081
|
+
},
|
|
91082
|
+
_a[231 /* MetaProperty */] = function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91083
|
+
return context.factory.updateMetaProperty(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91084
|
+
},
|
|
91085
|
+
// Misc
|
|
91086
|
+
_a[233 /* TemplateSpan */] = function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91087
|
+
return context.factory.updateTemplateSpan(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
91088
|
+
},
|
|
91089
|
+
// Element
|
|
91090
|
+
_a[235 /* Block */] = function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91091
|
+
return context.factory.updateBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91092
|
+
},
|
|
91093
|
+
_a[237 /* VariableStatement */] = function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91094
|
+
return context.factory.updateVariableStatement(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.declarationList, visitor, ts.isVariableDeclarationList));
|
|
91095
|
+
},
|
|
91096
|
+
_a[238 /* ExpressionStatement */] = function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91097
|
+
return context.factory.updateExpressionStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91098
|
+
},
|
|
91099
|
+
_a[239 /* IfStatement */] = function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91100
|
+
return context.factory.updateIfStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.thenStatement, visitor, ts.isStatement, context.factory.liftToBlock), nodeVisitor(node.elseStatement, visitor, ts.isStatement, context.factory.liftToBlock));
|
|
91101
|
+
},
|
|
91102
|
+
_a[240 /* DoStatement */] = function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91103
|
+
return context.factory.updateDoStatement(node, visitIterationBody(node.statement, visitor, context, nodeVisitor), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91104
|
+
},
|
|
91105
|
+
_a[241 /* WhileStatement */] = function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91106
|
+
return context.factory.updateWhileStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context, nodeVisitor));
|
|
91107
|
+
},
|
|
91108
|
+
_a[242 /* ForStatement */] = function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91109
|
+
return context.factory.updateForStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.condition, visitor, ts.isExpression), nodeVisitor(node.incrementor, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context, nodeVisitor));
|
|
91110
|
+
},
|
|
91111
|
+
_a[243 /* ForInStatement */] = function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91112
|
+
return context.factory.updateForInStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context, nodeVisitor));
|
|
91113
|
+
},
|
|
91114
|
+
_a[244 /* ForOfStatement */] = function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91115
|
+
return context.factory.updateForOfStatement(node, nodeVisitor(node.awaitModifier, tokenVisitor, ts.isAwaitKeyword), nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context, nodeVisitor));
|
|
91116
|
+
},
|
|
91117
|
+
_a[245 /* ContinueStatement */] = function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91118
|
+
return context.factory.updateContinueStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
91119
|
+
},
|
|
91120
|
+
_a[246 /* BreakStatement */] = function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91121
|
+
return context.factory.updateBreakStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
91122
|
+
},
|
|
91123
|
+
_a[247 /* ReturnStatement */] = function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91124
|
+
return context.factory.updateReturnStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91125
|
+
},
|
|
91126
|
+
_a[248 /* WithStatement */] = function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91127
|
+
return context.factory.updateWithStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.statement, visitor, ts.isStatement, context.factory.liftToBlock));
|
|
91128
|
+
},
|
|
91129
|
+
_a[249 /* SwitchStatement */] = function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91130
|
+
return context.factory.updateSwitchStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.caseBlock, visitor, ts.isCaseBlock));
|
|
91131
|
+
},
|
|
91132
|
+
_a[250 /* LabeledStatement */] = function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91133
|
+
return context.factory.updateLabeledStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier), nodeVisitor(node.statement, visitor, ts.isStatement, context.factory.liftToBlock));
|
|
91134
|
+
},
|
|
91135
|
+
_a[251 /* ThrowStatement */] = function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91136
|
+
return context.factory.updateThrowStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91137
|
+
},
|
|
91138
|
+
_a[252 /* TryStatement */] = function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91139
|
+
return context.factory.updateTryStatement(node, nodeVisitor(node.tryBlock, visitor, ts.isBlock), nodeVisitor(node.catchClause, visitor, ts.isCatchClause), nodeVisitor(node.finallyBlock, visitor, ts.isBlock));
|
|
91140
|
+
},
|
|
91141
|
+
_a[254 /* VariableDeclaration */] = function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91142
|
+
return context.factory.updateVariableDeclaration(node, nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.exclamationToken, tokenVisitor, ts.isExclamationToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91143
|
+
},
|
|
91144
|
+
_a[255 /* VariableDeclarationList */] = function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91145
|
+
return context.factory.updateVariableDeclarationList(node, nodesVisitor(node.declarations, visitor, ts.isVariableDeclaration));
|
|
91146
|
+
},
|
|
91147
|
+
_a[256 /* FunctionDeclaration */] = function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91148
|
+
return context.factory.updateFunctionDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
91149
|
+
},
|
|
91150
|
+
_a[257 /* ClassDeclaration */] = function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91151
|
+
return context.factory.updateClassDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isClassElement));
|
|
91152
|
+
},
|
|
91153
|
+
_a[258 /* InterfaceDeclaration */] = function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91154
|
+
return context.factory.updateInterfaceDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
91155
|
+
},
|
|
91156
|
+
_a[259 /* TypeAliasDeclaration */] = function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91157
|
+
return context.factory.updateTypeAliasDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
91158
|
+
},
|
|
91159
|
+
_a[260 /* EnumDeclaration */] = function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91160
|
+
return context.factory.updateEnumDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.members, visitor, ts.isEnumMember));
|
|
91161
|
+
},
|
|
91162
|
+
_a[261 /* ModuleDeclaration */] = function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91163
|
+
return context.factory.updateModuleDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isModuleName), nodeVisitor(node.body, visitor, ts.isModuleBody));
|
|
91164
|
+
},
|
|
91165
|
+
_a[262 /* ModuleBlock */] = function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91166
|
+
return context.factory.updateModuleBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91167
|
+
},
|
|
91168
|
+
_a[263 /* CaseBlock */] = function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91169
|
+
return context.factory.updateCaseBlock(node, nodesVisitor(node.clauses, visitor, ts.isCaseOrDefaultClause));
|
|
91170
|
+
},
|
|
91171
|
+
_a[264 /* NamespaceExportDeclaration */] = function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91172
|
+
return context.factory.updateNamespaceExportDeclaration(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91173
|
+
},
|
|
91174
|
+
_a[265 /* ImportEqualsDeclaration */] = function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91175
|
+
return context.factory.updateImportEqualsDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.moduleReference, visitor, ts.isModuleReference));
|
|
91176
|
+
},
|
|
91177
|
+
_a[266 /* ImportDeclaration */] = function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91178
|
+
return context.factory.updateImportDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.importClause, visitor, ts.isImportClause), nodeVisitor(node.moduleSpecifier, visitor, ts.isExpression), nodeVisitor(node.assertClause, visitor, ts.isAssertClause));
|
|
91179
|
+
},
|
|
91180
|
+
_a[293 /* AssertClause */] = function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91181
|
+
return context.factory.updateAssertClause(node, nodesVisitor(node.elements, visitor, ts.isAssertEntry), node.multiLine);
|
|
91182
|
+
},
|
|
91183
|
+
_a[294 /* AssertEntry */] = function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91184
|
+
return context.factory.updateAssertEntry(node, nodeVisitor(node.name, visitor, ts.isAssertionKey), nodeVisitor(node.value, visitor, ts.isExpression));
|
|
91185
|
+
},
|
|
91186
|
+
_a[267 /* ImportClause */] = function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91187
|
+
return context.factory.updateImportClause(node, node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.namedBindings, visitor, ts.isNamedImportBindings));
|
|
91188
|
+
},
|
|
91189
|
+
_a[268 /* NamespaceImport */] = function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91190
|
+
return context.factory.updateNamespaceImport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91191
|
+
},
|
|
91192
|
+
_a[274 /* NamespaceExport */] = function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91193
|
+
return context.factory.updateNamespaceExport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91194
|
+
},
|
|
91195
|
+
_a[269 /* NamedImports */] = function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91196
|
+
return context.factory.updateNamedImports(node, nodesVisitor(node.elements, visitor, ts.isImportSpecifier));
|
|
91197
|
+
},
|
|
91198
|
+
_a[270 /* ImportSpecifier */] = function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91199
|
+
return context.factory.updateImportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91200
|
+
},
|
|
91201
|
+
_a[271 /* ExportAssignment */] = function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91202
|
+
return context.factory.updateExportAssignment(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91203
|
+
},
|
|
91204
|
+
_a[272 /* ExportDeclaration */] = function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91205
|
+
return context.factory.updateExportDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), node.isTypeOnly, nodeVisitor(node.exportClause, visitor, ts.isNamedExportBindings), nodeVisitor(node.moduleSpecifier, visitor, ts.isExpression), nodeVisitor(node.assertClause, visitor, ts.isAssertClause));
|
|
91206
|
+
},
|
|
91207
|
+
_a[273 /* NamedExports */] = function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91208
|
+
return context.factory.updateNamedExports(node, nodesVisitor(node.elements, visitor, ts.isExportSpecifier));
|
|
91209
|
+
},
|
|
91210
|
+
_a[275 /* ExportSpecifier */] = function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91211
|
+
return context.factory.updateExportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91212
|
+
},
|
|
91213
|
+
// Module references
|
|
91214
|
+
_a[277 /* ExternalModuleReference */] = function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91215
|
+
return context.factory.updateExternalModuleReference(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91216
|
+
},
|
|
91217
|
+
// JSX
|
|
91218
|
+
_a[278 /* JsxElement */] = function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91219
|
+
return context.factory.updateJsxElement(node, nodeVisitor(node.openingElement, visitor, ts.isJsxOpeningElement), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingElement, visitor, ts.isJsxClosingElement));
|
|
91220
|
+
},
|
|
91221
|
+
_a[279 /* JsxSelfClosingElement */] = function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91222
|
+
return context.factory.updateJsxSelfClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91223
|
+
},
|
|
91224
|
+
_a[280 /* JsxOpeningElement */] = function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91225
|
+
return context.factory.updateJsxOpeningElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91226
|
+
},
|
|
91227
|
+
_a[281 /* JsxClosingElement */] = function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91228
|
+
return context.factory.updateJsxClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression));
|
|
91229
|
+
},
|
|
91230
|
+
_a[282 /* JsxFragment */] = function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91231
|
+
return context.factory.updateJsxFragment(node, nodeVisitor(node.openingFragment, visitor, ts.isJsxOpeningFragment), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingFragment, visitor, ts.isJsxClosingFragment));
|
|
91232
|
+
},
|
|
91233
|
+
_a[285 /* JsxAttribute */] = function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91234
|
+
return context.factory.updateJsxAttribute(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.initializer, visitor, ts.isStringLiteralOrJsxExpression));
|
|
91235
|
+
},
|
|
91236
|
+
_a[286 /* JsxAttributes */] = function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91237
|
+
return context.factory.updateJsxAttributes(node, nodesVisitor(node.properties, visitor, ts.isJsxAttributeLike));
|
|
91238
|
+
},
|
|
91239
|
+
_a[287 /* JsxSpreadAttribute */] = function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91240
|
+
return context.factory.updateJsxSpreadAttribute(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91241
|
+
},
|
|
91242
|
+
_a[288 /* JsxExpression */] = function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91243
|
+
return context.factory.updateJsxExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91244
|
+
},
|
|
91245
|
+
// Clauses
|
|
91246
|
+
_a[289 /* CaseClause */] = function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91247
|
+
return context.factory.updateCaseClause(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91248
|
+
},
|
|
91249
|
+
_a[290 /* DefaultClause */] = function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91250
|
+
return context.factory.updateDefaultClause(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91251
|
+
},
|
|
91252
|
+
_a[291 /* HeritageClause */] = function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91253
|
+
return context.factory.updateHeritageClause(node, nodesVisitor(node.types, visitor, ts.isExpressionWithTypeArguments));
|
|
91254
|
+
},
|
|
91255
|
+
_a[292 /* CatchClause */] = function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91256
|
+
return context.factory.updateCatchClause(node, nodeVisitor(node.variableDeclaration, visitor, ts.isVariableDeclaration), nodeVisitor(node.block, visitor, ts.isBlock));
|
|
91257
|
+
},
|
|
91258
|
+
// Property assignments
|
|
91259
|
+
_a[296 /* PropertyAssignment */] = function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91260
|
+
return context.factory.updatePropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91261
|
+
},
|
|
91262
|
+
_a[297 /* ShorthandPropertyAssignment */] = function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91263
|
+
return context.factory.updateShorthandPropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.objectAssignmentInitializer, visitor, ts.isExpression));
|
|
91264
|
+
},
|
|
91265
|
+
_a[298 /* SpreadAssignment */] = function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91266
|
+
return context.factory.updateSpreadAssignment(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91267
|
+
},
|
|
91268
|
+
// Enum
|
|
91269
|
+
_a[299 /* EnumMember */] = function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91270
|
+
return context.factory.updateEnumMember(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91271
|
+
},
|
|
91272
|
+
// Top-level nodes
|
|
91273
|
+
_a[305 /* SourceFile */] = function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91274
|
+
return context.factory.updateSourceFile(node, visitLexicalEnvironment(node.statements, visitor, context, /*start*/ undefined, /*ensureUseStrict*/ undefined, nodesVisitor));
|
|
91275
|
+
},
|
|
91276
|
+
// Transformation nodes
|
|
91277
|
+
_a[350 /* PartiallyEmittedExpression */] = function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91278
|
+
return context.factory.updatePartiallyEmittedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91279
|
+
},
|
|
91280
|
+
_a[351 /* CommaListExpression */] = function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91281
|
+
return context.factory.updateCommaListExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
91282
|
+
},
|
|
91283
|
+
_a);
|
|
91122
91284
|
/**
|
|
91123
91285
|
* Extracts the single node from a NodeArray.
|
|
91124
91286
|
*
|
|
@@ -91186,7 +91348,7 @@ var ts;
|
|
|
91186
91348
|
exit();
|
|
91187
91349
|
return sourceIndex;
|
|
91188
91350
|
}
|
|
91189
|
-
/* eslint-disable boolean-trivia, no-null/no-null */
|
|
91351
|
+
/* eslint-disable local/boolean-trivia, no-null/no-null */
|
|
91190
91352
|
function setSourceContent(sourceIndex, content) {
|
|
91191
91353
|
enter();
|
|
91192
91354
|
if (content !== null) {
|
|
@@ -91199,7 +91361,7 @@ var ts;
|
|
|
91199
91361
|
}
|
|
91200
91362
|
exit();
|
|
91201
91363
|
}
|
|
91202
|
-
/* eslint-enable boolean-trivia, no-null/no-null */
|
|
91364
|
+
/* eslint-enable local/boolean-trivia, no-null/no-null */
|
|
91203
91365
|
function addName(name) {
|
|
91204
91366
|
enter();
|
|
91205
91367
|
if (!nameToNameIndexMap)
|
|
@@ -99283,8 +99445,8 @@ var ts;
|
|
|
99283
99445
|
function convertJsxChildrenToChildrenPropAssignment(children) {
|
|
99284
99446
|
var nonWhitespaceChildren = ts.getSemanticJsxChildren(children);
|
|
99285
99447
|
if (ts.length(nonWhitespaceChildren) === 1 && !nonWhitespaceChildren[0].dotDotDotToken) {
|
|
99286
|
-
var
|
|
99287
|
-
return
|
|
99448
|
+
var result_13 = transformJsxChildToExpression(nonWhitespaceChildren[0]);
|
|
99449
|
+
return result_13 && factory.createPropertyAssignment("children", result_13);
|
|
99288
99450
|
}
|
|
99289
99451
|
var result = ts.mapDefined(children, transformJsxChildToExpression);
|
|
99290
99452
|
return ts.length(result) ? factory.createPropertyAssignment("children", factory.createArrayLiteralExpression(result)) : undefined;
|
|
@@ -118539,15 +118701,15 @@ var ts;
|
|
|
118539
118701
|
// which per above occurred during the current program creation.
|
|
118540
118702
|
// Since we assume the filesystem does not change during program creation,
|
|
118541
118703
|
// it is safe to reuse resolutions from the earlier call.
|
|
118542
|
-
var
|
|
118704
|
+
var result_14 = [];
|
|
118543
118705
|
var i = 0;
|
|
118544
118706
|
for (var _i = 0, moduleNames_1 = moduleNames; _i < moduleNames_1.length; _i++) {
|
|
118545
118707
|
var moduleName = moduleNames_1[_i];
|
|
118546
118708
|
var resolvedModule = file.resolvedModules.get(moduleName, getModeForResolutionAtIndex(file, i));
|
|
118547
118709
|
i++;
|
|
118548
|
-
|
|
118710
|
+
result_14.push(resolvedModule);
|
|
118549
118711
|
}
|
|
118550
|
-
return
|
|
118712
|
+
return result_14;
|
|
118551
118713
|
}
|
|
118552
118714
|
// At this point, we know at least one of the following hold:
|
|
118553
118715
|
// - file has local declarations for ambient modules
|
|
@@ -122007,14 +122169,14 @@ var ts;
|
|
|
122007
122169
|
fileNames_1.push(relativeToBuildInfo(sourceFile.resolvedPath));
|
|
122008
122170
|
fileInfos_1.push(sourceFile.version);
|
|
122009
122171
|
});
|
|
122010
|
-
var
|
|
122172
|
+
var result_15 = {
|
|
122011
122173
|
fileNames: fileNames_1,
|
|
122012
122174
|
fileInfos: fileInfos_1,
|
|
122013
122175
|
options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions, "affectsBundleEmitBuildInfo"),
|
|
122014
122176
|
outSignature: state.outSignature,
|
|
122015
122177
|
latestChangedDtsFile: latestChangedDtsFile,
|
|
122016
122178
|
};
|
|
122017
|
-
return
|
|
122179
|
+
return result_15;
|
|
122018
122180
|
}
|
|
122019
122181
|
var fileNames = [];
|
|
122020
122182
|
var fileNameToFileId = new ts.Map();
|
|
@@ -123952,9 +124114,9 @@ var ts;
|
|
|
123952
124114
|
if (!preferSymlinks) {
|
|
123953
124115
|
// Symlinks inside ignored paths are already filtered out of the symlink cache,
|
|
123954
124116
|
// so we only need to remove them from the realpath filenames.
|
|
123955
|
-
var
|
|
123956
|
-
if (
|
|
123957
|
-
return
|
|
124117
|
+
var result_16 = ts.forEach(targets, function (p) { return !(shouldFilterIgnoredPaths && ts.containsIgnoredPath(p)) && cb(p, referenceRedirect === p); });
|
|
124118
|
+
if (result_16)
|
|
124119
|
+
return result_16;
|
|
123958
124120
|
}
|
|
123959
124121
|
var symlinkedDirectories = (_a = host.getSymlinkCache) === null || _a === void 0 ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath();
|
|
123960
124122
|
var fullImportedFileName = ts.getNormalizedAbsolutePath(importedFileName, cwd);
|
|
@@ -123974,10 +124136,10 @@ var ts;
|
|
|
123974
124136
|
for (var _i = 0, symlinkDirectories_1 = symlinkDirectories; _i < symlinkDirectories_1.length; _i++) {
|
|
123975
124137
|
var symlinkDirectory = symlinkDirectories_1[_i];
|
|
123976
124138
|
var option = ts.resolvePath(symlinkDirectory, relative);
|
|
123977
|
-
var
|
|
124139
|
+
var result_17 = cb(option, target === referenceRedirect);
|
|
123978
124140
|
shouldFilterIgnoredPaths = true; // We found a non-ignored path in symlinks, so we can reject ignored-path realpaths
|
|
123979
|
-
if (
|
|
123980
|
-
return
|
|
124141
|
+
if (result_17)
|
|
124142
|
+
return result_17;
|
|
123981
124143
|
}
|
|
123982
124144
|
});
|
|
123983
124145
|
});
|