@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/tsserver.js
CHANGED
|
@@ -109,7 +109,7 @@ var ts;
|
|
|
109
109
|
// The following is baselined as a literal template type without intervention
|
|
110
110
|
/** The version of the TypeScript compiler release */
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
112
|
-
ts.version = ts.versionMajorMinor + ".0-insiders.
|
|
112
|
+
ts.version = ts.versionMajorMinor + ".0-insiders.20220824";
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -130,7 +130,7 @@ var ts;
|
|
|
130
130
|
function tryGetNativeMap() {
|
|
131
131
|
// Internet Explorer's Map doesn't support iteration, so don't use it.
|
|
132
132
|
var gMap = globals === null || globals === void 0 ? void 0 : globals.Map;
|
|
133
|
-
// eslint-disable-next-line no-in-operator
|
|
133
|
+
// eslint-disable-next-line local/no-in-operator
|
|
134
134
|
var constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : undefined;
|
|
135
135
|
if (!constructor) {
|
|
136
136
|
throw new Error("No compatible Map implementation found.");
|
|
@@ -144,7 +144,7 @@ var ts;
|
|
|
144
144
|
function tryGetNativeSet() {
|
|
145
145
|
// Internet Explorer's Set doesn't support iteration, so don't use it.
|
|
146
146
|
var gSet = globals === null || globals === void 0 ? void 0 : globals.Set;
|
|
147
|
-
// eslint-disable-next-line no-in-operator
|
|
147
|
+
// eslint-disable-next-line local/no-in-operator
|
|
148
148
|
var constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : undefined;
|
|
149
149
|
if (!constructor) {
|
|
150
150
|
throw new Error("No compatible Set implementation found.");
|
|
@@ -2498,6 +2498,7 @@ var ts;
|
|
|
2498
2498
|
var currentAssertionLevel = 0 /* None */;
|
|
2499
2499
|
Debug.currentLogLevel = LogLevel.Warning;
|
|
2500
2500
|
Debug.isDebugging = false;
|
|
2501
|
+
Debug.enableDeprecationWarnings = true;
|
|
2501
2502
|
function getTypeScriptVersion() {
|
|
2502
2503
|
return typeScriptVersion !== null && typeScriptVersion !== void 0 ? typeScriptVersion : (typeScriptVersion = new ts.Version(ts.version));
|
|
2503
2504
|
}
|
|
@@ -2842,7 +2843,7 @@ var ts;
|
|
|
2842
2843
|
Debug.formatControlFlowGraph = formatControlFlowGraph;
|
|
2843
2844
|
var flowNodeProto;
|
|
2844
2845
|
function attachFlowNodeDebugInfoWorker(flowNode) {
|
|
2845
|
-
if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line no-in-operator
|
|
2846
|
+
if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line local/no-in-operator
|
|
2846
2847
|
Object.defineProperties(flowNode, {
|
|
2847
2848
|
// for use with vscode-js-debug's new customDescriptionGenerator in launch.json
|
|
2848
2849
|
__tsDebuggerDisplay: {
|
|
@@ -2888,7 +2889,7 @@ var ts;
|
|
|
2888
2889
|
Debug.attachFlowNodeDebugInfo = attachFlowNodeDebugInfo;
|
|
2889
2890
|
var nodeArrayProto;
|
|
2890
2891
|
function attachNodeArrayDebugInfoWorker(array) {
|
|
2891
|
-
if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line no-in-operator
|
|
2892
|
+
if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line local/no-in-operator
|
|
2892
2893
|
Object.defineProperties(array, {
|
|
2893
2894
|
__tsDebuggerDisplay: {
|
|
2894
2895
|
value: function (defaultValue) {
|
|
@@ -3121,7 +3122,7 @@ var ts;
|
|
|
3121
3122
|
function createWarningDeprecation(name, errorAfter, since, message) {
|
|
3122
3123
|
var hasWrittenDeprecation = false;
|
|
3123
3124
|
return function () {
|
|
3124
|
-
if (!hasWrittenDeprecation) {
|
|
3125
|
+
if (Debug.enableDeprecationWarnings && !hasWrittenDeprecation) {
|
|
3125
3126
|
log.warn(formatDeprecationMessage(name, /*error*/ false, errorAfter, since, message));
|
|
3126
3127
|
hasWrittenDeprecation = true;
|
|
3127
3128
|
}
|
|
@@ -4077,7 +4078,7 @@ var ts;
|
|
|
4077
4078
|
var substitutionType = type;
|
|
4078
4079
|
substitutionProperties = {
|
|
4079
4080
|
substitutionBaseType: (_o = substitutionType.baseType) === null || _o === void 0 ? void 0 : _o.id,
|
|
4080
|
-
|
|
4081
|
+
constraintType: (_p = substitutionType.constraint) === null || _p === void 0 ? void 0 : _p.id,
|
|
4081
4082
|
};
|
|
4082
4083
|
}
|
|
4083
4084
|
var reverseMappedProperties = {};
|
|
@@ -21400,7 +21401,7 @@ var ts;
|
|
|
21400
21401
|
case 165 /* Decorator */: {
|
|
21401
21402
|
var parent_2 = node.parent;
|
|
21402
21403
|
return ts.canHaveDecorators(parent_2) ? parent_2.modifiers :
|
|
21403
|
-
ts.canHaveIllegalDecorators(parent_2) ? parent_2.
|
|
21404
|
+
ts.canHaveIllegalDecorators(parent_2) ? parent_2.illegalDecorators :
|
|
21404
21405
|
undefined;
|
|
21405
21406
|
}
|
|
21406
21407
|
case 291 /* HeritageClause */:
|
|
@@ -23477,7 +23478,7 @@ var ts;
|
|
|
23477
23478
|
node.body = body;
|
|
23478
23479
|
node.transformFlags = propagateChildFlags(body) | 16777216 /* ContainsClassFields */;
|
|
23479
23480
|
// The following properties are used only to report grammar errors
|
|
23480
|
-
node.
|
|
23481
|
+
node.illegalDecorators = undefined;
|
|
23481
23482
|
node.modifiers = undefined;
|
|
23482
23483
|
return node;
|
|
23483
23484
|
}
|
|
@@ -23489,7 +23490,7 @@ var ts;
|
|
|
23489
23490
|
}
|
|
23490
23491
|
function finishUpdateClassStaticBlockDeclaration(updated, original) {
|
|
23491
23492
|
if (updated !== original) {
|
|
23492
|
-
updated.
|
|
23493
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
23493
23494
|
updated.modifiers = original.modifiers;
|
|
23494
23495
|
}
|
|
23495
23496
|
return update(updated, original);
|
|
@@ -23502,7 +23503,7 @@ var ts;
|
|
|
23502
23503
|
/*type*/ undefined, body);
|
|
23503
23504
|
node.transformFlags |= 1024 /* ContainsES2015 */;
|
|
23504
23505
|
// The following properties are used only to report grammar errors
|
|
23505
|
-
node.
|
|
23506
|
+
node.illegalDecorators = undefined;
|
|
23506
23507
|
node.typeParameters = undefined;
|
|
23507
23508
|
node.type = undefined;
|
|
23508
23509
|
return node;
|
|
@@ -23517,7 +23518,7 @@ var ts;
|
|
|
23517
23518
|
}
|
|
23518
23519
|
function finishUpdateConstructorDeclaration(updated, original) {
|
|
23519
23520
|
if (updated !== original) {
|
|
23520
|
-
updated.
|
|
23521
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
23521
23522
|
updated.typeParameters = original.typeParameters;
|
|
23522
23523
|
updated.type = original.type;
|
|
23523
23524
|
}
|
|
@@ -25265,7 +25266,7 @@ var ts;
|
|
|
25265
25266
|
}
|
|
25266
25267
|
}
|
|
25267
25268
|
// The following properties are used only to report grammar errors
|
|
25268
|
-
node.
|
|
25269
|
+
node.illegalDecorators = undefined;
|
|
25269
25270
|
return node;
|
|
25270
25271
|
}
|
|
25271
25272
|
// @api
|
|
@@ -25283,7 +25284,7 @@ var ts;
|
|
|
25283
25284
|
function finishUpdateFunctionDeclaration(updated, original) {
|
|
25284
25285
|
if (updated !== original) {
|
|
25285
25286
|
// copy children used only for error reporting
|
|
25286
|
-
updated.
|
|
25287
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25287
25288
|
}
|
|
25288
25289
|
return finishUpdateBaseSignatureDeclaration(updated, original);
|
|
25289
25290
|
}
|
|
@@ -25317,7 +25318,7 @@ var ts;
|
|
|
25317
25318
|
node.members = createNodeArray(members);
|
|
25318
25319
|
node.transformFlags = 1 /* ContainsTypeScript */;
|
|
25319
25320
|
// The following properties are used only to report grammar errors
|
|
25320
|
-
node.
|
|
25321
|
+
node.illegalDecorators = undefined;
|
|
25321
25322
|
return node;
|
|
25322
25323
|
}
|
|
25323
25324
|
// @api
|
|
@@ -25332,7 +25333,7 @@ var ts;
|
|
|
25332
25333
|
}
|
|
25333
25334
|
function finishUpdateInterfaceDeclaration(updated, original) {
|
|
25334
25335
|
if (updated !== original) {
|
|
25335
|
-
updated.
|
|
25336
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25336
25337
|
}
|
|
25337
25338
|
return update(updated, original);
|
|
25338
25339
|
}
|
|
@@ -25342,7 +25343,7 @@ var ts;
|
|
|
25342
25343
|
node.type = type;
|
|
25343
25344
|
node.transformFlags = 1 /* ContainsTypeScript */;
|
|
25344
25345
|
// The following properties are used only to report grammar errors
|
|
25345
|
-
node.
|
|
25346
|
+
node.illegalDecorators = undefined;
|
|
25346
25347
|
return node;
|
|
25347
25348
|
}
|
|
25348
25349
|
// @api
|
|
@@ -25356,7 +25357,7 @@ var ts;
|
|
|
25356
25357
|
}
|
|
25357
25358
|
function finishUpdateTypeAliasDeclaration(updated, original) {
|
|
25358
25359
|
if (updated !== original) {
|
|
25359
|
-
updated.
|
|
25360
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25360
25361
|
}
|
|
25361
25362
|
return update(updated, original);
|
|
25362
25363
|
}
|
|
@@ -25369,7 +25370,7 @@ var ts;
|
|
|
25369
25370
|
1 /* ContainsTypeScript */;
|
|
25370
25371
|
node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; // Enum declarations cannot contain `await`
|
|
25371
25372
|
// The following properties are used only to report grammar errors
|
|
25372
|
-
node.
|
|
25373
|
+
node.illegalDecorators = undefined;
|
|
25373
25374
|
return node;
|
|
25374
25375
|
}
|
|
25375
25376
|
// @api
|
|
@@ -25382,7 +25383,7 @@ var ts;
|
|
|
25382
25383
|
}
|
|
25383
25384
|
function finishUpdateEnumDeclaration(updated, original) {
|
|
25384
25385
|
if (updated !== original) {
|
|
25385
|
-
updated.
|
|
25386
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25386
25387
|
}
|
|
25387
25388
|
return update(updated, original);
|
|
25388
25389
|
}
|
|
@@ -25406,7 +25407,7 @@ var ts;
|
|
|
25406
25407
|
}
|
|
25407
25408
|
node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; // Module declarations cannot contain `await`.
|
|
25408
25409
|
// The following properties are used only to report grammar errors
|
|
25409
|
-
node.
|
|
25410
|
+
node.illegalDecorators = undefined;
|
|
25410
25411
|
return node;
|
|
25411
25412
|
}
|
|
25412
25413
|
// @api
|
|
@@ -25419,7 +25420,7 @@ var ts;
|
|
|
25419
25420
|
}
|
|
25420
25421
|
function finishUpdateModuleDeclaration(updated, original) {
|
|
25421
25422
|
if (updated !== original) {
|
|
25422
|
-
updated.
|
|
25423
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25423
25424
|
}
|
|
25424
25425
|
return update(updated, original);
|
|
25425
25426
|
}
|
|
@@ -25455,7 +25456,7 @@ var ts;
|
|
|
25455
25456
|
/*modifiers*/ undefined, name);
|
|
25456
25457
|
node.transformFlags = 1 /* ContainsTypeScript */;
|
|
25457
25458
|
// The following properties are used only to report grammar errors
|
|
25458
|
-
node.
|
|
25459
|
+
node.illegalDecorators = undefined;
|
|
25459
25460
|
node.modifiers = undefined;
|
|
25460
25461
|
return node;
|
|
25461
25462
|
}
|
|
@@ -25467,7 +25468,7 @@ var ts;
|
|
|
25467
25468
|
}
|
|
25468
25469
|
function finishUpdateNamespaceExportDeclaration(updated, original) {
|
|
25469
25470
|
if (updated !== original) {
|
|
25470
|
-
updated.
|
|
25471
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25471
25472
|
updated.modifiers = original.modifiers;
|
|
25472
25473
|
}
|
|
25473
25474
|
return update(updated, original);
|
|
@@ -25482,7 +25483,7 @@ var ts;
|
|
|
25482
25483
|
node.transformFlags |= 1 /* ContainsTypeScript */;
|
|
25483
25484
|
node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; // Import= declaration is always parsed in an Await context
|
|
25484
25485
|
// The following properties are used only to report grammar errors
|
|
25485
|
-
node.
|
|
25486
|
+
node.illegalDecorators = undefined;
|
|
25486
25487
|
return node;
|
|
25487
25488
|
}
|
|
25488
25489
|
// @api
|
|
@@ -25496,7 +25497,7 @@ var ts;
|
|
|
25496
25497
|
}
|
|
25497
25498
|
function finishUpdateImportEqualsDeclaration(updated, original) {
|
|
25498
25499
|
if (updated !== original) {
|
|
25499
|
-
updated.
|
|
25500
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25500
25501
|
}
|
|
25501
25502
|
return update(updated, original);
|
|
25502
25503
|
}
|
|
@@ -25512,7 +25513,7 @@ var ts;
|
|
|
25512
25513
|
propagateChildFlags(node.moduleSpecifier);
|
|
25513
25514
|
node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context
|
|
25514
25515
|
// The following properties are used only to report grammar errors
|
|
25515
|
-
node.
|
|
25516
|
+
node.illegalDecorators = undefined;
|
|
25516
25517
|
return node;
|
|
25517
25518
|
}
|
|
25518
25519
|
// @api
|
|
@@ -25526,7 +25527,7 @@ var ts;
|
|
|
25526
25527
|
}
|
|
25527
25528
|
function finishUpdateImportDeclaration(updated, original) {
|
|
25528
25529
|
if (updated !== original) {
|
|
25529
|
-
updated.
|
|
25530
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25530
25531
|
}
|
|
25531
25532
|
return update(updated, original);
|
|
25532
25533
|
}
|
|
@@ -25672,7 +25673,7 @@ var ts;
|
|
|
25672
25673
|
node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.expression);
|
|
25673
25674
|
node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context
|
|
25674
25675
|
// The following properties are used only to report grammar errors
|
|
25675
|
-
node.
|
|
25676
|
+
node.illegalDecorators = undefined;
|
|
25676
25677
|
return node;
|
|
25677
25678
|
}
|
|
25678
25679
|
// @api
|
|
@@ -25684,7 +25685,7 @@ var ts;
|
|
|
25684
25685
|
}
|
|
25685
25686
|
function finishUpdateExportAssignment(updated, original) {
|
|
25686
25687
|
if (updated !== original) {
|
|
25687
|
-
updated.
|
|
25688
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25688
25689
|
}
|
|
25689
25690
|
return update(updated, original);
|
|
25690
25691
|
}
|
|
@@ -25702,7 +25703,7 @@ var ts;
|
|
|
25702
25703
|
propagateChildFlags(node.moduleSpecifier);
|
|
25703
25704
|
node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context
|
|
25704
25705
|
// The following properties are used only to report grammar errors
|
|
25705
|
-
node.
|
|
25706
|
+
node.illegalDecorators = undefined;
|
|
25706
25707
|
return node;
|
|
25707
25708
|
}
|
|
25708
25709
|
// @api
|
|
@@ -25717,7 +25718,7 @@ var ts;
|
|
|
25717
25718
|
}
|
|
25718
25719
|
function finishUpdateExportDeclaration(updated, original) {
|
|
25719
25720
|
if (updated !== original) {
|
|
25720
|
-
updated.
|
|
25721
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
25721
25722
|
}
|
|
25722
25723
|
return update(updated, original);
|
|
25723
25724
|
}
|
|
@@ -26481,7 +26482,7 @@ var ts;
|
|
|
26481
26482
|
propagateChildFlags(node.name) |
|
|
26482
26483
|
propagateChildFlags(node.initializer);
|
|
26483
26484
|
// The following properties are used only to report grammar errors
|
|
26484
|
-
node.
|
|
26485
|
+
node.illegalDecorators = undefined;
|
|
26485
26486
|
node.modifiers = undefined;
|
|
26486
26487
|
node.questionToken = undefined;
|
|
26487
26488
|
node.exclamationToken = undefined;
|
|
@@ -26497,7 +26498,7 @@ var ts;
|
|
|
26497
26498
|
function finishUpdatePropertyAssignment(updated, original) {
|
|
26498
26499
|
// copy children used only for error reporting
|
|
26499
26500
|
if (updated !== original) {
|
|
26500
|
-
updated.
|
|
26501
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
26501
26502
|
updated.modifiers = original.modifiers;
|
|
26502
26503
|
updated.questionToken = original.questionToken;
|
|
26503
26504
|
updated.exclamationToken = original.exclamationToken;
|
|
@@ -26514,7 +26515,7 @@ var ts;
|
|
|
26514
26515
|
1024 /* ContainsES2015 */;
|
|
26515
26516
|
// The following properties are used only to report grammar errors
|
|
26516
26517
|
node.equalsToken = undefined;
|
|
26517
|
-
node.
|
|
26518
|
+
node.illegalDecorators = undefined;
|
|
26518
26519
|
node.modifiers = undefined;
|
|
26519
26520
|
node.questionToken = undefined;
|
|
26520
26521
|
node.exclamationToken = undefined;
|
|
@@ -26531,7 +26532,7 @@ var ts;
|
|
|
26531
26532
|
if (updated !== original) {
|
|
26532
26533
|
// copy children used only for error reporting
|
|
26533
26534
|
updated.equalsToken = original.equalsToken;
|
|
26534
|
-
updated.
|
|
26535
|
+
updated.illegalDecorators = original.illegalDecorators;
|
|
26535
26536
|
updated.modifiers = original.modifiers;
|
|
26536
26537
|
updated.questionToken = original.questionToken;
|
|
26537
26538
|
updated.exclamationToken = original.exclamationToken;
|
|
@@ -30543,17 +30544,6 @@ var ts;
|
|
|
30543
30544
|
|| kind === 173 /* SetAccessor */;
|
|
30544
30545
|
}
|
|
30545
30546
|
ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
|
|
30546
|
-
function canHaveDecorators(node) {
|
|
30547
|
-
var kind = node.kind;
|
|
30548
|
-
return kind === 164 /* Parameter */
|
|
30549
|
-
|| kind === 167 /* PropertyDeclaration */
|
|
30550
|
-
|| kind === 169 /* MethodDeclaration */
|
|
30551
|
-
|| kind === 172 /* GetAccessor */
|
|
30552
|
-
|| kind === 173 /* SetAccessor */
|
|
30553
|
-
|| kind === 226 /* ClassExpression */
|
|
30554
|
-
|| kind === 257 /* ClassDeclaration */;
|
|
30555
|
-
}
|
|
30556
|
-
ts.canHaveDecorators = canHaveDecorators;
|
|
30557
30547
|
function canHaveIllegalDecorators(node) {
|
|
30558
30548
|
var kind = node.kind;
|
|
30559
30549
|
return kind === 296 /* PropertyAssignment */
|
|
@@ -30575,35 +30565,6 @@ var ts;
|
|
|
30575
30565
|
|| kind === 271 /* ExportAssignment */;
|
|
30576
30566
|
}
|
|
30577
30567
|
ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
|
|
30578
|
-
function canHaveModifiers(node) {
|
|
30579
|
-
var kind = node.kind;
|
|
30580
|
-
return kind === 163 /* TypeParameter */
|
|
30581
|
-
|| kind === 164 /* Parameter */
|
|
30582
|
-
|| kind === 166 /* PropertySignature */
|
|
30583
|
-
|| kind === 167 /* PropertyDeclaration */
|
|
30584
|
-
|| kind === 168 /* MethodSignature */
|
|
30585
|
-
|| kind === 169 /* MethodDeclaration */
|
|
30586
|
-
|| kind === 171 /* Constructor */
|
|
30587
|
-
|| kind === 172 /* GetAccessor */
|
|
30588
|
-
|| kind === 173 /* SetAccessor */
|
|
30589
|
-
|| kind === 176 /* IndexSignature */
|
|
30590
|
-
|| kind === 180 /* ConstructorType */
|
|
30591
|
-
|| kind === 213 /* FunctionExpression */
|
|
30592
|
-
|| kind === 214 /* ArrowFunction */
|
|
30593
|
-
|| kind === 226 /* ClassExpression */
|
|
30594
|
-
|| kind === 237 /* VariableStatement */
|
|
30595
|
-
|| kind === 256 /* FunctionDeclaration */
|
|
30596
|
-
|| kind === 257 /* ClassDeclaration */
|
|
30597
|
-
|| kind === 258 /* InterfaceDeclaration */
|
|
30598
|
-
|| kind === 259 /* TypeAliasDeclaration */
|
|
30599
|
-
|| kind === 260 /* EnumDeclaration */
|
|
30600
|
-
|| kind === 261 /* ModuleDeclaration */
|
|
30601
|
-
|| kind === 265 /* ImportEqualsDeclaration */
|
|
30602
|
-
|| kind === 266 /* ImportDeclaration */
|
|
30603
|
-
|| kind === 271 /* ExportAssignment */
|
|
30604
|
-
|| kind === 272 /* ExportDeclaration */;
|
|
30605
|
-
}
|
|
30606
|
-
ts.canHaveModifiers = canHaveModifiers;
|
|
30607
30568
|
function canHaveIllegalModifiers(node) {
|
|
30608
30569
|
var kind = node.kind;
|
|
30609
30570
|
return kind === 170 /* ClassStaticBlockDeclaration */
|
|
@@ -30892,9 +30853,50 @@ var ts;
|
|
|
30892
30853
|
return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
|
|
30893
30854
|
}
|
|
30894
30855
|
ts.setTextRange = setTextRange;
|
|
30856
|
+
function canHaveModifiers(node) {
|
|
30857
|
+
var kind = node.kind;
|
|
30858
|
+
return kind === 163 /* TypeParameter */
|
|
30859
|
+
|| kind === 164 /* Parameter */
|
|
30860
|
+
|| kind === 166 /* PropertySignature */
|
|
30861
|
+
|| kind === 167 /* PropertyDeclaration */
|
|
30862
|
+
|| kind === 168 /* MethodSignature */
|
|
30863
|
+
|| kind === 169 /* MethodDeclaration */
|
|
30864
|
+
|| kind === 171 /* Constructor */
|
|
30865
|
+
|| kind === 172 /* GetAccessor */
|
|
30866
|
+
|| kind === 173 /* SetAccessor */
|
|
30867
|
+
|| kind === 176 /* IndexSignature */
|
|
30868
|
+
|| kind === 180 /* ConstructorType */
|
|
30869
|
+
|| kind === 213 /* FunctionExpression */
|
|
30870
|
+
|| kind === 214 /* ArrowFunction */
|
|
30871
|
+
|| kind === 226 /* ClassExpression */
|
|
30872
|
+
|| kind === 237 /* VariableStatement */
|
|
30873
|
+
|| kind === 256 /* FunctionDeclaration */
|
|
30874
|
+
|| kind === 257 /* ClassDeclaration */
|
|
30875
|
+
|| kind === 258 /* InterfaceDeclaration */
|
|
30876
|
+
|| kind === 259 /* TypeAliasDeclaration */
|
|
30877
|
+
|| kind === 260 /* EnumDeclaration */
|
|
30878
|
+
|| kind === 261 /* ModuleDeclaration */
|
|
30879
|
+
|| kind === 265 /* ImportEqualsDeclaration */
|
|
30880
|
+
|| kind === 266 /* ImportDeclaration */
|
|
30881
|
+
|| kind === 271 /* ExportAssignment */
|
|
30882
|
+
|| kind === 272 /* ExportDeclaration */;
|
|
30883
|
+
}
|
|
30884
|
+
ts.canHaveModifiers = canHaveModifiers;
|
|
30885
|
+
function canHaveDecorators(node) {
|
|
30886
|
+
var kind = node.kind;
|
|
30887
|
+
return kind === 164 /* Parameter */
|
|
30888
|
+
|| kind === 167 /* PropertyDeclaration */
|
|
30889
|
+
|| kind === 169 /* MethodDeclaration */
|
|
30890
|
+
|| kind === 172 /* GetAccessor */
|
|
30891
|
+
|| kind === 173 /* SetAccessor */
|
|
30892
|
+
|| kind === 226 /* ClassExpression */
|
|
30893
|
+
|| kind === 257 /* ClassDeclaration */;
|
|
30894
|
+
}
|
|
30895
|
+
ts.canHaveDecorators = canHaveDecorators;
|
|
30895
30896
|
})(ts || (ts = {}));
|
|
30896
30897
|
var ts;
|
|
30897
30898
|
(function (ts) {
|
|
30899
|
+
var _a;
|
|
30898
30900
|
var SignatureFlags;
|
|
30899
30901
|
(function (SignatureFlags) {
|
|
30900
30902
|
SignatureFlags[SignatureFlags["None"] = 0] = "None";
|
|
@@ -30982,6 +30984,715 @@ var ts;
|
|
|
30982
30984
|
function isImportMeta(node) {
|
|
30983
30985
|
return ts.isMetaProperty(node) && node.keywordToken === 100 /* ImportKeyword */ && node.name.escapedText === "meta";
|
|
30984
30986
|
}
|
|
30987
|
+
var forEachChildTable = (_a = {},
|
|
30988
|
+
_a[161 /* QualifiedName */] = function forEachChildInQualifiedName(node, cbNode, _cbNodes) {
|
|
30989
|
+
return visitNode(cbNode, node.left) ||
|
|
30990
|
+
visitNode(cbNode, node.right);
|
|
30991
|
+
},
|
|
30992
|
+
_a[163 /* TypeParameter */] = function forEachChildInTypeParameter(node, cbNode, cbNodes) {
|
|
30993
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
30994
|
+
visitNode(cbNode, node.name) ||
|
|
30995
|
+
visitNode(cbNode, node.constraint) ||
|
|
30996
|
+
visitNode(cbNode, node.default) ||
|
|
30997
|
+
visitNode(cbNode, node.expression);
|
|
30998
|
+
},
|
|
30999
|
+
_a[297 /* ShorthandPropertyAssignment */] = function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) {
|
|
31000
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31001
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31002
|
+
visitNode(cbNode, node.name) ||
|
|
31003
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31004
|
+
visitNode(cbNode, node.exclamationToken) ||
|
|
31005
|
+
visitNode(cbNode, node.equalsToken) ||
|
|
31006
|
+
visitNode(cbNode, node.objectAssignmentInitializer);
|
|
31007
|
+
},
|
|
31008
|
+
_a[298 /* SpreadAssignment */] = function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) {
|
|
31009
|
+
return visitNode(cbNode, node.expression);
|
|
31010
|
+
},
|
|
31011
|
+
_a[164 /* Parameter */] = function forEachChildInParameter(node, cbNode, cbNodes) {
|
|
31012
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31013
|
+
visitNode(cbNode, node.dotDotDotToken) ||
|
|
31014
|
+
visitNode(cbNode, node.name) ||
|
|
31015
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31016
|
+
visitNode(cbNode, node.type) ||
|
|
31017
|
+
visitNode(cbNode, node.initializer);
|
|
31018
|
+
},
|
|
31019
|
+
_a[167 /* PropertyDeclaration */] = function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) {
|
|
31020
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31021
|
+
visitNode(cbNode, node.name) ||
|
|
31022
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31023
|
+
visitNode(cbNode, node.exclamationToken) ||
|
|
31024
|
+
visitNode(cbNode, node.type) ||
|
|
31025
|
+
visitNode(cbNode, node.initializer);
|
|
31026
|
+
},
|
|
31027
|
+
_a[166 /* PropertySignature */] = function forEachChildInPropertySignature(node, cbNode, cbNodes) {
|
|
31028
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31029
|
+
visitNode(cbNode, node.name) ||
|
|
31030
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31031
|
+
visitNode(cbNode, node.type) ||
|
|
31032
|
+
visitNode(cbNode, node.initializer);
|
|
31033
|
+
},
|
|
31034
|
+
_a[296 /* PropertyAssignment */] = function forEachChildInPropertyAssignment(node, cbNode, cbNodes) {
|
|
31035
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31036
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31037
|
+
visitNode(cbNode, node.name) ||
|
|
31038
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31039
|
+
visitNode(cbNode, node.exclamationToken) ||
|
|
31040
|
+
visitNode(cbNode, node.initializer);
|
|
31041
|
+
},
|
|
31042
|
+
_a[254 /* VariableDeclaration */] = function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) {
|
|
31043
|
+
return visitNode(cbNode, node.name) ||
|
|
31044
|
+
visitNode(cbNode, node.exclamationToken) ||
|
|
31045
|
+
visitNode(cbNode, node.type) ||
|
|
31046
|
+
visitNode(cbNode, node.initializer);
|
|
31047
|
+
},
|
|
31048
|
+
_a[203 /* BindingElement */] = function forEachChildInBindingElement(node, cbNode, _cbNodes) {
|
|
31049
|
+
return visitNode(cbNode, node.dotDotDotToken) ||
|
|
31050
|
+
visitNode(cbNode, node.propertyName) ||
|
|
31051
|
+
visitNode(cbNode, node.name) ||
|
|
31052
|
+
visitNode(cbNode, node.initializer);
|
|
31053
|
+
},
|
|
31054
|
+
_a[176 /* IndexSignature */] = function forEachChildInIndexSignature(node, cbNode, cbNodes) {
|
|
31055
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31056
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31057
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31058
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31059
|
+
visitNode(cbNode, node.type);
|
|
31060
|
+
},
|
|
31061
|
+
_a[180 /* ConstructorType */] = function forEachChildInConstructorType(node, cbNode, cbNodes) {
|
|
31062
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31063
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31064
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31065
|
+
visitNode(cbNode, node.type);
|
|
31066
|
+
},
|
|
31067
|
+
_a[179 /* FunctionType */] = function forEachChildInFunctionType(node, cbNode, cbNodes) {
|
|
31068
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31069
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31070
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31071
|
+
visitNode(cbNode, node.type);
|
|
31072
|
+
},
|
|
31073
|
+
_a[174 /* CallSignature */] = forEachChildInCallOrConstructSignature,
|
|
31074
|
+
_a[175 /* ConstructSignature */] = forEachChildInCallOrConstructSignature,
|
|
31075
|
+
_a[169 /* MethodDeclaration */] = function forEachChildInMethodDeclaration(node, cbNode, cbNodes) {
|
|
31076
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31077
|
+
visitNode(cbNode, node.asteriskToken) ||
|
|
31078
|
+
visitNode(cbNode, node.name) ||
|
|
31079
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31080
|
+
visitNode(cbNode, node.exclamationToken) ||
|
|
31081
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31082
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31083
|
+
visitNode(cbNode, node.type) ||
|
|
31084
|
+
visitNode(cbNode, node.body);
|
|
31085
|
+
},
|
|
31086
|
+
_a[168 /* MethodSignature */] = function forEachChildInMethodSignature(node, cbNode, cbNodes) {
|
|
31087
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31088
|
+
visitNode(cbNode, node.name) ||
|
|
31089
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31090
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31091
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31092
|
+
visitNode(cbNode, node.type);
|
|
31093
|
+
},
|
|
31094
|
+
_a[171 /* Constructor */] = function forEachChildInConstructor(node, cbNode, cbNodes) {
|
|
31095
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31096
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31097
|
+
visitNode(cbNode, node.name) ||
|
|
31098
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31099
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31100
|
+
visitNode(cbNode, node.type) ||
|
|
31101
|
+
visitNode(cbNode, node.body);
|
|
31102
|
+
},
|
|
31103
|
+
_a[172 /* GetAccessor */] = function forEachChildInGetAccessor(node, cbNode, cbNodes) {
|
|
31104
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31105
|
+
visitNode(cbNode, node.name) ||
|
|
31106
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31107
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31108
|
+
visitNode(cbNode, node.type) ||
|
|
31109
|
+
visitNode(cbNode, node.body);
|
|
31110
|
+
},
|
|
31111
|
+
_a[173 /* SetAccessor */] = function forEachChildInSetAccessor(node, cbNode, cbNodes) {
|
|
31112
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31113
|
+
visitNode(cbNode, node.name) ||
|
|
31114
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31115
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31116
|
+
visitNode(cbNode, node.type) ||
|
|
31117
|
+
visitNode(cbNode, node.body);
|
|
31118
|
+
},
|
|
31119
|
+
_a[256 /* FunctionDeclaration */] = function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) {
|
|
31120
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31121
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31122
|
+
visitNode(cbNode, node.asteriskToken) ||
|
|
31123
|
+
visitNode(cbNode, node.name) ||
|
|
31124
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31125
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31126
|
+
visitNode(cbNode, node.type) ||
|
|
31127
|
+
visitNode(cbNode, node.body);
|
|
31128
|
+
},
|
|
31129
|
+
_a[213 /* FunctionExpression */] = function forEachChildInFunctionExpression(node, cbNode, cbNodes) {
|
|
31130
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31131
|
+
visitNode(cbNode, node.asteriskToken) ||
|
|
31132
|
+
visitNode(cbNode, node.name) ||
|
|
31133
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31134
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31135
|
+
visitNode(cbNode, node.type) ||
|
|
31136
|
+
visitNode(cbNode, node.body);
|
|
31137
|
+
},
|
|
31138
|
+
_a[214 /* ArrowFunction */] = function forEachChildInArrowFunction(node, cbNode, cbNodes) {
|
|
31139
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31140
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31141
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31142
|
+
visitNode(cbNode, node.type) ||
|
|
31143
|
+
visitNode(cbNode, node.equalsGreaterThanToken) ||
|
|
31144
|
+
visitNode(cbNode, node.body);
|
|
31145
|
+
},
|
|
31146
|
+
_a[170 /* ClassStaticBlockDeclaration */] = function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) {
|
|
31147
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31148
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31149
|
+
visitNode(cbNode, node.body);
|
|
31150
|
+
},
|
|
31151
|
+
_a[178 /* TypeReference */] = function forEachChildInTypeReference(node, cbNode, cbNodes) {
|
|
31152
|
+
return visitNode(cbNode, node.typeName) ||
|
|
31153
|
+
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31154
|
+
},
|
|
31155
|
+
_a[177 /* TypePredicate */] = function forEachChildInTypePredicate(node, cbNode, _cbNodes) {
|
|
31156
|
+
return visitNode(cbNode, node.assertsModifier) ||
|
|
31157
|
+
visitNode(cbNode, node.parameterName) ||
|
|
31158
|
+
visitNode(cbNode, node.type);
|
|
31159
|
+
},
|
|
31160
|
+
_a[181 /* TypeQuery */] = function forEachChildInTypeQuery(node, cbNode, cbNodes) {
|
|
31161
|
+
return visitNode(cbNode, node.exprName) ||
|
|
31162
|
+
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31163
|
+
},
|
|
31164
|
+
_a[182 /* TypeLiteral */] = function forEachChildInTypeLiteral(node, cbNode, cbNodes) {
|
|
31165
|
+
return visitNodes(cbNode, cbNodes, node.members);
|
|
31166
|
+
},
|
|
31167
|
+
_a[183 /* ArrayType */] = function forEachChildInArrayType(node, cbNode, _cbNodes) {
|
|
31168
|
+
return visitNode(cbNode, node.elementType);
|
|
31169
|
+
},
|
|
31170
|
+
_a[184 /* TupleType */] = function forEachChildInTupleType(node, cbNode, cbNodes) {
|
|
31171
|
+
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31172
|
+
},
|
|
31173
|
+
_a[187 /* UnionType */] = forEachChildInUnionOrIntersectionType,
|
|
31174
|
+
_a[188 /* IntersectionType */] = forEachChildInUnionOrIntersectionType,
|
|
31175
|
+
_a[189 /* ConditionalType */] = function forEachChildInConditionalType(node, cbNode, _cbNodes) {
|
|
31176
|
+
return visitNode(cbNode, node.checkType) ||
|
|
31177
|
+
visitNode(cbNode, node.extendsType) ||
|
|
31178
|
+
visitNode(cbNode, node.trueType) ||
|
|
31179
|
+
visitNode(cbNode, node.falseType);
|
|
31180
|
+
},
|
|
31181
|
+
_a[190 /* InferType */] = function forEachChildInInferType(node, cbNode, _cbNodes) {
|
|
31182
|
+
return visitNode(cbNode, node.typeParameter);
|
|
31183
|
+
},
|
|
31184
|
+
_a[200 /* ImportType */] = function forEachChildInImportType(node, cbNode, cbNodes) {
|
|
31185
|
+
return visitNode(cbNode, node.argument) ||
|
|
31186
|
+
visitNode(cbNode, node.assertions) ||
|
|
31187
|
+
visitNode(cbNode, node.qualifier) ||
|
|
31188
|
+
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31189
|
+
},
|
|
31190
|
+
_a[295 /* ImportTypeAssertionContainer */] = function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) {
|
|
31191
|
+
return visitNode(cbNode, node.assertClause);
|
|
31192
|
+
},
|
|
31193
|
+
_a[191 /* ParenthesizedType */] = forEachChildInParenthesizedTypeOrTypeOperator,
|
|
31194
|
+
_a[193 /* TypeOperator */] = forEachChildInParenthesizedTypeOrTypeOperator,
|
|
31195
|
+
_a[194 /* IndexedAccessType */] = function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) {
|
|
31196
|
+
return visitNode(cbNode, node.objectType) ||
|
|
31197
|
+
visitNode(cbNode, node.indexType);
|
|
31198
|
+
},
|
|
31199
|
+
_a[195 /* MappedType */] = function forEachChildInMappedType(node, cbNode, cbNodes) {
|
|
31200
|
+
return visitNode(cbNode, node.readonlyToken) ||
|
|
31201
|
+
visitNode(cbNode, node.typeParameter) ||
|
|
31202
|
+
visitNode(cbNode, node.nameType) ||
|
|
31203
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31204
|
+
visitNode(cbNode, node.type) ||
|
|
31205
|
+
visitNodes(cbNode, cbNodes, node.members);
|
|
31206
|
+
},
|
|
31207
|
+
_a[196 /* LiteralType */] = function forEachChildInLiteralType(node, cbNode, _cbNodes) {
|
|
31208
|
+
return visitNode(cbNode, node.literal);
|
|
31209
|
+
},
|
|
31210
|
+
_a[197 /* NamedTupleMember */] = function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) {
|
|
31211
|
+
return visitNode(cbNode, node.dotDotDotToken) ||
|
|
31212
|
+
visitNode(cbNode, node.name) ||
|
|
31213
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31214
|
+
visitNode(cbNode, node.type);
|
|
31215
|
+
},
|
|
31216
|
+
_a[201 /* ObjectBindingPattern */] = forEachChildInObjectOrArrayBindingPattern,
|
|
31217
|
+
_a[202 /* ArrayBindingPattern */] = forEachChildInObjectOrArrayBindingPattern,
|
|
31218
|
+
_a[204 /* ArrayLiteralExpression */] = function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) {
|
|
31219
|
+
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31220
|
+
},
|
|
31221
|
+
_a[205 /* ObjectLiteralExpression */] = function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) {
|
|
31222
|
+
return visitNodes(cbNode, cbNodes, node.properties);
|
|
31223
|
+
},
|
|
31224
|
+
_a[206 /* PropertyAccessExpression */] = function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) {
|
|
31225
|
+
return visitNode(cbNode, node.expression) ||
|
|
31226
|
+
visitNode(cbNode, node.questionDotToken) ||
|
|
31227
|
+
visitNode(cbNode, node.name);
|
|
31228
|
+
},
|
|
31229
|
+
_a[207 /* ElementAccessExpression */] = function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) {
|
|
31230
|
+
return visitNode(cbNode, node.expression) ||
|
|
31231
|
+
visitNode(cbNode, node.questionDotToken) ||
|
|
31232
|
+
visitNode(cbNode, node.argumentExpression);
|
|
31233
|
+
},
|
|
31234
|
+
_a[208 /* CallExpression */] = forEachChildInCallOrNewExpression,
|
|
31235
|
+
_a[209 /* NewExpression */] = forEachChildInCallOrNewExpression,
|
|
31236
|
+
_a[210 /* TaggedTemplateExpression */] = function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) {
|
|
31237
|
+
return visitNode(cbNode, node.tag) ||
|
|
31238
|
+
visitNode(cbNode, node.questionDotToken) ||
|
|
31239
|
+
visitNodes(cbNode, cbNodes, node.typeArguments) ||
|
|
31240
|
+
visitNode(cbNode, node.template);
|
|
31241
|
+
},
|
|
31242
|
+
_a[211 /* TypeAssertionExpression */] = function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) {
|
|
31243
|
+
return visitNode(cbNode, node.type) ||
|
|
31244
|
+
visitNode(cbNode, node.expression);
|
|
31245
|
+
},
|
|
31246
|
+
_a[212 /* ParenthesizedExpression */] = function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) {
|
|
31247
|
+
return visitNode(cbNode, node.expression);
|
|
31248
|
+
},
|
|
31249
|
+
_a[215 /* DeleteExpression */] = function forEachChildInDeleteExpression(node, cbNode, _cbNodes) {
|
|
31250
|
+
return visitNode(cbNode, node.expression);
|
|
31251
|
+
},
|
|
31252
|
+
_a[216 /* TypeOfExpression */] = function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) {
|
|
31253
|
+
return visitNode(cbNode, node.expression);
|
|
31254
|
+
},
|
|
31255
|
+
_a[217 /* VoidExpression */] = function forEachChildInVoidExpression(node, cbNode, _cbNodes) {
|
|
31256
|
+
return visitNode(cbNode, node.expression);
|
|
31257
|
+
},
|
|
31258
|
+
_a[219 /* PrefixUnaryExpression */] = function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) {
|
|
31259
|
+
return visitNode(cbNode, node.operand);
|
|
31260
|
+
},
|
|
31261
|
+
_a[224 /* YieldExpression */] = function forEachChildInYieldExpression(node, cbNode, _cbNodes) {
|
|
31262
|
+
return visitNode(cbNode, node.asteriskToken) ||
|
|
31263
|
+
visitNode(cbNode, node.expression);
|
|
31264
|
+
},
|
|
31265
|
+
_a[218 /* AwaitExpression */] = function forEachChildInAwaitExpression(node, cbNode, _cbNodes) {
|
|
31266
|
+
return visitNode(cbNode, node.expression);
|
|
31267
|
+
},
|
|
31268
|
+
_a[220 /* PostfixUnaryExpression */] = function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) {
|
|
31269
|
+
return visitNode(cbNode, node.operand);
|
|
31270
|
+
},
|
|
31271
|
+
_a[221 /* BinaryExpression */] = function forEachChildInBinaryExpression(node, cbNode, _cbNodes) {
|
|
31272
|
+
return visitNode(cbNode, node.left) ||
|
|
31273
|
+
visitNode(cbNode, node.operatorToken) ||
|
|
31274
|
+
visitNode(cbNode, node.right);
|
|
31275
|
+
},
|
|
31276
|
+
_a[229 /* AsExpression */] = function forEachChildInAsExpression(node, cbNode, _cbNodes) {
|
|
31277
|
+
return visitNode(cbNode, node.expression) ||
|
|
31278
|
+
visitNode(cbNode, node.type);
|
|
31279
|
+
},
|
|
31280
|
+
_a[230 /* NonNullExpression */] = function forEachChildInNonNullExpression(node, cbNode, _cbNodes) {
|
|
31281
|
+
return visitNode(cbNode, node.expression);
|
|
31282
|
+
},
|
|
31283
|
+
_a[231 /* MetaProperty */] = function forEachChildInMetaProperty(node, cbNode, _cbNodes) {
|
|
31284
|
+
return visitNode(cbNode, node.name);
|
|
31285
|
+
},
|
|
31286
|
+
_a[222 /* ConditionalExpression */] = function forEachChildInConditionalExpression(node, cbNode, _cbNodes) {
|
|
31287
|
+
return visitNode(cbNode, node.condition) ||
|
|
31288
|
+
visitNode(cbNode, node.questionToken) ||
|
|
31289
|
+
visitNode(cbNode, node.whenTrue) ||
|
|
31290
|
+
visitNode(cbNode, node.colonToken) ||
|
|
31291
|
+
visitNode(cbNode, node.whenFalse);
|
|
31292
|
+
},
|
|
31293
|
+
_a[225 /* SpreadElement */] = function forEachChildInSpreadElement(node, cbNode, _cbNodes) {
|
|
31294
|
+
return visitNode(cbNode, node.expression);
|
|
31295
|
+
},
|
|
31296
|
+
_a[235 /* Block */] = forEachChildInBlock,
|
|
31297
|
+
_a[262 /* ModuleBlock */] = forEachChildInBlock,
|
|
31298
|
+
_a[305 /* SourceFile */] = function forEachChildInSourceFile(node, cbNode, cbNodes) {
|
|
31299
|
+
return visitNodes(cbNode, cbNodes, node.statements) ||
|
|
31300
|
+
visitNode(cbNode, node.endOfFileToken);
|
|
31301
|
+
},
|
|
31302
|
+
_a[237 /* VariableStatement */] = function forEachChildInVariableStatement(node, cbNode, cbNodes) {
|
|
31303
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31304
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31305
|
+
visitNode(cbNode, node.declarationList);
|
|
31306
|
+
},
|
|
31307
|
+
_a[255 /* VariableDeclarationList */] = function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) {
|
|
31308
|
+
return visitNodes(cbNode, cbNodes, node.declarations);
|
|
31309
|
+
},
|
|
31310
|
+
_a[238 /* ExpressionStatement */] = function forEachChildInExpressionStatement(node, cbNode, _cbNodes) {
|
|
31311
|
+
return visitNode(cbNode, node.expression);
|
|
31312
|
+
},
|
|
31313
|
+
_a[239 /* IfStatement */] = function forEachChildInIfStatement(node, cbNode, _cbNodes) {
|
|
31314
|
+
return visitNode(cbNode, node.expression) ||
|
|
31315
|
+
visitNode(cbNode, node.thenStatement) ||
|
|
31316
|
+
visitNode(cbNode, node.elseStatement);
|
|
31317
|
+
},
|
|
31318
|
+
_a[240 /* DoStatement */] = function forEachChildInDoStatement(node, cbNode, _cbNodes) {
|
|
31319
|
+
return visitNode(cbNode, node.statement) ||
|
|
31320
|
+
visitNode(cbNode, node.expression);
|
|
31321
|
+
},
|
|
31322
|
+
_a[241 /* WhileStatement */] = function forEachChildInWhileStatement(node, cbNode, _cbNodes) {
|
|
31323
|
+
return visitNode(cbNode, node.expression) ||
|
|
31324
|
+
visitNode(cbNode, node.statement);
|
|
31325
|
+
},
|
|
31326
|
+
_a[242 /* ForStatement */] = function forEachChildInForStatement(node, cbNode, _cbNodes) {
|
|
31327
|
+
return visitNode(cbNode, node.initializer) ||
|
|
31328
|
+
visitNode(cbNode, node.condition) ||
|
|
31329
|
+
visitNode(cbNode, node.incrementor) ||
|
|
31330
|
+
visitNode(cbNode, node.statement);
|
|
31331
|
+
},
|
|
31332
|
+
_a[243 /* ForInStatement */] = function forEachChildInForInStatement(node, cbNode, _cbNodes) {
|
|
31333
|
+
return visitNode(cbNode, node.initializer) ||
|
|
31334
|
+
visitNode(cbNode, node.expression) ||
|
|
31335
|
+
visitNode(cbNode, node.statement);
|
|
31336
|
+
},
|
|
31337
|
+
_a[244 /* ForOfStatement */] = function forEachChildInForOfStatement(node, cbNode, _cbNodes) {
|
|
31338
|
+
return visitNode(cbNode, node.awaitModifier) ||
|
|
31339
|
+
visitNode(cbNode, node.initializer) ||
|
|
31340
|
+
visitNode(cbNode, node.expression) ||
|
|
31341
|
+
visitNode(cbNode, node.statement);
|
|
31342
|
+
},
|
|
31343
|
+
_a[245 /* ContinueStatement */] = forEachChildInContinueOrBreakStatement,
|
|
31344
|
+
_a[246 /* BreakStatement */] = forEachChildInContinueOrBreakStatement,
|
|
31345
|
+
_a[247 /* ReturnStatement */] = function forEachChildInReturnStatement(node, cbNode, _cbNodes) {
|
|
31346
|
+
return visitNode(cbNode, node.expression);
|
|
31347
|
+
},
|
|
31348
|
+
_a[248 /* WithStatement */] = function forEachChildInWithStatement(node, cbNode, _cbNodes) {
|
|
31349
|
+
return visitNode(cbNode, node.expression) ||
|
|
31350
|
+
visitNode(cbNode, node.statement);
|
|
31351
|
+
},
|
|
31352
|
+
_a[249 /* SwitchStatement */] = function forEachChildInSwitchStatement(node, cbNode, _cbNodes) {
|
|
31353
|
+
return visitNode(cbNode, node.expression) ||
|
|
31354
|
+
visitNode(cbNode, node.caseBlock);
|
|
31355
|
+
},
|
|
31356
|
+
_a[263 /* CaseBlock */] = function forEachChildInCaseBlock(node, cbNode, cbNodes) {
|
|
31357
|
+
return visitNodes(cbNode, cbNodes, node.clauses);
|
|
31358
|
+
},
|
|
31359
|
+
_a[289 /* CaseClause */] = function forEachChildInCaseClause(node, cbNode, cbNodes) {
|
|
31360
|
+
return visitNode(cbNode, node.expression) ||
|
|
31361
|
+
visitNodes(cbNode, cbNodes, node.statements);
|
|
31362
|
+
},
|
|
31363
|
+
_a[290 /* DefaultClause */] = function forEachChildInDefaultClause(node, cbNode, cbNodes) {
|
|
31364
|
+
return visitNodes(cbNode, cbNodes, node.statements);
|
|
31365
|
+
},
|
|
31366
|
+
_a[250 /* LabeledStatement */] = function forEachChildInLabeledStatement(node, cbNode, _cbNodes) {
|
|
31367
|
+
return visitNode(cbNode, node.label) ||
|
|
31368
|
+
visitNode(cbNode, node.statement);
|
|
31369
|
+
},
|
|
31370
|
+
_a[251 /* ThrowStatement */] = function forEachChildInThrowStatement(node, cbNode, _cbNodes) {
|
|
31371
|
+
return visitNode(cbNode, node.expression);
|
|
31372
|
+
},
|
|
31373
|
+
_a[252 /* TryStatement */] = function forEachChildInTryStatement(node, cbNode, _cbNodes) {
|
|
31374
|
+
return visitNode(cbNode, node.tryBlock) ||
|
|
31375
|
+
visitNode(cbNode, node.catchClause) ||
|
|
31376
|
+
visitNode(cbNode, node.finallyBlock);
|
|
31377
|
+
},
|
|
31378
|
+
_a[292 /* CatchClause */] = function forEachChildInCatchClause(node, cbNode, _cbNodes) {
|
|
31379
|
+
return visitNode(cbNode, node.variableDeclaration) ||
|
|
31380
|
+
visitNode(cbNode, node.block);
|
|
31381
|
+
},
|
|
31382
|
+
_a[165 /* Decorator */] = function forEachChildInDecorator(node, cbNode, _cbNodes) {
|
|
31383
|
+
return visitNode(cbNode, node.expression);
|
|
31384
|
+
},
|
|
31385
|
+
_a[257 /* ClassDeclaration */] = forEachChildInClassDeclarationOrExpression,
|
|
31386
|
+
_a[226 /* ClassExpression */] = forEachChildInClassDeclarationOrExpression,
|
|
31387
|
+
_a[258 /* InterfaceDeclaration */] = function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) {
|
|
31388
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31389
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31390
|
+
visitNode(cbNode, node.name) ||
|
|
31391
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31392
|
+
visitNodes(cbNode, cbNodes, node.heritageClauses) ||
|
|
31393
|
+
visitNodes(cbNode, cbNodes, node.members);
|
|
31394
|
+
},
|
|
31395
|
+
_a[259 /* TypeAliasDeclaration */] = function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) {
|
|
31396
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31397
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31398
|
+
visitNode(cbNode, node.name) ||
|
|
31399
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31400
|
+
visitNode(cbNode, node.type);
|
|
31401
|
+
},
|
|
31402
|
+
_a[260 /* EnumDeclaration */] = function forEachChildInEnumDeclaration(node, cbNode, cbNodes) {
|
|
31403
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31404
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31405
|
+
visitNode(cbNode, node.name) ||
|
|
31406
|
+
visitNodes(cbNode, cbNodes, node.members);
|
|
31407
|
+
},
|
|
31408
|
+
_a[299 /* EnumMember */] = function forEachChildInEnumMember(node, cbNode, _cbNodes) {
|
|
31409
|
+
return visitNode(cbNode, node.name) ||
|
|
31410
|
+
visitNode(cbNode, node.initializer);
|
|
31411
|
+
},
|
|
31412
|
+
_a[261 /* ModuleDeclaration */] = function forEachChildInModuleDeclaration(node, cbNode, cbNodes) {
|
|
31413
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31414
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31415
|
+
visitNode(cbNode, node.name) ||
|
|
31416
|
+
visitNode(cbNode, node.body);
|
|
31417
|
+
},
|
|
31418
|
+
_a[265 /* ImportEqualsDeclaration */] = function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) {
|
|
31419
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31420
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31421
|
+
visitNode(cbNode, node.name) ||
|
|
31422
|
+
visitNode(cbNode, node.moduleReference);
|
|
31423
|
+
},
|
|
31424
|
+
_a[266 /* ImportDeclaration */] = function forEachChildInImportDeclaration(node, cbNode, cbNodes) {
|
|
31425
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31426
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31427
|
+
visitNode(cbNode, node.importClause) ||
|
|
31428
|
+
visitNode(cbNode, node.moduleSpecifier) ||
|
|
31429
|
+
visitNode(cbNode, node.assertClause);
|
|
31430
|
+
},
|
|
31431
|
+
_a[267 /* ImportClause */] = function forEachChildInImportClause(node, cbNode, _cbNodes) {
|
|
31432
|
+
return visitNode(cbNode, node.name) ||
|
|
31433
|
+
visitNode(cbNode, node.namedBindings);
|
|
31434
|
+
},
|
|
31435
|
+
_a[293 /* AssertClause */] = function forEachChildInAssertClause(node, cbNode, cbNodes) {
|
|
31436
|
+
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31437
|
+
},
|
|
31438
|
+
_a[294 /* AssertEntry */] = function forEachChildInAssertEntry(node, cbNode, _cbNodes) {
|
|
31439
|
+
return visitNode(cbNode, node.name) ||
|
|
31440
|
+
visitNode(cbNode, node.value);
|
|
31441
|
+
},
|
|
31442
|
+
_a[264 /* NamespaceExportDeclaration */] = function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) {
|
|
31443
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31444
|
+
visitNode(cbNode, node.name);
|
|
31445
|
+
},
|
|
31446
|
+
_a[268 /* NamespaceImport */] = function forEachChildInNamespaceImport(node, cbNode, _cbNodes) {
|
|
31447
|
+
return visitNode(cbNode, node.name);
|
|
31448
|
+
},
|
|
31449
|
+
_a[274 /* NamespaceExport */] = function forEachChildInNamespaceExport(node, cbNode, _cbNodes) {
|
|
31450
|
+
return visitNode(cbNode, node.name);
|
|
31451
|
+
},
|
|
31452
|
+
_a[269 /* NamedImports */] = forEachChildInNamedImportsOrExports,
|
|
31453
|
+
_a[273 /* NamedExports */] = forEachChildInNamedImportsOrExports,
|
|
31454
|
+
_a[272 /* ExportDeclaration */] = function forEachChildInExportDeclaration(node, cbNode, cbNodes) {
|
|
31455
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31456
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31457
|
+
visitNode(cbNode, node.exportClause) ||
|
|
31458
|
+
visitNode(cbNode, node.moduleSpecifier) ||
|
|
31459
|
+
visitNode(cbNode, node.assertClause);
|
|
31460
|
+
},
|
|
31461
|
+
_a[270 /* ImportSpecifier */] = forEachChildInImportOrExportSpecifier,
|
|
31462
|
+
_a[275 /* ExportSpecifier */] = forEachChildInImportOrExportSpecifier,
|
|
31463
|
+
_a[271 /* ExportAssignment */] = function forEachChildInExportAssignment(node, cbNode, cbNodes) {
|
|
31464
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31465
|
+
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31466
|
+
visitNode(cbNode, node.expression);
|
|
31467
|
+
},
|
|
31468
|
+
_a[223 /* TemplateExpression */] = function forEachChildInTemplateExpression(node, cbNode, cbNodes) {
|
|
31469
|
+
return visitNode(cbNode, node.head) ||
|
|
31470
|
+
visitNodes(cbNode, cbNodes, node.templateSpans);
|
|
31471
|
+
},
|
|
31472
|
+
_a[233 /* TemplateSpan */] = function forEachChildInTemplateSpan(node, cbNode, _cbNodes) {
|
|
31473
|
+
return visitNode(cbNode, node.expression) ||
|
|
31474
|
+
visitNode(cbNode, node.literal);
|
|
31475
|
+
},
|
|
31476
|
+
_a[198 /* TemplateLiteralType */] = function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) {
|
|
31477
|
+
return visitNode(cbNode, node.head) ||
|
|
31478
|
+
visitNodes(cbNode, cbNodes, node.templateSpans);
|
|
31479
|
+
},
|
|
31480
|
+
_a[199 /* TemplateLiteralTypeSpan */] = function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) {
|
|
31481
|
+
return visitNode(cbNode, node.type) ||
|
|
31482
|
+
visitNode(cbNode, node.literal);
|
|
31483
|
+
},
|
|
31484
|
+
_a[162 /* ComputedPropertyName */] = function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) {
|
|
31485
|
+
return visitNode(cbNode, node.expression);
|
|
31486
|
+
},
|
|
31487
|
+
_a[291 /* HeritageClause */] = function forEachChildInHeritageClause(node, cbNode, cbNodes) {
|
|
31488
|
+
return visitNodes(cbNode, cbNodes, node.types);
|
|
31489
|
+
},
|
|
31490
|
+
_a[228 /* ExpressionWithTypeArguments */] = function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) {
|
|
31491
|
+
return visitNode(cbNode, node.expression) ||
|
|
31492
|
+
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31493
|
+
},
|
|
31494
|
+
_a[277 /* ExternalModuleReference */] = function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) {
|
|
31495
|
+
return visitNode(cbNode, node.expression);
|
|
31496
|
+
},
|
|
31497
|
+
_a[276 /* MissingDeclaration */] = function forEachChildInMissingDeclaration(node, cbNode, cbNodes) {
|
|
31498
|
+
return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
|
|
31499
|
+
visitNodes(cbNode, cbNodes, node.modifiers);
|
|
31500
|
+
},
|
|
31501
|
+
_a[351 /* CommaListExpression */] = function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
|
|
31502
|
+
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31503
|
+
},
|
|
31504
|
+
_a[278 /* JsxElement */] = function forEachChildInJsxElement(node, cbNode, cbNodes) {
|
|
31505
|
+
return visitNode(cbNode, node.openingElement) ||
|
|
31506
|
+
visitNodes(cbNode, cbNodes, node.children) ||
|
|
31507
|
+
visitNode(cbNode, node.closingElement);
|
|
31508
|
+
},
|
|
31509
|
+
_a[282 /* JsxFragment */] = function forEachChildInJsxFragment(node, cbNode, cbNodes) {
|
|
31510
|
+
return visitNode(cbNode, node.openingFragment) ||
|
|
31511
|
+
visitNodes(cbNode, cbNodes, node.children) ||
|
|
31512
|
+
visitNode(cbNode, node.closingFragment);
|
|
31513
|
+
},
|
|
31514
|
+
_a[279 /* JsxSelfClosingElement */] = forEachChildInJsxOpeningOrSelfClosingElement,
|
|
31515
|
+
_a[280 /* JsxOpeningElement */] = forEachChildInJsxOpeningOrSelfClosingElement,
|
|
31516
|
+
_a[286 /* JsxAttributes */] = function forEachChildInJsxAttributes(node, cbNode, cbNodes) {
|
|
31517
|
+
return visitNodes(cbNode, cbNodes, node.properties);
|
|
31518
|
+
},
|
|
31519
|
+
_a[285 /* JsxAttribute */] = function forEachChildInJsxAttribute(node, cbNode, _cbNodes) {
|
|
31520
|
+
return visitNode(cbNode, node.name) ||
|
|
31521
|
+
visitNode(cbNode, node.initializer);
|
|
31522
|
+
},
|
|
31523
|
+
_a[287 /* JsxSpreadAttribute */] = function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) {
|
|
31524
|
+
return visitNode(cbNode, node.expression);
|
|
31525
|
+
},
|
|
31526
|
+
_a[288 /* JsxExpression */] = function forEachChildInJsxExpression(node, cbNode, _cbNodes) {
|
|
31527
|
+
return visitNode(cbNode, node.dotDotDotToken) ||
|
|
31528
|
+
visitNode(cbNode, node.expression);
|
|
31529
|
+
},
|
|
31530
|
+
_a[281 /* JsxClosingElement */] = function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) {
|
|
31531
|
+
return visitNode(cbNode, node.tagName);
|
|
31532
|
+
},
|
|
31533
|
+
_a[185 /* OptionalType */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31534
|
+
_a[186 /* RestType */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31535
|
+
_a[309 /* JSDocTypeExpression */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31536
|
+
_a[315 /* JSDocNonNullableType */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31537
|
+
_a[314 /* JSDocNullableType */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31538
|
+
_a[316 /* JSDocOptionalType */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31539
|
+
_a[318 /* JSDocVariadicType */] = forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
31540
|
+
_a[317 /* JSDocFunctionType */] = function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) {
|
|
31541
|
+
return visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31542
|
+
visitNode(cbNode, node.type);
|
|
31543
|
+
},
|
|
31544
|
+
_a[320 /* JSDoc */] = function forEachChildInJSDoc(node, cbNode, cbNodes) {
|
|
31545
|
+
return (typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment))
|
|
31546
|
+
|| visitNodes(cbNode, cbNodes, node.tags);
|
|
31547
|
+
},
|
|
31548
|
+
_a[346 /* JSDocSeeTag */] = function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) {
|
|
31549
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31550
|
+
visitNode(cbNode, node.name) ||
|
|
31551
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31552
|
+
},
|
|
31553
|
+
_a[310 /* JSDocNameReference */] = function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) {
|
|
31554
|
+
return visitNode(cbNode, node.name);
|
|
31555
|
+
},
|
|
31556
|
+
_a[311 /* JSDocMemberName */] = function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) {
|
|
31557
|
+
return visitNode(cbNode, node.left) ||
|
|
31558
|
+
visitNode(cbNode, node.right);
|
|
31559
|
+
},
|
|
31560
|
+
_a[340 /* JSDocParameterTag */] = forEachChildInJSDocParameterOrPropertyTag,
|
|
31561
|
+
_a[347 /* JSDocPropertyTag */] = forEachChildInJSDocParameterOrPropertyTag,
|
|
31562
|
+
_a[330 /* JSDocAuthorTag */] = function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) {
|
|
31563
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31564
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31565
|
+
},
|
|
31566
|
+
_a[329 /* JSDocImplementsTag */] = function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) {
|
|
31567
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31568
|
+
visitNode(cbNode, node.class) ||
|
|
31569
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31570
|
+
},
|
|
31571
|
+
_a[328 /* JSDocAugmentsTag */] = function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) {
|
|
31572
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31573
|
+
visitNode(cbNode, node.class) ||
|
|
31574
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31575
|
+
},
|
|
31576
|
+
_a[344 /* JSDocTemplateTag */] = function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) {
|
|
31577
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31578
|
+
visitNode(cbNode, node.constraint) ||
|
|
31579
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31580
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31581
|
+
},
|
|
31582
|
+
_a[345 /* JSDocTypedefTag */] = function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) {
|
|
31583
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31584
|
+
(node.typeExpression &&
|
|
31585
|
+
node.typeExpression.kind === 309 /* JSDocTypeExpression */
|
|
31586
|
+
? visitNode(cbNode, node.typeExpression) ||
|
|
31587
|
+
visitNode(cbNode, node.fullName) ||
|
|
31588
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment))
|
|
31589
|
+
: visitNode(cbNode, node.fullName) ||
|
|
31590
|
+
visitNode(cbNode, node.typeExpression) ||
|
|
31591
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment)));
|
|
31592
|
+
},
|
|
31593
|
+
_a[338 /* JSDocCallbackTag */] = function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) {
|
|
31594
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31595
|
+
visitNode(cbNode, node.fullName) ||
|
|
31596
|
+
visitNode(cbNode, node.typeExpression) ||
|
|
31597
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31598
|
+
},
|
|
31599
|
+
_a[341 /* JSDocReturnTag */] = forEachChildInJSDocReturnTag,
|
|
31600
|
+
_a[343 /* JSDocTypeTag */] = forEachChildInJSDocReturnTag,
|
|
31601
|
+
_a[342 /* JSDocThisTag */] = forEachChildInJSDocReturnTag,
|
|
31602
|
+
_a[339 /* JSDocEnumTag */] = forEachChildInJSDocReturnTag,
|
|
31603
|
+
_a[323 /* JSDocSignature */] = function forEachChildInJSDocSignature(node, cbNode, _cbNodes) {
|
|
31604
|
+
return ts.forEach(node.typeParameters, cbNode) ||
|
|
31605
|
+
ts.forEach(node.parameters, cbNode) ||
|
|
31606
|
+
visitNode(cbNode, node.type);
|
|
31607
|
+
},
|
|
31608
|
+
_a[324 /* JSDocLink */] = forEachChildInJSDocLinkCodeOrPlain,
|
|
31609
|
+
_a[325 /* JSDocLinkCode */] = forEachChildInJSDocLinkCodeOrPlain,
|
|
31610
|
+
_a[326 /* JSDocLinkPlain */] = forEachChildInJSDocLinkCodeOrPlain,
|
|
31611
|
+
_a[322 /* JSDocTypeLiteral */] = function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) {
|
|
31612
|
+
return ts.forEach(node.jsDocPropertyTags, cbNode);
|
|
31613
|
+
},
|
|
31614
|
+
_a[327 /* JSDocTag */] = forEachChildInJSDocTag,
|
|
31615
|
+
_a[332 /* JSDocClassTag */] = forEachChildInJSDocTag,
|
|
31616
|
+
_a[333 /* JSDocPublicTag */] = forEachChildInJSDocTag,
|
|
31617
|
+
_a[334 /* JSDocPrivateTag */] = forEachChildInJSDocTag,
|
|
31618
|
+
_a[335 /* JSDocProtectedTag */] = forEachChildInJSDocTag,
|
|
31619
|
+
_a[336 /* JSDocReadonlyTag */] = forEachChildInJSDocTag,
|
|
31620
|
+
_a[331 /* JSDocDeprecatedTag */] = forEachChildInJSDocTag,
|
|
31621
|
+
_a[350 /* PartiallyEmittedExpression */] = forEachChildInPartiallyEmittedExpression,
|
|
31622
|
+
_a);
|
|
31623
|
+
// shared
|
|
31624
|
+
function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
|
|
31625
|
+
return visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31626
|
+
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31627
|
+
visitNode(cbNode, node.type);
|
|
31628
|
+
}
|
|
31629
|
+
;
|
|
31630
|
+
function forEachChildInUnionOrIntersectionType(node, cbNode, cbNodes) {
|
|
31631
|
+
return visitNodes(cbNode, cbNodes, node.types);
|
|
31632
|
+
}
|
|
31633
|
+
function forEachChildInParenthesizedTypeOrTypeOperator(node, cbNode, _cbNodes) {
|
|
31634
|
+
return visitNode(cbNode, node.type);
|
|
31635
|
+
}
|
|
31636
|
+
function forEachChildInObjectOrArrayBindingPattern(node, cbNode, cbNodes) {
|
|
31637
|
+
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31638
|
+
}
|
|
31639
|
+
function forEachChildInCallOrNewExpression(node, cbNode, cbNodes) {
|
|
31640
|
+
return visitNode(cbNode, node.expression) ||
|
|
31641
|
+
// TODO: should we separate these branches out?
|
|
31642
|
+
visitNode(cbNode, node.questionDotToken) ||
|
|
31643
|
+
visitNodes(cbNode, cbNodes, node.typeArguments) ||
|
|
31644
|
+
visitNodes(cbNode, cbNodes, node.arguments);
|
|
31645
|
+
}
|
|
31646
|
+
function forEachChildInBlock(node, cbNode, cbNodes) {
|
|
31647
|
+
return visitNodes(cbNode, cbNodes, node.statements);
|
|
31648
|
+
}
|
|
31649
|
+
function forEachChildInContinueOrBreakStatement(node, cbNode, _cbNodes) {
|
|
31650
|
+
return visitNode(cbNode, node.label);
|
|
31651
|
+
}
|
|
31652
|
+
function forEachChildInClassDeclarationOrExpression(node, cbNode, cbNodes) {
|
|
31653
|
+
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31654
|
+
visitNode(cbNode, node.name) ||
|
|
31655
|
+
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31656
|
+
visitNodes(cbNode, cbNodes, node.heritageClauses) ||
|
|
31657
|
+
visitNodes(cbNode, cbNodes, node.members);
|
|
31658
|
+
}
|
|
31659
|
+
function forEachChildInNamedImportsOrExports(node, cbNode, cbNodes) {
|
|
31660
|
+
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31661
|
+
}
|
|
31662
|
+
function forEachChildInImportOrExportSpecifier(node, cbNode, _cbNodes) {
|
|
31663
|
+
return visitNode(cbNode, node.propertyName) ||
|
|
31664
|
+
visitNode(cbNode, node.name);
|
|
31665
|
+
}
|
|
31666
|
+
function forEachChildInJsxOpeningOrSelfClosingElement(node, cbNode, cbNodes) {
|
|
31667
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31668
|
+
visitNodes(cbNode, cbNodes, node.typeArguments) ||
|
|
31669
|
+
visitNode(cbNode, node.attributes);
|
|
31670
|
+
}
|
|
31671
|
+
function forEachChildInOptionalRestOrJSDocParameterModifier(node, cbNode, _cbNodes) {
|
|
31672
|
+
return visitNode(cbNode, node.type);
|
|
31673
|
+
}
|
|
31674
|
+
function forEachChildInJSDocParameterOrPropertyTag(node, cbNode, cbNodes) {
|
|
31675
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31676
|
+
(node.isNameFirst
|
|
31677
|
+
? visitNode(cbNode, node.name) || visitNode(cbNode, node.typeExpression)
|
|
31678
|
+
: visitNode(cbNode, node.typeExpression) || visitNode(cbNode, node.name)) ||
|
|
31679
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31680
|
+
}
|
|
31681
|
+
function forEachChildInJSDocReturnTag(node, cbNode, cbNodes) {
|
|
31682
|
+
return visitNode(cbNode, node.tagName) ||
|
|
31683
|
+
visitNode(cbNode, node.typeExpression) ||
|
|
31684
|
+
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31685
|
+
}
|
|
31686
|
+
function forEachChildInJSDocLinkCodeOrPlain(node, cbNode, _cbNodes) {
|
|
31687
|
+
return visitNode(cbNode, node.name);
|
|
31688
|
+
}
|
|
31689
|
+
function forEachChildInJSDocTag(node, cbNode, cbNodes) {
|
|
31690
|
+
return visitNode(cbNode, node.tagName)
|
|
31691
|
+
|| (typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31692
|
+
}
|
|
31693
|
+
function forEachChildInPartiallyEmittedExpression(node, cbNode, _cbNodes) {
|
|
31694
|
+
return visitNode(cbNode, node.expression);
|
|
31695
|
+
}
|
|
30985
31696
|
/**
|
|
30986
31697
|
* Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes
|
|
30987
31698
|
* stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; otherwise,
|
|
@@ -30996,562 +31707,11 @@ var ts;
|
|
|
30996
31707
|
* that they appear in the source code. The language service depends on this property to locate nodes by position.
|
|
30997
31708
|
*/
|
|
30998
31709
|
function forEachChild(node, cbNode, cbNodes) {
|
|
30999
|
-
if (
|
|
31710
|
+
if (node === undefined || node.kind <= 160 /* LastToken */) {
|
|
31000
31711
|
return;
|
|
31001
31712
|
}
|
|
31002
|
-
|
|
31003
|
-
|
|
31004
|
-
return visitNode(cbNode, node.left) ||
|
|
31005
|
-
visitNode(cbNode, node.right);
|
|
31006
|
-
case 163 /* TypeParameter */:
|
|
31007
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31008
|
-
visitNode(cbNode, node.name) ||
|
|
31009
|
-
visitNode(cbNode, node.constraint) ||
|
|
31010
|
-
visitNode(cbNode, node.default) ||
|
|
31011
|
-
visitNode(cbNode, node.expression);
|
|
31012
|
-
case 297 /* ShorthandPropertyAssignment */:
|
|
31013
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31014
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31015
|
-
visitNode(cbNode, node.name) ||
|
|
31016
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31017
|
-
visitNode(cbNode, node.exclamationToken) ||
|
|
31018
|
-
visitNode(cbNode, node.equalsToken) ||
|
|
31019
|
-
visitNode(cbNode, node.objectAssignmentInitializer);
|
|
31020
|
-
case 298 /* SpreadAssignment */:
|
|
31021
|
-
return visitNode(cbNode, node.expression);
|
|
31022
|
-
case 164 /* Parameter */:
|
|
31023
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31024
|
-
visitNode(cbNode, node.dotDotDotToken) ||
|
|
31025
|
-
visitNode(cbNode, node.name) ||
|
|
31026
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31027
|
-
visitNode(cbNode, node.type) ||
|
|
31028
|
-
visitNode(cbNode, node.initializer);
|
|
31029
|
-
case 167 /* PropertyDeclaration */:
|
|
31030
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31031
|
-
visitNode(cbNode, node.name) ||
|
|
31032
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31033
|
-
visitNode(cbNode, node.exclamationToken) ||
|
|
31034
|
-
visitNode(cbNode, node.type) ||
|
|
31035
|
-
visitNode(cbNode, node.initializer);
|
|
31036
|
-
case 166 /* PropertySignature */:
|
|
31037
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31038
|
-
visitNode(cbNode, node.name) ||
|
|
31039
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31040
|
-
visitNode(cbNode, node.type) ||
|
|
31041
|
-
visitNode(cbNode, node.initializer);
|
|
31042
|
-
case 296 /* PropertyAssignment */:
|
|
31043
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31044
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31045
|
-
visitNode(cbNode, node.name) ||
|
|
31046
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31047
|
-
visitNode(cbNode, node.exclamationToken) ||
|
|
31048
|
-
visitNode(cbNode, node.initializer);
|
|
31049
|
-
case 254 /* VariableDeclaration */:
|
|
31050
|
-
return visitNode(cbNode, node.name) ||
|
|
31051
|
-
visitNode(cbNode, node.exclamationToken) ||
|
|
31052
|
-
visitNode(cbNode, node.type) ||
|
|
31053
|
-
visitNode(cbNode, node.initializer);
|
|
31054
|
-
case 203 /* BindingElement */:
|
|
31055
|
-
return visitNode(cbNode, node.dotDotDotToken) ||
|
|
31056
|
-
visitNode(cbNode, node.propertyName) ||
|
|
31057
|
-
visitNode(cbNode, node.name) ||
|
|
31058
|
-
visitNode(cbNode, node.initializer);
|
|
31059
|
-
case 176 /* IndexSignature */:
|
|
31060
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31061
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31062
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31063
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31064
|
-
visitNode(cbNode, node.type);
|
|
31065
|
-
case 180 /* ConstructorType */:
|
|
31066
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31067
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31068
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31069
|
-
visitNode(cbNode, node.type);
|
|
31070
|
-
case 179 /* FunctionType */:
|
|
31071
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31072
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31073
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31074
|
-
visitNode(cbNode, node.type);
|
|
31075
|
-
case 174 /* CallSignature */:
|
|
31076
|
-
case 175 /* ConstructSignature */:
|
|
31077
|
-
return visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31078
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31079
|
-
visitNode(cbNode, node.type);
|
|
31080
|
-
case 169 /* MethodDeclaration */:
|
|
31081
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31082
|
-
visitNode(cbNode, node.asteriskToken) ||
|
|
31083
|
-
visitNode(cbNode, node.name) ||
|
|
31084
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31085
|
-
visitNode(cbNode, node.exclamationToken) ||
|
|
31086
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31087
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31088
|
-
visitNode(cbNode, node.type) ||
|
|
31089
|
-
visitNode(cbNode, node.body);
|
|
31090
|
-
case 168 /* MethodSignature */:
|
|
31091
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31092
|
-
visitNode(cbNode, node.name) ||
|
|
31093
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31094
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31095
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31096
|
-
visitNode(cbNode, node.type);
|
|
31097
|
-
case 171 /* Constructor */:
|
|
31098
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31099
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31100
|
-
visitNode(cbNode, node.name) ||
|
|
31101
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31102
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31103
|
-
visitNode(cbNode, node.type) ||
|
|
31104
|
-
visitNode(cbNode, node.body);
|
|
31105
|
-
case 172 /* GetAccessor */:
|
|
31106
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31107
|
-
visitNode(cbNode, node.name) ||
|
|
31108
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31109
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31110
|
-
visitNode(cbNode, node.type) ||
|
|
31111
|
-
visitNode(cbNode, node.body);
|
|
31112
|
-
case 173 /* SetAccessor */:
|
|
31113
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31114
|
-
visitNode(cbNode, node.name) ||
|
|
31115
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31116
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31117
|
-
visitNode(cbNode, node.type) ||
|
|
31118
|
-
visitNode(cbNode, node.body);
|
|
31119
|
-
case 256 /* FunctionDeclaration */:
|
|
31120
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31121
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31122
|
-
visitNode(cbNode, node.asteriskToken) ||
|
|
31123
|
-
visitNode(cbNode, node.name) ||
|
|
31124
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31125
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31126
|
-
visitNode(cbNode, node.type) ||
|
|
31127
|
-
visitNode(cbNode, node.body);
|
|
31128
|
-
case 213 /* FunctionExpression */:
|
|
31129
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31130
|
-
visitNode(cbNode, node.asteriskToken) ||
|
|
31131
|
-
visitNode(cbNode, node.name) ||
|
|
31132
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31133
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31134
|
-
visitNode(cbNode, node.type) ||
|
|
31135
|
-
visitNode(cbNode, node.body);
|
|
31136
|
-
case 214 /* ArrowFunction */:
|
|
31137
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31138
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31139
|
-
visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31140
|
-
visitNode(cbNode, node.type) ||
|
|
31141
|
-
visitNode(cbNode, node.equalsGreaterThanToken) ||
|
|
31142
|
-
visitNode(cbNode, node.body);
|
|
31143
|
-
case 170 /* ClassStaticBlockDeclaration */:
|
|
31144
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31145
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31146
|
-
visitNode(cbNode, node.body);
|
|
31147
|
-
case 178 /* TypeReference */:
|
|
31148
|
-
return visitNode(cbNode, node.typeName) ||
|
|
31149
|
-
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31150
|
-
case 177 /* TypePredicate */:
|
|
31151
|
-
return visitNode(cbNode, node.assertsModifier) ||
|
|
31152
|
-
visitNode(cbNode, node.parameterName) ||
|
|
31153
|
-
visitNode(cbNode, node.type);
|
|
31154
|
-
case 181 /* TypeQuery */:
|
|
31155
|
-
return visitNode(cbNode, node.exprName) ||
|
|
31156
|
-
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31157
|
-
case 182 /* TypeLiteral */:
|
|
31158
|
-
return visitNodes(cbNode, cbNodes, node.members);
|
|
31159
|
-
case 183 /* ArrayType */:
|
|
31160
|
-
return visitNode(cbNode, node.elementType);
|
|
31161
|
-
case 184 /* TupleType */:
|
|
31162
|
-
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31163
|
-
case 187 /* UnionType */:
|
|
31164
|
-
case 188 /* IntersectionType */:
|
|
31165
|
-
return visitNodes(cbNode, cbNodes, node.types);
|
|
31166
|
-
case 189 /* ConditionalType */:
|
|
31167
|
-
return visitNode(cbNode, node.checkType) ||
|
|
31168
|
-
visitNode(cbNode, node.extendsType) ||
|
|
31169
|
-
visitNode(cbNode, node.trueType) ||
|
|
31170
|
-
visitNode(cbNode, node.falseType);
|
|
31171
|
-
case 190 /* InferType */:
|
|
31172
|
-
return visitNode(cbNode, node.typeParameter);
|
|
31173
|
-
case 200 /* ImportType */:
|
|
31174
|
-
return visitNode(cbNode, node.argument) ||
|
|
31175
|
-
visitNode(cbNode, node.assertions) ||
|
|
31176
|
-
visitNode(cbNode, node.qualifier) ||
|
|
31177
|
-
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31178
|
-
case 295 /* ImportTypeAssertionContainer */:
|
|
31179
|
-
return visitNode(cbNode, node.assertClause);
|
|
31180
|
-
case 191 /* ParenthesizedType */:
|
|
31181
|
-
case 193 /* TypeOperator */:
|
|
31182
|
-
return visitNode(cbNode, node.type);
|
|
31183
|
-
case 194 /* IndexedAccessType */:
|
|
31184
|
-
return visitNode(cbNode, node.objectType) ||
|
|
31185
|
-
visitNode(cbNode, node.indexType);
|
|
31186
|
-
case 195 /* MappedType */:
|
|
31187
|
-
return visitNode(cbNode, node.readonlyToken) ||
|
|
31188
|
-
visitNode(cbNode, node.typeParameter) ||
|
|
31189
|
-
visitNode(cbNode, node.nameType) ||
|
|
31190
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31191
|
-
visitNode(cbNode, node.type) ||
|
|
31192
|
-
visitNodes(cbNode, cbNodes, node.members);
|
|
31193
|
-
case 196 /* LiteralType */:
|
|
31194
|
-
return visitNode(cbNode, node.literal);
|
|
31195
|
-
case 197 /* NamedTupleMember */:
|
|
31196
|
-
return visitNode(cbNode, node.dotDotDotToken) ||
|
|
31197
|
-
visitNode(cbNode, node.name) ||
|
|
31198
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31199
|
-
visitNode(cbNode, node.type);
|
|
31200
|
-
case 201 /* ObjectBindingPattern */:
|
|
31201
|
-
case 202 /* ArrayBindingPattern */:
|
|
31202
|
-
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31203
|
-
case 204 /* ArrayLiteralExpression */:
|
|
31204
|
-
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31205
|
-
case 205 /* ObjectLiteralExpression */:
|
|
31206
|
-
return visitNodes(cbNode, cbNodes, node.properties);
|
|
31207
|
-
case 206 /* PropertyAccessExpression */:
|
|
31208
|
-
return visitNode(cbNode, node.expression) ||
|
|
31209
|
-
visitNode(cbNode, node.questionDotToken) ||
|
|
31210
|
-
visitNode(cbNode, node.name);
|
|
31211
|
-
case 207 /* ElementAccessExpression */:
|
|
31212
|
-
return visitNode(cbNode, node.expression) ||
|
|
31213
|
-
visitNode(cbNode, node.questionDotToken) ||
|
|
31214
|
-
visitNode(cbNode, node.argumentExpression);
|
|
31215
|
-
case 208 /* CallExpression */:
|
|
31216
|
-
case 209 /* NewExpression */:
|
|
31217
|
-
return visitNode(cbNode, node.expression) ||
|
|
31218
|
-
visitNode(cbNode, node.questionDotToken) ||
|
|
31219
|
-
visitNodes(cbNode, cbNodes, node.typeArguments) ||
|
|
31220
|
-
visitNodes(cbNode, cbNodes, node.arguments);
|
|
31221
|
-
case 210 /* TaggedTemplateExpression */:
|
|
31222
|
-
return visitNode(cbNode, node.tag) ||
|
|
31223
|
-
visitNode(cbNode, node.questionDotToken) ||
|
|
31224
|
-
visitNodes(cbNode, cbNodes, node.typeArguments) ||
|
|
31225
|
-
visitNode(cbNode, node.template);
|
|
31226
|
-
case 211 /* TypeAssertionExpression */:
|
|
31227
|
-
return visitNode(cbNode, node.type) ||
|
|
31228
|
-
visitNode(cbNode, node.expression);
|
|
31229
|
-
case 212 /* ParenthesizedExpression */:
|
|
31230
|
-
return visitNode(cbNode, node.expression);
|
|
31231
|
-
case 215 /* DeleteExpression */:
|
|
31232
|
-
return visitNode(cbNode, node.expression);
|
|
31233
|
-
case 216 /* TypeOfExpression */:
|
|
31234
|
-
return visitNode(cbNode, node.expression);
|
|
31235
|
-
case 217 /* VoidExpression */:
|
|
31236
|
-
return visitNode(cbNode, node.expression);
|
|
31237
|
-
case 219 /* PrefixUnaryExpression */:
|
|
31238
|
-
return visitNode(cbNode, node.operand);
|
|
31239
|
-
case 224 /* YieldExpression */:
|
|
31240
|
-
return visitNode(cbNode, node.asteriskToken) ||
|
|
31241
|
-
visitNode(cbNode, node.expression);
|
|
31242
|
-
case 218 /* AwaitExpression */:
|
|
31243
|
-
return visitNode(cbNode, node.expression);
|
|
31244
|
-
case 220 /* PostfixUnaryExpression */:
|
|
31245
|
-
return visitNode(cbNode, node.operand);
|
|
31246
|
-
case 221 /* BinaryExpression */:
|
|
31247
|
-
return visitNode(cbNode, node.left) ||
|
|
31248
|
-
visitNode(cbNode, node.operatorToken) ||
|
|
31249
|
-
visitNode(cbNode, node.right);
|
|
31250
|
-
case 229 /* AsExpression */:
|
|
31251
|
-
return visitNode(cbNode, node.expression) ||
|
|
31252
|
-
visitNode(cbNode, node.type);
|
|
31253
|
-
case 230 /* NonNullExpression */:
|
|
31254
|
-
return visitNode(cbNode, node.expression);
|
|
31255
|
-
case 231 /* MetaProperty */:
|
|
31256
|
-
return visitNode(cbNode, node.name);
|
|
31257
|
-
case 222 /* ConditionalExpression */:
|
|
31258
|
-
return visitNode(cbNode, node.condition) ||
|
|
31259
|
-
visitNode(cbNode, node.questionToken) ||
|
|
31260
|
-
visitNode(cbNode, node.whenTrue) ||
|
|
31261
|
-
visitNode(cbNode, node.colonToken) ||
|
|
31262
|
-
visitNode(cbNode, node.whenFalse);
|
|
31263
|
-
case 225 /* SpreadElement */:
|
|
31264
|
-
return visitNode(cbNode, node.expression);
|
|
31265
|
-
case 235 /* Block */:
|
|
31266
|
-
case 262 /* ModuleBlock */:
|
|
31267
|
-
return visitNodes(cbNode, cbNodes, node.statements);
|
|
31268
|
-
case 305 /* SourceFile */:
|
|
31269
|
-
return visitNodes(cbNode, cbNodes, node.statements) ||
|
|
31270
|
-
visitNode(cbNode, node.endOfFileToken);
|
|
31271
|
-
case 237 /* VariableStatement */:
|
|
31272
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31273
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31274
|
-
visitNode(cbNode, node.declarationList);
|
|
31275
|
-
case 255 /* VariableDeclarationList */:
|
|
31276
|
-
return visitNodes(cbNode, cbNodes, node.declarations);
|
|
31277
|
-
case 238 /* ExpressionStatement */:
|
|
31278
|
-
return visitNode(cbNode, node.expression);
|
|
31279
|
-
case 239 /* IfStatement */:
|
|
31280
|
-
return visitNode(cbNode, node.expression) ||
|
|
31281
|
-
visitNode(cbNode, node.thenStatement) ||
|
|
31282
|
-
visitNode(cbNode, node.elseStatement);
|
|
31283
|
-
case 240 /* DoStatement */:
|
|
31284
|
-
return visitNode(cbNode, node.statement) ||
|
|
31285
|
-
visitNode(cbNode, node.expression);
|
|
31286
|
-
case 241 /* WhileStatement */:
|
|
31287
|
-
return visitNode(cbNode, node.expression) ||
|
|
31288
|
-
visitNode(cbNode, node.statement);
|
|
31289
|
-
case 242 /* ForStatement */:
|
|
31290
|
-
return visitNode(cbNode, node.initializer) ||
|
|
31291
|
-
visitNode(cbNode, node.condition) ||
|
|
31292
|
-
visitNode(cbNode, node.incrementor) ||
|
|
31293
|
-
visitNode(cbNode, node.statement);
|
|
31294
|
-
case 243 /* ForInStatement */:
|
|
31295
|
-
return visitNode(cbNode, node.initializer) ||
|
|
31296
|
-
visitNode(cbNode, node.expression) ||
|
|
31297
|
-
visitNode(cbNode, node.statement);
|
|
31298
|
-
case 244 /* ForOfStatement */:
|
|
31299
|
-
return visitNode(cbNode, node.awaitModifier) ||
|
|
31300
|
-
visitNode(cbNode, node.initializer) ||
|
|
31301
|
-
visitNode(cbNode, node.expression) ||
|
|
31302
|
-
visitNode(cbNode, node.statement);
|
|
31303
|
-
case 245 /* ContinueStatement */:
|
|
31304
|
-
case 246 /* BreakStatement */:
|
|
31305
|
-
return visitNode(cbNode, node.label);
|
|
31306
|
-
case 247 /* ReturnStatement */:
|
|
31307
|
-
return visitNode(cbNode, node.expression);
|
|
31308
|
-
case 248 /* WithStatement */:
|
|
31309
|
-
return visitNode(cbNode, node.expression) ||
|
|
31310
|
-
visitNode(cbNode, node.statement);
|
|
31311
|
-
case 249 /* SwitchStatement */:
|
|
31312
|
-
return visitNode(cbNode, node.expression) ||
|
|
31313
|
-
visitNode(cbNode, node.caseBlock);
|
|
31314
|
-
case 263 /* CaseBlock */:
|
|
31315
|
-
return visitNodes(cbNode, cbNodes, node.clauses);
|
|
31316
|
-
case 289 /* CaseClause */:
|
|
31317
|
-
return visitNode(cbNode, node.expression) ||
|
|
31318
|
-
visitNodes(cbNode, cbNodes, node.statements);
|
|
31319
|
-
case 290 /* DefaultClause */:
|
|
31320
|
-
return visitNodes(cbNode, cbNodes, node.statements);
|
|
31321
|
-
case 250 /* LabeledStatement */:
|
|
31322
|
-
return visitNode(cbNode, node.label) ||
|
|
31323
|
-
visitNode(cbNode, node.statement);
|
|
31324
|
-
case 251 /* ThrowStatement */:
|
|
31325
|
-
return visitNode(cbNode, node.expression);
|
|
31326
|
-
case 252 /* TryStatement */:
|
|
31327
|
-
return visitNode(cbNode, node.tryBlock) ||
|
|
31328
|
-
visitNode(cbNode, node.catchClause) ||
|
|
31329
|
-
visitNode(cbNode, node.finallyBlock);
|
|
31330
|
-
case 292 /* CatchClause */:
|
|
31331
|
-
return visitNode(cbNode, node.variableDeclaration) ||
|
|
31332
|
-
visitNode(cbNode, node.block);
|
|
31333
|
-
case 165 /* Decorator */:
|
|
31334
|
-
return visitNode(cbNode, node.expression);
|
|
31335
|
-
case 257 /* ClassDeclaration */:
|
|
31336
|
-
case 226 /* ClassExpression */:
|
|
31337
|
-
return visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31338
|
-
visitNode(cbNode, node.name) ||
|
|
31339
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31340
|
-
visitNodes(cbNode, cbNodes, node.heritageClauses) ||
|
|
31341
|
-
visitNodes(cbNode, cbNodes, node.members);
|
|
31342
|
-
case 258 /* InterfaceDeclaration */:
|
|
31343
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31344
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31345
|
-
visitNode(cbNode, node.name) ||
|
|
31346
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31347
|
-
visitNodes(cbNode, cbNodes, node.heritageClauses) ||
|
|
31348
|
-
visitNodes(cbNode, cbNodes, node.members);
|
|
31349
|
-
case 259 /* TypeAliasDeclaration */:
|
|
31350
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31351
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31352
|
-
visitNode(cbNode, node.name) ||
|
|
31353
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31354
|
-
visitNode(cbNode, node.type);
|
|
31355
|
-
case 260 /* EnumDeclaration */:
|
|
31356
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31357
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31358
|
-
visitNode(cbNode, node.name) ||
|
|
31359
|
-
visitNodes(cbNode, cbNodes, node.members);
|
|
31360
|
-
case 299 /* EnumMember */:
|
|
31361
|
-
return visitNode(cbNode, node.name) ||
|
|
31362
|
-
visitNode(cbNode, node.initializer);
|
|
31363
|
-
case 261 /* ModuleDeclaration */:
|
|
31364
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31365
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31366
|
-
visitNode(cbNode, node.name) ||
|
|
31367
|
-
visitNode(cbNode, node.body);
|
|
31368
|
-
case 265 /* ImportEqualsDeclaration */:
|
|
31369
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31370
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31371
|
-
visitNode(cbNode, node.name) ||
|
|
31372
|
-
visitNode(cbNode, node.moduleReference);
|
|
31373
|
-
case 266 /* ImportDeclaration */:
|
|
31374
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31375
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31376
|
-
visitNode(cbNode, node.importClause) ||
|
|
31377
|
-
visitNode(cbNode, node.moduleSpecifier) ||
|
|
31378
|
-
visitNode(cbNode, node.assertClause);
|
|
31379
|
-
case 267 /* ImportClause */:
|
|
31380
|
-
return visitNode(cbNode, node.name) ||
|
|
31381
|
-
visitNode(cbNode, node.namedBindings);
|
|
31382
|
-
case 293 /* AssertClause */:
|
|
31383
|
-
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31384
|
-
case 294 /* AssertEntry */:
|
|
31385
|
-
return visitNode(cbNode, node.name) ||
|
|
31386
|
-
visitNode(cbNode, node.value);
|
|
31387
|
-
case 264 /* NamespaceExportDeclaration */:
|
|
31388
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31389
|
-
visitNode(cbNode, node.name);
|
|
31390
|
-
case 268 /* NamespaceImport */:
|
|
31391
|
-
return visitNode(cbNode, node.name);
|
|
31392
|
-
case 274 /* NamespaceExport */:
|
|
31393
|
-
return visitNode(cbNode, node.name);
|
|
31394
|
-
case 269 /* NamedImports */:
|
|
31395
|
-
case 273 /* NamedExports */:
|
|
31396
|
-
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31397
|
-
case 272 /* ExportDeclaration */:
|
|
31398
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31399
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31400
|
-
visitNode(cbNode, node.exportClause) ||
|
|
31401
|
-
visitNode(cbNode, node.moduleSpecifier) ||
|
|
31402
|
-
visitNode(cbNode, node.assertClause);
|
|
31403
|
-
case 270 /* ImportSpecifier */:
|
|
31404
|
-
case 275 /* ExportSpecifier */:
|
|
31405
|
-
return visitNode(cbNode, node.propertyName) ||
|
|
31406
|
-
visitNode(cbNode, node.name);
|
|
31407
|
-
case 271 /* ExportAssignment */:
|
|
31408
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31409
|
-
visitNodes(cbNode, cbNodes, node.modifiers) ||
|
|
31410
|
-
visitNode(cbNode, node.expression);
|
|
31411
|
-
case 223 /* TemplateExpression */:
|
|
31412
|
-
return visitNode(cbNode, node.head) ||
|
|
31413
|
-
visitNodes(cbNode, cbNodes, node.templateSpans);
|
|
31414
|
-
case 233 /* TemplateSpan */:
|
|
31415
|
-
return visitNode(cbNode, node.expression) ||
|
|
31416
|
-
visitNode(cbNode, node.literal);
|
|
31417
|
-
case 198 /* TemplateLiteralType */:
|
|
31418
|
-
return visitNode(cbNode, node.head) ||
|
|
31419
|
-
visitNodes(cbNode, cbNodes, node.templateSpans);
|
|
31420
|
-
case 199 /* TemplateLiteralTypeSpan */:
|
|
31421
|
-
return visitNode(cbNode, node.type) ||
|
|
31422
|
-
visitNode(cbNode, node.literal);
|
|
31423
|
-
case 162 /* ComputedPropertyName */:
|
|
31424
|
-
return visitNode(cbNode, node.expression);
|
|
31425
|
-
case 291 /* HeritageClause */:
|
|
31426
|
-
return visitNodes(cbNode, cbNodes, node.types);
|
|
31427
|
-
case 228 /* ExpressionWithTypeArguments */:
|
|
31428
|
-
return visitNode(cbNode, node.expression) ||
|
|
31429
|
-
visitNodes(cbNode, cbNodes, node.typeArguments);
|
|
31430
|
-
case 277 /* ExternalModuleReference */:
|
|
31431
|
-
return visitNode(cbNode, node.expression);
|
|
31432
|
-
case 276 /* MissingDeclaration */:
|
|
31433
|
-
return visitNodes(cbNode, cbNodes, node.decorators) ||
|
|
31434
|
-
visitNodes(cbNode, cbNodes, node.modifiers);
|
|
31435
|
-
case 351 /* CommaListExpression */:
|
|
31436
|
-
return visitNodes(cbNode, cbNodes, node.elements);
|
|
31437
|
-
case 278 /* JsxElement */:
|
|
31438
|
-
return visitNode(cbNode, node.openingElement) ||
|
|
31439
|
-
visitNodes(cbNode, cbNodes, node.children) ||
|
|
31440
|
-
visitNode(cbNode, node.closingElement);
|
|
31441
|
-
case 282 /* JsxFragment */:
|
|
31442
|
-
return visitNode(cbNode, node.openingFragment) ||
|
|
31443
|
-
visitNodes(cbNode, cbNodes, node.children) ||
|
|
31444
|
-
visitNode(cbNode, node.closingFragment);
|
|
31445
|
-
case 279 /* JsxSelfClosingElement */:
|
|
31446
|
-
case 280 /* JsxOpeningElement */:
|
|
31447
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31448
|
-
visitNodes(cbNode, cbNodes, node.typeArguments) ||
|
|
31449
|
-
visitNode(cbNode, node.attributes);
|
|
31450
|
-
case 286 /* JsxAttributes */:
|
|
31451
|
-
return visitNodes(cbNode, cbNodes, node.properties);
|
|
31452
|
-
case 285 /* JsxAttribute */:
|
|
31453
|
-
return visitNode(cbNode, node.name) ||
|
|
31454
|
-
visitNode(cbNode, node.initializer);
|
|
31455
|
-
case 287 /* JsxSpreadAttribute */:
|
|
31456
|
-
return visitNode(cbNode, node.expression);
|
|
31457
|
-
case 288 /* JsxExpression */:
|
|
31458
|
-
return visitNode(cbNode, node.dotDotDotToken) ||
|
|
31459
|
-
visitNode(cbNode, node.expression);
|
|
31460
|
-
case 281 /* JsxClosingElement */:
|
|
31461
|
-
return visitNode(cbNode, node.tagName);
|
|
31462
|
-
case 185 /* OptionalType */:
|
|
31463
|
-
case 186 /* RestType */:
|
|
31464
|
-
case 309 /* JSDocTypeExpression */:
|
|
31465
|
-
case 315 /* JSDocNonNullableType */:
|
|
31466
|
-
case 314 /* JSDocNullableType */:
|
|
31467
|
-
case 316 /* JSDocOptionalType */:
|
|
31468
|
-
case 318 /* JSDocVariadicType */:
|
|
31469
|
-
return visitNode(cbNode, node.type);
|
|
31470
|
-
case 317 /* JSDocFunctionType */:
|
|
31471
|
-
return visitNodes(cbNode, cbNodes, node.parameters) ||
|
|
31472
|
-
visitNode(cbNode, node.type);
|
|
31473
|
-
case 320 /* JSDoc */:
|
|
31474
|
-
return (typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment))
|
|
31475
|
-
|| visitNodes(cbNode, cbNodes, node.tags);
|
|
31476
|
-
case 346 /* JSDocSeeTag */:
|
|
31477
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31478
|
-
visitNode(cbNode, node.name) ||
|
|
31479
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31480
|
-
case 310 /* JSDocNameReference */:
|
|
31481
|
-
return visitNode(cbNode, node.name);
|
|
31482
|
-
case 311 /* JSDocMemberName */:
|
|
31483
|
-
return visitNode(cbNode, node.left) ||
|
|
31484
|
-
visitNode(cbNode, node.right);
|
|
31485
|
-
case 340 /* JSDocParameterTag */:
|
|
31486
|
-
case 347 /* JSDocPropertyTag */:
|
|
31487
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31488
|
-
(node.isNameFirst
|
|
31489
|
-
? visitNode(cbNode, node.name) ||
|
|
31490
|
-
visitNode(cbNode, node.typeExpression) ||
|
|
31491
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment))
|
|
31492
|
-
: visitNode(cbNode, node.typeExpression) ||
|
|
31493
|
-
visitNode(cbNode, node.name) ||
|
|
31494
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment)));
|
|
31495
|
-
case 330 /* JSDocAuthorTag */:
|
|
31496
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31497
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31498
|
-
case 329 /* JSDocImplementsTag */:
|
|
31499
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31500
|
-
visitNode(cbNode, node.class) ||
|
|
31501
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31502
|
-
case 328 /* JSDocAugmentsTag */:
|
|
31503
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31504
|
-
visitNode(cbNode, node.class) ||
|
|
31505
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31506
|
-
case 344 /* JSDocTemplateTag */:
|
|
31507
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31508
|
-
visitNode(cbNode, node.constraint) ||
|
|
31509
|
-
visitNodes(cbNode, cbNodes, node.typeParameters) ||
|
|
31510
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31511
|
-
case 345 /* JSDocTypedefTag */:
|
|
31512
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31513
|
-
(node.typeExpression &&
|
|
31514
|
-
node.typeExpression.kind === 309 /* JSDocTypeExpression */
|
|
31515
|
-
? visitNode(cbNode, node.typeExpression) ||
|
|
31516
|
-
visitNode(cbNode, node.fullName) ||
|
|
31517
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment))
|
|
31518
|
-
: visitNode(cbNode, node.fullName) ||
|
|
31519
|
-
visitNode(cbNode, node.typeExpression) ||
|
|
31520
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment)));
|
|
31521
|
-
case 338 /* JSDocCallbackTag */:
|
|
31522
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31523
|
-
visitNode(cbNode, node.fullName) ||
|
|
31524
|
-
visitNode(cbNode, node.typeExpression) ||
|
|
31525
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31526
|
-
case 341 /* JSDocReturnTag */:
|
|
31527
|
-
case 343 /* JSDocTypeTag */:
|
|
31528
|
-
case 342 /* JSDocThisTag */:
|
|
31529
|
-
case 339 /* JSDocEnumTag */:
|
|
31530
|
-
return visitNode(cbNode, node.tagName) ||
|
|
31531
|
-
visitNode(cbNode, node.typeExpression) ||
|
|
31532
|
-
(typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31533
|
-
case 323 /* JSDocSignature */:
|
|
31534
|
-
return ts.forEach(node.typeParameters, cbNode) ||
|
|
31535
|
-
ts.forEach(node.parameters, cbNode) ||
|
|
31536
|
-
visitNode(cbNode, node.type);
|
|
31537
|
-
case 324 /* JSDocLink */:
|
|
31538
|
-
case 325 /* JSDocLinkCode */:
|
|
31539
|
-
case 326 /* JSDocLinkPlain */:
|
|
31540
|
-
return visitNode(cbNode, node.name);
|
|
31541
|
-
case 322 /* JSDocTypeLiteral */:
|
|
31542
|
-
return ts.forEach(node.jsDocPropertyTags, cbNode);
|
|
31543
|
-
case 327 /* JSDocTag */:
|
|
31544
|
-
case 332 /* JSDocClassTag */:
|
|
31545
|
-
case 333 /* JSDocPublicTag */:
|
|
31546
|
-
case 334 /* JSDocPrivateTag */:
|
|
31547
|
-
case 335 /* JSDocProtectedTag */:
|
|
31548
|
-
case 336 /* JSDocReadonlyTag */:
|
|
31549
|
-
case 331 /* JSDocDeprecatedTag */:
|
|
31550
|
-
return visitNode(cbNode, node.tagName)
|
|
31551
|
-
|| (typeof node.comment === "string" ? undefined : visitNodes(cbNode, cbNodes, node.comment));
|
|
31552
|
-
case 350 /* PartiallyEmittedExpression */:
|
|
31553
|
-
return visitNode(cbNode, node.expression);
|
|
31554
|
-
}
|
|
31713
|
+
var fn = forEachChildTable[node.kind];
|
|
31714
|
+
return fn === undefined ? undefined : fn(node, cbNode, cbNodes);
|
|
31555
31715
|
}
|
|
31556
31716
|
ts.forEachChild = forEachChild;
|
|
31557
31717
|
/** @internal */
|
|
@@ -33981,7 +34141,7 @@ var ts;
|
|
|
33981
34141
|
var type = parseTypeAnnotation();
|
|
33982
34142
|
parseTypeMemberSemicolon();
|
|
33983
34143
|
var node = factory.createIndexSignature(modifiers, parameters, type);
|
|
33984
|
-
node.
|
|
34144
|
+
node.illegalDecorators = decorators;
|
|
33985
34145
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
33986
34146
|
}
|
|
33987
34147
|
function parsePropertyOrMethodSignature(pos, hasJSDoc, modifiers) {
|
|
@@ -36141,7 +36301,7 @@ var ts;
|
|
|
36141
36301
|
node = factory.createPropertyAssignment(name, initializer);
|
|
36142
36302
|
}
|
|
36143
36303
|
// Decorators, Modifiers, questionToken, and exclamationToken are not supported by property assignments and are reported in the grammar checker
|
|
36144
|
-
node.
|
|
36304
|
+
node.illegalDecorators = decorators;
|
|
36145
36305
|
node.modifiers = modifiers;
|
|
36146
36306
|
node.questionToken = questionToken;
|
|
36147
36307
|
node.exclamationToken = exclamationToken;
|
|
@@ -36789,7 +36949,7 @@ var ts;
|
|
|
36789
36949
|
// would follow. For recovery and error reporting purposes, return an incomplete declaration.
|
|
36790
36950
|
var missing = createMissingNode(276 /* MissingDeclaration */, /*reportAtCurrentPosition*/ true, ts.Diagnostics.Declaration_expected);
|
|
36791
36951
|
ts.setTextRangePos(missing, pos);
|
|
36792
|
-
missing.
|
|
36952
|
+
missing.illegalDecorators = decorators;
|
|
36793
36953
|
missing.modifiers = modifiers;
|
|
36794
36954
|
return missing;
|
|
36795
36955
|
}
|
|
@@ -36932,7 +37092,7 @@ var ts;
|
|
|
36932
37092
|
parseSemicolon();
|
|
36933
37093
|
var node = factory.createVariableStatement(modifiers, declarationList);
|
|
36934
37094
|
// Decorators are not allowed on a variable statement, so we keep track of them to report them in the grammar checker.
|
|
36935
|
-
node.
|
|
37095
|
+
node.illegalDecorators = decorators;
|
|
36936
37096
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
36937
37097
|
}
|
|
36938
37098
|
function parseFunctionDeclaration(pos, hasJSDoc, decorators, modifiers) {
|
|
@@ -36952,7 +37112,7 @@ var ts;
|
|
|
36952
37112
|
var body = parseFunctionBlockOrSemicolon(isGenerator | isAsync, ts.Diagnostics.or_expected);
|
|
36953
37113
|
setAwaitContext(savedAwaitContext);
|
|
36954
37114
|
var node = factory.createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body);
|
|
36955
|
-
node.
|
|
37115
|
+
node.illegalDecorators = decorators;
|
|
36956
37116
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
36957
37117
|
}
|
|
36958
37118
|
function parseConstructorName() {
|
|
@@ -36975,7 +37135,7 @@ var ts;
|
|
|
36975
37135
|
var body = parseFunctionBlockOrSemicolon(0 /* None */, ts.Diagnostics.or_expected);
|
|
36976
37136
|
var node = factory.createConstructorDeclaration(modifiers, parameters, body);
|
|
36977
37137
|
// Attach invalid nodes if they exist so that we can report them in the grammar checker.
|
|
36978
|
-
node.
|
|
37138
|
+
node.illegalDecorators = decorators;
|
|
36979
37139
|
node.typeParameters = typeParameters;
|
|
36980
37140
|
node.type = type;
|
|
36981
37141
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
@@ -37091,7 +37251,7 @@ var ts;
|
|
|
37091
37251
|
parseExpectedToken(124 /* StaticKeyword */);
|
|
37092
37252
|
var body = parseClassStaticBlockBody();
|
|
37093
37253
|
var node = withJSDoc(finishNode(factory.createClassStaticBlockDeclaration(body), pos), hasJSDoc);
|
|
37094
|
-
node.
|
|
37254
|
+
node.illegalDecorators = decorators;
|
|
37095
37255
|
node.modifiers = modifiers;
|
|
37096
37256
|
return node;
|
|
37097
37257
|
}
|
|
@@ -37332,7 +37492,7 @@ var ts;
|
|
|
37332
37492
|
var heritageClauses = parseHeritageClauses();
|
|
37333
37493
|
var members = parseObjectTypeMembers();
|
|
37334
37494
|
var node = factory.createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members);
|
|
37335
|
-
node.
|
|
37495
|
+
node.illegalDecorators = decorators;
|
|
37336
37496
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37337
37497
|
}
|
|
37338
37498
|
function parseTypeAliasDeclaration(pos, hasJSDoc, decorators, modifiers) {
|
|
@@ -37343,7 +37503,7 @@ var ts;
|
|
|
37343
37503
|
var type = token() === 138 /* IntrinsicKeyword */ && tryParse(parseKeywordAndNoDot) || parseType();
|
|
37344
37504
|
parseSemicolon();
|
|
37345
37505
|
var node = factory.createTypeAliasDeclaration(modifiers, name, typeParameters, type);
|
|
37346
|
-
node.
|
|
37506
|
+
node.illegalDecorators = decorators;
|
|
37347
37507
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37348
37508
|
}
|
|
37349
37509
|
// In an ambient declaration, the grammar only allows integer literals as initializers.
|
|
@@ -37369,7 +37529,7 @@ var ts;
|
|
|
37369
37529
|
members = createMissingList();
|
|
37370
37530
|
}
|
|
37371
37531
|
var node = factory.createEnumDeclaration(modifiers, name, members);
|
|
37372
|
-
node.
|
|
37532
|
+
node.illegalDecorators = decorators;
|
|
37373
37533
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37374
37534
|
}
|
|
37375
37535
|
function parseModuleBlock() {
|
|
@@ -37393,7 +37553,7 @@ var ts;
|
|
|
37393
37553
|
? parseModuleOrNamespaceDeclaration(getNodePos(), /*hasJSDoc*/ false, /*decorators*/ undefined, /*modifiers*/ undefined, 4 /* NestedNamespace */ | namespaceFlag)
|
|
37394
37554
|
: parseModuleBlock();
|
|
37395
37555
|
var node = factory.createModuleDeclaration(modifiers, name, body, flags);
|
|
37396
|
-
node.
|
|
37556
|
+
node.illegalDecorators = decorators;
|
|
37397
37557
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37398
37558
|
}
|
|
37399
37559
|
function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, decorators, modifiers) {
|
|
@@ -37416,7 +37576,7 @@ var ts;
|
|
|
37416
37576
|
parseSemicolon();
|
|
37417
37577
|
}
|
|
37418
37578
|
var node = factory.createModuleDeclaration(modifiers, name, body, flags);
|
|
37419
|
-
node.
|
|
37579
|
+
node.illegalDecorators = decorators;
|
|
37420
37580
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37421
37581
|
}
|
|
37422
37582
|
function parseModuleDeclaration(pos, hasJSDoc, decorators, modifiers) {
|
|
@@ -37456,7 +37616,7 @@ var ts;
|
|
|
37456
37616
|
parseSemicolon();
|
|
37457
37617
|
var node = factory.createNamespaceExportDeclaration(name);
|
|
37458
37618
|
// NamespaceExportDeclaration nodes cannot have decorators or modifiers, so we attach them here so we can report them in the grammar checker
|
|
37459
|
-
node.
|
|
37619
|
+
node.illegalDecorators = decorators;
|
|
37460
37620
|
node.modifiers = modifiers;
|
|
37461
37621
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37462
37622
|
}
|
|
@@ -37496,7 +37656,7 @@ var ts;
|
|
|
37496
37656
|
}
|
|
37497
37657
|
parseSemicolon();
|
|
37498
37658
|
var node = factory.createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause);
|
|
37499
|
-
node.
|
|
37659
|
+
node.illegalDecorators = decorators;
|
|
37500
37660
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37501
37661
|
}
|
|
37502
37662
|
function parseAssertEntry() {
|
|
@@ -37541,7 +37701,7 @@ var ts;
|
|
|
37541
37701
|
var moduleReference = parseModuleReference();
|
|
37542
37702
|
parseSemicolon();
|
|
37543
37703
|
var node = factory.createImportEqualsDeclaration(modifiers, isTypeOnly, identifier, moduleReference);
|
|
37544
|
-
node.
|
|
37704
|
+
node.illegalDecorators = decorators;
|
|
37545
37705
|
var finished = withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37546
37706
|
return finished;
|
|
37547
37707
|
}
|
|
@@ -37731,7 +37891,7 @@ var ts;
|
|
|
37731
37891
|
parseSemicolon();
|
|
37732
37892
|
setAwaitContext(savedAwaitContext);
|
|
37733
37893
|
var node = factory.createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause);
|
|
37734
|
-
node.
|
|
37894
|
+
node.illegalDecorators = decorators;
|
|
37735
37895
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37736
37896
|
}
|
|
37737
37897
|
function parseExportAssignment(pos, hasJSDoc, decorators, modifiers) {
|
|
@@ -37748,7 +37908,7 @@ var ts;
|
|
|
37748
37908
|
parseSemicolon();
|
|
37749
37909
|
setAwaitContext(savedAwaitContext);
|
|
37750
37910
|
var node = factory.createExportAssignment(modifiers, isExportEquals, expression);
|
|
37751
|
-
node.
|
|
37911
|
+
node.illegalDecorators = decorators;
|
|
37752
37912
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
37753
37913
|
}
|
|
37754
37914
|
var ParsingContext;
|
|
@@ -43112,10 +43272,12 @@ var ts;
|
|
|
43112
43272
|
if (resolved) {
|
|
43113
43273
|
var fileName = resolved.fileName, packageId = resolved.packageId;
|
|
43114
43274
|
var resolvedFileName = options.preserveSymlinks ? fileName : realPath(fileName, host, traceEnabled);
|
|
43275
|
+
var pathsAreEqual = arePathsEqual(fileName, resolvedFileName, host);
|
|
43115
43276
|
resolvedTypeReferenceDirective = {
|
|
43116
43277
|
primary: primary,
|
|
43117
|
-
|
|
43118
|
-
|
|
43278
|
+
// If the fileName and realpath are differing only in casing prefer fileName so that we can issue correct errors for casing under forceConsistentCasingInFileNames
|
|
43279
|
+
resolvedFileName: pathsAreEqual ? fileName : resolvedFileName,
|
|
43280
|
+
originalPath: pathsAreEqual ? undefined : fileName,
|
|
43119
43281
|
packageId: packageId,
|
|
43120
43282
|
isExternalLibraryImport: pathContainsNodeModules(fileName),
|
|
43121
43283
|
};
|
|
@@ -43900,8 +44062,10 @@ var ts;
|
|
|
43900
44062
|
var resolvedValue = resolved_1.value;
|
|
43901
44063
|
if (!compilerOptions.preserveSymlinks && resolvedValue && !resolvedValue.originalPath) {
|
|
43902
44064
|
var path = realPath(resolvedValue.path, host, traceEnabled);
|
|
43903
|
-
var
|
|
43904
|
-
|
|
44065
|
+
var pathsAreEqual = arePathsEqual(path, resolvedValue.path, host);
|
|
44066
|
+
var originalPath = pathsAreEqual ? undefined : resolvedValue.path;
|
|
44067
|
+
// If the path and realpath are differing only in casing prefer path so that we can issue correct errors for casing under forceConsistentCasingInFileNames
|
|
44068
|
+
resolvedValue = __assign(__assign({}, resolvedValue), { path: pathsAreEqual ? resolvedValue.path : path, originalPath: originalPath });
|
|
43905
44069
|
}
|
|
43906
44070
|
// For node_modules lookups, get the real path so that multiple accesses to an `npm link`-ed module do not create duplicate files.
|
|
43907
44071
|
return { value: resolvedValue && { resolved: resolvedValue, isExternalLibraryImport: true } };
|
|
@@ -49565,10 +49729,10 @@ var ts;
|
|
|
49565
49729
|
}
|
|
49566
49730
|
// Issue errors globally
|
|
49567
49731
|
var file = ts.getSourceFileOfNode(location);
|
|
49568
|
-
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
|
|
49732
|
+
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
|
|
49569
49733
|
return;
|
|
49570
49734
|
}
|
|
49571
|
-
addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line no-in-operator
|
|
49735
|
+
addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line local/no-in-operator
|
|
49572
49736
|
}
|
|
49573
49737
|
function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, arg0, arg1, arg2, arg3) {
|
|
49574
49738
|
var diagnostic = error(location, message, arg0, arg1, arg2, arg3);
|
|
@@ -51042,41 +51206,61 @@ var ts;
|
|
|
51042
51206
|
return typeof file.externalModuleIndicator !== "object" && !resolveExportByName(moduleSymbol, ts.escapeLeadingUnderscores("__esModule"), /*sourceNode*/ undefined, dontResolveAlias);
|
|
51043
51207
|
}
|
|
51044
51208
|
function getTargetOfImportClause(node, dontResolveAlias) {
|
|
51045
|
-
var _a;
|
|
51046
51209
|
var moduleSymbol = resolveExternalModuleName(node, node.parent.moduleSpecifier);
|
|
51047
51210
|
if (moduleSymbol) {
|
|
51048
|
-
|
|
51049
|
-
|
|
51050
|
-
|
|
51051
|
-
|
|
51052
|
-
|
|
51053
|
-
|
|
51054
|
-
|
|
51055
|
-
|
|
51056
|
-
|
|
51057
|
-
|
|
51058
|
-
|
|
51059
|
-
|
|
51060
|
-
|
|
51061
|
-
|
|
51062
|
-
|
|
51063
|
-
|
|
51064
|
-
|
|
51065
|
-
|
|
51066
|
-
|
|
51067
|
-
|
|
51068
|
-
|
|
51069
|
-
|
|
51211
|
+
return getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias);
|
|
51212
|
+
}
|
|
51213
|
+
}
|
|
51214
|
+
function getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias) {
|
|
51215
|
+
var _a;
|
|
51216
|
+
var exportDefaultSymbol;
|
|
51217
|
+
if (ts.isShorthandAmbientModuleSymbol(moduleSymbol)) {
|
|
51218
|
+
exportDefaultSymbol = moduleSymbol;
|
|
51219
|
+
}
|
|
51220
|
+
else {
|
|
51221
|
+
exportDefaultSymbol = resolveExportByName(moduleSymbol, "default" /* Default */, node, dontResolveAlias);
|
|
51222
|
+
}
|
|
51223
|
+
var file = (_a = moduleSymbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isSourceFile);
|
|
51224
|
+
var specifier = getModuleSpecifierForImportOrExport(node);
|
|
51225
|
+
if (!specifier) {
|
|
51226
|
+
return exportDefaultSymbol;
|
|
51227
|
+
}
|
|
51228
|
+
var hasDefaultOnly = isOnlyImportedAsDefault(specifier);
|
|
51229
|
+
var hasSyntheticDefault = canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, specifier);
|
|
51230
|
+
if (!exportDefaultSymbol && !hasSyntheticDefault && !hasDefaultOnly) {
|
|
51231
|
+
if (hasExportAssignmentSymbol(moduleSymbol)) {
|
|
51232
|
+
var compilerOptionName = moduleKind >= ts.ModuleKind.ES2015 ? "allowSyntheticDefaultImports" : "esModuleInterop";
|
|
51233
|
+
var exportEqualsSymbol = moduleSymbol.exports.get("export=" /* ExportEquals */);
|
|
51234
|
+
var exportAssignment = exportEqualsSymbol.valueDeclaration;
|
|
51235
|
+
var err = error(node.name, ts.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName);
|
|
51236
|
+
if (exportAssignment) {
|
|
51237
|
+
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));
|
|
51070
51238
|
}
|
|
51071
51239
|
}
|
|
51072
|
-
else if (
|
|
51073
|
-
|
|
51074
|
-
|
|
51075
|
-
|
|
51076
|
-
|
|
51240
|
+
else if (ts.isImportClause(node)) {
|
|
51241
|
+
reportNonDefaultExport(moduleSymbol, node);
|
|
51242
|
+
}
|
|
51243
|
+
else {
|
|
51244
|
+
errorNoModuleMemberSymbol(moduleSymbol, moduleSymbol, node, ts.isImportOrExportSpecifier(node) && node.propertyName || node.name);
|
|
51077
51245
|
}
|
|
51078
|
-
|
|
51079
|
-
|
|
51246
|
+
}
|
|
51247
|
+
else if (hasSyntheticDefault || hasDefaultOnly) {
|
|
51248
|
+
// per emit behavior, a synthetic default overrides a "real" .default member if `__esModule` is not present
|
|
51249
|
+
var resolved = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias);
|
|
51250
|
+
markSymbolOfAliasDeclarationIfTypeOnly(node, moduleSymbol, resolved, /*overwriteTypeOnly*/ false);
|
|
51251
|
+
return resolved;
|
|
51252
|
+
}
|
|
51253
|
+
markSymbolOfAliasDeclarationIfTypeOnly(node, exportDefaultSymbol, /*finalTarget*/ undefined, /*overwriteTypeOnly*/ false);
|
|
51254
|
+
return exportDefaultSymbol;
|
|
51255
|
+
}
|
|
51256
|
+
function getModuleSpecifierForImportOrExport(node) {
|
|
51257
|
+
switch (node.kind) {
|
|
51258
|
+
case 267 /* ImportClause */: return node.parent.moduleSpecifier;
|
|
51259
|
+
case 265 /* ImportEqualsDeclaration */: return ts.isExternalModuleReference(node.moduleReference) ? node.moduleReference.expression : undefined;
|
|
51260
|
+
case 268 /* NamespaceImport */: return node.parent.parent.moduleSpecifier;
|
|
51261
|
+
case 270 /* ImportSpecifier */: return node.parent.parent.parent.moduleSpecifier;
|
|
51262
|
+
case 275 /* ExportSpecifier */: return node.parent.parent.moduleSpecifier;
|
|
51263
|
+
default: return ts.Debug.assertNever(node);
|
|
51080
51264
|
}
|
|
51081
51265
|
}
|
|
51082
51266
|
function reportNonDefaultExport(moduleSymbol, node) {
|
|
@@ -51166,7 +51350,7 @@ var ts;
|
|
|
51166
51350
|
}
|
|
51167
51351
|
}
|
|
51168
51352
|
function getExternalModuleMember(node, specifier, dontResolveAlias) {
|
|
51169
|
-
var _a
|
|
51353
|
+
var _a;
|
|
51170
51354
|
if (dontResolveAlias === void 0) { dontResolveAlias = false; }
|
|
51171
51355
|
var moduleSpecifier = ts.getExternalModuleRequireArgument(node) || node.moduleSpecifier;
|
|
51172
51356
|
var moduleSymbol = resolveExternalModuleName(node, moduleSpecifier); // TODO: GH#18217
|
|
@@ -51202,29 +51386,33 @@ var ts;
|
|
|
51202
51386
|
combineValueAndTypeSymbols(symbolFromVariable, symbolFromModule) :
|
|
51203
51387
|
symbolFromModule || symbolFromVariable;
|
|
51204
51388
|
if (!symbol) {
|
|
51205
|
-
|
|
51206
|
-
var declarationName = ts.declarationNameToString(name);
|
|
51207
|
-
var suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol);
|
|
51208
|
-
if (suggestion !== undefined) {
|
|
51209
|
-
var suggestionName = symbolToString(suggestion);
|
|
51210
|
-
var diagnostic = error(name, ts.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName);
|
|
51211
|
-
if (suggestion.valueDeclaration) {
|
|
51212
|
-
ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(suggestion.valueDeclaration, ts.Diagnostics._0_is_declared_here, suggestionName));
|
|
51213
|
-
}
|
|
51214
|
-
}
|
|
51215
|
-
else {
|
|
51216
|
-
if ((_b = moduleSymbol.exports) === null || _b === void 0 ? void 0 : _b.has("default" /* Default */)) {
|
|
51217
|
-
error(name, ts.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, moduleName, declarationName);
|
|
51218
|
-
}
|
|
51219
|
-
else {
|
|
51220
|
-
reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName);
|
|
51221
|
-
}
|
|
51222
|
-
}
|
|
51389
|
+
errorNoModuleMemberSymbol(moduleSymbol, targetSymbol, node, name);
|
|
51223
51390
|
}
|
|
51224
51391
|
return symbol;
|
|
51225
51392
|
}
|
|
51226
51393
|
}
|
|
51227
51394
|
}
|
|
51395
|
+
function errorNoModuleMemberSymbol(moduleSymbol, targetSymbol, node, name) {
|
|
51396
|
+
var _a;
|
|
51397
|
+
var moduleName = getFullyQualifiedName(moduleSymbol, node);
|
|
51398
|
+
var declarationName = ts.declarationNameToString(name);
|
|
51399
|
+
var suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol);
|
|
51400
|
+
if (suggestion !== undefined) {
|
|
51401
|
+
var suggestionName = symbolToString(suggestion);
|
|
51402
|
+
var diagnostic = error(name, ts.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName);
|
|
51403
|
+
if (suggestion.valueDeclaration) {
|
|
51404
|
+
ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(suggestion.valueDeclaration, ts.Diagnostics._0_is_declared_here, suggestionName));
|
|
51405
|
+
}
|
|
51406
|
+
}
|
|
51407
|
+
else {
|
|
51408
|
+
if ((_a = moduleSymbol.exports) === null || _a === void 0 ? void 0 : _a.has("default" /* Default */)) {
|
|
51409
|
+
error(name, ts.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, moduleName, declarationName);
|
|
51410
|
+
}
|
|
51411
|
+
else {
|
|
51412
|
+
reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName);
|
|
51413
|
+
}
|
|
51414
|
+
}
|
|
51415
|
+
}
|
|
51228
51416
|
function reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName) {
|
|
51229
51417
|
var _a, _b;
|
|
51230
51418
|
var localSymbol = (_b = (_a = moduleSymbol.valueDeclaration) === null || _a === void 0 ? void 0 : _a.locals) === null || _b === void 0 ? void 0 : _b.get(name.escapedText);
|
|
@@ -51270,6 +51458,13 @@ var ts;
|
|
|
51270
51458
|
}
|
|
51271
51459
|
}
|
|
51272
51460
|
function getTargetOfImportSpecifier(node, dontResolveAlias) {
|
|
51461
|
+
if (ts.isImportSpecifier(node) && ts.idText(node.propertyName || node.name) === "default" /* Default */) {
|
|
51462
|
+
var specifier = getModuleSpecifierForImportOrExport(node);
|
|
51463
|
+
var moduleSymbol = specifier && resolveExternalModuleName(node, specifier);
|
|
51464
|
+
if (moduleSymbol) {
|
|
51465
|
+
return getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias);
|
|
51466
|
+
}
|
|
51467
|
+
}
|
|
51273
51468
|
var root = ts.isBindingElement(node) ? ts.getRootDeclaration(node) : node.parent.parent.parent;
|
|
51274
51469
|
var commonJSPropertyAccess = getCommonJSPropertyAccess(root);
|
|
51275
51470
|
var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);
|
|
@@ -51291,6 +51486,13 @@ var ts;
|
|
|
51291
51486
|
return resolved;
|
|
51292
51487
|
}
|
|
51293
51488
|
function getTargetOfExportSpecifier(node, meaning, dontResolveAlias) {
|
|
51489
|
+
if (ts.idText(node.propertyName || node.name) === "default" /* Default */) {
|
|
51490
|
+
var specifier = getModuleSpecifierForImportOrExport(node);
|
|
51491
|
+
var moduleSymbol = specifier && resolveExternalModuleName(node, specifier);
|
|
51492
|
+
if (moduleSymbol) {
|
|
51493
|
+
return getTargetofModuleDefault(moduleSymbol, node, !!dontResolveAlias);
|
|
51494
|
+
}
|
|
51495
|
+
}
|
|
51294
51496
|
var resolved = node.parent.parent.moduleSpecifier ?
|
|
51295
51497
|
getExternalModuleMember(node.parent.parent, node, dontResolveAlias) :
|
|
51296
51498
|
resolveEntityName(node.propertyName || node.name, meaning, /*ignoreErrors*/ false, dontResolveAlias);
|
|
@@ -55739,7 +55941,7 @@ var ts;
|
|
|
55739
55941
|
// This is an else/if as accessors and properties can't merge in TS, but might in JS
|
|
55740
55942
|
// If this happens, we assume the accessor takes priority, as it imposes more constraints
|
|
55741
55943
|
else if (p.flags & (4 /* Property */ | 3 /* Variable */ | 98304 /* Accessor */)) {
|
|
55742
|
-
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,
|
|
55944
|
+
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),
|
|
55743
55945
|
// TODO: https://github.com/microsoft/TypeScript/pull/32372#discussion_r328386357
|
|
55744
55946
|
// interface members can't have initializers, however class members _can_
|
|
55745
55947
|
/*initializer*/ undefined), ((_d = p.declarations) === null || _d === void 0 ? void 0 : _d.find(ts.or(ts.isPropertyDeclaration, ts.isVariableDeclaration))) || firstPropertyLikeDecl);
|
|
@@ -59652,7 +59854,7 @@ var ts;
|
|
|
59652
59854
|
return constraint && getBaseConstraint(constraint);
|
|
59653
59855
|
}
|
|
59654
59856
|
if (t.flags & 33554432 /* Substitution */) {
|
|
59655
|
-
return getBaseConstraint(t
|
|
59857
|
+
return getBaseConstraint(getSubstitutionIntersection(t));
|
|
59656
59858
|
}
|
|
59657
59859
|
return t;
|
|
59658
59860
|
}
|
|
@@ -61063,21 +61265,26 @@ var ts;
|
|
|
61063
61265
|
}
|
|
61064
61266
|
return links.resolvedJSDocType;
|
|
61065
61267
|
}
|
|
61066
|
-
function getSubstitutionType(baseType,
|
|
61067
|
-
if (
|
|
61268
|
+
function getSubstitutionType(baseType, constraint) {
|
|
61269
|
+
if (constraint.flags & 3 /* AnyOrUnknown */ || constraint === baseType ||
|
|
61270
|
+
baseType.flags & 33554432 /* Substitution */ && baseType.constraint === constraint ||
|
|
61271
|
+
!isGenericType(baseType) && !isGenericType(constraint)) {
|
|
61068
61272
|
return baseType;
|
|
61069
61273
|
}
|
|
61070
|
-
var id = getTypeId(baseType) + ">" + getTypeId(
|
|
61274
|
+
var id = getTypeId(baseType) + ">" + getTypeId(constraint);
|
|
61071
61275
|
var cached = substitutionTypes.get(id);
|
|
61072
61276
|
if (cached) {
|
|
61073
61277
|
return cached;
|
|
61074
61278
|
}
|
|
61075
61279
|
var result = createType(33554432 /* Substitution */);
|
|
61076
61280
|
result.baseType = baseType;
|
|
61077
|
-
result.
|
|
61281
|
+
result.constraint = constraint;
|
|
61078
61282
|
substitutionTypes.set(id, result);
|
|
61079
61283
|
return result;
|
|
61080
61284
|
}
|
|
61285
|
+
function getSubstitutionIntersection(substitutionType) {
|
|
61286
|
+
return getIntersectionType([substitutionType.constraint, substitutionType.baseType]);
|
|
61287
|
+
}
|
|
61081
61288
|
function isUnaryTupleTypeNode(node) {
|
|
61082
61289
|
return node.kind === 184 /* TupleType */ && node.elements.length === 1;
|
|
61083
61290
|
}
|
|
@@ -61120,7 +61327,7 @@ var ts;
|
|
|
61120
61327
|
}
|
|
61121
61328
|
node = parent;
|
|
61122
61329
|
}
|
|
61123
|
-
return constraints ? getSubstitutionType(type, getIntersectionType(
|
|
61330
|
+
return constraints ? getSubstitutionType(type, getIntersectionType(constraints)) : type;
|
|
61124
61331
|
}
|
|
61125
61332
|
function isJSDocTypeReference(node) {
|
|
61126
61333
|
return !!(node.flags & 8388608 /* JSDoc */) && (node.kind === 178 /* TypeReference */ || node.kind === 200 /* ImportType */);
|
|
@@ -62435,7 +62642,7 @@ var ts;
|
|
|
62435
62642
|
type.flags & 16777216 /* Conditional */ ? type.root.isDistributive && type.checkType === typeVariable :
|
|
62436
62643
|
type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */) ? ts.every(type.types, isDistributive) :
|
|
62437
62644
|
type.flags & 8388608 /* IndexedAccess */ ? isDistributive(type.objectType) && isDistributive(type.indexType) :
|
|
62438
|
-
type.flags & 33554432 /* Substitution */ ? isDistributive(type.
|
|
62645
|
+
type.flags & 33554432 /* Substitution */ ? isDistributive(type.baseType) && isDistributive(type.constraint) :
|
|
62439
62646
|
type.flags & 268435456 /* StringMapping */ ? isDistributive(type.type) :
|
|
62440
62647
|
false;
|
|
62441
62648
|
}
|
|
@@ -62918,7 +63125,7 @@ var ts;
|
|
|
62918
63125
|
if (type.flags & 33554432 /* Substitution */) {
|
|
62919
63126
|
if (!(type.objectFlags & 2097152 /* IsGenericTypeComputed */)) {
|
|
62920
63127
|
type.objectFlags |= 2097152 /* IsGenericTypeComputed */ |
|
|
62921
|
-
getGenericObjectFlags(type.
|
|
63128
|
+
getGenericObjectFlags(type.baseType) | getGenericObjectFlags(type.constraint);
|
|
62922
63129
|
}
|
|
62923
63130
|
return type.objectFlags & 12582912 /* IsGenericType */;
|
|
62924
63131
|
}
|
|
@@ -64001,8 +64208,8 @@ var ts;
|
|
|
64001
64208
|
return !mapper ? makeUnaryTypeMapper(source, target) : makeCompositeTypeMapper(5 /* Merged */, mapper, makeUnaryTypeMapper(source, target));
|
|
64002
64209
|
}
|
|
64003
64210
|
function getRestrictiveTypeParameter(tp) {
|
|
64004
|
-
return tp.constraint ===
|
|
64005
|
-
tp.restrictiveInstantiation.constraint =
|
|
64211
|
+
return tp.constraint === noConstraintType ? tp : tp.restrictiveInstantiation || (tp.restrictiveInstantiation = createTypeParameter(tp.symbol),
|
|
64212
|
+
tp.restrictiveInstantiation.constraint = noConstraintType,
|
|
64006
64213
|
tp.restrictiveInstantiation);
|
|
64007
64214
|
}
|
|
64008
64215
|
function cloneTypeParameter(typeParameter) {
|
|
@@ -64365,17 +64572,17 @@ var ts;
|
|
|
64365
64572
|
return getConditionalTypeInstantiation(type, combineTypeMappers(type.mapper, mapper), aliasSymbol, aliasTypeArguments);
|
|
64366
64573
|
}
|
|
64367
64574
|
if (flags & 33554432 /* Substitution */) {
|
|
64368
|
-
var
|
|
64369
|
-
|
|
64370
|
-
|
|
64371
|
-
|
|
64372
|
-
|
|
64373
|
-
|
|
64374
|
-
|
|
64375
|
-
|
|
64376
|
-
|
|
64377
|
-
|
|
64378
|
-
|
|
64575
|
+
var newBaseType = instantiateType(type.baseType, mapper);
|
|
64576
|
+
var newConstraint = instantiateType(type.constraint, mapper);
|
|
64577
|
+
// A substitution type originates in the true branch of a conditional type and can be resolved
|
|
64578
|
+
// to just the base type in the same cases as the conditional type resolves to its true branch
|
|
64579
|
+
// (because the base type is then known to satisfy the constraint).
|
|
64580
|
+
if (newConstraint.flags & 3 /* AnyOrUnknown */ ||
|
|
64581
|
+
!isGenericType(newBaseType) && !isGenericType(newConstraint) ||
|
|
64582
|
+
isTypeAssignableTo(getRestrictiveInstantiation(newBaseType), getRestrictiveInstantiation(newConstraint))) {
|
|
64583
|
+
return newBaseType;
|
|
64584
|
+
}
|
|
64585
|
+
return getSubstitutionType(newBaseType, newConstraint);
|
|
64379
64586
|
}
|
|
64380
64587
|
return type;
|
|
64381
64588
|
}
|
|
@@ -65328,7 +65535,7 @@ var ts;
|
|
|
65328
65535
|
var t = isFreshLiteralType(type) ? type.regularType :
|
|
65329
65536
|
ts.getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type :
|
|
65330
65537
|
type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) :
|
|
65331
|
-
type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : type
|
|
65538
|
+
type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) :
|
|
65332
65539
|
type.flags & 25165824 /* Simplifiable */ ? getSimplifiedType(type, writing) :
|
|
65333
65540
|
type;
|
|
65334
65541
|
if (t === type)
|
|
@@ -65685,38 +65892,6 @@ var ts;
|
|
|
65685
65892
|
}
|
|
65686
65893
|
return 0 /* False */;
|
|
65687
65894
|
}
|
|
65688
|
-
// Before normalization: Intersections applied to unions create an explosion of types when normalized -
|
|
65689
|
-
// handling those inner intersections can be very costly, so it can be beneficial to factor them out early.
|
|
65690
|
-
// If both the source and target are intersections, we can remove the common types from them before formal normalization,
|
|
65691
|
-
// and run a simplified comparison without those common members.
|
|
65692
|
-
if (originalSource.flags & originalTarget.flags & 2097152 /* Intersection */) {
|
|
65693
|
-
var combinedTypeSet_1 = new ts.Map();
|
|
65694
|
-
ts.forEach(originalSource.types, function (t) { return combinedTypeSet_1.set(getTypeId(t), 1); });
|
|
65695
|
-
var hasOverlap_1 = false;
|
|
65696
|
-
ts.forEach(originalTarget.types, function (t) {
|
|
65697
|
-
var id = getTypeId(t);
|
|
65698
|
-
if (combinedTypeSet_1.has(id)) {
|
|
65699
|
-
combinedTypeSet_1.set(getTypeId(t), 2);
|
|
65700
|
-
hasOverlap_1 = true;
|
|
65701
|
-
}
|
|
65702
|
-
});
|
|
65703
|
-
if (hasOverlap_1) {
|
|
65704
|
-
var filteredSource = ts.filter(originalSource.types, function (t) { return combinedTypeSet_1.get(getTypeId(t)) !== 2; });
|
|
65705
|
-
var filteredTarget = ts.filter(originalTarget.types, function (t) { return combinedTypeSet_1.get(getTypeId(t)) !== 2; });
|
|
65706
|
-
if (!ts.length(filteredTarget)) {
|
|
65707
|
-
return -1 /* True */; // Source has all parts of target
|
|
65708
|
-
}
|
|
65709
|
-
if (ts.length(filteredSource)) {
|
|
65710
|
-
var result_7;
|
|
65711
|
-
if (result_7 = isRelatedTo(getIntersectionType(filteredSource), getIntersectionType(filteredTarget), recursionFlags, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState)) {
|
|
65712
|
-
return result_7;
|
|
65713
|
-
}
|
|
65714
|
-
// In the false case, we may still be assignable at the structural level, rather than the algebraic level
|
|
65715
|
-
}
|
|
65716
|
-
// Even if every member of the source is in the target but the target still has members left, the source may still be assignable
|
|
65717
|
-
// 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
|
|
65718
|
-
}
|
|
65719
|
-
}
|
|
65720
65895
|
// Normalize the source and target types: Turn fresh literal types into regular literal types,
|
|
65721
65896
|
// turn deferred type references into regular type references, simplify indexed access and
|
|
65722
65897
|
// conditional types, and resolve substitution types to either the substitution (on the source
|
|
@@ -65792,7 +65967,7 @@ var ts;
|
|
|
65792
65967
|
traceUnionsOrIntersectionsTooLarge(source, target);
|
|
65793
65968
|
var skipCaching = source.flags & 1048576 /* Union */ && source.types.length < 4 && !(target.flags & 1048576 /* Union */) ||
|
|
65794
65969
|
target.flags & 1048576 /* Union */ && target.types.length < 4 && !(source.flags & 469499904 /* StructuredOrInstantiable */);
|
|
65795
|
-
var
|
|
65970
|
+
var result_7 = skipCaching ?
|
|
65796
65971
|
unionOrIntersectionRelatedTo(source, target, reportErrors, intersectionState) :
|
|
65797
65972
|
recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags);
|
|
65798
65973
|
// For certain combinations involving intersections and optional, excess, or mismatched properties we need
|
|
@@ -65810,14 +65985,14 @@ var ts;
|
|
|
65810
65985
|
//
|
|
65811
65986
|
// We suppress recursive intersection property checks because they can generate lots of work when relating
|
|
65812
65987
|
// recursive intersections that are structurally similar but not exactly identical. See #37854.
|
|
65813
|
-
if (
|
|
65988
|
+
if (result_7 && !inPropertyCheck && (target.flags & 2097152 /* Intersection */ && (isPerformingExcessPropertyChecks || isPerformingCommonPropertyChecks) ||
|
|
65814
65989
|
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 */); }))) {
|
|
65815
65990
|
inPropertyCheck = true;
|
|
65816
|
-
|
|
65991
|
+
result_7 &= recursiveTypeRelatedTo(source, target, reportErrors, 4 /* PropertyCheck */, recursionFlags);
|
|
65817
65992
|
inPropertyCheck = false;
|
|
65818
65993
|
}
|
|
65819
|
-
if (
|
|
65820
|
-
return
|
|
65994
|
+
if (result_7) {
|
|
65995
|
+
return result_7;
|
|
65821
65996
|
}
|
|
65822
65997
|
}
|
|
65823
65998
|
if (reportErrors) {
|
|
@@ -66206,9 +66381,6 @@ var ts;
|
|
|
66206
66381
|
// equal and infinitely expanding. Fourth, if we have reached a depth of 100 nested comparisons, assume we have runaway recursion
|
|
66207
66382
|
// and issue an error. Otherwise, actually compare the structure of the two types.
|
|
66208
66383
|
function recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags) {
|
|
66209
|
-
if (relation.size > Math.pow(2, 20)) {
|
|
66210
|
-
debugger;
|
|
66211
|
-
}
|
|
66212
66384
|
if (overflow) {
|
|
66213
66385
|
return 0 /* False */;
|
|
66214
66386
|
}
|
|
@@ -66367,11 +66539,11 @@ var ts;
|
|
|
66367
66539
|
if (relation === identityRelation) {
|
|
66368
66540
|
// We've already checked that source.flags and target.flags are identical
|
|
66369
66541
|
if (sourceFlags & 3145728 /* UnionOrIntersection */) {
|
|
66370
|
-
var
|
|
66371
|
-
if (
|
|
66372
|
-
|
|
66542
|
+
var result_8 = eachTypeRelatedToSomeType(source, target);
|
|
66543
|
+
if (result_8) {
|
|
66544
|
+
result_8 &= eachTypeRelatedToSomeType(target, source);
|
|
66373
66545
|
}
|
|
66374
|
-
return
|
|
66546
|
+
return result_8;
|
|
66375
66547
|
}
|
|
66376
66548
|
if (sourceFlags & 4194304 /* Index */) {
|
|
66377
66549
|
return isRelatedTo(source.type, target.type, 3 /* Both */, /*reportErrors*/ false);
|
|
@@ -66397,7 +66569,11 @@ var ts;
|
|
|
66397
66569
|
}
|
|
66398
66570
|
}
|
|
66399
66571
|
if (sourceFlags & 33554432 /* Substitution */) {
|
|
66400
|
-
|
|
66572
|
+
if (result = isRelatedTo(source.baseType, target.baseType, 3 /* Both */, /*reportErrors*/ false)) {
|
|
66573
|
+
if (result &= isRelatedTo(source.constraint, target.constraint, 3 /* Both */, /*reportErrors*/ false)) {
|
|
66574
|
+
return result;
|
|
66575
|
+
}
|
|
66576
|
+
}
|
|
66401
66577
|
}
|
|
66402
66578
|
if (!(sourceFlags & 524288 /* Object */)) {
|
|
66403
66579
|
return 0 /* False */;
|
|
@@ -66860,9 +67036,9 @@ var ts;
|
|
|
66860
67036
|
if (sourceFlags & (524288 /* Object */ | 2097152 /* Intersection */) && targetFlags & 1048576 /* Union */) {
|
|
66861
67037
|
var objectOnlyTarget = extractTypesOfKind(target, 524288 /* Object */ | 2097152 /* Intersection */ | 33554432 /* Substitution */);
|
|
66862
67038
|
if (objectOnlyTarget.flags & 1048576 /* Union */) {
|
|
66863
|
-
var
|
|
66864
|
-
if (
|
|
66865
|
-
return
|
|
67039
|
+
var result_9 = typeRelatedToDiscriminatedType(source, objectOnlyTarget);
|
|
67040
|
+
if (result_9) {
|
|
67041
|
+
return result_9;
|
|
66866
67042
|
}
|
|
66867
67043
|
}
|
|
66868
67044
|
}
|
|
@@ -66922,13 +67098,13 @@ var ts;
|
|
|
66922
67098
|
var modifiersRelated = relation === comparableRelation || (relation === identityRelation ? getMappedTypeModifiers(source) === getMappedTypeModifiers(target) :
|
|
66923
67099
|
getCombinedMappedTypeOptionality(source) <= getCombinedMappedTypeOptionality(target));
|
|
66924
67100
|
if (modifiersRelated) {
|
|
66925
|
-
var
|
|
67101
|
+
var result_10;
|
|
66926
67102
|
var targetConstraint = getConstraintTypeFromMappedType(target);
|
|
66927
67103
|
var sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source), getCombinedMappedTypeOptionality(source) < 0 ? reportUnmeasurableMapper : reportUnreliableMapper);
|
|
66928
|
-
if (
|
|
67104
|
+
if (result_10 = isRelatedTo(targetConstraint, sourceConstraint, 3 /* Both */, reportErrors)) {
|
|
66929
67105
|
var mapper = createTypeMapper([getTypeParameterFromMappedType(source)], [getTypeParameterFromMappedType(target)]);
|
|
66930
67106
|
if (instantiateType(getNameTypeFromMappedType(source), mapper) === instantiateType(getNameTypeFromMappedType(target), mapper)) {
|
|
66931
|
-
return
|
|
67107
|
+
return result_10 & isRelatedTo(instantiateType(getTemplateTypeFromMappedType(source), mapper), getTemplateTypeFromMappedType(target), 3 /* Both */, reportErrors);
|
|
66932
67108
|
}
|
|
66933
67109
|
}
|
|
66934
67110
|
}
|
|
@@ -69401,7 +69577,7 @@ var ts;
|
|
|
69401
69577
|
}
|
|
69402
69578
|
else if (source.flags & 33554432 /* Substitution */) {
|
|
69403
69579
|
inferFromTypes(source.baseType, target);
|
|
69404
|
-
inferWithPriority(source
|
|
69580
|
+
inferWithPriority(getSubstitutionIntersection(source), target, 4 /* SubstituteSource */); // Make substitute inference at a lower priority
|
|
69405
69581
|
}
|
|
69406
69582
|
else if (target.flags & 16777216 /* Conditional */) {
|
|
69407
69583
|
invokeOnce(source, target, inferToConditionalType);
|
|
@@ -78279,10 +78455,10 @@ var ts;
|
|
|
78279
78455
|
hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0);
|
|
78280
78456
|
hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);
|
|
78281
78457
|
if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {
|
|
78282
|
-
var
|
|
78283
|
-
|
|
78284
|
-
|
|
78285
|
-
return
|
|
78458
|
+
var result_11 = createAnonymousType(undefined, resolved.members, callSignatures, constructSignatures, resolved.indexInfos);
|
|
78459
|
+
result_11.objectFlags |= 8388608 /* InstantiationExpressionType */;
|
|
78460
|
+
result_11.node = node;
|
|
78461
|
+
return result_11;
|
|
78286
78462
|
}
|
|
78287
78463
|
}
|
|
78288
78464
|
else if (type.flags & 58982400 /* InstantiableNonPrimitive */) {
|
|
@@ -82117,12 +82293,12 @@ var ts;
|
|
|
82117
82293
|
case 265 /* ImportEqualsDeclaration */:
|
|
82118
82294
|
case 268 /* NamespaceImport */:
|
|
82119
82295
|
case 267 /* ImportClause */:
|
|
82120
|
-
var
|
|
82296
|
+
var result_12 = 0 /* None */;
|
|
82121
82297
|
var target = resolveAlias(getSymbolOfNode(d));
|
|
82122
82298
|
ts.forEach(target.declarations, function (d) {
|
|
82123
|
-
|
|
82299
|
+
result_12 |= getDeclarationSpaces(d);
|
|
82124
82300
|
});
|
|
82125
|
-
return
|
|
82301
|
+
return result_12;
|
|
82126
82302
|
case 254 /* VariableDeclaration */:
|
|
82127
82303
|
case 203 /* BindingElement */:
|
|
82128
82304
|
case 256 /* FunctionDeclaration */:
|
|
@@ -88798,7 +88974,7 @@ var ts;
|
|
|
88798
88974
|
return checkGrammarDecorators(node) || checkGrammarModifiers(node);
|
|
88799
88975
|
}
|
|
88800
88976
|
function checkGrammarDecorators(node) {
|
|
88801
|
-
if (ts.canHaveIllegalDecorators(node) && ts.some(node.
|
|
88977
|
+
if (ts.canHaveIllegalDecorators(node) && ts.some(node.illegalDecorators)) {
|
|
88802
88978
|
return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_not_valid_here);
|
|
88803
88979
|
}
|
|
88804
88980
|
if (!ts.canHaveDecorators(node) || !ts.hasDecorators(node)) {
|
|
@@ -90451,6 +90627,7 @@ var ts;
|
|
|
90451
90627
|
})(ts || (ts = {}));
|
|
90452
90628
|
var ts;
|
|
90453
90629
|
(function (ts) {
|
|
90630
|
+
var _a;
|
|
90454
90631
|
function visitNode(node, visitor, test, lift) {
|
|
90455
90632
|
if (node === undefined || visitor === undefined) {
|
|
90456
90633
|
return node;
|
|
@@ -90665,12 +90842,10 @@ var ts;
|
|
|
90665
90842
|
return updated;
|
|
90666
90843
|
}
|
|
90667
90844
|
ts.visitFunctionBody = visitFunctionBody;
|
|
90668
|
-
|
|
90669
|
-
|
|
90670
|
-
*/
|
|
90671
|
-
function visitIterationBody(body, visitor, context) {
|
|
90845
|
+
function visitIterationBody(body, visitor, context, nodeVisitor) {
|
|
90846
|
+
if (nodeVisitor === void 0) { nodeVisitor = visitNode; }
|
|
90672
90847
|
context.startBlockScope();
|
|
90673
|
-
var updated =
|
|
90848
|
+
var updated = nodeVisitor(body, visitor, ts.isStatement, context.factory.liftToBlock);
|
|
90674
90849
|
var declarations = context.endBlockScope();
|
|
90675
90850
|
if (ts.some(declarations)) {
|
|
90676
90851
|
if (ts.isBlock(updated)) {
|
|
@@ -90689,456 +90864,443 @@ var ts;
|
|
|
90689
90864
|
if (node === undefined) {
|
|
90690
90865
|
return undefined;
|
|
90691
90866
|
}
|
|
90692
|
-
var
|
|
90693
|
-
|
|
90694
|
-
if ((kind > 0 /* FirstToken */ && kind <= 160 /* LastToken */) || kind === 192 /* ThisType */) {
|
|
90695
|
-
return node;
|
|
90696
|
-
}
|
|
90697
|
-
var factory = context.factory;
|
|
90698
|
-
switch (kind) {
|
|
90699
|
-
// Names
|
|
90700
|
-
case 79 /* Identifier */:
|
|
90701
|
-
ts.Debug.type(node);
|
|
90702
|
-
return factory.updateIdentifier(node, nodesVisitor(node.typeArguments, visitor, ts.isTypeNodeOrTypeParameterDeclaration));
|
|
90703
|
-
case 161 /* QualifiedName */:
|
|
90704
|
-
ts.Debug.type(node);
|
|
90705
|
-
return factory.updateQualifiedName(node, nodeVisitor(node.left, visitor, ts.isEntityName), nodeVisitor(node.right, visitor, ts.isIdentifier));
|
|
90706
|
-
case 162 /* ComputedPropertyName */:
|
|
90707
|
-
ts.Debug.type(node);
|
|
90708
|
-
return factory.updateComputedPropertyName(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90709
|
-
// Signature elements
|
|
90710
|
-
case 163 /* TypeParameter */:
|
|
90711
|
-
ts.Debug.type(node);
|
|
90712
|
-
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));
|
|
90713
|
-
case 164 /* Parameter */:
|
|
90714
|
-
ts.Debug.type(node);
|
|
90715
|
-
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));
|
|
90716
|
-
case 165 /* Decorator */:
|
|
90717
|
-
ts.Debug.type(node);
|
|
90718
|
-
return factory.updateDecorator(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90719
|
-
// Type elements
|
|
90720
|
-
case 166 /* PropertySignature */:
|
|
90721
|
-
ts.Debug.type(node);
|
|
90722
|
-
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));
|
|
90723
|
-
case 167 /* PropertyDeclaration */:
|
|
90724
|
-
ts.Debug.type(node);
|
|
90725
|
-
return factory.updatePropertyDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName),
|
|
90726
|
-
// QuestionToken and ExclamationToken is uniqued in Property Declaration and the signature of 'updateProperty' is that too
|
|
90727
|
-
nodeVisitor(node.questionToken || node.exclamationToken, tokenVisitor, ts.isQuestionOrExclamationToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
90728
|
-
case 168 /* MethodSignature */:
|
|
90729
|
-
ts.Debug.type(node);
|
|
90730
|
-
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));
|
|
90731
|
-
case 169 /* MethodDeclaration */:
|
|
90732
|
-
ts.Debug.type(node);
|
|
90733
|
-
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));
|
|
90734
|
-
case 171 /* Constructor */:
|
|
90735
|
-
ts.Debug.type(node);
|
|
90736
|
-
return factory.updateConstructorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90737
|
-
case 172 /* GetAccessor */:
|
|
90738
|
-
ts.Debug.type(node);
|
|
90739
|
-
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));
|
|
90740
|
-
case 173 /* SetAccessor */:
|
|
90741
|
-
ts.Debug.type(node);
|
|
90742
|
-
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));
|
|
90743
|
-
case 170 /* ClassStaticBlockDeclaration */:
|
|
90744
|
-
ts.Debug.type(node);
|
|
90745
|
-
context.startLexicalEnvironment();
|
|
90746
|
-
context.suspendLexicalEnvironment();
|
|
90747
|
-
return factory.updateClassStaticBlockDeclaration(node, visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90748
|
-
case 174 /* CallSignature */:
|
|
90749
|
-
ts.Debug.type(node);
|
|
90750
|
-
return factory.updateCallSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90751
|
-
case 175 /* ConstructSignature */:
|
|
90752
|
-
ts.Debug.type(node);
|
|
90753
|
-
return factory.updateConstructSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90754
|
-
case 176 /* IndexSignature */:
|
|
90755
|
-
ts.Debug.type(node);
|
|
90756
|
-
return factory.updateIndexSignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90757
|
-
// Types
|
|
90758
|
-
case 177 /* TypePredicate */:
|
|
90759
|
-
ts.Debug.type(node);
|
|
90760
|
-
return factory.updateTypePredicateNode(node, nodeVisitor(node.assertsModifier, visitor, ts.isAssertsKeyword), nodeVisitor(node.parameterName, visitor, ts.isIdentifierOrThisTypeNode), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90761
|
-
case 178 /* TypeReference */:
|
|
90762
|
-
ts.Debug.type(node);
|
|
90763
|
-
return factory.updateTypeReferenceNode(node, nodeVisitor(node.typeName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90764
|
-
case 179 /* FunctionType */:
|
|
90765
|
-
ts.Debug.type(node);
|
|
90766
|
-
return factory.updateFunctionTypeNode(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90767
|
-
case 180 /* ConstructorType */:
|
|
90768
|
-
ts.Debug.type(node);
|
|
90769
|
-
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));
|
|
90770
|
-
case 181 /* TypeQuery */:
|
|
90771
|
-
ts.Debug.type(node);
|
|
90772
|
-
return factory.updateTypeQueryNode(node, nodeVisitor(node.exprName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90773
|
-
case 182 /* TypeLiteral */:
|
|
90774
|
-
ts.Debug.type(node);
|
|
90775
|
-
return factory.updateTypeLiteralNode(node, nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90776
|
-
case 183 /* ArrayType */:
|
|
90777
|
-
ts.Debug.type(node);
|
|
90778
|
-
return factory.updateArrayTypeNode(node, nodeVisitor(node.elementType, visitor, ts.isTypeNode));
|
|
90779
|
-
case 184 /* TupleType */:
|
|
90780
|
-
ts.Debug.type(node);
|
|
90781
|
-
return factory.updateTupleTypeNode(node, nodesVisitor(node.elements, visitor, ts.isTypeNode));
|
|
90782
|
-
case 185 /* OptionalType */:
|
|
90783
|
-
ts.Debug.type(node);
|
|
90784
|
-
return factory.updateOptionalTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90785
|
-
case 186 /* RestType */:
|
|
90786
|
-
ts.Debug.type(node);
|
|
90787
|
-
return factory.updateRestTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90788
|
-
case 187 /* UnionType */:
|
|
90789
|
-
ts.Debug.type(node);
|
|
90790
|
-
return factory.updateUnionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90791
|
-
case 188 /* IntersectionType */:
|
|
90792
|
-
ts.Debug.type(node);
|
|
90793
|
-
return factory.updateIntersectionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90794
|
-
case 189 /* ConditionalType */:
|
|
90795
|
-
ts.Debug.type(node);
|
|
90796
|
-
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));
|
|
90797
|
-
case 190 /* InferType */:
|
|
90798
|
-
ts.Debug.type(node);
|
|
90799
|
-
return factory.updateInferTypeNode(node, nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration));
|
|
90800
|
-
case 200 /* ImportType */:
|
|
90801
|
-
ts.Debug.type(node);
|
|
90802
|
-
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);
|
|
90803
|
-
case 295 /* ImportTypeAssertionContainer */:
|
|
90804
|
-
ts.Debug.type(node);
|
|
90805
|
-
return factory.updateImportTypeAssertionContainer(node, nodeVisitor(node.assertClause, visitor, ts.isNode), node.multiLine);
|
|
90806
|
-
case 197 /* NamedTupleMember */:
|
|
90807
|
-
ts.Debug.type(node);
|
|
90808
|
-
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));
|
|
90809
|
-
case 191 /* ParenthesizedType */:
|
|
90810
|
-
ts.Debug.type(node);
|
|
90811
|
-
return factory.updateParenthesizedType(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90812
|
-
case 193 /* TypeOperator */:
|
|
90813
|
-
ts.Debug.type(node);
|
|
90814
|
-
return factory.updateTypeOperatorNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90815
|
-
case 194 /* IndexedAccessType */:
|
|
90816
|
-
ts.Debug.type(node);
|
|
90817
|
-
return factory.updateIndexedAccessTypeNode(node, nodeVisitor(node.objectType, visitor, ts.isTypeNode), nodeVisitor(node.indexType, visitor, ts.isTypeNode));
|
|
90818
|
-
case 195 /* MappedType */:
|
|
90819
|
-
ts.Debug.type(node);
|
|
90820
|
-
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));
|
|
90821
|
-
case 196 /* LiteralType */:
|
|
90822
|
-
ts.Debug.type(node);
|
|
90823
|
-
return factory.updateLiteralTypeNode(node, nodeVisitor(node.literal, visitor, ts.isExpression));
|
|
90824
|
-
case 198 /* TemplateLiteralType */:
|
|
90825
|
-
ts.Debug.type(node);
|
|
90826
|
-
return factory.updateTemplateLiteralType(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateLiteralTypeSpan));
|
|
90827
|
-
case 199 /* TemplateLiteralTypeSpan */:
|
|
90828
|
-
ts.Debug.type(node);
|
|
90829
|
-
return factory.updateTemplateLiteralTypeSpan(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
90830
|
-
// Binding patterns
|
|
90831
|
-
case 201 /* ObjectBindingPattern */:
|
|
90832
|
-
ts.Debug.type(node);
|
|
90833
|
-
return factory.updateObjectBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isBindingElement));
|
|
90834
|
-
case 202 /* ArrayBindingPattern */:
|
|
90835
|
-
ts.Debug.type(node);
|
|
90836
|
-
return factory.updateArrayBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isArrayBindingElement));
|
|
90837
|
-
case 203 /* BindingElement */:
|
|
90838
|
-
ts.Debug.type(node);
|
|
90839
|
-
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));
|
|
90840
|
-
// Expression
|
|
90841
|
-
case 204 /* ArrayLiteralExpression */:
|
|
90842
|
-
ts.Debug.type(node);
|
|
90843
|
-
return factory.updateArrayLiteralExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
90844
|
-
case 205 /* ObjectLiteralExpression */:
|
|
90845
|
-
ts.Debug.type(node);
|
|
90846
|
-
return factory.updateObjectLiteralExpression(node, nodesVisitor(node.properties, visitor, ts.isObjectLiteralElementLike));
|
|
90847
|
-
case 206 /* PropertyAccessExpression */:
|
|
90848
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90849
|
-
ts.Debug.type(node);
|
|
90850
|
-
return factory.updatePropertyAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.name, visitor, ts.isMemberName));
|
|
90851
|
-
}
|
|
90852
|
-
ts.Debug.type(node);
|
|
90853
|
-
return factory.updatePropertyAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.name, visitor, ts.isMemberName));
|
|
90854
|
-
case 207 /* ElementAccessExpression */:
|
|
90855
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90856
|
-
ts.Debug.type(node);
|
|
90857
|
-
return factory.updateElementAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));
|
|
90858
|
-
}
|
|
90859
|
-
ts.Debug.type(node);
|
|
90860
|
-
return factory.updateElementAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));
|
|
90861
|
-
case 208 /* CallExpression */:
|
|
90862
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90863
|
-
ts.Debug.type(node);
|
|
90864
|
-
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));
|
|
90865
|
-
}
|
|
90866
|
-
ts.Debug.type(node);
|
|
90867
|
-
return factory.updateCallExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90868
|
-
case 209 /* NewExpression */:
|
|
90869
|
-
ts.Debug.type(node);
|
|
90870
|
-
return factory.updateNewExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
90871
|
-
case 210 /* TaggedTemplateExpression */:
|
|
90872
|
-
ts.Debug.type(node);
|
|
90873
|
-
return factory.updateTaggedTemplateExpression(node, nodeVisitor(node.tag, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.template, visitor, ts.isTemplateLiteral));
|
|
90874
|
-
case 211 /* TypeAssertionExpression */:
|
|
90875
|
-
ts.Debug.type(node);
|
|
90876
|
-
return factory.updateTypeAssertion(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90877
|
-
case 212 /* ParenthesizedExpression */:
|
|
90878
|
-
ts.Debug.type(node);
|
|
90879
|
-
return factory.updateParenthesizedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90880
|
-
case 213 /* FunctionExpression */:
|
|
90881
|
-
ts.Debug.type(node);
|
|
90882
|
-
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));
|
|
90883
|
-
case 214 /* ArrowFunction */:
|
|
90884
|
-
ts.Debug.type(node);
|
|
90885
|
-
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));
|
|
90886
|
-
case 215 /* DeleteExpression */:
|
|
90887
|
-
ts.Debug.type(node);
|
|
90888
|
-
return factory.updateDeleteExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90889
|
-
case 216 /* TypeOfExpression */:
|
|
90890
|
-
ts.Debug.type(node);
|
|
90891
|
-
return factory.updateTypeOfExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90892
|
-
case 217 /* VoidExpression */:
|
|
90893
|
-
ts.Debug.type(node);
|
|
90894
|
-
return factory.updateVoidExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90895
|
-
case 218 /* AwaitExpression */:
|
|
90896
|
-
ts.Debug.type(node);
|
|
90897
|
-
return factory.updateAwaitExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90898
|
-
case 219 /* PrefixUnaryExpression */:
|
|
90899
|
-
ts.Debug.type(node);
|
|
90900
|
-
return factory.updatePrefixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
90901
|
-
case 220 /* PostfixUnaryExpression */:
|
|
90902
|
-
ts.Debug.type(node);
|
|
90903
|
-
return factory.updatePostfixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
90904
|
-
case 221 /* BinaryExpression */:
|
|
90905
|
-
ts.Debug.type(node);
|
|
90906
|
-
return factory.updateBinaryExpression(node, nodeVisitor(node.left, visitor, ts.isExpression), nodeVisitor(node.operatorToken, tokenVisitor, ts.isBinaryOperatorToken), nodeVisitor(node.right, visitor, ts.isExpression));
|
|
90907
|
-
case 222 /* ConditionalExpression */:
|
|
90908
|
-
ts.Debug.type(node);
|
|
90909
|
-
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));
|
|
90910
|
-
case 223 /* TemplateExpression */:
|
|
90911
|
-
ts.Debug.type(node);
|
|
90912
|
-
return factory.updateTemplateExpression(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateSpan));
|
|
90913
|
-
case 224 /* YieldExpression */:
|
|
90914
|
-
ts.Debug.type(node);
|
|
90915
|
-
return factory.updateYieldExpression(node, nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90916
|
-
case 225 /* SpreadElement */:
|
|
90917
|
-
ts.Debug.type(node);
|
|
90918
|
-
return factory.updateSpreadElement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90919
|
-
case 226 /* ClassExpression */:
|
|
90920
|
-
ts.Debug.type(node);
|
|
90921
|
-
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));
|
|
90922
|
-
case 228 /* ExpressionWithTypeArguments */:
|
|
90923
|
-
ts.Debug.type(node);
|
|
90924
|
-
return factory.updateExpressionWithTypeArguments(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90925
|
-
case 229 /* AsExpression */:
|
|
90926
|
-
ts.Debug.type(node);
|
|
90927
|
-
return factory.updateAsExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90928
|
-
case 230 /* NonNullExpression */:
|
|
90929
|
-
if (node.flags & 32 /* OptionalChain */) {
|
|
90930
|
-
ts.Debug.type(node);
|
|
90931
|
-
return factory.updateNonNullChain(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90932
|
-
}
|
|
90933
|
-
ts.Debug.type(node);
|
|
90934
|
-
return factory.updateNonNullExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90935
|
-
case 231 /* MetaProperty */:
|
|
90936
|
-
ts.Debug.type(node);
|
|
90937
|
-
return factory.updateMetaProperty(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
90938
|
-
// Misc
|
|
90939
|
-
case 233 /* TemplateSpan */:
|
|
90940
|
-
ts.Debug.type(node);
|
|
90941
|
-
return factory.updateTemplateSpan(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
90942
|
-
// Element
|
|
90943
|
-
case 235 /* Block */:
|
|
90944
|
-
ts.Debug.type(node);
|
|
90945
|
-
return factory.updateBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
90946
|
-
case 237 /* VariableStatement */:
|
|
90947
|
-
ts.Debug.type(node);
|
|
90948
|
-
return factory.updateVariableStatement(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.declarationList, visitor, ts.isVariableDeclarationList));
|
|
90949
|
-
case 238 /* ExpressionStatement */:
|
|
90950
|
-
ts.Debug.type(node);
|
|
90951
|
-
return factory.updateExpressionStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90952
|
-
case 239 /* IfStatement */:
|
|
90953
|
-
ts.Debug.type(node);
|
|
90954
|
-
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));
|
|
90955
|
-
case 240 /* DoStatement */:
|
|
90956
|
-
ts.Debug.type(node);
|
|
90957
|
-
return factory.updateDoStatement(node, visitIterationBody(node.statement, visitor, context), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90958
|
-
case 241 /* WhileStatement */:
|
|
90959
|
-
ts.Debug.type(node);
|
|
90960
|
-
return factory.updateWhileStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));
|
|
90961
|
-
case 242 /* ForStatement */:
|
|
90962
|
-
ts.Debug.type(node);
|
|
90963
|
-
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));
|
|
90964
|
-
case 243 /* ForInStatement */:
|
|
90965
|
-
ts.Debug.type(node);
|
|
90966
|
-
return factory.updateForInStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));
|
|
90967
|
-
case 244 /* ForOfStatement */:
|
|
90968
|
-
ts.Debug.type(node);
|
|
90969
|
-
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));
|
|
90970
|
-
case 245 /* ContinueStatement */:
|
|
90971
|
-
ts.Debug.type(node);
|
|
90972
|
-
return factory.updateContinueStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
90973
|
-
case 246 /* BreakStatement */:
|
|
90974
|
-
ts.Debug.type(node);
|
|
90975
|
-
return factory.updateBreakStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
90976
|
-
case 247 /* ReturnStatement */:
|
|
90977
|
-
ts.Debug.type(node);
|
|
90978
|
-
return factory.updateReturnStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90979
|
-
case 248 /* WithStatement */:
|
|
90980
|
-
ts.Debug.type(node);
|
|
90981
|
-
return factory.updateWithStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.statement, visitor, ts.isStatement, factory.liftToBlock));
|
|
90982
|
-
case 249 /* SwitchStatement */:
|
|
90983
|
-
ts.Debug.type(node);
|
|
90984
|
-
return factory.updateSwitchStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.caseBlock, visitor, ts.isCaseBlock));
|
|
90985
|
-
case 250 /* LabeledStatement */:
|
|
90986
|
-
ts.Debug.type(node);
|
|
90987
|
-
return factory.updateLabeledStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier), nodeVisitor(node.statement, visitor, ts.isStatement, factory.liftToBlock));
|
|
90988
|
-
case 251 /* ThrowStatement */:
|
|
90989
|
-
ts.Debug.type(node);
|
|
90990
|
-
return factory.updateThrowStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90991
|
-
case 252 /* TryStatement */:
|
|
90992
|
-
ts.Debug.type(node);
|
|
90993
|
-
return factory.updateTryStatement(node, nodeVisitor(node.tryBlock, visitor, ts.isBlock), nodeVisitor(node.catchClause, visitor, ts.isCatchClause), nodeVisitor(node.finallyBlock, visitor, ts.isBlock));
|
|
90994
|
-
case 254 /* VariableDeclaration */:
|
|
90995
|
-
ts.Debug.type(node);
|
|
90996
|
-
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));
|
|
90997
|
-
case 255 /* VariableDeclarationList */:
|
|
90998
|
-
ts.Debug.type(node);
|
|
90999
|
-
return factory.updateVariableDeclarationList(node, nodesVisitor(node.declarations, visitor, ts.isVariableDeclaration));
|
|
91000
|
-
case 256 /* FunctionDeclaration */:
|
|
91001
|
-
ts.Debug.type(node);
|
|
91002
|
-
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));
|
|
91003
|
-
case 257 /* ClassDeclaration */:
|
|
91004
|
-
ts.Debug.type(node);
|
|
91005
|
-
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));
|
|
91006
|
-
case 258 /* InterfaceDeclaration */:
|
|
91007
|
-
ts.Debug.type(node);
|
|
91008
|
-
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));
|
|
91009
|
-
case 259 /* TypeAliasDeclaration */:
|
|
91010
|
-
ts.Debug.type(node);
|
|
91011
|
-
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));
|
|
91012
|
-
case 260 /* EnumDeclaration */:
|
|
91013
|
-
ts.Debug.type(node);
|
|
91014
|
-
return factory.updateEnumDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.members, visitor, ts.isEnumMember));
|
|
91015
|
-
case 261 /* ModuleDeclaration */:
|
|
91016
|
-
ts.Debug.type(node);
|
|
91017
|
-
return factory.updateModuleDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isModuleName), nodeVisitor(node.body, visitor, ts.isModuleBody));
|
|
91018
|
-
case 262 /* ModuleBlock */:
|
|
91019
|
-
ts.Debug.type(node);
|
|
91020
|
-
return factory.updateModuleBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91021
|
-
case 263 /* CaseBlock */:
|
|
91022
|
-
ts.Debug.type(node);
|
|
91023
|
-
return factory.updateCaseBlock(node, nodesVisitor(node.clauses, visitor, ts.isCaseOrDefaultClause));
|
|
91024
|
-
case 264 /* NamespaceExportDeclaration */:
|
|
91025
|
-
ts.Debug.type(node);
|
|
91026
|
-
return factory.updateNamespaceExportDeclaration(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91027
|
-
case 265 /* ImportEqualsDeclaration */:
|
|
91028
|
-
ts.Debug.type(node);
|
|
91029
|
-
return factory.updateImportEqualsDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.moduleReference, visitor, ts.isModuleReference));
|
|
91030
|
-
case 266 /* ImportDeclaration */:
|
|
91031
|
-
ts.Debug.type(node);
|
|
91032
|
-
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));
|
|
91033
|
-
case 293 /* AssertClause */:
|
|
91034
|
-
ts.Debug.type(node);
|
|
91035
|
-
return factory.updateAssertClause(node, nodesVisitor(node.elements, visitor, ts.isAssertEntry), node.multiLine);
|
|
91036
|
-
case 294 /* AssertEntry */:
|
|
91037
|
-
ts.Debug.type(node);
|
|
91038
|
-
return factory.updateAssertEntry(node, nodeVisitor(node.name, visitor, ts.isAssertionKey), nodeVisitor(node.value, visitor, ts.isExpressionNode));
|
|
91039
|
-
case 267 /* ImportClause */:
|
|
91040
|
-
ts.Debug.type(node);
|
|
91041
|
-
return factory.updateImportClause(node, node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.namedBindings, visitor, ts.isNamedImportBindings));
|
|
91042
|
-
case 268 /* NamespaceImport */:
|
|
91043
|
-
ts.Debug.type(node);
|
|
91044
|
-
return factory.updateNamespaceImport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91045
|
-
case 274 /* NamespaceExport */:
|
|
91046
|
-
ts.Debug.type(node);
|
|
91047
|
-
return factory.updateNamespaceExport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91048
|
-
case 269 /* NamedImports */:
|
|
91049
|
-
ts.Debug.type(node);
|
|
91050
|
-
return factory.updateNamedImports(node, nodesVisitor(node.elements, visitor, ts.isImportSpecifier));
|
|
91051
|
-
case 270 /* ImportSpecifier */:
|
|
91052
|
-
ts.Debug.type(node);
|
|
91053
|
-
return factory.updateImportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91054
|
-
case 271 /* ExportAssignment */:
|
|
91055
|
-
ts.Debug.type(node);
|
|
91056
|
-
return factory.updateExportAssignment(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91057
|
-
case 272 /* ExportDeclaration */:
|
|
91058
|
-
ts.Debug.type(node);
|
|
91059
|
-
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));
|
|
91060
|
-
case 273 /* NamedExports */:
|
|
91061
|
-
ts.Debug.type(node);
|
|
91062
|
-
return factory.updateNamedExports(node, nodesVisitor(node.elements, visitor, ts.isExportSpecifier));
|
|
91063
|
-
case 275 /* ExportSpecifier */:
|
|
91064
|
-
ts.Debug.type(node);
|
|
91065
|
-
return factory.updateExportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91066
|
-
// Module references
|
|
91067
|
-
case 277 /* ExternalModuleReference */:
|
|
91068
|
-
ts.Debug.type(node);
|
|
91069
|
-
return factory.updateExternalModuleReference(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91070
|
-
// JSX
|
|
91071
|
-
case 278 /* JsxElement */:
|
|
91072
|
-
ts.Debug.type(node);
|
|
91073
|
-
return factory.updateJsxElement(node, nodeVisitor(node.openingElement, visitor, ts.isJsxOpeningElement), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingElement, visitor, ts.isJsxClosingElement));
|
|
91074
|
-
case 279 /* JsxSelfClosingElement */:
|
|
91075
|
-
ts.Debug.type(node);
|
|
91076
|
-
return factory.updateJsxSelfClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91077
|
-
case 280 /* JsxOpeningElement */:
|
|
91078
|
-
ts.Debug.type(node);
|
|
91079
|
-
return factory.updateJsxOpeningElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91080
|
-
case 281 /* JsxClosingElement */:
|
|
91081
|
-
ts.Debug.type(node);
|
|
91082
|
-
return factory.updateJsxClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression));
|
|
91083
|
-
case 282 /* JsxFragment */:
|
|
91084
|
-
ts.Debug.type(node);
|
|
91085
|
-
return factory.updateJsxFragment(node, nodeVisitor(node.openingFragment, visitor, ts.isJsxOpeningFragment), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingFragment, visitor, ts.isJsxClosingFragment));
|
|
91086
|
-
case 285 /* JsxAttribute */:
|
|
91087
|
-
ts.Debug.type(node);
|
|
91088
|
-
return factory.updateJsxAttribute(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.initializer, visitor, ts.isStringLiteralOrJsxExpression));
|
|
91089
|
-
case 286 /* JsxAttributes */:
|
|
91090
|
-
ts.Debug.type(node);
|
|
91091
|
-
return factory.updateJsxAttributes(node, nodesVisitor(node.properties, visitor, ts.isJsxAttributeLike));
|
|
91092
|
-
case 287 /* JsxSpreadAttribute */:
|
|
91093
|
-
ts.Debug.type(node);
|
|
91094
|
-
return factory.updateJsxSpreadAttribute(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91095
|
-
case 288 /* JsxExpression */:
|
|
91096
|
-
ts.Debug.type(node);
|
|
91097
|
-
return factory.updateJsxExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91098
|
-
// Clauses
|
|
91099
|
-
case 289 /* CaseClause */:
|
|
91100
|
-
ts.Debug.type(node);
|
|
91101
|
-
return factory.updateCaseClause(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91102
|
-
case 290 /* DefaultClause */:
|
|
91103
|
-
ts.Debug.type(node);
|
|
91104
|
-
return factory.updateDefaultClause(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91105
|
-
case 291 /* HeritageClause */:
|
|
91106
|
-
ts.Debug.type(node);
|
|
91107
|
-
return factory.updateHeritageClause(node, nodesVisitor(node.types, visitor, ts.isExpressionWithTypeArguments));
|
|
91108
|
-
case 292 /* CatchClause */:
|
|
91109
|
-
ts.Debug.type(node);
|
|
91110
|
-
return factory.updateCatchClause(node, nodeVisitor(node.variableDeclaration, visitor, ts.isVariableDeclaration), nodeVisitor(node.block, visitor, ts.isBlock));
|
|
91111
|
-
// Property assignments
|
|
91112
|
-
case 296 /* PropertyAssignment */:
|
|
91113
|
-
ts.Debug.type(node);
|
|
91114
|
-
return factory.updatePropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91115
|
-
case 297 /* ShorthandPropertyAssignment */:
|
|
91116
|
-
ts.Debug.type(node);
|
|
91117
|
-
return factory.updateShorthandPropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.objectAssignmentInitializer, visitor, ts.isExpression));
|
|
91118
|
-
case 298 /* SpreadAssignment */:
|
|
91119
|
-
ts.Debug.type(node);
|
|
91120
|
-
return factory.updateSpreadAssignment(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91121
|
-
// Enum
|
|
91122
|
-
case 299 /* EnumMember */:
|
|
91123
|
-
ts.Debug.type(node);
|
|
91124
|
-
return factory.updateEnumMember(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91125
|
-
// Top-level nodes
|
|
91126
|
-
case 305 /* SourceFile */:
|
|
91127
|
-
ts.Debug.type(node);
|
|
91128
|
-
return factory.updateSourceFile(node, visitLexicalEnvironment(node.statements, visitor, context));
|
|
91129
|
-
// Transformation nodes
|
|
91130
|
-
case 350 /* PartiallyEmittedExpression */:
|
|
91131
|
-
ts.Debug.type(node);
|
|
91132
|
-
return factory.updatePartiallyEmittedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91133
|
-
case 351 /* CommaListExpression */:
|
|
91134
|
-
ts.Debug.type(node);
|
|
91135
|
-
return factory.updateCommaListExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
91136
|
-
default:
|
|
91137
|
-
// No need to visit nodes with no children.
|
|
91138
|
-
return node;
|
|
91139
|
-
}
|
|
90867
|
+
var fn = visitEachChildTable[node.kind];
|
|
90868
|
+
return fn === undefined ? node : fn(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor);
|
|
91140
90869
|
}
|
|
91141
90870
|
ts.visitEachChild = visitEachChild;
|
|
90871
|
+
// NOTE: Before you can add a new method to `visitEachChildTable`, you must first ensure the `Node` subtype you
|
|
90872
|
+
// wish to add is defined in the `HasChildren` union in types.ts.
|
|
90873
|
+
var visitEachChildTable = (_a = {},
|
|
90874
|
+
_a[79 /* Identifier */] = function visitEachChildOfIdentifier(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90875
|
+
return context.factory.updateIdentifier(node, nodesVisitor(node.typeArguments, visitor, ts.isTypeNodeOrTypeParameterDeclaration));
|
|
90876
|
+
},
|
|
90877
|
+
_a[161 /* QualifiedName */] = function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90878
|
+
return context.factory.updateQualifiedName(node, nodeVisitor(node.left, visitor, ts.isEntityName), nodeVisitor(node.right, visitor, ts.isIdentifier));
|
|
90879
|
+
},
|
|
90880
|
+
_a[162 /* ComputedPropertyName */] = function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90881
|
+
return context.factory.updateComputedPropertyName(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90882
|
+
},
|
|
90883
|
+
// Signature elements
|
|
90884
|
+
_a[163 /* TypeParameter */] = function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90885
|
+
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));
|
|
90886
|
+
},
|
|
90887
|
+
_a[164 /* Parameter */] = function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90888
|
+
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));
|
|
90889
|
+
},
|
|
90890
|
+
_a[165 /* Decorator */] = function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90891
|
+
return context.factory.updateDecorator(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
90892
|
+
},
|
|
90893
|
+
// Type elements
|
|
90894
|
+
_a[166 /* PropertySignature */] = function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90895
|
+
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));
|
|
90896
|
+
},
|
|
90897
|
+
_a[167 /* PropertyDeclaration */] = function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90898
|
+
var _a;
|
|
90899
|
+
return context.factory.updatePropertyDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifierLike), nodeVisitor(node.name, visitor, ts.isPropertyName),
|
|
90900
|
+
// QuestionToken and ExclamationToken are mutually exclusive in PropertyDeclaration
|
|
90901
|
+
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));
|
|
90902
|
+
},
|
|
90903
|
+
_a[168 /* MethodSignature */] = function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90904
|
+
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));
|
|
90905
|
+
},
|
|
90906
|
+
_a[169 /* MethodDeclaration */] = function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90907
|
+
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));
|
|
90908
|
+
},
|
|
90909
|
+
_a[171 /* Constructor */] = function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90910
|
+
return context.factory.updateConstructorDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90911
|
+
},
|
|
90912
|
+
_a[172 /* GetAccessor */] = function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90913
|
+
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));
|
|
90914
|
+
},
|
|
90915
|
+
_a[173 /* SetAccessor */] = function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90916
|
+
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));
|
|
90917
|
+
},
|
|
90918
|
+
_a[170 /* ClassStaticBlockDeclaration */] = function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90919
|
+
context.startLexicalEnvironment();
|
|
90920
|
+
context.suspendLexicalEnvironment();
|
|
90921
|
+
return context.factory.updateClassStaticBlockDeclaration(node, visitFunctionBody(node.body, visitor, context, nodeVisitor));
|
|
90922
|
+
},
|
|
90923
|
+
_a[174 /* CallSignature */] = function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90924
|
+
return context.factory.updateCallSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90925
|
+
},
|
|
90926
|
+
_a[175 /* ConstructSignature */] = function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90927
|
+
return context.factory.updateConstructSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90928
|
+
},
|
|
90929
|
+
_a[176 /* IndexSignature */] = function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90930
|
+
return context.factory.updateIndexSignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90931
|
+
},
|
|
90932
|
+
// Types
|
|
90933
|
+
_a[177 /* TypePredicate */] = function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90934
|
+
return context.factory.updateTypePredicateNode(node, nodeVisitor(node.assertsModifier, visitor, ts.isAssertsKeyword), nodeVisitor(node.parameterName, visitor, ts.isIdentifierOrThisTypeNode), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90935
|
+
},
|
|
90936
|
+
_a[178 /* TypeReference */] = function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90937
|
+
return context.factory.updateTypeReferenceNode(node, nodeVisitor(node.typeName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90938
|
+
},
|
|
90939
|
+
_a[179 /* FunctionType */] = function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90940
|
+
return context.factory.updateFunctionTypeNode(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90941
|
+
},
|
|
90942
|
+
_a[180 /* ConstructorType */] = function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90943
|
+
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));
|
|
90944
|
+
},
|
|
90945
|
+
_a[181 /* TypeQuery */] = function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90946
|
+
return context.factory.updateTypeQueryNode(node, nodeVisitor(node.exprName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
90947
|
+
},
|
|
90948
|
+
_a[182 /* TypeLiteral */] = function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90949
|
+
return context.factory.updateTypeLiteralNode(node, nodesVisitor(node.members, visitor, ts.isTypeElement));
|
|
90950
|
+
},
|
|
90951
|
+
_a[183 /* ArrayType */] = function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90952
|
+
return context.factory.updateArrayTypeNode(node, nodeVisitor(node.elementType, visitor, ts.isTypeNode));
|
|
90953
|
+
},
|
|
90954
|
+
_a[184 /* TupleType */] = function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90955
|
+
return context.factory.updateTupleTypeNode(node, nodesVisitor(node.elements, visitor, ts.isTypeNode));
|
|
90956
|
+
},
|
|
90957
|
+
_a[185 /* OptionalType */] = function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90958
|
+
return context.factory.updateOptionalTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90959
|
+
},
|
|
90960
|
+
_a[186 /* RestType */] = function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90961
|
+
return context.factory.updateRestTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90962
|
+
},
|
|
90963
|
+
_a[187 /* UnionType */] = function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90964
|
+
return context.factory.updateUnionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90965
|
+
},
|
|
90966
|
+
_a[188 /* IntersectionType */] = function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
90967
|
+
return context.factory.updateIntersectionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));
|
|
90968
|
+
},
|
|
90969
|
+
_a[189 /* ConditionalType */] = function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90970
|
+
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));
|
|
90971
|
+
},
|
|
90972
|
+
_a[190 /* InferType */] = function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90973
|
+
return context.factory.updateInferTypeNode(node, nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration));
|
|
90974
|
+
},
|
|
90975
|
+
_a[200 /* ImportType */] = function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90976
|
+
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);
|
|
90977
|
+
},
|
|
90978
|
+
_a[295 /* ImportTypeAssertionContainer */] = function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90979
|
+
return context.factory.updateImportTypeAssertionContainer(node, nodeVisitor(node.assertClause, visitor, ts.isAssertClause), node.multiLine);
|
|
90980
|
+
},
|
|
90981
|
+
_a[197 /* NamedTupleMember */] = function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90982
|
+
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));
|
|
90983
|
+
},
|
|
90984
|
+
_a[191 /* ParenthesizedType */] = function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90985
|
+
return context.factory.updateParenthesizedType(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90986
|
+
},
|
|
90987
|
+
_a[193 /* TypeOperator */] = function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90988
|
+
return context.factory.updateTypeOperatorNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
90989
|
+
},
|
|
90990
|
+
_a[194 /* IndexedAccessType */] = function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90991
|
+
return context.factory.updateIndexedAccessTypeNode(node, nodeVisitor(node.objectType, visitor, ts.isTypeNode), nodeVisitor(node.indexType, visitor, ts.isTypeNode));
|
|
90992
|
+
},
|
|
90993
|
+
_a[195 /* MappedType */] = function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
90994
|
+
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));
|
|
90995
|
+
},
|
|
90996
|
+
_a[196 /* LiteralType */] = function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
90997
|
+
return context.factory.updateLiteralTypeNode(node, nodeVisitor(node.literal, visitor, ts.isExpression));
|
|
90998
|
+
},
|
|
90999
|
+
_a[198 /* TemplateLiteralType */] = function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91000
|
+
return context.factory.updateTemplateLiteralType(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateLiteralTypeSpan));
|
|
91001
|
+
},
|
|
91002
|
+
_a[199 /* TemplateLiteralTypeSpan */] = function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91003
|
+
return context.factory.updateTemplateLiteralTypeSpan(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
91004
|
+
},
|
|
91005
|
+
// Binding patterns
|
|
91006
|
+
_a[201 /* ObjectBindingPattern */] = function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91007
|
+
return context.factory.updateObjectBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isBindingElement));
|
|
91008
|
+
},
|
|
91009
|
+
_a[202 /* ArrayBindingPattern */] = function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91010
|
+
return context.factory.updateArrayBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isArrayBindingElement));
|
|
91011
|
+
},
|
|
91012
|
+
_a[203 /* BindingElement */] = function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91013
|
+
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));
|
|
91014
|
+
},
|
|
91015
|
+
// Expression
|
|
91016
|
+
_a[204 /* ArrayLiteralExpression */] = function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91017
|
+
return context.factory.updateArrayLiteralExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
91018
|
+
},
|
|
91019
|
+
_a[205 /* ObjectLiteralExpression */] = function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91020
|
+
return context.factory.updateObjectLiteralExpression(node, nodesVisitor(node.properties, visitor, ts.isObjectLiteralElementLike));
|
|
91021
|
+
},
|
|
91022
|
+
_a[206 /* PropertyAccessExpression */] = function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91023
|
+
return ts.isPropertyAccessChain(node) ?
|
|
91024
|
+
context.factory.updatePropertyAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.name, visitor, ts.isMemberName)) :
|
|
91025
|
+
context.factory.updatePropertyAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.name, visitor, ts.isMemberName));
|
|
91026
|
+
},
|
|
91027
|
+
_a[207 /* ElementAccessExpression */] = function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91028
|
+
return ts.isElementAccessChain(node) ?
|
|
91029
|
+
context.factory.updateElementAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.argumentExpression, visitor, ts.isExpression)) :
|
|
91030
|
+
context.factory.updateElementAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));
|
|
91031
|
+
},
|
|
91032
|
+
_a[208 /* CallExpression */] = function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91033
|
+
return ts.isCallChain(node) ?
|
|
91034
|
+
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)) :
|
|
91035
|
+
context.factory.updateCallExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
91036
|
+
},
|
|
91037
|
+
_a[209 /* NewExpression */] = function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91038
|
+
return context.factory.updateNewExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
|
|
91039
|
+
},
|
|
91040
|
+
_a[210 /* TaggedTemplateExpression */] = function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91041
|
+
return context.factory.updateTaggedTemplateExpression(node, nodeVisitor(node.tag, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.template, visitor, ts.isTemplateLiteral));
|
|
91042
|
+
},
|
|
91043
|
+
_a[211 /* TypeAssertionExpression */] = function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91044
|
+
return context.factory.updateTypeAssertion(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91045
|
+
},
|
|
91046
|
+
_a[212 /* ParenthesizedExpression */] = function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91047
|
+
return context.factory.updateParenthesizedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91048
|
+
},
|
|
91049
|
+
_a[213 /* FunctionExpression */] = function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91050
|
+
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));
|
|
91051
|
+
},
|
|
91052
|
+
_a[214 /* ArrowFunction */] = function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91053
|
+
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));
|
|
91054
|
+
},
|
|
91055
|
+
_a[215 /* DeleteExpression */] = function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91056
|
+
return context.factory.updateDeleteExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91057
|
+
},
|
|
91058
|
+
_a[216 /* TypeOfExpression */] = function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91059
|
+
return context.factory.updateTypeOfExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91060
|
+
},
|
|
91061
|
+
_a[217 /* VoidExpression */] = function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91062
|
+
return context.factory.updateVoidExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91063
|
+
},
|
|
91064
|
+
_a[218 /* AwaitExpression */] = function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91065
|
+
return context.factory.updateAwaitExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91066
|
+
},
|
|
91067
|
+
_a[219 /* PrefixUnaryExpression */] = function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91068
|
+
return context.factory.updatePrefixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
91069
|
+
},
|
|
91070
|
+
_a[220 /* PostfixUnaryExpression */] = function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91071
|
+
return context.factory.updatePostfixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));
|
|
91072
|
+
},
|
|
91073
|
+
_a[221 /* BinaryExpression */] = function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91074
|
+
return context.factory.updateBinaryExpression(node, nodeVisitor(node.left, visitor, ts.isExpression), nodeVisitor(node.operatorToken, tokenVisitor, ts.isBinaryOperatorToken), nodeVisitor(node.right, visitor, ts.isExpression));
|
|
91075
|
+
},
|
|
91076
|
+
_a[222 /* ConditionalExpression */] = function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91077
|
+
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));
|
|
91078
|
+
},
|
|
91079
|
+
_a[223 /* TemplateExpression */] = function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91080
|
+
return context.factory.updateTemplateExpression(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateSpan));
|
|
91081
|
+
},
|
|
91082
|
+
_a[224 /* YieldExpression */] = function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91083
|
+
return context.factory.updateYieldExpression(node, nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91084
|
+
},
|
|
91085
|
+
_a[225 /* SpreadElement */] = function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91086
|
+
return context.factory.updateSpreadElement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91087
|
+
},
|
|
91088
|
+
_a[226 /* ClassExpression */] = function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91089
|
+
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));
|
|
91090
|
+
},
|
|
91091
|
+
_a[228 /* ExpressionWithTypeArguments */] = function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91092
|
+
return context.factory.updateExpressionWithTypeArguments(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));
|
|
91093
|
+
},
|
|
91094
|
+
_a[229 /* AsExpression */] = function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91095
|
+
return context.factory.updateAsExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.type, visitor, ts.isTypeNode));
|
|
91096
|
+
},
|
|
91097
|
+
_a[230 /* NonNullExpression */] = function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91098
|
+
return ts.isOptionalChain(node) ?
|
|
91099
|
+
context.factory.updateNonNullChain(node, nodeVisitor(node.expression, visitor, ts.isExpression)) :
|
|
91100
|
+
context.factory.updateNonNullExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91101
|
+
},
|
|
91102
|
+
_a[231 /* MetaProperty */] = function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91103
|
+
return context.factory.updateMetaProperty(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91104
|
+
},
|
|
91105
|
+
// Misc
|
|
91106
|
+
_a[233 /* TemplateSpan */] = function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91107
|
+
return context.factory.updateTemplateSpan(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));
|
|
91108
|
+
},
|
|
91109
|
+
// Element
|
|
91110
|
+
_a[235 /* Block */] = function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91111
|
+
return context.factory.updateBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91112
|
+
},
|
|
91113
|
+
_a[237 /* VariableStatement */] = function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91114
|
+
return context.factory.updateVariableStatement(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.declarationList, visitor, ts.isVariableDeclarationList));
|
|
91115
|
+
},
|
|
91116
|
+
_a[238 /* ExpressionStatement */] = function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91117
|
+
return context.factory.updateExpressionStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91118
|
+
},
|
|
91119
|
+
_a[239 /* IfStatement */] = function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91120
|
+
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));
|
|
91121
|
+
},
|
|
91122
|
+
_a[240 /* DoStatement */] = function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91123
|
+
return context.factory.updateDoStatement(node, visitIterationBody(node.statement, visitor, context, nodeVisitor), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91124
|
+
},
|
|
91125
|
+
_a[241 /* WhileStatement */] = function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91126
|
+
return context.factory.updateWhileStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context, nodeVisitor));
|
|
91127
|
+
},
|
|
91128
|
+
_a[242 /* ForStatement */] = function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91129
|
+
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));
|
|
91130
|
+
},
|
|
91131
|
+
_a[243 /* ForInStatement */] = function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91132
|
+
return context.factory.updateForInStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context, nodeVisitor));
|
|
91133
|
+
},
|
|
91134
|
+
_a[244 /* ForOfStatement */] = function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91135
|
+
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));
|
|
91136
|
+
},
|
|
91137
|
+
_a[245 /* ContinueStatement */] = function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91138
|
+
return context.factory.updateContinueStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
91139
|
+
},
|
|
91140
|
+
_a[246 /* BreakStatement */] = function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91141
|
+
return context.factory.updateBreakStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));
|
|
91142
|
+
},
|
|
91143
|
+
_a[247 /* ReturnStatement */] = function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91144
|
+
return context.factory.updateReturnStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91145
|
+
},
|
|
91146
|
+
_a[248 /* WithStatement */] = function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91147
|
+
return context.factory.updateWithStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.statement, visitor, ts.isStatement, context.factory.liftToBlock));
|
|
91148
|
+
},
|
|
91149
|
+
_a[249 /* SwitchStatement */] = function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91150
|
+
return context.factory.updateSwitchStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.caseBlock, visitor, ts.isCaseBlock));
|
|
91151
|
+
},
|
|
91152
|
+
_a[250 /* LabeledStatement */] = function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91153
|
+
return context.factory.updateLabeledStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier), nodeVisitor(node.statement, visitor, ts.isStatement, context.factory.liftToBlock));
|
|
91154
|
+
},
|
|
91155
|
+
_a[251 /* ThrowStatement */] = function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91156
|
+
return context.factory.updateThrowStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91157
|
+
},
|
|
91158
|
+
_a[252 /* TryStatement */] = function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91159
|
+
return context.factory.updateTryStatement(node, nodeVisitor(node.tryBlock, visitor, ts.isBlock), nodeVisitor(node.catchClause, visitor, ts.isCatchClause), nodeVisitor(node.finallyBlock, visitor, ts.isBlock));
|
|
91160
|
+
},
|
|
91161
|
+
_a[254 /* VariableDeclaration */] = function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91162
|
+
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));
|
|
91163
|
+
},
|
|
91164
|
+
_a[255 /* VariableDeclarationList */] = function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91165
|
+
return context.factory.updateVariableDeclarationList(node, nodesVisitor(node.declarations, visitor, ts.isVariableDeclaration));
|
|
91166
|
+
},
|
|
91167
|
+
_a[256 /* FunctionDeclaration */] = function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
91168
|
+
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));
|
|
91169
|
+
},
|
|
91170
|
+
_a[257 /* ClassDeclaration */] = function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91171
|
+
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));
|
|
91172
|
+
},
|
|
91173
|
+
_a[258 /* InterfaceDeclaration */] = function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91174
|
+
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));
|
|
91175
|
+
},
|
|
91176
|
+
_a[259 /* TypeAliasDeclaration */] = function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91177
|
+
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));
|
|
91178
|
+
},
|
|
91179
|
+
_a[260 /* EnumDeclaration */] = function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91180
|
+
return context.factory.updateEnumDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.members, visitor, ts.isEnumMember));
|
|
91181
|
+
},
|
|
91182
|
+
_a[261 /* ModuleDeclaration */] = function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91183
|
+
return context.factory.updateModuleDeclaration(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isModuleName), nodeVisitor(node.body, visitor, ts.isModuleBody));
|
|
91184
|
+
},
|
|
91185
|
+
_a[262 /* ModuleBlock */] = function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91186
|
+
return context.factory.updateModuleBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91187
|
+
},
|
|
91188
|
+
_a[263 /* CaseBlock */] = function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91189
|
+
return context.factory.updateCaseBlock(node, nodesVisitor(node.clauses, visitor, ts.isCaseOrDefaultClause));
|
|
91190
|
+
},
|
|
91191
|
+
_a[264 /* NamespaceExportDeclaration */] = function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91192
|
+
return context.factory.updateNamespaceExportDeclaration(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91193
|
+
},
|
|
91194
|
+
_a[265 /* ImportEqualsDeclaration */] = function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91195
|
+
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));
|
|
91196
|
+
},
|
|
91197
|
+
_a[266 /* ImportDeclaration */] = function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91198
|
+
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));
|
|
91199
|
+
},
|
|
91200
|
+
_a[293 /* AssertClause */] = function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91201
|
+
return context.factory.updateAssertClause(node, nodesVisitor(node.elements, visitor, ts.isAssertEntry), node.multiLine);
|
|
91202
|
+
},
|
|
91203
|
+
_a[294 /* AssertEntry */] = function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91204
|
+
return context.factory.updateAssertEntry(node, nodeVisitor(node.name, visitor, ts.isAssertionKey), nodeVisitor(node.value, visitor, ts.isExpression));
|
|
91205
|
+
},
|
|
91206
|
+
_a[267 /* ImportClause */] = function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91207
|
+
return context.factory.updateImportClause(node, node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.namedBindings, visitor, ts.isNamedImportBindings));
|
|
91208
|
+
},
|
|
91209
|
+
_a[268 /* NamespaceImport */] = function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91210
|
+
return context.factory.updateNamespaceImport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91211
|
+
},
|
|
91212
|
+
_a[274 /* NamespaceExport */] = function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91213
|
+
return context.factory.updateNamespaceExport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91214
|
+
},
|
|
91215
|
+
_a[269 /* NamedImports */] = function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91216
|
+
return context.factory.updateNamedImports(node, nodesVisitor(node.elements, visitor, ts.isImportSpecifier));
|
|
91217
|
+
},
|
|
91218
|
+
_a[270 /* ImportSpecifier */] = function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91219
|
+
return context.factory.updateImportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91220
|
+
},
|
|
91221
|
+
_a[271 /* ExportAssignment */] = function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91222
|
+
return context.factory.updateExportAssignment(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91223
|
+
},
|
|
91224
|
+
_a[272 /* ExportDeclaration */] = function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91225
|
+
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));
|
|
91226
|
+
},
|
|
91227
|
+
_a[273 /* NamedExports */] = function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91228
|
+
return context.factory.updateNamedExports(node, nodesVisitor(node.elements, visitor, ts.isExportSpecifier));
|
|
91229
|
+
},
|
|
91230
|
+
_a[275 /* ExportSpecifier */] = function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91231
|
+
return context.factory.updateExportSpecifier(node, node.isTypeOnly, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));
|
|
91232
|
+
},
|
|
91233
|
+
// Module references
|
|
91234
|
+
_a[277 /* ExternalModuleReference */] = function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91235
|
+
return context.factory.updateExternalModuleReference(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91236
|
+
},
|
|
91237
|
+
// JSX
|
|
91238
|
+
_a[278 /* JsxElement */] = function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91239
|
+
return context.factory.updateJsxElement(node, nodeVisitor(node.openingElement, visitor, ts.isJsxOpeningElement), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingElement, visitor, ts.isJsxClosingElement));
|
|
91240
|
+
},
|
|
91241
|
+
_a[279 /* JsxSelfClosingElement */] = function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91242
|
+
return context.factory.updateJsxSelfClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91243
|
+
},
|
|
91244
|
+
_a[280 /* JsxOpeningElement */] = function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91245
|
+
return context.factory.updateJsxOpeningElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));
|
|
91246
|
+
},
|
|
91247
|
+
_a[281 /* JsxClosingElement */] = function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91248
|
+
return context.factory.updateJsxClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression));
|
|
91249
|
+
},
|
|
91250
|
+
_a[282 /* JsxFragment */] = function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91251
|
+
return context.factory.updateJsxFragment(node, nodeVisitor(node.openingFragment, visitor, ts.isJsxOpeningFragment), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingFragment, visitor, ts.isJsxClosingFragment));
|
|
91252
|
+
},
|
|
91253
|
+
_a[285 /* JsxAttribute */] = function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91254
|
+
return context.factory.updateJsxAttribute(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.initializer, visitor, ts.isStringLiteralOrJsxExpression));
|
|
91255
|
+
},
|
|
91256
|
+
_a[286 /* JsxAttributes */] = function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91257
|
+
return context.factory.updateJsxAttributes(node, nodesVisitor(node.properties, visitor, ts.isJsxAttributeLike));
|
|
91258
|
+
},
|
|
91259
|
+
_a[287 /* JsxSpreadAttribute */] = function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91260
|
+
return context.factory.updateJsxSpreadAttribute(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91261
|
+
},
|
|
91262
|
+
_a[288 /* JsxExpression */] = function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91263
|
+
return context.factory.updateJsxExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91264
|
+
},
|
|
91265
|
+
// Clauses
|
|
91266
|
+
_a[289 /* CaseClause */] = function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91267
|
+
return context.factory.updateCaseClause(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91268
|
+
},
|
|
91269
|
+
_a[290 /* DefaultClause */] = function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91270
|
+
return context.factory.updateDefaultClause(node, nodesVisitor(node.statements, visitor, ts.isStatement));
|
|
91271
|
+
},
|
|
91272
|
+
_a[291 /* HeritageClause */] = function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91273
|
+
return context.factory.updateHeritageClause(node, nodesVisitor(node.types, visitor, ts.isExpressionWithTypeArguments));
|
|
91274
|
+
},
|
|
91275
|
+
_a[292 /* CatchClause */] = function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91276
|
+
return context.factory.updateCatchClause(node, nodeVisitor(node.variableDeclaration, visitor, ts.isVariableDeclaration), nodeVisitor(node.block, visitor, ts.isBlock));
|
|
91277
|
+
},
|
|
91278
|
+
// Property assignments
|
|
91279
|
+
_a[296 /* PropertyAssignment */] = function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91280
|
+
return context.factory.updatePropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91281
|
+
},
|
|
91282
|
+
_a[297 /* ShorthandPropertyAssignment */] = function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91283
|
+
return context.factory.updateShorthandPropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.objectAssignmentInitializer, visitor, ts.isExpression));
|
|
91284
|
+
},
|
|
91285
|
+
_a[298 /* SpreadAssignment */] = function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91286
|
+
return context.factory.updateSpreadAssignment(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91287
|
+
},
|
|
91288
|
+
// Enum
|
|
91289
|
+
_a[299 /* EnumMember */] = function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91290
|
+
return context.factory.updateEnumMember(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
|
|
91291
|
+
},
|
|
91292
|
+
// Top-level nodes
|
|
91293
|
+
_a[305 /* SourceFile */] = function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91294
|
+
return context.factory.updateSourceFile(node, visitLexicalEnvironment(node.statements, visitor, context, /*start*/ undefined, /*ensureUseStrict*/ undefined, nodesVisitor));
|
|
91295
|
+
},
|
|
91296
|
+
// Transformation nodes
|
|
91297
|
+
_a[350 /* PartiallyEmittedExpression */] = function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
91298
|
+
return context.factory.updatePartiallyEmittedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
|
|
91299
|
+
},
|
|
91300
|
+
_a[351 /* CommaListExpression */] = function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
91301
|
+
return context.factory.updateCommaListExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));
|
|
91302
|
+
},
|
|
91303
|
+
_a);
|
|
91142
91304
|
/**
|
|
91143
91305
|
* Extracts the single node from a NodeArray.
|
|
91144
91306
|
*
|
|
@@ -91206,7 +91368,7 @@ var ts;
|
|
|
91206
91368
|
exit();
|
|
91207
91369
|
return sourceIndex;
|
|
91208
91370
|
}
|
|
91209
|
-
/* eslint-disable boolean-trivia, no-null/no-null */
|
|
91371
|
+
/* eslint-disable local/boolean-trivia, no-null/no-null */
|
|
91210
91372
|
function setSourceContent(sourceIndex, content) {
|
|
91211
91373
|
enter();
|
|
91212
91374
|
if (content !== null) {
|
|
@@ -91219,7 +91381,7 @@ var ts;
|
|
|
91219
91381
|
}
|
|
91220
91382
|
exit();
|
|
91221
91383
|
}
|
|
91222
|
-
/* eslint-enable boolean-trivia, no-null/no-null */
|
|
91384
|
+
/* eslint-enable local/boolean-trivia, no-null/no-null */
|
|
91223
91385
|
function addName(name) {
|
|
91224
91386
|
enter();
|
|
91225
91387
|
if (!nameToNameIndexMap)
|
|
@@ -99303,8 +99465,8 @@ var ts;
|
|
|
99303
99465
|
function convertJsxChildrenToChildrenPropAssignment(children) {
|
|
99304
99466
|
var nonWhitespaceChildren = ts.getSemanticJsxChildren(children);
|
|
99305
99467
|
if (ts.length(nonWhitespaceChildren) === 1 && !nonWhitespaceChildren[0].dotDotDotToken) {
|
|
99306
|
-
var
|
|
99307
|
-
return
|
|
99468
|
+
var result_13 = transformJsxChildToExpression(nonWhitespaceChildren[0]);
|
|
99469
|
+
return result_13 && factory.createPropertyAssignment("children", result_13);
|
|
99308
99470
|
}
|
|
99309
99471
|
var result = ts.mapDefined(children, transformJsxChildToExpression);
|
|
99310
99472
|
return ts.length(result) ? factory.createPropertyAssignment("children", factory.createArrayLiteralExpression(result)) : undefined;
|
|
@@ -118559,15 +118721,15 @@ var ts;
|
|
|
118559
118721
|
// which per above occurred during the current program creation.
|
|
118560
118722
|
// Since we assume the filesystem does not change during program creation,
|
|
118561
118723
|
// it is safe to reuse resolutions from the earlier call.
|
|
118562
|
-
var
|
|
118724
|
+
var result_14 = [];
|
|
118563
118725
|
var i = 0;
|
|
118564
118726
|
for (var _i = 0, moduleNames_1 = moduleNames; _i < moduleNames_1.length; _i++) {
|
|
118565
118727
|
var moduleName = moduleNames_1[_i];
|
|
118566
118728
|
var resolvedModule = file.resolvedModules.get(moduleName, getModeForResolutionAtIndex(file, i));
|
|
118567
118729
|
i++;
|
|
118568
|
-
|
|
118730
|
+
result_14.push(resolvedModule);
|
|
118569
118731
|
}
|
|
118570
|
-
return
|
|
118732
|
+
return result_14;
|
|
118571
118733
|
}
|
|
118572
118734
|
// At this point, we know at least one of the following hold:
|
|
118573
118735
|
// - file has local declarations for ambient modules
|
|
@@ -122027,14 +122189,14 @@ var ts;
|
|
|
122027
122189
|
fileNames_1.push(relativeToBuildInfo(sourceFile.resolvedPath));
|
|
122028
122190
|
fileInfos_1.push(sourceFile.version);
|
|
122029
122191
|
});
|
|
122030
|
-
var
|
|
122192
|
+
var result_15 = {
|
|
122031
122193
|
fileNames: fileNames_1,
|
|
122032
122194
|
fileInfos: fileInfos_1,
|
|
122033
122195
|
options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions, "affectsBundleEmitBuildInfo"),
|
|
122034
122196
|
outSignature: state.outSignature,
|
|
122035
122197
|
latestChangedDtsFile: latestChangedDtsFile,
|
|
122036
122198
|
};
|
|
122037
|
-
return
|
|
122199
|
+
return result_15;
|
|
122038
122200
|
}
|
|
122039
122201
|
var fileNames = [];
|
|
122040
122202
|
var fileNameToFileId = new ts.Map();
|
|
@@ -123972,9 +124134,9 @@ var ts;
|
|
|
123972
124134
|
if (!preferSymlinks) {
|
|
123973
124135
|
// Symlinks inside ignored paths are already filtered out of the symlink cache,
|
|
123974
124136
|
// so we only need to remove them from the realpath filenames.
|
|
123975
|
-
var
|
|
123976
|
-
if (
|
|
123977
|
-
return
|
|
124137
|
+
var result_16 = ts.forEach(targets, function (p) { return !(shouldFilterIgnoredPaths && ts.containsIgnoredPath(p)) && cb(p, referenceRedirect === p); });
|
|
124138
|
+
if (result_16)
|
|
124139
|
+
return result_16;
|
|
123978
124140
|
}
|
|
123979
124141
|
var symlinkedDirectories = (_a = host.getSymlinkCache) === null || _a === void 0 ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath();
|
|
123980
124142
|
var fullImportedFileName = ts.getNormalizedAbsolutePath(importedFileName, cwd);
|
|
@@ -123994,10 +124156,10 @@ var ts;
|
|
|
123994
124156
|
for (var _i = 0, symlinkDirectories_1 = symlinkDirectories; _i < symlinkDirectories_1.length; _i++) {
|
|
123995
124157
|
var symlinkDirectory = symlinkDirectories_1[_i];
|
|
123996
124158
|
var option = ts.resolvePath(symlinkDirectory, relative);
|
|
123997
|
-
var
|
|
124159
|
+
var result_17 = cb(option, target === referenceRedirect);
|
|
123998
124160
|
shouldFilterIgnoredPaths = true; // We found a non-ignored path in symlinks, so we can reject ignored-path realpaths
|
|
123999
|
-
if (
|
|
124000
|
-
return
|
|
124161
|
+
if (result_17)
|
|
124162
|
+
return result_17;
|
|
124001
124163
|
}
|
|
124002
124164
|
});
|
|
124003
124165
|
});
|
|
@@ -132475,7 +132637,7 @@ var ts;
|
|
|
132475
132637
|
// defined in `ts.commentPragmas` would be excessive, but we can avoid
|
|
132476
132638
|
// some obvious false positives (e.g. in XML-like doc comments) by
|
|
132477
132639
|
// checking the element name.
|
|
132478
|
-
// eslint-disable-next-line no-in-operator
|
|
132640
|
+
// eslint-disable-next-line local/no-in-operator
|
|
132479
132641
|
if (!match[3] || !(match[3] in ts.commentPragmas)) {
|
|
132480
132642
|
return false;
|
|
132481
132643
|
}
|
|
@@ -133177,7 +133339,7 @@ var ts;
|
|
|
133177
133339
|
// Get string literal completions from specialized signatures of the target
|
|
133178
133340
|
// i.e. declare function f(a: 'A');
|
|
133179
133341
|
// f("/*completion position*/")
|
|
133180
|
-
return argumentInfo
|
|
133342
|
+
return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();
|
|
133181
133343
|
}
|
|
133182
133344
|
// falls through (is `require("")` or `require(""` or `import("")`)
|
|
133183
133345
|
case 266 /* ImportDeclaration */:
|
|
@@ -133233,7 +133395,7 @@ var ts;
|
|
|
133233
133395
|
isNewIdentifier = isNewIdentifier || !!(type.flags & 4 /* String */);
|
|
133234
133396
|
return getStringLiteralTypes(type, uniques);
|
|
133235
133397
|
});
|
|
133236
|
-
return { kind: 2 /* Types */, types: types, isNewIdentifier: isNewIdentifier };
|
|
133398
|
+
return ts.length(types) ? { kind: 2 /* Types */, types: types, isNewIdentifier: isNewIdentifier } : undefined;
|
|
133237
133399
|
}
|
|
133238
133400
|
function stringLiteralCompletionsFromProperties(type) {
|
|
133239
133401
|
return type && {
|
|
@@ -140172,7 +140334,7 @@ var ts;
|
|
|
140172
140334
|
}
|
|
140173
140335
|
}
|
|
140174
140336
|
function addReference(referenceLocation, relatedSymbol, state) {
|
|
140175
|
-
var _a = "kind" in relatedSymbol ? relatedSymbol : { kind: undefined, symbol: relatedSymbol }, kind = _a.kind, symbol = _a.symbol; // eslint-disable-line no-in-operator
|
|
140337
|
+
var _a = "kind" in relatedSymbol ? relatedSymbol : { kind: undefined, symbol: relatedSymbol }, kind = _a.kind, symbol = _a.symbol; // eslint-disable-line local/no-in-operator
|
|
140176
140338
|
// if rename symbol from default export anonymous function, for example `export default function() {}`, we do not need to add reference
|
|
140177
140339
|
if (state.options.use === 2 /* Rename */ && referenceLocation.kind === 88 /* DefaultKeyword */) {
|
|
140178
140340
|
return;
|
|
@@ -145958,11 +146120,11 @@ var ts;
|
|
|
145958
146120
|
// not enough to put us in the substitution expression; we should consider ourselves part of
|
|
145959
146121
|
// the *next* span's expression by offsetting the index (argIndex = (spanIndex + 1) + 1).
|
|
145960
146122
|
//
|
|
145961
|
-
/* eslint-disable no-double-space */
|
|
146123
|
+
/* eslint-disable local/no-double-space */
|
|
145962
146124
|
// Example: f `# abcd $#{# 1 + 1# }# efghi ${ #"#hello"# } # `
|
|
145963
146125
|
// ^ ^ ^ ^ ^ ^ ^ ^ ^
|
|
145964
146126
|
// Case: 1 1 3 2 1 3 2 2 1
|
|
145965
|
-
/* eslint-enable no-double-space */
|
|
146127
|
+
/* eslint-enable local/no-double-space */
|
|
145966
146128
|
ts.Debug.assert(position >= node.getStart(), "Assumed 'position' could not occur before node.");
|
|
145967
146129
|
if (ts.isTemplateLiteralToken(node)) {
|
|
145968
146130
|
if (ts.isInsideTemplateLiteral(node, position, sourceFile)) {
|
|
@@ -153983,7 +154145,7 @@ var ts;
|
|
|
153983
154145
|
name = getMapEntryOrDefault(funcNode.name);
|
|
153984
154146
|
}
|
|
153985
154147
|
// return undefined argName when arg is null or undefined
|
|
153986
|
-
// eslint-disable-next-line no-in-operator
|
|
154148
|
+
// eslint-disable-next-line local/no-in-operator
|
|
153987
154149
|
if (!name || "identifier" in name && name.identifier.text === "undefined") {
|
|
153988
154150
|
return undefined;
|
|
153989
154151
|
}
|
|
@@ -166169,7 +166331,7 @@ var ts;
|
|
|
166169
166331
|
this.kind = kind;
|
|
166170
166332
|
}
|
|
166171
166333
|
NodeObject.prototype.assertHasRealPosition = function (message) {
|
|
166172
|
-
// eslint-disable-next-line debug-assert
|
|
166334
|
+
// eslint-disable-next-line local/debug-assert
|
|
166173
166335
|
ts.Debug.assert(!ts.positionIsSynthesized(this.pos) && !ts.positionIsSynthesized(this.end), message || "Node must have a real position for this operation");
|
|
166174
166336
|
};
|
|
166175
166337
|
NodeObject.prototype.getSourceFile = function () {
|
|
@@ -169213,7 +169375,7 @@ var debugObjectHost = (function () {
|
|
|
169213
169375
|
return this;
|
|
169214
169376
|
})();
|
|
169215
169377
|
// We need to use 'null' to interface with the managed side.
|
|
169216
|
-
/* eslint-disable no-in-operator */
|
|
169378
|
+
/* eslint-disable local/no-in-operator */
|
|
169217
169379
|
/* @internal */
|
|
169218
169380
|
var ts;
|
|
169219
169381
|
(function (ts) {
|
|
@@ -170013,7 +170175,7 @@ var ts;
|
|
|
170013
170175
|
}());
|
|
170014
170176
|
ts.TypeScriptServicesFactory = TypeScriptServicesFactory;
|
|
170015
170177
|
})(ts || (ts = {}));
|
|
170016
|
-
/* eslint-enable no-in-operator */
|
|
170178
|
+
/* eslint-enable local/no-in-operator */
|
|
170017
170179
|
// We polyfill `globalThis` here so re can reliably patch the global scope
|
|
170018
170180
|
// in the contexts we want to in the same way across script and module formats
|
|
170019
170181
|
/* eslint-enable no-var */
|
|
@@ -173073,7 +173235,7 @@ var ts;
|
|
|
173073
173235
|
var newLS = pluginModule.create(info);
|
|
173074
173236
|
for (var _i = 0, _a = Object.keys(this.languageService); _i < _a.length; _i++) {
|
|
173075
173237
|
var k = _a[_i];
|
|
173076
|
-
// eslint-disable-next-line no-in-operator
|
|
173238
|
+
// eslint-disable-next-line local/no-in-operator
|
|
173077
173239
|
if (!(k in newLS)) {
|
|
173078
173240
|
this.projectService.logger.info("Plugin activation warning: Missing proxied method " + k + " in created LS. Patching.");
|
|
173079
173241
|
newLS[k] = this.languageService[k];
|
|
@@ -182272,7 +182434,7 @@ var ts;
|
|
|
182272
182434
|
if (typeof value === "number") {
|
|
182273
182435
|
return ts.factory.createNumericLiteral(value);
|
|
182274
182436
|
}
|
|
182275
|
-
// eslint-disable-next-line no-in-operator
|
|
182437
|
+
// eslint-disable-next-line local/no-in-operator
|
|
182276
182438
|
if (typeof value === "object" && "base10Value" in value) { // PseudoBigInt
|
|
182277
182439
|
return ts.factory.createBigIntLiteral(value);
|
|
182278
182440
|
}
|
|
@@ -182744,9 +182906,9 @@ var ts;
|
|
|
182744
182906
|
// - error: 5.0
|
|
182745
182907
|
var ts;
|
|
182746
182908
|
(function (ts) {
|
|
182747
|
-
var MUST_MERGE = { since: "4.8", warnAfter: "4.9.0-0", message: "Decorators have been combined with modifiers. Callers should switch to an overload
|
|
182748
|
-
var DISALLOW_DECORATORS = { since: "4.8", warnAfter: "4.9.0-0", message: "Decorators are no longer supported for this function. Callers should switch to an overload
|
|
182749
|
-
var DISALLOW_DECORATORS_AND_MODIFIERS = { since: "4.8", warnAfter: "4.9.0-0", message: "Decorators and modifiers are no longer supported for this function. Callers should switch to an overload
|
|
182909
|
+
var MUST_MERGE = { since: "4.8", warnAfter: "4.9.0-0", message: "Decorators have been combined with modifiers. Callers should switch to an overload that does not accept a 'decorators' parameter." };
|
|
182910
|
+
var DISALLOW_DECORATORS = { since: "4.8", warnAfter: "4.9.0-0", message: "Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter." };
|
|
182911
|
+
var DISALLOW_DECORATORS_AND_MODIFIERS = { since: "4.8", warnAfter: "4.9.0-0", message: "Decorators and modifiers are no longer supported for this function. Callers should switch to an overload that does not accept the 'decorators' and 'modifiers' parameters." };
|
|
182750
182912
|
function patchNodeFactory(factory) {
|
|
182751
182913
|
var createParameterDeclaration = factory.createParameterDeclaration, updateParameterDeclaration = factory.updateParameterDeclaration, createPropertyDeclaration = factory.createPropertyDeclaration, updatePropertyDeclaration = factory.updatePropertyDeclaration, createMethodDeclaration = factory.createMethodDeclaration, updateMethodDeclaration = factory.updateMethodDeclaration, createConstructorDeclaration = factory.createConstructorDeclaration, updateConstructorDeclaration = factory.updateConstructorDeclaration, createGetAccessorDeclaration = factory.createGetAccessorDeclaration, updateGetAccessorDeclaration = factory.updateGetAccessorDeclaration, createSetAccessorDeclaration = factory.createSetAccessorDeclaration, updateSetAccessorDeclaration = factory.updateSetAccessorDeclaration, createIndexSignature = factory.createIndexSignature, updateIndexSignature = factory.updateIndexSignature, createClassStaticBlockDeclaration = factory.createClassStaticBlockDeclaration, updateClassStaticBlockDeclaration = factory.updateClassStaticBlockDeclaration, createClassExpression = factory.createClassExpression, updateClassExpression = factory.updateClassExpression, createFunctionDeclaration = factory.createFunctionDeclaration, updateFunctionDeclaration = factory.updateFunctionDeclaration, createClassDeclaration = factory.createClassDeclaration, updateClassDeclaration = factory.updateClassDeclaration, createInterfaceDeclaration = factory.createInterfaceDeclaration, updateInterfaceDeclaration = factory.updateInterfaceDeclaration, createTypeAliasDeclaration = factory.createTypeAliasDeclaration, updateTypeAliasDeclaration = factory.updateTypeAliasDeclaration, createEnumDeclaration = factory.createEnumDeclaration, updateEnumDeclaration = factory.updateEnumDeclaration, createModuleDeclaration = factory.createModuleDeclaration, updateModuleDeclaration = factory.updateModuleDeclaration, createImportEqualsDeclaration = factory.createImportEqualsDeclaration, updateImportEqualsDeclaration = factory.updateImportEqualsDeclaration, createImportDeclaration = factory.createImportDeclaration, updateImportDeclaration = factory.updateImportDeclaration, createExportAssignment = factory.createExportAssignment, updateExportAssignment = factory.updateExportAssignment, createExportDeclaration = factory.createExportDeclaration, updateExportDeclaration = factory.updateExportDeclaration;
|
|
182752
182914
|
factory.createParameterDeclaration = ts.buildOverload("createParameterDeclaration")
|
|
@@ -182973,7 +183135,7 @@ var ts;
|
|
|
182973
183135
|
return (decorators === undefined || !ts.some(decorators, ts.isModifier)) &&
|
|
182974
183136
|
(modifiers === undefined || !ts.some(modifiers, ts.isParameter)) &&
|
|
182975
183137
|
(parameters === undefined || ts.isArray(parameters)) &&
|
|
182976
|
-
(body === undefined ||
|
|
183138
|
+
(body === undefined || ts.isBlock(body));
|
|
182977
183139
|
},
|
|
182978
183140
|
})
|
|
182979
183141
|
.deprecate({
|
|
@@ -183002,7 +183164,7 @@ var ts;
|
|
|
183002
183164
|
return (decorators === undefined || !ts.some(decorators, ts.isModifier)) &&
|
|
183003
183165
|
(modifiers === undefined || !ts.some(modifiers, ts.isParameter)) &&
|
|
183004
183166
|
(parameters === undefined || ts.isArray(parameters)) &&
|
|
183005
|
-
(body === undefined ||
|
|
183167
|
+
(body === undefined || ts.isBlock(body));
|
|
183006
183168
|
},
|
|
183007
183169
|
})
|
|
183008
183170
|
.deprecate({
|