@typescript-deploys/pr-build 5.0.0-pr-49929-73 → 5.0.0-pr-52280-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +592 -595
- package/lib/tsserver.js +641 -647
- package/lib/tsserverlibrary.d.ts +41 -86
- package/lib/tsserverlibrary.js +634 -643
- package/lib/typescript.d.ts +37 -76
- package/lib/typescript.js +627 -638
- package/lib/typingsInstaller.js +263 -240
- package/package.json +1 -1
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.0";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230117`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -2966,14 +2966,15 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
|
|
|
2966
2966
|
SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 350] = "JSDocSeeTag";
|
|
2967
2967
|
SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 351] = "JSDocPropertyTag";
|
|
2968
2968
|
SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 352] = "JSDocThrowsTag";
|
|
2969
|
-
SyntaxKind4[SyntaxKind4["
|
|
2970
|
-
SyntaxKind4[SyntaxKind4["
|
|
2971
|
-
SyntaxKind4[SyntaxKind4["
|
|
2972
|
-
SyntaxKind4[SyntaxKind4["
|
|
2973
|
-
SyntaxKind4[SyntaxKind4["
|
|
2974
|
-
SyntaxKind4[SyntaxKind4["
|
|
2975
|
-
SyntaxKind4[SyntaxKind4["
|
|
2976
|
-
SyntaxKind4[SyntaxKind4["
|
|
2969
|
+
SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 353] = "JSDocSatisfiesTag";
|
|
2970
|
+
SyntaxKind4[SyntaxKind4["SyntaxList"] = 354] = "SyntaxList";
|
|
2971
|
+
SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 355] = "NotEmittedStatement";
|
|
2972
|
+
SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 356] = "PartiallyEmittedExpression";
|
|
2973
|
+
SyntaxKind4[SyntaxKind4["CommaListExpression"] = 357] = "CommaListExpression";
|
|
2974
|
+
SyntaxKind4[SyntaxKind4["MergeDeclarationMarker"] = 358] = "MergeDeclarationMarker";
|
|
2975
|
+
SyntaxKind4[SyntaxKind4["EndOfDeclarationMarker"] = 359] = "EndOfDeclarationMarker";
|
|
2976
|
+
SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 360] = "SyntheticReferenceExpression";
|
|
2977
|
+
SyntaxKind4[SyntaxKind4["Count"] = 361] = "Count";
|
|
2977
2978
|
SyntaxKind4[SyntaxKind4["FirstAssignment"] = 63 /* EqualsToken */] = "FirstAssignment";
|
|
2978
2979
|
SyntaxKind4[SyntaxKind4["LastAssignment"] = 78 /* CaretEqualsToken */] = "LastAssignment";
|
|
2979
2980
|
SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 64 /* PlusEqualsToken */] = "FirstCompoundAssignment";
|
|
@@ -3002,9 +3003,9 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
|
|
|
3002
3003
|
SyntaxKind4[SyntaxKind4["LastStatement"] = 256 /* DebuggerStatement */] = "LastStatement";
|
|
3003
3004
|
SyntaxKind4[SyntaxKind4["FirstNode"] = 163 /* QualifiedName */] = "FirstNode";
|
|
3004
3005
|
SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 312 /* JSDocTypeExpression */] = "FirstJSDocNode";
|
|
3005
|
-
SyntaxKind4[SyntaxKind4["LastJSDocNode"] =
|
|
3006
|
+
SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 353 /* JSDocSatisfiesTag */] = "LastJSDocNode";
|
|
3006
3007
|
SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 330 /* JSDocTag */] = "FirstJSDocTagNode";
|
|
3007
|
-
SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] =
|
|
3008
|
+
SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 353 /* JSDocSatisfiesTag */] = "LastJSDocTagNode";
|
|
3008
3009
|
SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 126 /* AbstractKeyword */] = "FirstContextualKeyword";
|
|
3009
3010
|
SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 162 /* OfKeyword */] = "LastContextualKeyword";
|
|
3010
3011
|
return SyntaxKind4;
|
|
@@ -5355,7 +5356,6 @@ var Diagnostics = {
|
|
|
5355
5356
|
An_export_declaration_cannot_have_modifiers: diag(1193, 1 /* Error */, "An_export_declaration_cannot_have_modifiers_1193", "An export declaration cannot have modifiers."),
|
|
5356
5357
|
Export_declarations_are_not_permitted_in_a_namespace: diag(1194, 1 /* Error */, "Export_declarations_are_not_permitted_in_a_namespace_1194", "Export declarations are not permitted in a namespace."),
|
|
5357
5358
|
export_Asterisk_does_not_re_export_a_default: diag(1195, 1 /* Error */, "export_Asterisk_does_not_re_export_a_default_1195", "'export *' does not re-export a default."),
|
|
5358
|
-
Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified: diag(1196, 1 /* Error */, "Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196", "Catch clause variable type annotation must be 'any' or 'unknown' if specified."),
|
|
5359
5359
|
Catch_clause_variable_cannot_have_an_initializer: diag(1197, 1 /* Error */, "Catch_clause_variable_cannot_have_an_initializer_1197", "Catch clause variable cannot have an initializer."),
|
|
5360
5360
|
An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: diag(1198, 1 /* Error */, "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198", "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),
|
|
5361
5361
|
Unterminated_Unicode_escape_sequence: diag(1199, 1 /* Error */, "Unterminated_Unicode_escape_sequence_1199", "Unterminated Unicode escape sequence."),
|
|
@@ -7223,7 +7223,8 @@ var Diagnostics = {
|
|
|
7223
7223
|
_0_is_possibly_null: diag(18047, 1 /* Error */, "_0_is_possibly_null_18047", "'{0}' is possibly 'null'."),
|
|
7224
7224
|
_0_is_possibly_undefined: diag(18048, 1 /* Error */, "_0_is_possibly_undefined_18048", "'{0}' is possibly 'undefined'."),
|
|
7225
7225
|
_0_is_possibly_null_or_undefined: diag(18049, 1 /* Error */, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."),
|
|
7226
|
-
The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here.")
|
|
7226
|
+
The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."),
|
|
7227
|
+
Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string.")
|
|
7227
7228
|
};
|
|
7228
7229
|
|
|
7229
7230
|
// src/compiler/scanner.ts
|
|
@@ -7756,7 +7757,10 @@ function reduceEachTrailingCommentRange(text, pos, cb, state, initial) {
|
|
|
7756
7757
|
initial
|
|
7757
7758
|
);
|
|
7758
7759
|
}
|
|
7759
|
-
function appendCommentRange(pos, end, kind, hasTrailingNewLine, _state, comments
|
|
7760
|
+
function appendCommentRange(pos, end, kind, hasTrailingNewLine, _state, comments) {
|
|
7761
|
+
if (!comments) {
|
|
7762
|
+
comments = [];
|
|
7763
|
+
}
|
|
7760
7764
|
comments.push({ kind, pos, end, hasTrailingNewLine });
|
|
7761
7765
|
return comments;
|
|
7762
7766
|
}
|
|
@@ -9699,15 +9703,18 @@ function isNamedExportBindings(node) {
|
|
|
9699
9703
|
function isNodeKind(kind) {
|
|
9700
9704
|
return kind >= 163 /* FirstNode */;
|
|
9701
9705
|
}
|
|
9706
|
+
function isTokenKind(kind) {
|
|
9707
|
+
return kind >= 0 /* FirstToken */ && kind <= 162 /* LastToken */;
|
|
9708
|
+
}
|
|
9709
|
+
function isToken(n) {
|
|
9710
|
+
return isTokenKind(n.kind);
|
|
9711
|
+
}
|
|
9702
9712
|
function isNodeArray(array) {
|
|
9703
9713
|
return hasProperty(array, "pos") && hasProperty(array, "end");
|
|
9704
9714
|
}
|
|
9705
9715
|
function isLiteralKind(kind) {
|
|
9706
9716
|
return 8 /* FirstLiteralToken */ <= kind && kind <= 14 /* LastLiteralToken */;
|
|
9707
9717
|
}
|
|
9708
|
-
function isLiteralExpression(node) {
|
|
9709
|
-
return isLiteralKind(node.kind);
|
|
9710
|
-
}
|
|
9711
9718
|
function isTemplateLiteralKind(kind) {
|
|
9712
9719
|
return 14 /* FirstTemplateToken */ <= kind && kind <= 17 /* LastTemplateToken */;
|
|
9713
9720
|
}
|
|
@@ -9939,18 +9946,6 @@ function isUnaryExpressionKind(kind) {
|
|
|
9939
9946
|
return isLeftHandSideExpressionKind(kind);
|
|
9940
9947
|
}
|
|
9941
9948
|
}
|
|
9942
|
-
function isLiteralTypeLiteral(node) {
|
|
9943
|
-
node = skipPartiallyEmittedExpressions(node);
|
|
9944
|
-
switch (skipPartiallyEmittedExpressions(node).kind) {
|
|
9945
|
-
case 104 /* NullKeyword */:
|
|
9946
|
-
case 110 /* TrueKeyword */:
|
|
9947
|
-
case 95 /* FalseKeyword */:
|
|
9948
|
-
case 221 /* PrefixUnaryExpression */:
|
|
9949
|
-
return true;
|
|
9950
|
-
default:
|
|
9951
|
-
return isLiteralExpression(node);
|
|
9952
|
-
}
|
|
9953
|
-
}
|
|
9954
9949
|
function isExpression(node) {
|
|
9955
9950
|
return isExpressionKind(skipPartiallyEmittedExpressions(node).kind);
|
|
9956
9951
|
}
|
|
@@ -9963,8 +9958,8 @@ function isExpressionKind(kind) {
|
|
|
9963
9958
|
case 227 /* SpreadElement */:
|
|
9964
9959
|
case 231 /* AsExpression */:
|
|
9965
9960
|
case 229 /* OmittedExpression */:
|
|
9966
|
-
case
|
|
9967
|
-
case
|
|
9961
|
+
case 357 /* CommaListExpression */:
|
|
9962
|
+
case 356 /* PartiallyEmittedExpression */:
|
|
9968
9963
|
case 235 /* SatisfiesExpression */:
|
|
9969
9964
|
return true;
|
|
9970
9965
|
default:
|
|
@@ -10103,7 +10098,7 @@ function isDeclarationStatementKind(kind) {
|
|
|
10103
10098
|
return kind === 259 /* FunctionDeclaration */ || kind === 279 /* MissingDeclaration */ || kind === 260 /* ClassDeclaration */ || kind === 261 /* InterfaceDeclaration */ || kind === 262 /* TypeAliasDeclaration */ || kind === 263 /* EnumDeclaration */ || kind === 264 /* ModuleDeclaration */ || kind === 269 /* ImportDeclaration */ || kind === 268 /* ImportEqualsDeclaration */ || kind === 275 /* ExportDeclaration */ || kind === 274 /* ExportAssignment */ || kind === 267 /* NamespaceExportDeclaration */;
|
|
10104
10099
|
}
|
|
10105
10100
|
function isStatementKindButNotDeclarationKind(kind) {
|
|
10106
|
-
return kind === 249 /* BreakStatement */ || kind === 248 /* ContinueStatement */ || kind === 256 /* DebuggerStatement */ || kind === 243 /* DoStatement */ || kind === 241 /* ExpressionStatement */ || kind === 239 /* EmptyStatement */ || kind === 246 /* ForInStatement */ || kind === 247 /* ForOfStatement */ || kind === 245 /* ForStatement */ || kind === 242 /* IfStatement */ || kind === 253 /* LabeledStatement */ || kind === 250 /* ReturnStatement */ || kind === 252 /* SwitchStatement */ || kind === 254 /* ThrowStatement */ || kind === 255 /* TryStatement */ || kind === 240 /* VariableStatement */ || kind === 244 /* WhileStatement */ || kind === 251 /* WithStatement */ || kind ===
|
|
10101
|
+
return kind === 249 /* BreakStatement */ || kind === 248 /* ContinueStatement */ || kind === 256 /* DebuggerStatement */ || kind === 243 /* DoStatement */ || kind === 241 /* ExpressionStatement */ || kind === 239 /* EmptyStatement */ || kind === 246 /* ForInStatement */ || kind === 247 /* ForOfStatement */ || kind === 245 /* ForStatement */ || kind === 242 /* IfStatement */ || kind === 253 /* LabeledStatement */ || kind === 250 /* ReturnStatement */ || kind === 252 /* SwitchStatement */ || kind === 254 /* ThrowStatement */ || kind === 255 /* TryStatement */ || kind === 240 /* VariableStatement */ || kind === 244 /* WhileStatement */ || kind === 251 /* WithStatement */ || kind === 355 /* NotEmittedStatement */ || kind === 359 /* EndOfDeclarationMarker */ || kind === 358 /* MergeDeclarationMarker */;
|
|
10107
10102
|
}
|
|
10108
10103
|
function isDeclaration(node) {
|
|
10109
10104
|
if (node.kind === 165 /* TypeParameter */) {
|
|
@@ -10160,7 +10155,7 @@ function isCaseOrDefaultClause(node) {
|
|
|
10160
10155
|
return kind === 292 /* CaseClause */ || kind === 293 /* DefaultClause */;
|
|
10161
10156
|
}
|
|
10162
10157
|
function isJSDocNode(node) {
|
|
10163
|
-
return node.kind >= 312 /* FirstJSDocNode */ && node.kind <=
|
|
10158
|
+
return node.kind >= 312 /* FirstJSDocNode */ && node.kind <= 353 /* LastJSDocNode */;
|
|
10164
10159
|
}
|
|
10165
10160
|
function hasJSDocNodes(node) {
|
|
10166
10161
|
if (!canHaveJSDoc(node))
|
|
@@ -10295,7 +10290,7 @@ function getTokenPosOfNode(node, sourceFile, includeJsDoc) {
|
|
|
10295
10290
|
if (includeJsDoc && hasJSDocNodes(node)) {
|
|
10296
10291
|
return getTokenPosOfNode(node.jsDoc[0], sourceFile);
|
|
10297
10292
|
}
|
|
10298
|
-
if (node.kind ===
|
|
10293
|
+
if (node.kind === 354 /* SyntaxList */ && node._children.length > 0) {
|
|
10299
10294
|
return getTokenPosOfNode(node._children[0], sourceFile, includeJsDoc);
|
|
10300
10295
|
}
|
|
10301
10296
|
return skipTrivia(
|
|
@@ -11030,7 +11025,7 @@ function filterOwnedJSDocTags(hostNode, jsDoc) {
|
|
|
11030
11025
|
return ownsJSDocTag(hostNode, jsDoc) ? [jsDoc] : void 0;
|
|
11031
11026
|
}
|
|
11032
11027
|
function ownsJSDocTag(hostNode, tag) {
|
|
11033
|
-
return !isJSDocTypeTag(tag) || !tag.parent || !isJSDoc(tag.parent) || !isParenthesizedExpression(tag.parent.parent) || tag.parent.parent === hostNode;
|
|
11028
|
+
return !(isJSDocTypeTag(tag) || isJSDocSatisfiesTag(tag)) || !tag.parent || !isJSDoc(tag.parent) || !isParenthesizedExpression(tag.parent.parent) || tag.parent.parent === hostNode;
|
|
11034
11029
|
}
|
|
11035
11030
|
function getNextJSDocCommentLocation(node) {
|
|
11036
11031
|
const parent = node.parent;
|
|
@@ -11285,7 +11280,7 @@ function getOperator(expression) {
|
|
|
11285
11280
|
}
|
|
11286
11281
|
function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {
|
|
11287
11282
|
switch (nodeKind) {
|
|
11288
|
-
case
|
|
11283
|
+
case 357 /* CommaListExpression */:
|
|
11289
11284
|
return 0 /* Comma */;
|
|
11290
11285
|
case 227 /* SpreadElement */:
|
|
11291
11286
|
return 1 /* Spread */;
|
|
@@ -11594,9 +11589,21 @@ function modifierToFlag(token) {
|
|
|
11594
11589
|
}
|
|
11595
11590
|
return 0 /* None */;
|
|
11596
11591
|
}
|
|
11592
|
+
function isBinaryLogicalOperator(token) {
|
|
11593
|
+
return token === 56 /* BarBarToken */ || token === 55 /* AmpersandAmpersandToken */;
|
|
11594
|
+
}
|
|
11597
11595
|
function isLogicalOrCoalescingAssignmentOperator(token) {
|
|
11598
11596
|
return token === 75 /* BarBarEqualsToken */ || token === 76 /* AmpersandAmpersandEqualsToken */ || token === 77 /* QuestionQuestionEqualsToken */;
|
|
11599
11597
|
}
|
|
11598
|
+
function isLogicalOrCoalescingAssignmentExpression(expr) {
|
|
11599
|
+
return isBinaryExpression(expr) && isLogicalOrCoalescingAssignmentOperator(expr.operatorToken.kind);
|
|
11600
|
+
}
|
|
11601
|
+
function isLogicalOrCoalescingBinaryOperator(token) {
|
|
11602
|
+
return isBinaryLogicalOperator(token) || token === 60 /* QuestionQuestionToken */;
|
|
11603
|
+
}
|
|
11604
|
+
function isLogicalOrCoalescingBinaryExpression(expr) {
|
|
11605
|
+
return isBinaryExpression(expr) && isLogicalOrCoalescingBinaryOperator(expr.operatorToken.kind);
|
|
11606
|
+
}
|
|
11600
11607
|
function isAssignmentOperator(token) {
|
|
11601
11608
|
return token >= 63 /* FirstAssignment */ && token <= 78 /* LastAssignment */;
|
|
11602
11609
|
}
|
|
@@ -11672,7 +11679,7 @@ function getLastChild(node) {
|
|
|
11672
11679
|
return lastChild;
|
|
11673
11680
|
}
|
|
11674
11681
|
function isTypeNodeKind(kind) {
|
|
11675
|
-
return kind >= 179 /* FirstTypeNode */ && kind <= 202 /* LastTypeNode */ || kind === 131 /* AnyKeyword */ || kind === 157 /* UnknownKeyword */ || kind === 148 /* NumberKeyword */ || kind === 160 /* BigIntKeyword */ || kind === 149 /* ObjectKeyword */ || kind === 134 /* BooleanKeyword */ || kind === 152 /* StringKeyword */ || kind === 153 /* SymbolKeyword */ || kind === 114 /* VoidKeyword */ || kind === 155 /* UndefinedKeyword */ || kind === 144 /* NeverKeyword */ || kind ===
|
|
11682
|
+
return kind >= 179 /* FirstTypeNode */ && kind <= 202 /* LastTypeNode */ || kind === 131 /* AnyKeyword */ || kind === 157 /* UnknownKeyword */ || kind === 148 /* NumberKeyword */ || kind === 160 /* BigIntKeyword */ || kind === 149 /* ObjectKeyword */ || kind === 134 /* BooleanKeyword */ || kind === 152 /* StringKeyword */ || kind === 153 /* SymbolKeyword */ || kind === 114 /* VoidKeyword */ || kind === 155 /* UndefinedKeyword */ || kind === 144 /* NeverKeyword */ || kind === 230 /* ExpressionWithTypeArguments */ || kind === 315 /* JSDocAllType */ || kind === 316 /* JSDocUnknownType */ || kind === 317 /* JSDocNullableType */ || kind === 318 /* JSDocNonNullableType */ || kind === 319 /* JSDocOptionalType */ || kind === 320 /* JSDocFunctionType */ || kind === 321 /* JSDocVariadicType */;
|
|
11676
11683
|
}
|
|
11677
11684
|
function isAccessExpression(node) {
|
|
11678
11685
|
return node.kind === 208 /* PropertyAccessExpression */ || node.kind === 209 /* ElementAccessExpression */;
|
|
@@ -11706,7 +11713,7 @@ function getLeftmostExpression(node, stopAtCallExpressions) {
|
|
|
11706
11713
|
case 209 /* ElementAccessExpression */:
|
|
11707
11714
|
case 208 /* PropertyAccessExpression */:
|
|
11708
11715
|
case 232 /* NonNullExpression */:
|
|
11709
|
-
case
|
|
11716
|
+
case 356 /* PartiallyEmittedExpression */:
|
|
11710
11717
|
case 235 /* SatisfiesExpression */:
|
|
11711
11718
|
node = node.expression;
|
|
11712
11719
|
continue;
|
|
@@ -13365,6 +13372,12 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
13365
13372
|
get updateJSDocThrowsTag() {
|
|
13366
13373
|
return getJSDocTypeLikeTagUpdateFunction(352 /* JSDocThrowsTag */);
|
|
13367
13374
|
},
|
|
13375
|
+
get createJSDocSatisfiesTag() {
|
|
13376
|
+
return getJSDocTypeLikeTagCreateFunction(353 /* JSDocSatisfiesTag */);
|
|
13377
|
+
},
|
|
13378
|
+
get updateJSDocSatisfiesTag() {
|
|
13379
|
+
return getJSDocTypeLikeTagUpdateFunction(353 /* JSDocSatisfiesTag */);
|
|
13380
|
+
},
|
|
13368
13381
|
createJSDocEnumTag,
|
|
13369
13382
|
updateJSDocEnumTag,
|
|
13370
13383
|
createJSDocUnknownTag,
|
|
@@ -16524,18 +16537,18 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16524
16537
|
return node;
|
|
16525
16538
|
}
|
|
16526
16539
|
function createSyntaxList(children) {
|
|
16527
|
-
const node = createBaseNode(
|
|
16540
|
+
const node = createBaseNode(354 /* SyntaxList */);
|
|
16528
16541
|
node._children = children;
|
|
16529
16542
|
return node;
|
|
16530
16543
|
}
|
|
16531
16544
|
function createNotEmittedStatement(original) {
|
|
16532
|
-
const node = createBaseNode(
|
|
16545
|
+
const node = createBaseNode(355 /* NotEmittedStatement */);
|
|
16533
16546
|
node.original = original;
|
|
16534
16547
|
setTextRange(node, original);
|
|
16535
16548
|
return node;
|
|
16536
16549
|
}
|
|
16537
16550
|
function createPartiallyEmittedExpression(expression, original) {
|
|
16538
|
-
const node = createBaseNode(
|
|
16551
|
+
const node = createBaseNode(356 /* PartiallyEmittedExpression */);
|
|
16539
16552
|
node.expression = expression;
|
|
16540
16553
|
node.original = original;
|
|
16541
16554
|
node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */;
|
|
@@ -16557,7 +16570,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16557
16570
|
return node;
|
|
16558
16571
|
}
|
|
16559
16572
|
function createCommaListExpression(elements) {
|
|
16560
|
-
const node = createBaseNode(
|
|
16573
|
+
const node = createBaseNode(357 /* CommaListExpression */);
|
|
16561
16574
|
node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements));
|
|
16562
16575
|
node.transformFlags |= propagateChildrenFlags(node.elements);
|
|
16563
16576
|
return node;
|
|
@@ -16566,19 +16579,19 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16566
16579
|
return node.elements !== elements ? update(createCommaListExpression(elements), node) : node;
|
|
16567
16580
|
}
|
|
16568
16581
|
function createEndOfDeclarationMarker(original) {
|
|
16569
|
-
const node = createBaseNode(
|
|
16582
|
+
const node = createBaseNode(359 /* EndOfDeclarationMarker */);
|
|
16570
16583
|
node.emitNode = {};
|
|
16571
16584
|
node.original = original;
|
|
16572
16585
|
return node;
|
|
16573
16586
|
}
|
|
16574
16587
|
function createMergeDeclarationMarker(original) {
|
|
16575
|
-
const node = createBaseNode(
|
|
16588
|
+
const node = createBaseNode(358 /* MergeDeclarationMarker */);
|
|
16576
16589
|
node.emitNode = {};
|
|
16577
16590
|
node.original = original;
|
|
16578
16591
|
return node;
|
|
16579
16592
|
}
|
|
16580
16593
|
function createSyntheticReferenceExpression(expression, thisArg) {
|
|
16581
|
-
const node = createBaseNode(
|
|
16594
|
+
const node = createBaseNode(360 /* SyntheticReferenceExpression */);
|
|
16582
16595
|
node.expression = expression;
|
|
16583
16596
|
node.thisArg = thisArg;
|
|
16584
16597
|
node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg);
|
|
@@ -16818,7 +16831,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16818
16831
|
return updateSatisfiesExpression(outerExpression, expression, outerExpression.type);
|
|
16819
16832
|
case 232 /* NonNullExpression */:
|
|
16820
16833
|
return updateNonNullExpression(outerExpression, expression);
|
|
16821
|
-
case
|
|
16834
|
+
case 356 /* PartiallyEmittedExpression */:
|
|
16822
16835
|
return updatePartiallyEmittedExpression(outerExpression, expression);
|
|
16823
16836
|
}
|
|
16824
16837
|
}
|
|
@@ -17354,7 +17367,7 @@ function getTransformFlagsSubtreeExclusions(kind) {
|
|
|
17354
17367
|
case 213 /* TypeAssertionExpression */:
|
|
17355
17368
|
case 235 /* SatisfiesExpression */:
|
|
17356
17369
|
case 231 /* AsExpression */:
|
|
17357
|
-
case
|
|
17370
|
+
case 356 /* PartiallyEmittedExpression */:
|
|
17358
17371
|
case 214 /* ParenthesizedExpression */:
|
|
17359
17372
|
case 106 /* SuperKeyword */:
|
|
17360
17373
|
return -2147483648 /* OuterExpressionExcludes */;
|
|
@@ -17779,7 +17792,7 @@ function isMetaProperty(node) {
|
|
|
17779
17792
|
return node.kind === 233 /* MetaProperty */;
|
|
17780
17793
|
}
|
|
17781
17794
|
function isCommaListExpression(node) {
|
|
17782
|
-
return node.kind ===
|
|
17795
|
+
return node.kind === 357 /* CommaListExpression */;
|
|
17783
17796
|
}
|
|
17784
17797
|
function isTemplateSpan(node) {
|
|
17785
17798
|
return node.kind === 236 /* TemplateSpan */;
|
|
@@ -17860,7 +17873,7 @@ function isExportSpecifier(node) {
|
|
|
17860
17873
|
return node.kind === 278 /* ExportSpecifier */;
|
|
17861
17874
|
}
|
|
17862
17875
|
function isNotEmittedStatement(node) {
|
|
17863
|
-
return node.kind ===
|
|
17876
|
+
return node.kind === 355 /* NotEmittedStatement */;
|
|
17864
17877
|
}
|
|
17865
17878
|
function isExternalModuleReference(node) {
|
|
17866
17879
|
return node.kind === 280 /* ExternalModuleReference */;
|
|
@@ -17946,6 +17959,9 @@ function isJSDocTypeTag(node) {
|
|
|
17946
17959
|
function isJSDocTemplateTag(node) {
|
|
17947
17960
|
return node.kind === 348 /* JSDocTemplateTag */;
|
|
17948
17961
|
}
|
|
17962
|
+
function isJSDocSatisfiesTag(node) {
|
|
17963
|
+
return node.kind === 353 /* JSDocSatisfiesTag */;
|
|
17964
|
+
}
|
|
17949
17965
|
|
|
17950
17966
|
// src/compiler/factory/utilities.ts
|
|
17951
17967
|
function isLocalName(node) {
|
|
@@ -17967,7 +17983,7 @@ function findUseStrictPrologue(statements) {
|
|
|
17967
17983
|
return void 0;
|
|
17968
17984
|
}
|
|
17969
17985
|
function isCommaSequence(node) {
|
|
17970
|
-
return node.kind === 223 /* BinaryExpression */ && node.operatorToken.kind === 27 /* CommaToken */ || node.kind ===
|
|
17986
|
+
return node.kind === 223 /* BinaryExpression */ && node.operatorToken.kind === 27 /* CommaToken */ || node.kind === 357 /* CommaListExpression */;
|
|
17971
17987
|
}
|
|
17972
17988
|
function isJSDocTypeAssertion(node) {
|
|
17973
17989
|
return isParenthesizedExpression(node) && isInJSFile(node) && !!getJSDocTypeTag(node);
|
|
@@ -17985,7 +18001,7 @@ function isOuterExpression(node, kinds = 15 /* All */) {
|
|
|
17985
18001
|
return (kinds & 2 /* TypeAssertions */) !== 0;
|
|
17986
18002
|
case 232 /* NonNullExpression */:
|
|
17987
18003
|
return (kinds & 4 /* NonNullAssertions */) !== 0;
|
|
17988
|
-
case
|
|
18004
|
+
case 356 /* PartiallyEmittedExpression */:
|
|
17989
18005
|
return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0;
|
|
17990
18006
|
}
|
|
17991
18007
|
return false;
|
|
@@ -18648,7 +18664,7 @@ var forEachChildTable = {
|
|
|
18648
18664
|
[279 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) {
|
|
18649
18665
|
return visitNodes(cbNode, cbNodes, node.illegalDecorators) || visitNodes(cbNode, cbNodes, node.modifiers);
|
|
18650
18666
|
},
|
|
18651
|
-
[
|
|
18667
|
+
[357 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
|
|
18652
18668
|
return visitNodes(cbNode, cbNodes, node.elements);
|
|
18653
18669
|
},
|
|
18654
18670
|
[281 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) {
|
|
@@ -18720,6 +18736,7 @@ var forEachChildTable = {
|
|
|
18720
18736
|
[347 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag,
|
|
18721
18737
|
[346 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag,
|
|
18722
18738
|
[343 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag,
|
|
18739
|
+
[353 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag,
|
|
18723
18740
|
[352 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag,
|
|
18724
18741
|
[342 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag,
|
|
18725
18742
|
[326 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) {
|
|
@@ -18739,7 +18756,7 @@ var forEachChildTable = {
|
|
|
18739
18756
|
[339 /* JSDocReadonlyTag */]: forEachChildInJSDocTag,
|
|
18740
18757
|
[334 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag,
|
|
18741
18758
|
[340 /* JSDocOverrideTag */]: forEachChildInJSDocTag,
|
|
18742
|
-
[
|
|
18759
|
+
[356 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
|
|
18743
18760
|
};
|
|
18744
18761
|
function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
|
|
18745
18762
|
return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);
|
|
@@ -24747,6 +24764,9 @@ var Parser;
|
|
|
24747
24764
|
case "overload":
|
|
24748
24765
|
tag = parseOverloadTag(start2, tagName, margin, indentText);
|
|
24749
24766
|
break;
|
|
24767
|
+
case "satisfies":
|
|
24768
|
+
tag = parseSatisfiesTag(start2, tagName, margin, indentText);
|
|
24769
|
+
break;
|
|
24750
24770
|
case "see":
|
|
24751
24771
|
tag = parseSeeTag(start2, tagName, margin, indentText);
|
|
24752
24772
|
break;
|
|
@@ -25055,6 +25075,14 @@ var Parser;
|
|
|
25055
25075
|
const className = parseExpressionWithTypeArgumentsForAugments();
|
|
25056
25076
|
return finishNode(factory2.createJSDocAugmentsTag(tagName, className, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2);
|
|
25057
25077
|
}
|
|
25078
|
+
function parseSatisfiesTag(start2, tagName, margin, indentText) {
|
|
25079
|
+
const typeExpression = parseJSDocTypeExpression(
|
|
25080
|
+
/*mayOmitBraces*/
|
|
25081
|
+
false
|
|
25082
|
+
);
|
|
25083
|
+
const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0;
|
|
25084
|
+
return finishNode(factory2.createJSDocSatisfiesTag(tagName, typeExpression, comments2), start2);
|
|
25085
|
+
}
|
|
25058
25086
|
function parseExpressionWithTypeArgumentsForAugments() {
|
|
25059
25087
|
const usedBrace = parseOptional(18 /* OpenBraceToken */);
|
|
25060
25088
|
const pos = getNodePos();
|
|
@@ -27881,7 +27909,6 @@ function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNam
|
|
|
27881
27909
|
return !hasExtension(pathToCheck) && excludeRegex.test(ensureTrailingDirectorySeparator(pathToCheck));
|
|
27882
27910
|
}
|
|
27883
27911
|
function specToDiagnostic(spec, disallowTrailingRecursion) {
|
|
27884
|
-
Debug.assert(typeof spec === "string");
|
|
27885
27912
|
if (disallowTrailingRecursion && invalidTrailingRecursionPattern.test(spec)) {
|
|
27886
27913
|
return [Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec];
|
|
27887
27914
|
} else if (invalidDotDotAfterRecursiveWildcard(spec)) {
|
|
@@ -30392,13 +30419,12 @@ function createBinder() {
|
|
|
30392
30419
|
} else if (node.kind === 221 /* PrefixUnaryExpression */ && node.operator === 53 /* ExclamationToken */) {
|
|
30393
30420
|
node = node.operand;
|
|
30394
30421
|
} else {
|
|
30395
|
-
return
|
|
30422
|
+
return isLogicalOrCoalescingBinaryExpression(node);
|
|
30396
30423
|
}
|
|
30397
30424
|
}
|
|
30398
30425
|
}
|
|
30399
30426
|
function isLogicalAssignmentExpression(node) {
|
|
30400
|
-
|
|
30401
|
-
return isBinaryExpression(node) && isLogicalOrCoalescingAssignmentOperator(node.operatorToken.kind);
|
|
30427
|
+
return isLogicalOrCoalescingAssignmentExpression(skipParentheses(node));
|
|
30402
30428
|
}
|
|
30403
30429
|
function isTopLevelLogicalExpression(node) {
|
|
30404
30430
|
while (isParenthesizedExpression(node.parent) || isPrefixUnaryExpression(node.parent) && node.parent.operator === 53 /* ExclamationToken */) {
|
|
@@ -30781,7 +30807,7 @@ function createBinder() {
|
|
|
30781
30807
|
};
|
|
30782
30808
|
}
|
|
30783
30809
|
const operator = node.operatorToken.kind;
|
|
30784
|
-
if (operator
|
|
30810
|
+
if (isLogicalOrCoalescingBinaryOperator(operator) || isLogicalOrCoalescingAssignmentOperator(operator)) {
|
|
30785
30811
|
if (isTopLevelLogicalExpression(node)) {
|
|
30786
30812
|
const postExpressionLabel = createBranchLabel();
|
|
30787
30813
|
bindLogicalLikeExpression(node, postExpressionLabel, postExpressionLabel);
|
|
@@ -32600,10 +32626,13 @@ var JsxNames;
|
|
|
32600
32626
|
|
|
32601
32627
|
// src/compiler/visitorPublic.ts
|
|
32602
32628
|
function visitNode(node, visitor, test, lift) {
|
|
32603
|
-
if (node === void 0) {
|
|
32629
|
+
if (node === void 0 || visitor === void 0) {
|
|
32604
32630
|
return node;
|
|
32605
32631
|
}
|
|
32606
32632
|
const visited = visitor(node);
|
|
32633
|
+
if (visited === node) {
|
|
32634
|
+
return node;
|
|
32635
|
+
}
|
|
32607
32636
|
let visitedNode;
|
|
32608
32637
|
if (visited === void 0) {
|
|
32609
32638
|
return void 0;
|
|
@@ -32616,7 +32645,7 @@ function visitNode(node, visitor, test, lift) {
|
|
|
32616
32645
|
return visitedNode;
|
|
32617
32646
|
}
|
|
32618
32647
|
function visitNodes2(nodes, visitor, test, start, count) {
|
|
32619
|
-
if (nodes === void 0) {
|
|
32648
|
+
if (nodes === void 0 || visitor === void 0) {
|
|
32620
32649
|
return nodes;
|
|
32621
32650
|
}
|
|
32622
32651
|
const length2 = nodes.length;
|
|
@@ -32652,30 +32681,25 @@ function visitArrayWorker(nodes, visitor, test, start, count) {
|
|
|
32652
32681
|
}
|
|
32653
32682
|
for (let i = 0; i < count; i++) {
|
|
32654
32683
|
const node = nodes[i + start];
|
|
32655
|
-
const visited = node !== void 0 ? visitor
|
|
32684
|
+
const visited = node !== void 0 ? visitor(node) : void 0;
|
|
32656
32685
|
if (updated !== void 0 || visited === void 0 || visited !== node) {
|
|
32657
32686
|
if (updated === void 0) {
|
|
32658
32687
|
updated = nodes.slice(0, i);
|
|
32659
|
-
Debug.assertEachNode(updated, test);
|
|
32660
32688
|
}
|
|
32661
32689
|
if (visited) {
|
|
32662
32690
|
if (isArray(visited)) {
|
|
32663
32691
|
for (const visitedNode of visited) {
|
|
32664
|
-
Debug.assertNode(visitedNode, test);
|
|
32692
|
+
void Debug.assertNode(visitedNode, test);
|
|
32665
32693
|
updated.push(visitedNode);
|
|
32666
32694
|
}
|
|
32667
32695
|
} else {
|
|
32668
|
-
Debug.assertNode(visited, test);
|
|
32696
|
+
void Debug.assertNode(visited, test);
|
|
32669
32697
|
updated.push(visited);
|
|
32670
32698
|
}
|
|
32671
32699
|
}
|
|
32672
32700
|
}
|
|
32673
32701
|
}
|
|
32674
|
-
|
|
32675
|
-
return updated;
|
|
32676
|
-
}
|
|
32677
|
-
Debug.assertEachNode(nodes, test);
|
|
32678
|
-
return nodes;
|
|
32702
|
+
return updated != null ? updated : nodes;
|
|
32679
32703
|
}
|
|
32680
32704
|
function visitLexicalEnvironment(statements, visitor, context, start, ensureUseStrict, nodesVisitor = visitNodes2) {
|
|
32681
32705
|
context.startLexicalEnvironment();
|
|
@@ -32689,7 +32713,7 @@ function visitParameterList(nodes, visitor, context, nodesVisitor = visitNodes2)
|
|
|
32689
32713
|
context.startLexicalEnvironment();
|
|
32690
32714
|
if (nodes) {
|
|
32691
32715
|
context.setLexicalEnvironmentFlags(1 /* InParameters */, true);
|
|
32692
|
-
updated = nodesVisitor(nodes, visitor,
|
|
32716
|
+
updated = nodesVisitor(nodes, visitor, isParameterDeclaration);
|
|
32693
32717
|
if (context.getLexicalEnvironmentFlags() & 2 /* VariablesHoistedInParameters */ && getEmitScriptTarget(context.getCompilerOptions()) >= 2 /* ES2015 */) {
|
|
32694
32718
|
updated = addDefaultValueAssignmentsIfNeeded(updated, context);
|
|
32695
32719
|
}
|
|
@@ -32811,7 +32835,6 @@ function visitFunctionBody(node, visitor, context, nodeVisitor = visitNode) {
|
|
|
32811
32835
|
function visitIterationBody(body, visitor, context, nodeVisitor = visitNode) {
|
|
32812
32836
|
context.startBlockScope();
|
|
32813
32837
|
const updated = nodeVisitor(body, visitor, isStatement, context.factory.liftToBlock);
|
|
32814
|
-
Debug.assert(updated);
|
|
32815
32838
|
const declarations = context.endBlockScope();
|
|
32816
32839
|
if (some(declarations)) {
|
|
32817
32840
|
if (isBlock(updated)) {
|
|
@@ -32827,14 +32850,14 @@ var visitEachChildTable = {
|
|
|
32827
32850
|
[163 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
32828
32851
|
return context.factory.updateQualifiedName(
|
|
32829
32852
|
node,
|
|
32830
|
-
|
|
32831
|
-
|
|
32853
|
+
nodeVisitor(node.left, visitor, isEntityName),
|
|
32854
|
+
nodeVisitor(node.right, visitor, isIdentifier)
|
|
32832
32855
|
);
|
|
32833
32856
|
},
|
|
32834
32857
|
[164 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
32835
32858
|
return context.factory.updateComputedPropertyName(
|
|
32836
32859
|
node,
|
|
32837
|
-
|
|
32860
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
32838
32861
|
);
|
|
32839
32862
|
},
|
|
32840
32863
|
// Signature elements
|
|
@@ -32842,7 +32865,7 @@ var visitEachChildTable = {
|
|
|
32842
32865
|
return context.factory.updateTypeParameterDeclaration(
|
|
32843
32866
|
node,
|
|
32844
32867
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
32845
|
-
|
|
32868
|
+
nodeVisitor(node.name, visitor, isIdentifier),
|
|
32846
32869
|
nodeVisitor(node.constraint, visitor, isTypeNode),
|
|
32847
32870
|
nodeVisitor(node.default, visitor, isTypeNode)
|
|
32848
32871
|
);
|
|
@@ -32851,9 +32874,9 @@ var visitEachChildTable = {
|
|
|
32851
32874
|
return context.factory.updateParameterDeclaration(
|
|
32852
32875
|
node,
|
|
32853
32876
|
nodesVisitor(node.modifiers, visitor, isModifierLike),
|
|
32854
|
-
|
|
32855
|
-
|
|
32856
|
-
|
|
32877
|
+
nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken),
|
|
32878
|
+
nodeVisitor(node.name, visitor, isBindingName),
|
|
32879
|
+
nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken),
|
|
32857
32880
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
32858
32881
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
32859
32882
|
);
|
|
@@ -32861,7 +32884,7 @@ var visitEachChildTable = {
|
|
|
32861
32884
|
[167 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
32862
32885
|
return context.factory.updateDecorator(
|
|
32863
32886
|
node,
|
|
32864
|
-
|
|
32887
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
32865
32888
|
);
|
|
32866
32889
|
},
|
|
32867
32890
|
// Type elements
|
|
@@ -32869,19 +32892,19 @@ var visitEachChildTable = {
|
|
|
32869
32892
|
return context.factory.updatePropertySignature(
|
|
32870
32893
|
node,
|
|
32871
32894
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
32872
|
-
|
|
32873
|
-
|
|
32895
|
+
nodeVisitor(node.name, visitor, isPropertyName),
|
|
32896
|
+
nodeVisitor(node.questionToken, tokenVisitor, isToken),
|
|
32874
32897
|
nodeVisitor(node.type, visitor, isTypeNode)
|
|
32875
32898
|
);
|
|
32876
32899
|
},
|
|
32877
32900
|
[169 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
32878
|
-
var _a2
|
|
32901
|
+
var _a2;
|
|
32879
32902
|
return context.factory.updatePropertyDeclaration(
|
|
32880
32903
|
node,
|
|
32881
32904
|
nodesVisitor(node.modifiers, visitor, isModifierLike),
|
|
32882
|
-
|
|
32905
|
+
nodeVisitor(node.name, visitor, isPropertyName),
|
|
32883
32906
|
// QuestionToken and ExclamationToken are mutually exclusive in PropertyDeclaration
|
|
32884
|
-
|
|
32907
|
+
nodeVisitor((_a2 = node.questionToken) != null ? _a2 : node.exclamationToken, tokenVisitor, isQuestionOrExclamationToken),
|
|
32885
32908
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
32886
32909
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
32887
32910
|
);
|
|
@@ -32890,10 +32913,10 @@ var visitEachChildTable = {
|
|
|
32890
32913
|
return context.factory.updateMethodSignature(
|
|
32891
32914
|
node,
|
|
32892
32915
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
32893
|
-
|
|
32894
|
-
|
|
32916
|
+
nodeVisitor(node.name, visitor, isPropertyName),
|
|
32917
|
+
nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken),
|
|
32895
32918
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
32896
|
-
nodesVisitor(node.parameters, visitor,
|
|
32919
|
+
nodesVisitor(node.parameters, visitor, isParameterDeclaration),
|
|
32897
32920
|
nodeVisitor(node.type, visitor, isTypeNode)
|
|
32898
32921
|
);
|
|
32899
32922
|
},
|
|
@@ -32901,9 +32924,9 @@ var visitEachChildTable = {
|
|
|
32901
32924
|
return context.factory.updateMethodDeclaration(
|
|
32902
32925
|
node,
|
|
32903
32926
|
nodesVisitor(node.modifiers, visitor, isModifierLike),
|
|
32904
|
-
|
|
32905
|
-
|
|
32906
|
-
|
|
32927
|
+
nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken),
|
|
32928
|
+
nodeVisitor(node.name, visitor, isPropertyName),
|
|
32929
|
+
nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken),
|
|
32907
32930
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
32908
32931
|
visitParameterList(node.parameters, visitor, context, nodesVisitor),
|
|
32909
32932
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
@@ -32922,7 +32945,7 @@ var visitEachChildTable = {
|
|
|
32922
32945
|
return context.factory.updateGetAccessorDeclaration(
|
|
32923
32946
|
node,
|
|
32924
32947
|
nodesVisitor(node.modifiers, visitor, isModifierLike),
|
|
32925
|
-
|
|
32948
|
+
nodeVisitor(node.name, visitor, isPropertyName),
|
|
32926
32949
|
visitParameterList(node.parameters, visitor, context, nodesVisitor),
|
|
32927
32950
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
32928
32951
|
visitFunctionBody(node.body, visitor, context, nodeVisitor)
|
|
@@ -32932,7 +32955,7 @@ var visitEachChildTable = {
|
|
|
32932
32955
|
return context.factory.updateSetAccessorDeclaration(
|
|
32933
32956
|
node,
|
|
32934
32957
|
nodesVisitor(node.modifiers, visitor, isModifierLike),
|
|
32935
|
-
|
|
32958
|
+
nodeVisitor(node.name, visitor, isPropertyName),
|
|
32936
32959
|
visitParameterList(node.parameters, visitor, context, nodesVisitor),
|
|
32937
32960
|
visitFunctionBody(node.body, visitor, context, nodeVisitor)
|
|
32938
32961
|
);
|
|
@@ -32949,7 +32972,7 @@ var visitEachChildTable = {
|
|
|
32949
32972
|
return context.factory.updateCallSignature(
|
|
32950
32973
|
node,
|
|
32951
32974
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
32952
|
-
nodesVisitor(node.parameters, visitor,
|
|
32975
|
+
nodesVisitor(node.parameters, visitor, isParameterDeclaration),
|
|
32953
32976
|
nodeVisitor(node.type, visitor, isTypeNode)
|
|
32954
32977
|
);
|
|
32955
32978
|
},
|
|
@@ -32957,7 +32980,7 @@ var visitEachChildTable = {
|
|
|
32957
32980
|
return context.factory.updateConstructSignature(
|
|
32958
32981
|
node,
|
|
32959
32982
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
32960
|
-
nodesVisitor(node.parameters, visitor,
|
|
32983
|
+
nodesVisitor(node.parameters, visitor, isParameterDeclaration),
|
|
32961
32984
|
nodeVisitor(node.type, visitor, isTypeNode)
|
|
32962
32985
|
);
|
|
32963
32986
|
},
|
|
@@ -32965,8 +32988,8 @@ var visitEachChildTable = {
|
|
|
32965
32988
|
return context.factory.updateIndexSignature(
|
|
32966
32989
|
node,
|
|
32967
32990
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
32968
|
-
nodesVisitor(node.parameters, visitor,
|
|
32969
|
-
|
|
32991
|
+
nodesVisitor(node.parameters, visitor, isParameterDeclaration),
|
|
32992
|
+
nodeVisitor(node.type, visitor, isTypeNode)
|
|
32970
32993
|
);
|
|
32971
32994
|
},
|
|
32972
32995
|
// Types
|
|
@@ -32974,14 +32997,14 @@ var visitEachChildTable = {
|
|
|
32974
32997
|
return context.factory.updateTypePredicateNode(
|
|
32975
32998
|
node,
|
|
32976
32999
|
nodeVisitor(node.assertsModifier, visitor, isAssertsKeyword),
|
|
32977
|
-
|
|
33000
|
+
nodeVisitor(node.parameterName, visitor, isIdentifierOrThisTypeNode),
|
|
32978
33001
|
nodeVisitor(node.type, visitor, isTypeNode)
|
|
32979
33002
|
);
|
|
32980
33003
|
},
|
|
32981
33004
|
[180 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
32982
33005
|
return context.factory.updateTypeReferenceNode(
|
|
32983
33006
|
node,
|
|
32984
|
-
|
|
33007
|
+
nodeVisitor(node.typeName, visitor, isEntityName),
|
|
32985
33008
|
nodesVisitor(node.typeArguments, visitor, isTypeNode)
|
|
32986
33009
|
);
|
|
32987
33010
|
},
|
|
@@ -32989,8 +33012,8 @@ var visitEachChildTable = {
|
|
|
32989
33012
|
return context.factory.updateFunctionTypeNode(
|
|
32990
33013
|
node,
|
|
32991
33014
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
32992
|
-
nodesVisitor(node.parameters, visitor,
|
|
32993
|
-
|
|
33015
|
+
nodesVisitor(node.parameters, visitor, isParameterDeclaration),
|
|
33016
|
+
nodeVisitor(node.type, visitor, isTypeNode)
|
|
32994
33017
|
);
|
|
32995
33018
|
},
|
|
32996
33019
|
[182 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -32998,14 +33021,14 @@ var visitEachChildTable = {
|
|
|
32998
33021
|
node,
|
|
32999
33022
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33000
33023
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
33001
|
-
nodesVisitor(node.parameters, visitor,
|
|
33002
|
-
|
|
33024
|
+
nodesVisitor(node.parameters, visitor, isParameterDeclaration),
|
|
33025
|
+
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33003
33026
|
);
|
|
33004
33027
|
},
|
|
33005
33028
|
[183 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33006
33029
|
return context.factory.updateTypeQueryNode(
|
|
33007
33030
|
node,
|
|
33008
|
-
|
|
33031
|
+
nodeVisitor(node.exprName, visitor, isEntityName),
|
|
33009
33032
|
nodesVisitor(node.typeArguments, visitor, isTypeNode)
|
|
33010
33033
|
);
|
|
33011
33034
|
},
|
|
@@ -33018,7 +33041,7 @@ var visitEachChildTable = {
|
|
|
33018
33041
|
[185 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33019
33042
|
return context.factory.updateArrayTypeNode(
|
|
33020
33043
|
node,
|
|
33021
|
-
|
|
33044
|
+
nodeVisitor(node.elementType, visitor, isTypeNode)
|
|
33022
33045
|
);
|
|
33023
33046
|
},
|
|
33024
33047
|
[186 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
@@ -33030,13 +33053,13 @@ var visitEachChildTable = {
|
|
|
33030
33053
|
[187 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33031
33054
|
return context.factory.updateOptionalTypeNode(
|
|
33032
33055
|
node,
|
|
33033
|
-
|
|
33056
|
+
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33034
33057
|
);
|
|
33035
33058
|
},
|
|
33036
33059
|
[188 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33037
33060
|
return context.factory.updateRestTypeNode(
|
|
33038
33061
|
node,
|
|
33039
|
-
|
|
33062
|
+
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33040
33063
|
);
|
|
33041
33064
|
},
|
|
33042
33065
|
[189 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
@@ -33054,22 +33077,22 @@ var visitEachChildTable = {
|
|
|
33054
33077
|
[191 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33055
33078
|
return context.factory.updateConditionalTypeNode(
|
|
33056
33079
|
node,
|
|
33057
|
-
|
|
33058
|
-
|
|
33059
|
-
|
|
33060
|
-
|
|
33080
|
+
nodeVisitor(node.checkType, visitor, isTypeNode),
|
|
33081
|
+
nodeVisitor(node.extendsType, visitor, isTypeNode),
|
|
33082
|
+
nodeVisitor(node.trueType, visitor, isTypeNode),
|
|
33083
|
+
nodeVisitor(node.falseType, visitor, isTypeNode)
|
|
33061
33084
|
);
|
|
33062
33085
|
},
|
|
33063
33086
|
[192 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33064
33087
|
return context.factory.updateInferTypeNode(
|
|
33065
33088
|
node,
|
|
33066
|
-
|
|
33089
|
+
nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)
|
|
33067
33090
|
);
|
|
33068
33091
|
},
|
|
33069
33092
|
[202 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33070
33093
|
return context.factory.updateImportTypeNode(
|
|
33071
33094
|
node,
|
|
33072
|
-
|
|
33095
|
+
nodeVisitor(node.argument, visitor, isTypeNode),
|
|
33073
33096
|
nodeVisitor(node.assertions, visitor, isImportTypeAssertionContainer),
|
|
33074
33097
|
nodeVisitor(node.qualifier, visitor, isEntityName),
|
|
33075
33098
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
@@ -33079,45 +33102,45 @@ var visitEachChildTable = {
|
|
|
33079
33102
|
[298 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33080
33103
|
return context.factory.updateImportTypeAssertionContainer(
|
|
33081
33104
|
node,
|
|
33082
|
-
|
|
33105
|
+
nodeVisitor(node.assertClause, visitor, isAssertClause),
|
|
33083
33106
|
node.multiLine
|
|
33084
33107
|
);
|
|
33085
33108
|
},
|
|
33086
33109
|
[199 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33087
33110
|
return context.factory.updateNamedTupleMember(
|
|
33088
33111
|
node,
|
|
33089
|
-
|
|
33090
|
-
|
|
33091
|
-
|
|
33092
|
-
|
|
33112
|
+
nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken),
|
|
33113
|
+
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33114
|
+
nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken),
|
|
33115
|
+
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33093
33116
|
);
|
|
33094
33117
|
},
|
|
33095
33118
|
[193 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33096
33119
|
return context.factory.updateParenthesizedType(
|
|
33097
33120
|
node,
|
|
33098
|
-
|
|
33121
|
+
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33099
33122
|
);
|
|
33100
33123
|
},
|
|
33101
33124
|
[195 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33102
33125
|
return context.factory.updateTypeOperatorNode(
|
|
33103
33126
|
node,
|
|
33104
|
-
|
|
33127
|
+
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33105
33128
|
);
|
|
33106
33129
|
},
|
|
33107
33130
|
[196 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33108
33131
|
return context.factory.updateIndexedAccessTypeNode(
|
|
33109
33132
|
node,
|
|
33110
|
-
|
|
33111
|
-
|
|
33133
|
+
nodeVisitor(node.objectType, visitor, isTypeNode),
|
|
33134
|
+
nodeVisitor(node.indexType, visitor, isTypeNode)
|
|
33112
33135
|
);
|
|
33113
33136
|
},
|
|
33114
33137
|
[197 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33115
33138
|
return context.factory.updateMappedTypeNode(
|
|
33116
33139
|
node,
|
|
33117
|
-
|
|
33118
|
-
|
|
33140
|
+
nodeVisitor(node.readonlyToken, tokenVisitor, isReadonlyKeywordOrPlusOrMinusToken),
|
|
33141
|
+
nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration),
|
|
33119
33142
|
nodeVisitor(node.nameType, visitor, isTypeNode),
|
|
33120
|
-
|
|
33143
|
+
nodeVisitor(node.questionToken, tokenVisitor, isQuestionOrPlusOrMinusToken),
|
|
33121
33144
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
33122
33145
|
nodesVisitor(node.members, visitor, isTypeElement)
|
|
33123
33146
|
);
|
|
@@ -33125,21 +33148,21 @@ var visitEachChildTable = {
|
|
|
33125
33148
|
[198 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33126
33149
|
return context.factory.updateLiteralTypeNode(
|
|
33127
33150
|
node,
|
|
33128
|
-
|
|
33151
|
+
nodeVisitor(node.literal, visitor, isExpression)
|
|
33129
33152
|
);
|
|
33130
33153
|
},
|
|
33131
33154
|
[200 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33132
33155
|
return context.factory.updateTemplateLiteralType(
|
|
33133
33156
|
node,
|
|
33134
|
-
|
|
33157
|
+
nodeVisitor(node.head, visitor, isTemplateHead),
|
|
33135
33158
|
nodesVisitor(node.templateSpans, visitor, isTemplateLiteralTypeSpan)
|
|
33136
33159
|
);
|
|
33137
33160
|
},
|
|
33138
33161
|
[201 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33139
33162
|
return context.factory.updateTemplateLiteralTypeSpan(
|
|
33140
33163
|
node,
|
|
33141
|
-
|
|
33142
|
-
|
|
33164
|
+
nodeVisitor(node.type, visitor, isTypeNode),
|
|
33165
|
+
nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)
|
|
33143
33166
|
);
|
|
33144
33167
|
},
|
|
33145
33168
|
// Binding patterns
|
|
@@ -33158,9 +33181,9 @@ var visitEachChildTable = {
|
|
|
33158
33181
|
[205 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33159
33182
|
return context.factory.updateBindingElement(
|
|
33160
33183
|
node,
|
|
33161
|
-
|
|
33184
|
+
nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken),
|
|
33162
33185
|
nodeVisitor(node.propertyName, visitor, isPropertyName),
|
|
33163
|
-
|
|
33186
|
+
nodeVisitor(node.name, visitor, isBindingName),
|
|
33164
33187
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
33165
33188
|
);
|
|
33166
33189
|
},
|
|
@@ -33180,37 +33203,37 @@ var visitEachChildTable = {
|
|
|
33180
33203
|
[208 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33181
33204
|
return isPropertyAccessChain(node) ? context.factory.updatePropertyAccessChain(
|
|
33182
33205
|
node,
|
|
33183
|
-
|
|
33184
|
-
|
|
33185
|
-
|
|
33206
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33207
|
+
nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken),
|
|
33208
|
+
nodeVisitor(node.name, visitor, isMemberName)
|
|
33186
33209
|
) : context.factory.updatePropertyAccessExpression(
|
|
33187
33210
|
node,
|
|
33188
|
-
|
|
33189
|
-
|
|
33211
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33212
|
+
nodeVisitor(node.name, visitor, isMemberName)
|
|
33190
33213
|
);
|
|
33191
33214
|
},
|
|
33192
33215
|
[209 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33193
33216
|
return isElementAccessChain(node) ? context.factory.updateElementAccessChain(
|
|
33194
33217
|
node,
|
|
33195
|
-
|
|
33196
|
-
|
|
33197
|
-
|
|
33218
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33219
|
+
nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken),
|
|
33220
|
+
nodeVisitor(node.argumentExpression, visitor, isExpression)
|
|
33198
33221
|
) : context.factory.updateElementAccessExpression(
|
|
33199
33222
|
node,
|
|
33200
|
-
|
|
33201
|
-
|
|
33223
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33224
|
+
nodeVisitor(node.argumentExpression, visitor, isExpression)
|
|
33202
33225
|
);
|
|
33203
33226
|
},
|
|
33204
33227
|
[210 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33205
33228
|
return isCallChain(node) ? context.factory.updateCallChain(
|
|
33206
33229
|
node,
|
|
33207
|
-
|
|
33208
|
-
|
|
33230
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33231
|
+
nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken),
|
|
33209
33232
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
33210
33233
|
nodesVisitor(node.arguments, visitor, isExpression)
|
|
33211
33234
|
) : context.factory.updateCallExpression(
|
|
33212
33235
|
node,
|
|
33213
|
-
|
|
33236
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33214
33237
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
33215
33238
|
nodesVisitor(node.arguments, visitor, isExpression)
|
|
33216
33239
|
);
|
|
@@ -33218,7 +33241,7 @@ var visitEachChildTable = {
|
|
|
33218
33241
|
[211 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33219
33242
|
return context.factory.updateNewExpression(
|
|
33220
33243
|
node,
|
|
33221
|
-
|
|
33244
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33222
33245
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
33223
33246
|
nodesVisitor(node.arguments, visitor, isExpression)
|
|
33224
33247
|
);
|
|
@@ -33226,29 +33249,29 @@ var visitEachChildTable = {
|
|
|
33226
33249
|
[212 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33227
33250
|
return context.factory.updateTaggedTemplateExpression(
|
|
33228
33251
|
node,
|
|
33229
|
-
|
|
33252
|
+
nodeVisitor(node.tag, visitor, isExpression),
|
|
33230
33253
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
33231
|
-
|
|
33254
|
+
nodeVisitor(node.template, visitor, isTemplateLiteral)
|
|
33232
33255
|
);
|
|
33233
33256
|
},
|
|
33234
33257
|
[213 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33235
33258
|
return context.factory.updateTypeAssertion(
|
|
33236
33259
|
node,
|
|
33237
|
-
|
|
33238
|
-
|
|
33260
|
+
nodeVisitor(node.type, visitor, isTypeNode),
|
|
33261
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33239
33262
|
);
|
|
33240
33263
|
},
|
|
33241
33264
|
[214 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33242
33265
|
return context.factory.updateParenthesizedExpression(
|
|
33243
33266
|
node,
|
|
33244
|
-
|
|
33267
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33245
33268
|
);
|
|
33246
33269
|
},
|
|
33247
33270
|
[215 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33248
33271
|
return context.factory.updateFunctionExpression(
|
|
33249
33272
|
node,
|
|
33250
33273
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33251
|
-
|
|
33274
|
+
nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken),
|
|
33252
33275
|
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33253
33276
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
33254
33277
|
visitParameterList(node.parameters, visitor, context, nodesVisitor),
|
|
@@ -33263,82 +33286,82 @@ var visitEachChildTable = {
|
|
|
33263
33286
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
33264
33287
|
visitParameterList(node.parameters, visitor, context, nodesVisitor),
|
|
33265
33288
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
33266
|
-
|
|
33289
|
+
nodeVisitor(node.equalsGreaterThanToken, tokenVisitor, isEqualsGreaterThanToken),
|
|
33267
33290
|
visitFunctionBody(node.body, visitor, context, nodeVisitor)
|
|
33268
33291
|
);
|
|
33269
33292
|
},
|
|
33270
33293
|
[217 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33271
33294
|
return context.factory.updateDeleteExpression(
|
|
33272
33295
|
node,
|
|
33273
|
-
|
|
33296
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33274
33297
|
);
|
|
33275
33298
|
},
|
|
33276
33299
|
[218 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33277
33300
|
return context.factory.updateTypeOfExpression(
|
|
33278
33301
|
node,
|
|
33279
|
-
|
|
33302
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33280
33303
|
);
|
|
33281
33304
|
},
|
|
33282
33305
|
[219 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33283
33306
|
return context.factory.updateVoidExpression(
|
|
33284
33307
|
node,
|
|
33285
|
-
|
|
33308
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33286
33309
|
);
|
|
33287
33310
|
},
|
|
33288
33311
|
[220 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33289
33312
|
return context.factory.updateAwaitExpression(
|
|
33290
33313
|
node,
|
|
33291
|
-
|
|
33314
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33292
33315
|
);
|
|
33293
33316
|
},
|
|
33294
33317
|
[221 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33295
33318
|
return context.factory.updatePrefixUnaryExpression(
|
|
33296
33319
|
node,
|
|
33297
|
-
|
|
33320
|
+
nodeVisitor(node.operand, visitor, isExpression)
|
|
33298
33321
|
);
|
|
33299
33322
|
},
|
|
33300
33323
|
[222 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33301
33324
|
return context.factory.updatePostfixUnaryExpression(
|
|
33302
33325
|
node,
|
|
33303
|
-
|
|
33326
|
+
nodeVisitor(node.operand, visitor, isExpression)
|
|
33304
33327
|
);
|
|
33305
33328
|
},
|
|
33306
33329
|
[223 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33307
33330
|
return context.factory.updateBinaryExpression(
|
|
33308
33331
|
node,
|
|
33309
|
-
|
|
33310
|
-
|
|
33311
|
-
|
|
33332
|
+
nodeVisitor(node.left, visitor, isExpression),
|
|
33333
|
+
nodeVisitor(node.operatorToken, tokenVisitor, isBinaryOperatorToken),
|
|
33334
|
+
nodeVisitor(node.right, visitor, isExpression)
|
|
33312
33335
|
);
|
|
33313
33336
|
},
|
|
33314
33337
|
[224 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33315
33338
|
return context.factory.updateConditionalExpression(
|
|
33316
33339
|
node,
|
|
33317
|
-
|
|
33318
|
-
|
|
33319
|
-
|
|
33320
|
-
|
|
33321
|
-
|
|
33340
|
+
nodeVisitor(node.condition, visitor, isExpression),
|
|
33341
|
+
nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken),
|
|
33342
|
+
nodeVisitor(node.whenTrue, visitor, isExpression),
|
|
33343
|
+
nodeVisitor(node.colonToken, tokenVisitor, isColonToken),
|
|
33344
|
+
nodeVisitor(node.whenFalse, visitor, isExpression)
|
|
33322
33345
|
);
|
|
33323
33346
|
},
|
|
33324
33347
|
[225 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33325
33348
|
return context.factory.updateTemplateExpression(
|
|
33326
33349
|
node,
|
|
33327
|
-
|
|
33350
|
+
nodeVisitor(node.head, visitor, isTemplateHead),
|
|
33328
33351
|
nodesVisitor(node.templateSpans, visitor, isTemplateSpan)
|
|
33329
33352
|
);
|
|
33330
33353
|
},
|
|
33331
33354
|
[226 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33332
33355
|
return context.factory.updateYieldExpression(
|
|
33333
33356
|
node,
|
|
33334
|
-
|
|
33357
|
+
nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken),
|
|
33335
33358
|
nodeVisitor(node.expression, visitor, isExpression)
|
|
33336
33359
|
);
|
|
33337
33360
|
},
|
|
33338
33361
|
[227 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33339
33362
|
return context.factory.updateSpreadElement(
|
|
33340
33363
|
node,
|
|
33341
|
-
|
|
33364
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33342
33365
|
);
|
|
33343
33366
|
},
|
|
33344
33367
|
[228 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -33354,45 +33377,45 @@ var visitEachChildTable = {
|
|
|
33354
33377
|
[230 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33355
33378
|
return context.factory.updateExpressionWithTypeArguments(
|
|
33356
33379
|
node,
|
|
33357
|
-
|
|
33380
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33358
33381
|
nodesVisitor(node.typeArguments, visitor, isTypeNode)
|
|
33359
33382
|
);
|
|
33360
33383
|
},
|
|
33361
33384
|
[231 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33362
33385
|
return context.factory.updateAsExpression(
|
|
33363
33386
|
node,
|
|
33364
|
-
|
|
33365
|
-
|
|
33387
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33388
|
+
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33366
33389
|
);
|
|
33367
33390
|
},
|
|
33368
33391
|
[235 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33369
33392
|
return context.factory.updateSatisfiesExpression(
|
|
33370
33393
|
node,
|
|
33371
|
-
|
|
33372
|
-
|
|
33394
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33395
|
+
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33373
33396
|
);
|
|
33374
33397
|
},
|
|
33375
33398
|
[232 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33376
33399
|
return isOptionalChain(node) ? context.factory.updateNonNullChain(
|
|
33377
33400
|
node,
|
|
33378
|
-
|
|
33401
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33379
33402
|
) : context.factory.updateNonNullExpression(
|
|
33380
33403
|
node,
|
|
33381
|
-
|
|
33404
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33382
33405
|
);
|
|
33383
33406
|
},
|
|
33384
33407
|
[233 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33385
33408
|
return context.factory.updateMetaProperty(
|
|
33386
33409
|
node,
|
|
33387
|
-
|
|
33410
|
+
nodeVisitor(node.name, visitor, isIdentifier)
|
|
33388
33411
|
);
|
|
33389
33412
|
},
|
|
33390
33413
|
// Misc
|
|
33391
33414
|
[236 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33392
33415
|
return context.factory.updateTemplateSpan(
|
|
33393
33416
|
node,
|
|
33394
|
-
|
|
33395
|
-
|
|
33417
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33418
|
+
nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)
|
|
33396
33419
|
);
|
|
33397
33420
|
},
|
|
33398
33421
|
// Element
|
|
@@ -33406,20 +33429,20 @@ var visitEachChildTable = {
|
|
|
33406
33429
|
return context.factory.updateVariableStatement(
|
|
33407
33430
|
node,
|
|
33408
33431
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33409
|
-
|
|
33432
|
+
nodeVisitor(node.declarationList, visitor, isVariableDeclarationList)
|
|
33410
33433
|
);
|
|
33411
33434
|
},
|
|
33412
33435
|
[241 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33413
33436
|
return context.factory.updateExpressionStatement(
|
|
33414
33437
|
node,
|
|
33415
|
-
|
|
33438
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33416
33439
|
);
|
|
33417
33440
|
},
|
|
33418
33441
|
[242 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33419
33442
|
return context.factory.updateIfStatement(
|
|
33420
33443
|
node,
|
|
33421
|
-
|
|
33422
|
-
|
|
33444
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33445
|
+
nodeVisitor(node.thenStatement, visitor, isStatement, context.factory.liftToBlock),
|
|
33423
33446
|
nodeVisitor(node.elseStatement, visitor, isStatement, context.factory.liftToBlock)
|
|
33424
33447
|
);
|
|
33425
33448
|
},
|
|
@@ -33427,13 +33450,13 @@ var visitEachChildTable = {
|
|
|
33427
33450
|
return context.factory.updateDoStatement(
|
|
33428
33451
|
node,
|
|
33429
33452
|
visitIterationBody(node.statement, visitor, context, nodeVisitor),
|
|
33430
|
-
|
|
33453
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33431
33454
|
);
|
|
33432
33455
|
},
|
|
33433
33456
|
[244 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33434
33457
|
return context.factory.updateWhileStatement(
|
|
33435
33458
|
node,
|
|
33436
|
-
|
|
33459
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33437
33460
|
visitIterationBody(node.statement, visitor, context, nodeVisitor)
|
|
33438
33461
|
);
|
|
33439
33462
|
},
|
|
@@ -33449,17 +33472,17 @@ var visitEachChildTable = {
|
|
|
33449
33472
|
[246 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33450
33473
|
return context.factory.updateForInStatement(
|
|
33451
33474
|
node,
|
|
33452
|
-
|
|
33453
|
-
|
|
33475
|
+
nodeVisitor(node.initializer, visitor, isForInitializer),
|
|
33476
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33454
33477
|
visitIterationBody(node.statement, visitor, context, nodeVisitor)
|
|
33455
33478
|
);
|
|
33456
33479
|
},
|
|
33457
33480
|
[247 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33458
33481
|
return context.factory.updateForOfStatement(
|
|
33459
33482
|
node,
|
|
33460
|
-
|
|
33461
|
-
|
|
33462
|
-
|
|
33483
|
+
nodeVisitor(node.awaitModifier, tokenVisitor, isAwaitKeyword),
|
|
33484
|
+
nodeVisitor(node.initializer, visitor, isForInitializer),
|
|
33485
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33463
33486
|
visitIterationBody(node.statement, visitor, context, nodeVisitor)
|
|
33464
33487
|
);
|
|
33465
33488
|
},
|
|
@@ -33484,34 +33507,34 @@ var visitEachChildTable = {
|
|
|
33484
33507
|
[251 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33485
33508
|
return context.factory.updateWithStatement(
|
|
33486
33509
|
node,
|
|
33487
|
-
|
|
33488
|
-
|
|
33510
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33511
|
+
nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)
|
|
33489
33512
|
);
|
|
33490
33513
|
},
|
|
33491
33514
|
[252 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33492
33515
|
return context.factory.updateSwitchStatement(
|
|
33493
33516
|
node,
|
|
33494
|
-
|
|
33495
|
-
|
|
33517
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33518
|
+
nodeVisitor(node.caseBlock, visitor, isCaseBlock)
|
|
33496
33519
|
);
|
|
33497
33520
|
},
|
|
33498
33521
|
[253 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33499
33522
|
return context.factory.updateLabeledStatement(
|
|
33500
33523
|
node,
|
|
33501
|
-
|
|
33502
|
-
|
|
33524
|
+
nodeVisitor(node.label, visitor, isIdentifier),
|
|
33525
|
+
nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)
|
|
33503
33526
|
);
|
|
33504
33527
|
},
|
|
33505
33528
|
[254 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33506
33529
|
return context.factory.updateThrowStatement(
|
|
33507
33530
|
node,
|
|
33508
|
-
|
|
33531
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33509
33532
|
);
|
|
33510
33533
|
},
|
|
33511
33534
|
[255 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33512
33535
|
return context.factory.updateTryStatement(
|
|
33513
33536
|
node,
|
|
33514
|
-
|
|
33537
|
+
nodeVisitor(node.tryBlock, visitor, isBlock),
|
|
33515
33538
|
nodeVisitor(node.catchClause, visitor, isCatchClause),
|
|
33516
33539
|
nodeVisitor(node.finallyBlock, visitor, isBlock)
|
|
33517
33540
|
);
|
|
@@ -33519,8 +33542,8 @@ var visitEachChildTable = {
|
|
|
33519
33542
|
[257 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33520
33543
|
return context.factory.updateVariableDeclaration(
|
|
33521
33544
|
node,
|
|
33522
|
-
|
|
33523
|
-
|
|
33545
|
+
nodeVisitor(node.name, visitor, isBindingName),
|
|
33546
|
+
nodeVisitor(node.exclamationToken, tokenVisitor, isExclamationToken),
|
|
33524
33547
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
33525
33548
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
33526
33549
|
);
|
|
@@ -33535,7 +33558,7 @@ var visitEachChildTable = {
|
|
|
33535
33558
|
return context.factory.updateFunctionDeclaration(
|
|
33536
33559
|
node,
|
|
33537
33560
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33538
|
-
|
|
33561
|
+
nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken),
|
|
33539
33562
|
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33540
33563
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
33541
33564
|
visitParameterList(node.parameters, visitor, context, nodesVisitor),
|
|
@@ -33557,7 +33580,7 @@ var visitEachChildTable = {
|
|
|
33557
33580
|
return context.factory.updateInterfaceDeclaration(
|
|
33558
33581
|
node,
|
|
33559
33582
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33560
|
-
|
|
33583
|
+
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33561
33584
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
33562
33585
|
nodesVisitor(node.heritageClauses, visitor, isHeritageClause),
|
|
33563
33586
|
nodesVisitor(node.members, visitor, isTypeElement)
|
|
@@ -33567,16 +33590,16 @@ var visitEachChildTable = {
|
|
|
33567
33590
|
return context.factory.updateTypeAliasDeclaration(
|
|
33568
33591
|
node,
|
|
33569
33592
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33570
|
-
|
|
33593
|
+
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33571
33594
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
33572
|
-
|
|
33595
|
+
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33573
33596
|
);
|
|
33574
33597
|
},
|
|
33575
33598
|
[263 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33576
33599
|
return context.factory.updateEnumDeclaration(
|
|
33577
33600
|
node,
|
|
33578
33601
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33579
|
-
|
|
33602
|
+
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33580
33603
|
nodesVisitor(node.members, visitor, isEnumMember)
|
|
33581
33604
|
);
|
|
33582
33605
|
},
|
|
@@ -33584,7 +33607,7 @@ var visitEachChildTable = {
|
|
|
33584
33607
|
return context.factory.updateModuleDeclaration(
|
|
33585
33608
|
node,
|
|
33586
33609
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33587
|
-
|
|
33610
|
+
nodeVisitor(node.name, visitor, isModuleName),
|
|
33588
33611
|
nodeVisitor(node.body, visitor, isModuleBody)
|
|
33589
33612
|
);
|
|
33590
33613
|
},
|
|
@@ -33603,7 +33626,7 @@ var visitEachChildTable = {
|
|
|
33603
33626
|
[267 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33604
33627
|
return context.factory.updateNamespaceExportDeclaration(
|
|
33605
33628
|
node,
|
|
33606
|
-
|
|
33629
|
+
nodeVisitor(node.name, visitor, isIdentifier)
|
|
33607
33630
|
);
|
|
33608
33631
|
},
|
|
33609
33632
|
[268 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -33611,8 +33634,8 @@ var visitEachChildTable = {
|
|
|
33611
33634
|
node,
|
|
33612
33635
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33613
33636
|
node.isTypeOnly,
|
|
33614
|
-
|
|
33615
|
-
|
|
33637
|
+
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33638
|
+
nodeVisitor(node.moduleReference, visitor, isModuleReference)
|
|
33616
33639
|
);
|
|
33617
33640
|
},
|
|
33618
33641
|
[269 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -33620,7 +33643,7 @@ var visitEachChildTable = {
|
|
|
33620
33643
|
node,
|
|
33621
33644
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33622
33645
|
nodeVisitor(node.importClause, visitor, isImportClause),
|
|
33623
|
-
|
|
33646
|
+
nodeVisitor(node.moduleSpecifier, visitor, isExpression),
|
|
33624
33647
|
nodeVisitor(node.assertClause, visitor, isAssertClause)
|
|
33625
33648
|
);
|
|
33626
33649
|
},
|
|
@@ -33634,8 +33657,8 @@ var visitEachChildTable = {
|
|
|
33634
33657
|
[297 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33635
33658
|
return context.factory.updateAssertEntry(
|
|
33636
33659
|
node,
|
|
33637
|
-
|
|
33638
|
-
|
|
33660
|
+
nodeVisitor(node.name, visitor, isAssertionKey),
|
|
33661
|
+
nodeVisitor(node.value, visitor, isExpression)
|
|
33639
33662
|
);
|
|
33640
33663
|
},
|
|
33641
33664
|
[270 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -33649,13 +33672,13 @@ var visitEachChildTable = {
|
|
|
33649
33672
|
[271 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33650
33673
|
return context.factory.updateNamespaceImport(
|
|
33651
33674
|
node,
|
|
33652
|
-
|
|
33675
|
+
nodeVisitor(node.name, visitor, isIdentifier)
|
|
33653
33676
|
);
|
|
33654
33677
|
},
|
|
33655
33678
|
[277 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33656
33679
|
return context.factory.updateNamespaceExport(
|
|
33657
33680
|
node,
|
|
33658
|
-
|
|
33681
|
+
nodeVisitor(node.name, visitor, isIdentifier)
|
|
33659
33682
|
);
|
|
33660
33683
|
},
|
|
33661
33684
|
[272 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
@@ -33669,14 +33692,14 @@ var visitEachChildTable = {
|
|
|
33669
33692
|
node,
|
|
33670
33693
|
node.isTypeOnly,
|
|
33671
33694
|
nodeVisitor(node.propertyName, visitor, isIdentifier),
|
|
33672
|
-
|
|
33695
|
+
nodeVisitor(node.name, visitor, isIdentifier)
|
|
33673
33696
|
);
|
|
33674
33697
|
},
|
|
33675
33698
|
[274 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33676
33699
|
return context.factory.updateExportAssignment(
|
|
33677
33700
|
node,
|
|
33678
33701
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33679
|
-
|
|
33702
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33680
33703
|
);
|
|
33681
33704
|
},
|
|
33682
33705
|
[275 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -33700,59 +33723,59 @@ var visitEachChildTable = {
|
|
|
33700
33723
|
node,
|
|
33701
33724
|
node.isTypeOnly,
|
|
33702
33725
|
nodeVisitor(node.propertyName, visitor, isIdentifier),
|
|
33703
|
-
|
|
33726
|
+
nodeVisitor(node.name, visitor, isIdentifier)
|
|
33704
33727
|
);
|
|
33705
33728
|
},
|
|
33706
33729
|
// Module references
|
|
33707
33730
|
[280 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33708
33731
|
return context.factory.updateExternalModuleReference(
|
|
33709
33732
|
node,
|
|
33710
|
-
|
|
33733
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33711
33734
|
);
|
|
33712
33735
|
},
|
|
33713
33736
|
// JSX
|
|
33714
33737
|
[281 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33715
33738
|
return context.factory.updateJsxElement(
|
|
33716
33739
|
node,
|
|
33717
|
-
|
|
33740
|
+
nodeVisitor(node.openingElement, visitor, isJsxOpeningElement),
|
|
33718
33741
|
nodesVisitor(node.children, visitor, isJsxChild),
|
|
33719
|
-
|
|
33742
|
+
nodeVisitor(node.closingElement, visitor, isJsxClosingElement)
|
|
33720
33743
|
);
|
|
33721
33744
|
},
|
|
33722
33745
|
[282 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33723
33746
|
return context.factory.updateJsxSelfClosingElement(
|
|
33724
33747
|
node,
|
|
33725
|
-
|
|
33748
|
+
nodeVisitor(node.tagName, visitor, isJsxTagNameExpression),
|
|
33726
33749
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
33727
|
-
|
|
33750
|
+
nodeVisitor(node.attributes, visitor, isJsxAttributes)
|
|
33728
33751
|
);
|
|
33729
33752
|
},
|
|
33730
33753
|
[283 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33731
33754
|
return context.factory.updateJsxOpeningElement(
|
|
33732
33755
|
node,
|
|
33733
|
-
|
|
33756
|
+
nodeVisitor(node.tagName, visitor, isJsxTagNameExpression),
|
|
33734
33757
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
33735
|
-
|
|
33758
|
+
nodeVisitor(node.attributes, visitor, isJsxAttributes)
|
|
33736
33759
|
);
|
|
33737
33760
|
},
|
|
33738
33761
|
[284 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33739
33762
|
return context.factory.updateJsxClosingElement(
|
|
33740
33763
|
node,
|
|
33741
|
-
|
|
33764
|
+
nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)
|
|
33742
33765
|
);
|
|
33743
33766
|
},
|
|
33744
33767
|
[285 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33745
33768
|
return context.factory.updateJsxFragment(
|
|
33746
33769
|
node,
|
|
33747
|
-
|
|
33770
|
+
nodeVisitor(node.openingFragment, visitor, isJsxOpeningFragment),
|
|
33748
33771
|
nodesVisitor(node.children, visitor, isJsxChild),
|
|
33749
|
-
|
|
33772
|
+
nodeVisitor(node.closingFragment, visitor, isJsxClosingFragment)
|
|
33750
33773
|
);
|
|
33751
33774
|
},
|
|
33752
33775
|
[288 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33753
33776
|
return context.factory.updateJsxAttribute(
|
|
33754
33777
|
node,
|
|
33755
|
-
|
|
33778
|
+
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33756
33779
|
nodeVisitor(node.initializer, visitor, isStringLiteralOrJsxExpression)
|
|
33757
33780
|
);
|
|
33758
33781
|
},
|
|
@@ -33765,20 +33788,20 @@ var visitEachChildTable = {
|
|
|
33765
33788
|
[290 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33766
33789
|
return context.factory.updateJsxSpreadAttribute(
|
|
33767
33790
|
node,
|
|
33768
|
-
|
|
33791
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33769
33792
|
);
|
|
33770
33793
|
},
|
|
33771
33794
|
[291 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33772
33795
|
return context.factory.updateJsxExpression(
|
|
33773
33796
|
node,
|
|
33774
|
-
|
|
33797
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33775
33798
|
);
|
|
33776
33799
|
},
|
|
33777
33800
|
// Clauses
|
|
33778
33801
|
[292 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33779
33802
|
return context.factory.updateCaseClause(
|
|
33780
33803
|
node,
|
|
33781
|
-
|
|
33804
|
+
nodeVisitor(node.expression, visitor, isExpression),
|
|
33782
33805
|
nodesVisitor(node.statements, visitor, isStatement)
|
|
33783
33806
|
);
|
|
33784
33807
|
},
|
|
@@ -33798,35 +33821,35 @@ var visitEachChildTable = {
|
|
|
33798
33821
|
return context.factory.updateCatchClause(
|
|
33799
33822
|
node,
|
|
33800
33823
|
nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration),
|
|
33801
|
-
|
|
33824
|
+
nodeVisitor(node.block, visitor, isBlock)
|
|
33802
33825
|
);
|
|
33803
33826
|
},
|
|
33804
33827
|
// Property assignments
|
|
33805
33828
|
[299 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33806
33829
|
return context.factory.updatePropertyAssignment(
|
|
33807
33830
|
node,
|
|
33808
|
-
|
|
33809
|
-
|
|
33831
|
+
nodeVisitor(node.name, visitor, isPropertyName),
|
|
33832
|
+
nodeVisitor(node.initializer, visitor, isExpression)
|
|
33810
33833
|
);
|
|
33811
33834
|
},
|
|
33812
33835
|
[300 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33813
33836
|
return context.factory.updateShorthandPropertyAssignment(
|
|
33814
33837
|
node,
|
|
33815
|
-
|
|
33838
|
+
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33816
33839
|
nodeVisitor(node.objectAssignmentInitializer, visitor, isExpression)
|
|
33817
33840
|
);
|
|
33818
33841
|
},
|
|
33819
33842
|
[301 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33820
33843
|
return context.factory.updateSpreadAssignment(
|
|
33821
33844
|
node,
|
|
33822
|
-
|
|
33845
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33823
33846
|
);
|
|
33824
33847
|
},
|
|
33825
33848
|
// Enum
|
|
33826
33849
|
[302 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33827
33850
|
return context.factory.updateEnumMember(
|
|
33828
33851
|
node,
|
|
33829
|
-
|
|
33852
|
+
nodeVisitor(node.name, visitor, isPropertyName),
|
|
33830
33853
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
33831
33854
|
);
|
|
33832
33855
|
},
|
|
@@ -33838,13 +33861,13 @@ var visitEachChildTable = {
|
|
|
33838
33861
|
);
|
|
33839
33862
|
},
|
|
33840
33863
|
// Transformation nodes
|
|
33841
|
-
[
|
|
33864
|
+
[356 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33842
33865
|
return context.factory.updatePartiallyEmittedExpression(
|
|
33843
33866
|
node,
|
|
33844
|
-
|
|
33867
|
+
nodeVisitor(node.expression, visitor, isExpression)
|
|
33845
33868
|
);
|
|
33846
33869
|
},
|
|
33847
|
-
[
|
|
33870
|
+
[357 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
33848
33871
|
return context.factory.updateCommaListExpression(
|
|
33849
33872
|
node,
|
|
33850
33873
|
nodesVisitor(node.elements, visitor, isExpression)
|
|
@@ -35226,7 +35249,7 @@ function sameFiles(a, b, caseSensitive) {
|
|
|
35226
35249
|
return a === b || !caseSensitive && compareStringsCaseInsensitive(a, b) === 0 /* EqualTo */;
|
|
35227
35250
|
}
|
|
35228
35251
|
function getDetailWatchInfo(projectName, watchers) {
|
|
35229
|
-
return `Project: ${projectName} watcher already invoked: ${watchers
|
|
35252
|
+
return `Project: ${projectName} watcher already invoked: ${watchers.isInvoked}`;
|
|
35230
35253
|
}
|
|
35231
35254
|
var TypingsInstaller = class {
|
|
35232
35255
|
constructor(installTypingHost, globalCachePath, safeListPath, typesMapLocation2, throttleLimit, log2 = nullLog) {
|