@typescript-deploys/pr-build 5.0.0-pr-52280-2 → 5.0.0-pr-52280-7
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 +478 -400
- package/lib/tsserver.js +521 -416
- package/lib/tsserverlibrary.d.ts +76 -22
- package/lib/tsserverlibrary.js +517 -416
- package/lib/typescript.d.ts +66 -18
- package/lib/typescript.js +512 -416
- package/lib/typingsInstaller.js +201 -191
- package/package.json +2 -2
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.20230118`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -6301,7 +6301,7 @@ var Diagnostics = {
|
|
|
6301
6301
|
Compiler_option_0_may_only_be_used_with_build: diag(5093, 1 /* Error */, "Compiler_option_0_may_only_be_used_with_build_5093", "Compiler option '--{0}' may only be used with '--build'."),
|
|
6302
6302
|
Compiler_option_0_may_not_be_used_with_build: diag(5094, 1 /* Error */, "Compiler_option_0_may_not_be_used_with_build_5094", "Compiler option '--{0}' may not be used with '--build'."),
|
|
6303
6303
|
Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later: diag(5095, 1 /* Error */, "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095", "Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),
|
|
6304
|
-
|
|
6304
|
+
Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set: diag(5096, 1 /* Error */, "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096", "Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),
|
|
6305
6305
|
An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled: diag(5097, 1 /* Error */, "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097", "An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),
|
|
6306
6306
|
Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler: diag(5098, 1 /* Error */, "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098", "Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),
|
|
6307
6307
|
Import_assignment_is_not_allowed_when_moduleResolution_is_set_to_bundler_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead: diag(5099, 1 /* Error */, "Import_assignment_is_not_allowed_when_moduleResolution_is_set_to_bundler_Consider_using_import_Aster_5099", `Import assignment is not allowed when 'moduleResolution' is set to 'bundler'. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),
|
|
@@ -7757,10 +7757,7 @@ function reduceEachTrailingCommentRange(text, pos, cb, state, initial) {
|
|
|
7757
7757
|
initial
|
|
7758
7758
|
);
|
|
7759
7759
|
}
|
|
7760
|
-
function appendCommentRange(pos, end, kind, hasTrailingNewLine, _state, comments) {
|
|
7761
|
-
if (!comments) {
|
|
7762
|
-
comments = [];
|
|
7763
|
-
}
|
|
7760
|
+
function appendCommentRange(pos, end, kind, hasTrailingNewLine, _state, comments = []) {
|
|
7764
7761
|
comments.push({ kind, pos, end, hasTrailingNewLine });
|
|
7765
7762
|
return comments;
|
|
7766
7763
|
}
|
|
@@ -9703,18 +9700,15 @@ function isNamedExportBindings(node) {
|
|
|
9703
9700
|
function isNodeKind(kind) {
|
|
9704
9701
|
return kind >= 163 /* FirstNode */;
|
|
9705
9702
|
}
|
|
9706
|
-
function isTokenKind(kind) {
|
|
9707
|
-
return kind >= 0 /* FirstToken */ && kind <= 162 /* LastToken */;
|
|
9708
|
-
}
|
|
9709
|
-
function isToken(n) {
|
|
9710
|
-
return isTokenKind(n.kind);
|
|
9711
|
-
}
|
|
9712
9703
|
function isNodeArray(array) {
|
|
9713
9704
|
return hasProperty(array, "pos") && hasProperty(array, "end");
|
|
9714
9705
|
}
|
|
9715
9706
|
function isLiteralKind(kind) {
|
|
9716
9707
|
return 8 /* FirstLiteralToken */ <= kind && kind <= 14 /* LastLiteralToken */;
|
|
9717
9708
|
}
|
|
9709
|
+
function isLiteralExpression(node) {
|
|
9710
|
+
return isLiteralKind(node.kind);
|
|
9711
|
+
}
|
|
9718
9712
|
function isTemplateLiteralKind(kind) {
|
|
9719
9713
|
return 14 /* FirstTemplateToken */ <= kind && kind <= 17 /* LastTemplateToken */;
|
|
9720
9714
|
}
|
|
@@ -9946,6 +9940,18 @@ function isUnaryExpressionKind(kind) {
|
|
|
9946
9940
|
return isLeftHandSideExpressionKind(kind);
|
|
9947
9941
|
}
|
|
9948
9942
|
}
|
|
9943
|
+
function isLiteralTypeLiteral(node) {
|
|
9944
|
+
node = skipPartiallyEmittedExpressions(node);
|
|
9945
|
+
switch (skipPartiallyEmittedExpressions(node).kind) {
|
|
9946
|
+
case 104 /* NullKeyword */:
|
|
9947
|
+
case 110 /* TrueKeyword */:
|
|
9948
|
+
case 95 /* FalseKeyword */:
|
|
9949
|
+
case 221 /* PrefixUnaryExpression */:
|
|
9950
|
+
return true;
|
|
9951
|
+
default:
|
|
9952
|
+
return isLiteralExpression(node);
|
|
9953
|
+
}
|
|
9954
|
+
}
|
|
9949
9955
|
function isExpression(node) {
|
|
9950
9956
|
return isExpressionKind(skipPartiallyEmittedExpressions(node).kind);
|
|
9951
9957
|
}
|
|
@@ -11679,7 +11685,7 @@ function getLastChild(node) {
|
|
|
11679
11685
|
return lastChild;
|
|
11680
11686
|
}
|
|
11681
11687
|
function isTypeNodeKind(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 */;
|
|
11688
|
+
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 === 139 /* IntrinsicKeyword */ || kind === 230 /* ExpressionWithTypeArguments */ || kind === 315 /* JSDocAllType */ || kind === 316 /* JSDocUnknownType */ || kind === 317 /* JSDocNullableType */ || kind === 318 /* JSDocNonNullableType */ || kind === 319 /* JSDocOptionalType */ || kind === 320 /* JSDocFunctionType */ || kind === 321 /* JSDocVariadicType */;
|
|
11683
11689
|
}
|
|
11684
11690
|
function isAccessExpression(node) {
|
|
11685
11691
|
return node.kind === 208 /* PropertyAccessExpression */ || node.kind === 209 /* ElementAccessExpression */;
|
|
@@ -26919,7 +26925,7 @@ var commandOptionsWithoutBuild = [
|
|
|
26919
26925
|
{
|
|
26920
26926
|
name: "allowImportingTsExtensions",
|
|
26921
26927
|
type: "boolean",
|
|
26922
|
-
|
|
26928
|
+
affectsSemanticDiagnostics: true,
|
|
26923
26929
|
category: Diagnostics.Modules,
|
|
26924
26930
|
description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
|
|
26925
26931
|
defaultValueDescription: false
|
|
@@ -27909,6 +27915,7 @@ function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNam
|
|
|
27909
27915
|
return !hasExtension(pathToCheck) && excludeRegex.test(ensureTrailingDirectorySeparator(pathToCheck));
|
|
27910
27916
|
}
|
|
27911
27917
|
function specToDiagnostic(spec, disallowTrailingRecursion) {
|
|
27918
|
+
Debug.assert(typeof spec === "string");
|
|
27912
27919
|
if (disallowTrailingRecursion && invalidTrailingRecursionPattern.test(spec)) {
|
|
27913
27920
|
return [Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec];
|
|
27914
27921
|
} else if (invalidDotDotAfterRecursiveWildcard(spec)) {
|
|
@@ -32626,13 +32633,10 @@ var JsxNames;
|
|
|
32626
32633
|
|
|
32627
32634
|
// src/compiler/visitorPublic.ts
|
|
32628
32635
|
function visitNode(node, visitor, test, lift) {
|
|
32629
|
-
if (node === void 0
|
|
32636
|
+
if (node === void 0) {
|
|
32630
32637
|
return node;
|
|
32631
32638
|
}
|
|
32632
32639
|
const visited = visitor(node);
|
|
32633
|
-
if (visited === node) {
|
|
32634
|
-
return node;
|
|
32635
|
-
}
|
|
32636
32640
|
let visitedNode;
|
|
32637
32641
|
if (visited === void 0) {
|
|
32638
32642
|
return void 0;
|
|
@@ -32645,7 +32649,7 @@ function visitNode(node, visitor, test, lift) {
|
|
|
32645
32649
|
return visitedNode;
|
|
32646
32650
|
}
|
|
32647
32651
|
function visitNodes2(nodes, visitor, test, start, count) {
|
|
32648
|
-
if (nodes === void 0
|
|
32652
|
+
if (nodes === void 0) {
|
|
32649
32653
|
return nodes;
|
|
32650
32654
|
}
|
|
32651
32655
|
const length2 = nodes.length;
|
|
@@ -32681,25 +32685,30 @@ function visitArrayWorker(nodes, visitor, test, start, count) {
|
|
|
32681
32685
|
}
|
|
32682
32686
|
for (let i = 0; i < count; i++) {
|
|
32683
32687
|
const node = nodes[i + start];
|
|
32684
|
-
const visited = node !== void 0 ? visitor(node) : void 0;
|
|
32688
|
+
const visited = node !== void 0 ? visitor ? visitor(node) : node : void 0;
|
|
32685
32689
|
if (updated !== void 0 || visited === void 0 || visited !== node) {
|
|
32686
32690
|
if (updated === void 0) {
|
|
32687
32691
|
updated = nodes.slice(0, i);
|
|
32692
|
+
Debug.assertEachNode(updated, test);
|
|
32688
32693
|
}
|
|
32689
32694
|
if (visited) {
|
|
32690
32695
|
if (isArray(visited)) {
|
|
32691
32696
|
for (const visitedNode of visited) {
|
|
32692
|
-
|
|
32697
|
+
Debug.assertNode(visitedNode, test);
|
|
32693
32698
|
updated.push(visitedNode);
|
|
32694
32699
|
}
|
|
32695
32700
|
} else {
|
|
32696
|
-
|
|
32701
|
+
Debug.assertNode(visited, test);
|
|
32697
32702
|
updated.push(visited);
|
|
32698
32703
|
}
|
|
32699
32704
|
}
|
|
32700
32705
|
}
|
|
32701
32706
|
}
|
|
32702
|
-
|
|
32707
|
+
if (updated) {
|
|
32708
|
+
return updated;
|
|
32709
|
+
}
|
|
32710
|
+
Debug.assertEachNode(nodes, test);
|
|
32711
|
+
return nodes;
|
|
32703
32712
|
}
|
|
32704
32713
|
function visitLexicalEnvironment(statements, visitor, context, start, ensureUseStrict, nodesVisitor = visitNodes2) {
|
|
32705
32714
|
context.startLexicalEnvironment();
|
|
@@ -32713,7 +32722,7 @@ function visitParameterList(nodes, visitor, context, nodesVisitor = visitNodes2)
|
|
|
32713
32722
|
context.startLexicalEnvironment();
|
|
32714
32723
|
if (nodes) {
|
|
32715
32724
|
context.setLexicalEnvironmentFlags(1 /* InParameters */, true);
|
|
32716
|
-
updated = nodesVisitor(nodes, visitor,
|
|
32725
|
+
updated = nodesVisitor(nodes, visitor, isParameter);
|
|
32717
32726
|
if (context.getLexicalEnvironmentFlags() & 2 /* VariablesHoistedInParameters */ && getEmitScriptTarget(context.getCompilerOptions()) >= 2 /* ES2015 */) {
|
|
32718
32727
|
updated = addDefaultValueAssignmentsIfNeeded(updated, context);
|
|
32719
32728
|
}
|
|
@@ -32835,6 +32844,7 @@ function visitFunctionBody(node, visitor, context, nodeVisitor = visitNode) {
|
|
|
32835
32844
|
function visitIterationBody(body, visitor, context, nodeVisitor = visitNode) {
|
|
32836
32845
|
context.startBlockScope();
|
|
32837
32846
|
const updated = nodeVisitor(body, visitor, isStatement, context.factory.liftToBlock);
|
|
32847
|
+
Debug.assert(updated);
|
|
32838
32848
|
const declarations = context.endBlockScope();
|
|
32839
32849
|
if (some(declarations)) {
|
|
32840
32850
|
if (isBlock(updated)) {
|
|
@@ -32850,14 +32860,14 @@ var visitEachChildTable = {
|
|
|
32850
32860
|
[163 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
32851
32861
|
return context.factory.updateQualifiedName(
|
|
32852
32862
|
node,
|
|
32853
|
-
nodeVisitor(node.left, visitor, isEntityName),
|
|
32854
|
-
nodeVisitor(node.right, visitor, isIdentifier)
|
|
32863
|
+
Debug.checkDefined(nodeVisitor(node.left, visitor, isEntityName)),
|
|
32864
|
+
Debug.checkDefined(nodeVisitor(node.right, visitor, isIdentifier))
|
|
32855
32865
|
);
|
|
32856
32866
|
},
|
|
32857
32867
|
[164 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
32858
32868
|
return context.factory.updateComputedPropertyName(
|
|
32859
32869
|
node,
|
|
32860
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
32870
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
32861
32871
|
);
|
|
32862
32872
|
},
|
|
32863
32873
|
// Signature elements
|
|
@@ -32865,7 +32875,7 @@ var visitEachChildTable = {
|
|
|
32865
32875
|
return context.factory.updateTypeParameterDeclaration(
|
|
32866
32876
|
node,
|
|
32867
32877
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
32868
|
-
nodeVisitor(node.name, visitor, isIdentifier),
|
|
32878
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)),
|
|
32869
32879
|
nodeVisitor(node.constraint, visitor, isTypeNode),
|
|
32870
32880
|
nodeVisitor(node.default, visitor, isTypeNode)
|
|
32871
32881
|
);
|
|
@@ -32874,9 +32884,9 @@ var visitEachChildTable = {
|
|
|
32874
32884
|
return context.factory.updateParameterDeclaration(
|
|
32875
32885
|
node,
|
|
32876
32886
|
nodesVisitor(node.modifiers, visitor, isModifierLike),
|
|
32877
|
-
nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken),
|
|
32878
|
-
nodeVisitor(node.name, visitor, isBindingName),
|
|
32879
|
-
nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken),
|
|
32887
|
+
tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken,
|
|
32888
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)),
|
|
32889
|
+
tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken,
|
|
32880
32890
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
32881
32891
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
32882
32892
|
);
|
|
@@ -32884,7 +32894,7 @@ var visitEachChildTable = {
|
|
|
32884
32894
|
[167 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
32885
32895
|
return context.factory.updateDecorator(
|
|
32886
32896
|
node,
|
|
32887
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
32897
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
32888
32898
|
);
|
|
32889
32899
|
},
|
|
32890
32900
|
// Type elements
|
|
@@ -32892,19 +32902,19 @@ var visitEachChildTable = {
|
|
|
32892
32902
|
return context.factory.updatePropertySignature(
|
|
32893
32903
|
node,
|
|
32894
32904
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
32895
|
-
nodeVisitor(node.name, visitor, isPropertyName),
|
|
32896
|
-
nodeVisitor(node.questionToken, tokenVisitor,
|
|
32905
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)),
|
|
32906
|
+
tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken,
|
|
32897
32907
|
nodeVisitor(node.type, visitor, isTypeNode)
|
|
32898
32908
|
);
|
|
32899
32909
|
},
|
|
32900
32910
|
[169 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
32901
|
-
var _a2;
|
|
32911
|
+
var _a2, _b;
|
|
32902
32912
|
return context.factory.updatePropertyDeclaration(
|
|
32903
32913
|
node,
|
|
32904
32914
|
nodesVisitor(node.modifiers, visitor, isModifierLike),
|
|
32905
|
-
nodeVisitor(node.name, visitor, isPropertyName),
|
|
32915
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)),
|
|
32906
32916
|
// QuestionToken and ExclamationToken are mutually exclusive in PropertyDeclaration
|
|
32907
|
-
nodeVisitor((_a2 = node.questionToken) != null ? _a2 : node.exclamationToken, tokenVisitor, isQuestionOrExclamationToken),
|
|
32917
|
+
tokenVisitor ? nodeVisitor((_a2 = node.questionToken) != null ? _a2 : node.exclamationToken, tokenVisitor, isQuestionOrExclamationToken) : (_b = node.questionToken) != null ? _b : node.exclamationToken,
|
|
32908
32918
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
32909
32919
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
32910
32920
|
);
|
|
@@ -32913,10 +32923,10 @@ var visitEachChildTable = {
|
|
|
32913
32923
|
return context.factory.updateMethodSignature(
|
|
32914
32924
|
node,
|
|
32915
32925
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
32916
|
-
nodeVisitor(node.name, visitor, isPropertyName),
|
|
32917
|
-
nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken),
|
|
32926
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)),
|
|
32927
|
+
tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken,
|
|
32918
32928
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
32919
|
-
nodesVisitor(node.parameters, visitor,
|
|
32929
|
+
nodesVisitor(node.parameters, visitor, isParameter),
|
|
32920
32930
|
nodeVisitor(node.type, visitor, isTypeNode)
|
|
32921
32931
|
);
|
|
32922
32932
|
},
|
|
@@ -32924,9 +32934,9 @@ var visitEachChildTable = {
|
|
|
32924
32934
|
return context.factory.updateMethodDeclaration(
|
|
32925
32935
|
node,
|
|
32926
32936
|
nodesVisitor(node.modifiers, visitor, isModifierLike),
|
|
32927
|
-
nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken),
|
|
32928
|
-
nodeVisitor(node.name, visitor, isPropertyName),
|
|
32929
|
-
nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken),
|
|
32937
|
+
tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken,
|
|
32938
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)),
|
|
32939
|
+
tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken,
|
|
32930
32940
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
32931
32941
|
visitParameterList(node.parameters, visitor, context, nodesVisitor),
|
|
32932
32942
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
@@ -32945,7 +32955,7 @@ var visitEachChildTable = {
|
|
|
32945
32955
|
return context.factory.updateGetAccessorDeclaration(
|
|
32946
32956
|
node,
|
|
32947
32957
|
nodesVisitor(node.modifiers, visitor, isModifierLike),
|
|
32948
|
-
nodeVisitor(node.name, visitor, isPropertyName),
|
|
32958
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)),
|
|
32949
32959
|
visitParameterList(node.parameters, visitor, context, nodesVisitor),
|
|
32950
32960
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
32951
32961
|
visitFunctionBody(node.body, visitor, context, nodeVisitor)
|
|
@@ -32955,7 +32965,7 @@ var visitEachChildTable = {
|
|
|
32955
32965
|
return context.factory.updateSetAccessorDeclaration(
|
|
32956
32966
|
node,
|
|
32957
32967
|
nodesVisitor(node.modifiers, visitor, isModifierLike),
|
|
32958
|
-
nodeVisitor(node.name, visitor, isPropertyName),
|
|
32968
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)),
|
|
32959
32969
|
visitParameterList(node.parameters, visitor, context, nodesVisitor),
|
|
32960
32970
|
visitFunctionBody(node.body, visitor, context, nodeVisitor)
|
|
32961
32971
|
);
|
|
@@ -32972,7 +32982,7 @@ var visitEachChildTable = {
|
|
|
32972
32982
|
return context.factory.updateCallSignature(
|
|
32973
32983
|
node,
|
|
32974
32984
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
32975
|
-
nodesVisitor(node.parameters, visitor,
|
|
32985
|
+
nodesVisitor(node.parameters, visitor, isParameter),
|
|
32976
32986
|
nodeVisitor(node.type, visitor, isTypeNode)
|
|
32977
32987
|
);
|
|
32978
32988
|
},
|
|
@@ -32980,7 +32990,7 @@ var visitEachChildTable = {
|
|
|
32980
32990
|
return context.factory.updateConstructSignature(
|
|
32981
32991
|
node,
|
|
32982
32992
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
32983
|
-
nodesVisitor(node.parameters, visitor,
|
|
32993
|
+
nodesVisitor(node.parameters, visitor, isParameter),
|
|
32984
32994
|
nodeVisitor(node.type, visitor, isTypeNode)
|
|
32985
32995
|
);
|
|
32986
32996
|
},
|
|
@@ -32988,8 +32998,8 @@ var visitEachChildTable = {
|
|
|
32988
32998
|
return context.factory.updateIndexSignature(
|
|
32989
32999
|
node,
|
|
32990
33000
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
32991
|
-
nodesVisitor(node.parameters, visitor,
|
|
32992
|
-
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33001
|
+
nodesVisitor(node.parameters, visitor, isParameter),
|
|
33002
|
+
Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode))
|
|
32993
33003
|
);
|
|
32994
33004
|
},
|
|
32995
33005
|
// Types
|
|
@@ -32997,14 +33007,14 @@ var visitEachChildTable = {
|
|
|
32997
33007
|
return context.factory.updateTypePredicateNode(
|
|
32998
33008
|
node,
|
|
32999
33009
|
nodeVisitor(node.assertsModifier, visitor, isAssertsKeyword),
|
|
33000
|
-
nodeVisitor(node.parameterName, visitor, isIdentifierOrThisTypeNode),
|
|
33010
|
+
Debug.checkDefined(nodeVisitor(node.parameterName, visitor, isIdentifierOrThisTypeNode)),
|
|
33001
33011
|
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33002
33012
|
);
|
|
33003
33013
|
},
|
|
33004
33014
|
[180 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33005
33015
|
return context.factory.updateTypeReferenceNode(
|
|
33006
33016
|
node,
|
|
33007
|
-
nodeVisitor(node.typeName, visitor, isEntityName),
|
|
33017
|
+
Debug.checkDefined(nodeVisitor(node.typeName, visitor, isEntityName)),
|
|
33008
33018
|
nodesVisitor(node.typeArguments, visitor, isTypeNode)
|
|
33009
33019
|
);
|
|
33010
33020
|
},
|
|
@@ -33012,8 +33022,8 @@ var visitEachChildTable = {
|
|
|
33012
33022
|
return context.factory.updateFunctionTypeNode(
|
|
33013
33023
|
node,
|
|
33014
33024
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
33015
|
-
nodesVisitor(node.parameters, visitor,
|
|
33016
|
-
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33025
|
+
nodesVisitor(node.parameters, visitor, isParameter),
|
|
33026
|
+
Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode))
|
|
33017
33027
|
);
|
|
33018
33028
|
},
|
|
33019
33029
|
[182 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -33021,14 +33031,14 @@ var visitEachChildTable = {
|
|
|
33021
33031
|
node,
|
|
33022
33032
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33023
33033
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
33024
|
-
nodesVisitor(node.parameters, visitor,
|
|
33025
|
-
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33034
|
+
nodesVisitor(node.parameters, visitor, isParameter),
|
|
33035
|
+
Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode))
|
|
33026
33036
|
);
|
|
33027
33037
|
},
|
|
33028
33038
|
[183 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33029
33039
|
return context.factory.updateTypeQueryNode(
|
|
33030
33040
|
node,
|
|
33031
|
-
nodeVisitor(node.exprName, visitor, isEntityName),
|
|
33041
|
+
Debug.checkDefined(nodeVisitor(node.exprName, visitor, isEntityName)),
|
|
33032
33042
|
nodesVisitor(node.typeArguments, visitor, isTypeNode)
|
|
33033
33043
|
);
|
|
33034
33044
|
},
|
|
@@ -33041,7 +33051,7 @@ var visitEachChildTable = {
|
|
|
33041
33051
|
[185 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33042
33052
|
return context.factory.updateArrayTypeNode(
|
|
33043
33053
|
node,
|
|
33044
|
-
nodeVisitor(node.elementType, visitor, isTypeNode)
|
|
33054
|
+
Debug.checkDefined(nodeVisitor(node.elementType, visitor, isTypeNode))
|
|
33045
33055
|
);
|
|
33046
33056
|
},
|
|
33047
33057
|
[186 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
@@ -33053,13 +33063,13 @@ var visitEachChildTable = {
|
|
|
33053
33063
|
[187 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33054
33064
|
return context.factory.updateOptionalTypeNode(
|
|
33055
33065
|
node,
|
|
33056
|
-
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33066
|
+
Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode))
|
|
33057
33067
|
);
|
|
33058
33068
|
},
|
|
33059
33069
|
[188 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33060
33070
|
return context.factory.updateRestTypeNode(
|
|
33061
33071
|
node,
|
|
33062
|
-
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33072
|
+
Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode))
|
|
33063
33073
|
);
|
|
33064
33074
|
},
|
|
33065
33075
|
[189 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
@@ -33077,22 +33087,22 @@ var visitEachChildTable = {
|
|
|
33077
33087
|
[191 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33078
33088
|
return context.factory.updateConditionalTypeNode(
|
|
33079
33089
|
node,
|
|
33080
|
-
nodeVisitor(node.checkType, visitor, isTypeNode),
|
|
33081
|
-
nodeVisitor(node.extendsType, visitor, isTypeNode),
|
|
33082
|
-
nodeVisitor(node.trueType, visitor, isTypeNode),
|
|
33083
|
-
nodeVisitor(node.falseType, visitor, isTypeNode)
|
|
33090
|
+
Debug.checkDefined(nodeVisitor(node.checkType, visitor, isTypeNode)),
|
|
33091
|
+
Debug.checkDefined(nodeVisitor(node.extendsType, visitor, isTypeNode)),
|
|
33092
|
+
Debug.checkDefined(nodeVisitor(node.trueType, visitor, isTypeNode)),
|
|
33093
|
+
Debug.checkDefined(nodeVisitor(node.falseType, visitor, isTypeNode))
|
|
33084
33094
|
);
|
|
33085
33095
|
},
|
|
33086
33096
|
[192 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33087
33097
|
return context.factory.updateInferTypeNode(
|
|
33088
33098
|
node,
|
|
33089
|
-
nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)
|
|
33099
|
+
Debug.checkDefined(nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration))
|
|
33090
33100
|
);
|
|
33091
33101
|
},
|
|
33092
33102
|
[202 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33093
33103
|
return context.factory.updateImportTypeNode(
|
|
33094
33104
|
node,
|
|
33095
|
-
nodeVisitor(node.argument, visitor, isTypeNode),
|
|
33105
|
+
Debug.checkDefined(nodeVisitor(node.argument, visitor, isTypeNode)),
|
|
33096
33106
|
nodeVisitor(node.assertions, visitor, isImportTypeAssertionContainer),
|
|
33097
33107
|
nodeVisitor(node.qualifier, visitor, isEntityName),
|
|
33098
33108
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
@@ -33102,45 +33112,45 @@ var visitEachChildTable = {
|
|
|
33102
33112
|
[298 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33103
33113
|
return context.factory.updateImportTypeAssertionContainer(
|
|
33104
33114
|
node,
|
|
33105
|
-
nodeVisitor(node.assertClause, visitor, isAssertClause),
|
|
33115
|
+
Debug.checkDefined(nodeVisitor(node.assertClause, visitor, isAssertClause)),
|
|
33106
33116
|
node.multiLine
|
|
33107
33117
|
);
|
|
33108
33118
|
},
|
|
33109
33119
|
[199 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33110
33120
|
return context.factory.updateNamedTupleMember(
|
|
33111
33121
|
node,
|
|
33112
|
-
nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken),
|
|
33113
|
-
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33114
|
-
nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken),
|
|
33115
|
-
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33122
|
+
tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken,
|
|
33123
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)),
|
|
33124
|
+
tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken,
|
|
33125
|
+
Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode))
|
|
33116
33126
|
);
|
|
33117
33127
|
},
|
|
33118
33128
|
[193 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33119
33129
|
return context.factory.updateParenthesizedType(
|
|
33120
33130
|
node,
|
|
33121
|
-
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33131
|
+
Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode))
|
|
33122
33132
|
);
|
|
33123
33133
|
},
|
|
33124
33134
|
[195 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33125
33135
|
return context.factory.updateTypeOperatorNode(
|
|
33126
33136
|
node,
|
|
33127
|
-
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33137
|
+
Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode))
|
|
33128
33138
|
);
|
|
33129
33139
|
},
|
|
33130
33140
|
[196 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33131
33141
|
return context.factory.updateIndexedAccessTypeNode(
|
|
33132
33142
|
node,
|
|
33133
|
-
nodeVisitor(node.objectType, visitor, isTypeNode),
|
|
33134
|
-
nodeVisitor(node.indexType, visitor, isTypeNode)
|
|
33143
|
+
Debug.checkDefined(nodeVisitor(node.objectType, visitor, isTypeNode)),
|
|
33144
|
+
Debug.checkDefined(nodeVisitor(node.indexType, visitor, isTypeNode))
|
|
33135
33145
|
);
|
|
33136
33146
|
},
|
|
33137
33147
|
[197 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33138
33148
|
return context.factory.updateMappedTypeNode(
|
|
33139
33149
|
node,
|
|
33140
|
-
nodeVisitor(node.readonlyToken, tokenVisitor, isReadonlyKeywordOrPlusOrMinusToken),
|
|
33141
|
-
nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration),
|
|
33150
|
+
tokenVisitor ? nodeVisitor(node.readonlyToken, tokenVisitor, isReadonlyKeywordOrPlusOrMinusToken) : node.readonlyToken,
|
|
33151
|
+
Debug.checkDefined(nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)),
|
|
33142
33152
|
nodeVisitor(node.nameType, visitor, isTypeNode),
|
|
33143
|
-
nodeVisitor(node.questionToken, tokenVisitor, isQuestionOrPlusOrMinusToken),
|
|
33153
|
+
tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionOrPlusOrMinusToken) : node.questionToken,
|
|
33144
33154
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
33145
33155
|
nodesVisitor(node.members, visitor, isTypeElement)
|
|
33146
33156
|
);
|
|
@@ -33148,21 +33158,21 @@ var visitEachChildTable = {
|
|
|
33148
33158
|
[198 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33149
33159
|
return context.factory.updateLiteralTypeNode(
|
|
33150
33160
|
node,
|
|
33151
|
-
nodeVisitor(node.literal, visitor,
|
|
33161
|
+
Debug.checkDefined(nodeVisitor(node.literal, visitor, isLiteralTypeLiteral))
|
|
33152
33162
|
);
|
|
33153
33163
|
},
|
|
33154
33164
|
[200 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33155
33165
|
return context.factory.updateTemplateLiteralType(
|
|
33156
33166
|
node,
|
|
33157
|
-
nodeVisitor(node.head, visitor, isTemplateHead),
|
|
33167
|
+
Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)),
|
|
33158
33168
|
nodesVisitor(node.templateSpans, visitor, isTemplateLiteralTypeSpan)
|
|
33159
33169
|
);
|
|
33160
33170
|
},
|
|
33161
33171
|
[201 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33162
33172
|
return context.factory.updateTemplateLiteralTypeSpan(
|
|
33163
33173
|
node,
|
|
33164
|
-
nodeVisitor(node.type, visitor, isTypeNode),
|
|
33165
|
-
nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)
|
|
33174
|
+
Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)),
|
|
33175
|
+
Debug.checkDefined(nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail))
|
|
33166
33176
|
);
|
|
33167
33177
|
},
|
|
33168
33178
|
// Binding patterns
|
|
@@ -33181,9 +33191,9 @@ var visitEachChildTable = {
|
|
|
33181
33191
|
[205 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33182
33192
|
return context.factory.updateBindingElement(
|
|
33183
33193
|
node,
|
|
33184
|
-
nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken),
|
|
33194
|
+
tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken,
|
|
33185
33195
|
nodeVisitor(node.propertyName, visitor, isPropertyName),
|
|
33186
|
-
nodeVisitor(node.name, visitor, isBindingName),
|
|
33196
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)),
|
|
33187
33197
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
33188
33198
|
);
|
|
33189
33199
|
},
|
|
@@ -33203,37 +33213,37 @@ var visitEachChildTable = {
|
|
|
33203
33213
|
[208 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33204
33214
|
return isPropertyAccessChain(node) ? context.factory.updatePropertyAccessChain(
|
|
33205
33215
|
node,
|
|
33206
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33207
|
-
nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken),
|
|
33208
|
-
nodeVisitor(node.name, visitor, isMemberName)
|
|
33216
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33217
|
+
tokenVisitor ? nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken) : node.questionDotToken,
|
|
33218
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isMemberName))
|
|
33209
33219
|
) : context.factory.updatePropertyAccessExpression(
|
|
33210
33220
|
node,
|
|
33211
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33212
|
-
nodeVisitor(node.name, visitor, isMemberName)
|
|
33221
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33222
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isMemberName))
|
|
33213
33223
|
);
|
|
33214
33224
|
},
|
|
33215
33225
|
[209 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33216
33226
|
return isElementAccessChain(node) ? context.factory.updateElementAccessChain(
|
|
33217
33227
|
node,
|
|
33218
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33219
|
-
nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken),
|
|
33220
|
-
nodeVisitor(node.argumentExpression, visitor, isExpression)
|
|
33228
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33229
|
+
tokenVisitor ? nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken) : node.questionDotToken,
|
|
33230
|
+
Debug.checkDefined(nodeVisitor(node.argumentExpression, visitor, isExpression))
|
|
33221
33231
|
) : context.factory.updateElementAccessExpression(
|
|
33222
33232
|
node,
|
|
33223
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33224
|
-
nodeVisitor(node.argumentExpression, visitor, isExpression)
|
|
33233
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33234
|
+
Debug.checkDefined(nodeVisitor(node.argumentExpression, visitor, isExpression))
|
|
33225
33235
|
);
|
|
33226
33236
|
},
|
|
33227
33237
|
[210 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33228
33238
|
return isCallChain(node) ? context.factory.updateCallChain(
|
|
33229
33239
|
node,
|
|
33230
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33231
|
-
nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken),
|
|
33240
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33241
|
+
tokenVisitor ? nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken) : node.questionDotToken,
|
|
33232
33242
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
33233
33243
|
nodesVisitor(node.arguments, visitor, isExpression)
|
|
33234
33244
|
) : context.factory.updateCallExpression(
|
|
33235
33245
|
node,
|
|
33236
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33246
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33237
33247
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
33238
33248
|
nodesVisitor(node.arguments, visitor, isExpression)
|
|
33239
33249
|
);
|
|
@@ -33241,7 +33251,7 @@ var visitEachChildTable = {
|
|
|
33241
33251
|
[211 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33242
33252
|
return context.factory.updateNewExpression(
|
|
33243
33253
|
node,
|
|
33244
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33254
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33245
33255
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
33246
33256
|
nodesVisitor(node.arguments, visitor, isExpression)
|
|
33247
33257
|
);
|
|
@@ -33249,29 +33259,29 @@ var visitEachChildTable = {
|
|
|
33249
33259
|
[212 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33250
33260
|
return context.factory.updateTaggedTemplateExpression(
|
|
33251
33261
|
node,
|
|
33252
|
-
nodeVisitor(node.tag, visitor, isExpression),
|
|
33262
|
+
Debug.checkDefined(nodeVisitor(node.tag, visitor, isExpression)),
|
|
33253
33263
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
33254
|
-
nodeVisitor(node.template, visitor, isTemplateLiteral)
|
|
33264
|
+
Debug.checkDefined(nodeVisitor(node.template, visitor, isTemplateLiteral))
|
|
33255
33265
|
);
|
|
33256
33266
|
},
|
|
33257
33267
|
[213 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33258
33268
|
return context.factory.updateTypeAssertion(
|
|
33259
33269
|
node,
|
|
33260
|
-
nodeVisitor(node.type, visitor, isTypeNode),
|
|
33261
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33270
|
+
Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)),
|
|
33271
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33262
33272
|
);
|
|
33263
33273
|
},
|
|
33264
33274
|
[214 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33265
33275
|
return context.factory.updateParenthesizedExpression(
|
|
33266
33276
|
node,
|
|
33267
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33277
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33268
33278
|
);
|
|
33269
33279
|
},
|
|
33270
33280
|
[215 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33271
33281
|
return context.factory.updateFunctionExpression(
|
|
33272
33282
|
node,
|
|
33273
33283
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33274
|
-
nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken),
|
|
33284
|
+
tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken,
|
|
33275
33285
|
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33276
33286
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
33277
33287
|
visitParameterList(node.parameters, visitor, context, nodesVisitor),
|
|
@@ -33286,82 +33296,82 @@ var visitEachChildTable = {
|
|
|
33286
33296
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
33287
33297
|
visitParameterList(node.parameters, visitor, context, nodesVisitor),
|
|
33288
33298
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
33289
|
-
nodeVisitor(node.equalsGreaterThanToken, tokenVisitor, isEqualsGreaterThanToken),
|
|
33299
|
+
tokenVisitor ? Debug.checkDefined(nodeVisitor(node.equalsGreaterThanToken, tokenVisitor, isEqualsGreaterThanToken)) : node.equalsGreaterThanToken,
|
|
33290
33300
|
visitFunctionBody(node.body, visitor, context, nodeVisitor)
|
|
33291
33301
|
);
|
|
33292
33302
|
},
|
|
33293
33303
|
[217 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33294
33304
|
return context.factory.updateDeleteExpression(
|
|
33295
33305
|
node,
|
|
33296
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33306
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33297
33307
|
);
|
|
33298
33308
|
},
|
|
33299
33309
|
[218 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33300
33310
|
return context.factory.updateTypeOfExpression(
|
|
33301
33311
|
node,
|
|
33302
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33312
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33303
33313
|
);
|
|
33304
33314
|
},
|
|
33305
33315
|
[219 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33306
33316
|
return context.factory.updateVoidExpression(
|
|
33307
33317
|
node,
|
|
33308
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33318
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33309
33319
|
);
|
|
33310
33320
|
},
|
|
33311
33321
|
[220 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33312
33322
|
return context.factory.updateAwaitExpression(
|
|
33313
33323
|
node,
|
|
33314
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33324
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33315
33325
|
);
|
|
33316
33326
|
},
|
|
33317
33327
|
[221 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33318
33328
|
return context.factory.updatePrefixUnaryExpression(
|
|
33319
33329
|
node,
|
|
33320
|
-
nodeVisitor(node.operand, visitor, isExpression)
|
|
33330
|
+
Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression))
|
|
33321
33331
|
);
|
|
33322
33332
|
},
|
|
33323
33333
|
[222 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33324
33334
|
return context.factory.updatePostfixUnaryExpression(
|
|
33325
33335
|
node,
|
|
33326
|
-
nodeVisitor(node.operand, visitor, isExpression)
|
|
33336
|
+
Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression))
|
|
33327
33337
|
);
|
|
33328
33338
|
},
|
|
33329
33339
|
[223 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33330
33340
|
return context.factory.updateBinaryExpression(
|
|
33331
33341
|
node,
|
|
33332
|
-
nodeVisitor(node.left, visitor, isExpression),
|
|
33333
|
-
nodeVisitor(node.operatorToken, tokenVisitor, isBinaryOperatorToken),
|
|
33334
|
-
nodeVisitor(node.right, visitor, isExpression)
|
|
33342
|
+
Debug.checkDefined(nodeVisitor(node.left, visitor, isExpression)),
|
|
33343
|
+
tokenVisitor ? Debug.checkDefined(nodeVisitor(node.operatorToken, tokenVisitor, isBinaryOperatorToken)) : node.operatorToken,
|
|
33344
|
+
Debug.checkDefined(nodeVisitor(node.right, visitor, isExpression))
|
|
33335
33345
|
);
|
|
33336
33346
|
},
|
|
33337
33347
|
[224 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33338
33348
|
return context.factory.updateConditionalExpression(
|
|
33339
33349
|
node,
|
|
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)
|
|
33350
|
+
Debug.checkDefined(nodeVisitor(node.condition, visitor, isExpression)),
|
|
33351
|
+
tokenVisitor ? Debug.checkDefined(nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken)) : node.questionToken,
|
|
33352
|
+
Debug.checkDefined(nodeVisitor(node.whenTrue, visitor, isExpression)),
|
|
33353
|
+
tokenVisitor ? Debug.checkDefined(nodeVisitor(node.colonToken, tokenVisitor, isColonToken)) : node.colonToken,
|
|
33354
|
+
Debug.checkDefined(nodeVisitor(node.whenFalse, visitor, isExpression))
|
|
33345
33355
|
);
|
|
33346
33356
|
},
|
|
33347
33357
|
[225 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33348
33358
|
return context.factory.updateTemplateExpression(
|
|
33349
33359
|
node,
|
|
33350
|
-
nodeVisitor(node.head, visitor, isTemplateHead),
|
|
33360
|
+
Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)),
|
|
33351
33361
|
nodesVisitor(node.templateSpans, visitor, isTemplateSpan)
|
|
33352
33362
|
);
|
|
33353
33363
|
},
|
|
33354
33364
|
[226 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33355
33365
|
return context.factory.updateYieldExpression(
|
|
33356
33366
|
node,
|
|
33357
|
-
nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken),
|
|
33367
|
+
tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken,
|
|
33358
33368
|
nodeVisitor(node.expression, visitor, isExpression)
|
|
33359
33369
|
);
|
|
33360
33370
|
},
|
|
33361
33371
|
[227 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33362
33372
|
return context.factory.updateSpreadElement(
|
|
33363
33373
|
node,
|
|
33364
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33374
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33365
33375
|
);
|
|
33366
33376
|
},
|
|
33367
33377
|
[228 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -33377,45 +33387,45 @@ var visitEachChildTable = {
|
|
|
33377
33387
|
[230 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33378
33388
|
return context.factory.updateExpressionWithTypeArguments(
|
|
33379
33389
|
node,
|
|
33380
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33390
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33381
33391
|
nodesVisitor(node.typeArguments, visitor, isTypeNode)
|
|
33382
33392
|
);
|
|
33383
33393
|
},
|
|
33384
33394
|
[231 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33385
33395
|
return context.factory.updateAsExpression(
|
|
33386
33396
|
node,
|
|
33387
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33388
|
-
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33397
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33398
|
+
Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode))
|
|
33389
33399
|
);
|
|
33390
33400
|
},
|
|
33391
33401
|
[235 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33392
33402
|
return context.factory.updateSatisfiesExpression(
|
|
33393
33403
|
node,
|
|
33394
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33395
|
-
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33404
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33405
|
+
Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode))
|
|
33396
33406
|
);
|
|
33397
33407
|
},
|
|
33398
33408
|
[232 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33399
33409
|
return isOptionalChain(node) ? context.factory.updateNonNullChain(
|
|
33400
33410
|
node,
|
|
33401
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33411
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33402
33412
|
) : context.factory.updateNonNullExpression(
|
|
33403
33413
|
node,
|
|
33404
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33414
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33405
33415
|
);
|
|
33406
33416
|
},
|
|
33407
33417
|
[233 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33408
33418
|
return context.factory.updateMetaProperty(
|
|
33409
33419
|
node,
|
|
33410
|
-
nodeVisitor(node.name, visitor, isIdentifier)
|
|
33420
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier))
|
|
33411
33421
|
);
|
|
33412
33422
|
},
|
|
33413
33423
|
// Misc
|
|
33414
33424
|
[236 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33415
33425
|
return context.factory.updateTemplateSpan(
|
|
33416
33426
|
node,
|
|
33417
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33418
|
-
nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)
|
|
33427
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33428
|
+
Debug.checkDefined(nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail))
|
|
33419
33429
|
);
|
|
33420
33430
|
},
|
|
33421
33431
|
// Element
|
|
@@ -33429,20 +33439,20 @@ var visitEachChildTable = {
|
|
|
33429
33439
|
return context.factory.updateVariableStatement(
|
|
33430
33440
|
node,
|
|
33431
33441
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33432
|
-
nodeVisitor(node.declarationList, visitor, isVariableDeclarationList)
|
|
33442
|
+
Debug.checkDefined(nodeVisitor(node.declarationList, visitor, isVariableDeclarationList))
|
|
33433
33443
|
);
|
|
33434
33444
|
},
|
|
33435
33445
|
[241 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33436
33446
|
return context.factory.updateExpressionStatement(
|
|
33437
33447
|
node,
|
|
33438
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33448
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33439
33449
|
);
|
|
33440
33450
|
},
|
|
33441
33451
|
[242 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33442
33452
|
return context.factory.updateIfStatement(
|
|
33443
33453
|
node,
|
|
33444
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33445
|
-
nodeVisitor(node.thenStatement, visitor, isStatement, context.factory.liftToBlock),
|
|
33454
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33455
|
+
Debug.checkDefined(nodeVisitor(node.thenStatement, visitor, isStatement, context.factory.liftToBlock)),
|
|
33446
33456
|
nodeVisitor(node.elseStatement, visitor, isStatement, context.factory.liftToBlock)
|
|
33447
33457
|
);
|
|
33448
33458
|
},
|
|
@@ -33450,13 +33460,13 @@ var visitEachChildTable = {
|
|
|
33450
33460
|
return context.factory.updateDoStatement(
|
|
33451
33461
|
node,
|
|
33452
33462
|
visitIterationBody(node.statement, visitor, context, nodeVisitor),
|
|
33453
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33463
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33454
33464
|
);
|
|
33455
33465
|
},
|
|
33456
33466
|
[244 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33457
33467
|
return context.factory.updateWhileStatement(
|
|
33458
33468
|
node,
|
|
33459
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33469
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33460
33470
|
visitIterationBody(node.statement, visitor, context, nodeVisitor)
|
|
33461
33471
|
);
|
|
33462
33472
|
},
|
|
@@ -33472,17 +33482,17 @@ var visitEachChildTable = {
|
|
|
33472
33482
|
[246 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33473
33483
|
return context.factory.updateForInStatement(
|
|
33474
33484
|
node,
|
|
33475
|
-
nodeVisitor(node.initializer, visitor, isForInitializer),
|
|
33476
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33485
|
+
Debug.checkDefined(nodeVisitor(node.initializer, visitor, isForInitializer)),
|
|
33486
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33477
33487
|
visitIterationBody(node.statement, visitor, context, nodeVisitor)
|
|
33478
33488
|
);
|
|
33479
33489
|
},
|
|
33480
33490
|
[247 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33481
33491
|
return context.factory.updateForOfStatement(
|
|
33482
33492
|
node,
|
|
33483
|
-
nodeVisitor(node.awaitModifier, tokenVisitor, isAwaitKeyword),
|
|
33484
|
-
nodeVisitor(node.initializer, visitor, isForInitializer),
|
|
33485
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33493
|
+
tokenVisitor ? nodeVisitor(node.awaitModifier, tokenVisitor, isAwaitKeyword) : node.awaitModifier,
|
|
33494
|
+
Debug.checkDefined(nodeVisitor(node.initializer, visitor, isForInitializer)),
|
|
33495
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33486
33496
|
visitIterationBody(node.statement, visitor, context, nodeVisitor)
|
|
33487
33497
|
);
|
|
33488
33498
|
},
|
|
@@ -33507,34 +33517,34 @@ var visitEachChildTable = {
|
|
|
33507
33517
|
[251 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33508
33518
|
return context.factory.updateWithStatement(
|
|
33509
33519
|
node,
|
|
33510
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33511
|
-
nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)
|
|
33520
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33521
|
+
Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock))
|
|
33512
33522
|
);
|
|
33513
33523
|
},
|
|
33514
33524
|
[252 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33515
33525
|
return context.factory.updateSwitchStatement(
|
|
33516
33526
|
node,
|
|
33517
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33518
|
-
nodeVisitor(node.caseBlock, visitor, isCaseBlock)
|
|
33527
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33528
|
+
Debug.checkDefined(nodeVisitor(node.caseBlock, visitor, isCaseBlock))
|
|
33519
33529
|
);
|
|
33520
33530
|
},
|
|
33521
33531
|
[253 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33522
33532
|
return context.factory.updateLabeledStatement(
|
|
33523
33533
|
node,
|
|
33524
|
-
nodeVisitor(node.label, visitor, isIdentifier),
|
|
33525
|
-
nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)
|
|
33534
|
+
Debug.checkDefined(nodeVisitor(node.label, visitor, isIdentifier)),
|
|
33535
|
+
Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock))
|
|
33526
33536
|
);
|
|
33527
33537
|
},
|
|
33528
33538
|
[254 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33529
33539
|
return context.factory.updateThrowStatement(
|
|
33530
33540
|
node,
|
|
33531
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33541
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33532
33542
|
);
|
|
33533
33543
|
},
|
|
33534
33544
|
[255 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33535
33545
|
return context.factory.updateTryStatement(
|
|
33536
33546
|
node,
|
|
33537
|
-
nodeVisitor(node.tryBlock, visitor, isBlock),
|
|
33547
|
+
Debug.checkDefined(nodeVisitor(node.tryBlock, visitor, isBlock)),
|
|
33538
33548
|
nodeVisitor(node.catchClause, visitor, isCatchClause),
|
|
33539
33549
|
nodeVisitor(node.finallyBlock, visitor, isBlock)
|
|
33540
33550
|
);
|
|
@@ -33542,8 +33552,8 @@ var visitEachChildTable = {
|
|
|
33542
33552
|
[257 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) {
|
|
33543
33553
|
return context.factory.updateVariableDeclaration(
|
|
33544
33554
|
node,
|
|
33545
|
-
nodeVisitor(node.name, visitor, isBindingName),
|
|
33546
|
-
nodeVisitor(node.exclamationToken, tokenVisitor, isExclamationToken),
|
|
33555
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)),
|
|
33556
|
+
tokenVisitor ? nodeVisitor(node.exclamationToken, tokenVisitor, isExclamationToken) : node.exclamationToken,
|
|
33547
33557
|
nodeVisitor(node.type, visitor, isTypeNode),
|
|
33548
33558
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
33549
33559
|
);
|
|
@@ -33558,7 +33568,7 @@ var visitEachChildTable = {
|
|
|
33558
33568
|
return context.factory.updateFunctionDeclaration(
|
|
33559
33569
|
node,
|
|
33560
33570
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33561
|
-
nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken),
|
|
33571
|
+
tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken,
|
|
33562
33572
|
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33563
33573
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
33564
33574
|
visitParameterList(node.parameters, visitor, context, nodesVisitor),
|
|
@@ -33580,7 +33590,7 @@ var visitEachChildTable = {
|
|
|
33580
33590
|
return context.factory.updateInterfaceDeclaration(
|
|
33581
33591
|
node,
|
|
33582
33592
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33583
|
-
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33593
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)),
|
|
33584
33594
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
33585
33595
|
nodesVisitor(node.heritageClauses, visitor, isHeritageClause),
|
|
33586
33596
|
nodesVisitor(node.members, visitor, isTypeElement)
|
|
@@ -33590,16 +33600,16 @@ var visitEachChildTable = {
|
|
|
33590
33600
|
return context.factory.updateTypeAliasDeclaration(
|
|
33591
33601
|
node,
|
|
33592
33602
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33593
|
-
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33603
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)),
|
|
33594
33604
|
nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration),
|
|
33595
|
-
nodeVisitor(node.type, visitor, isTypeNode)
|
|
33605
|
+
Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode))
|
|
33596
33606
|
);
|
|
33597
33607
|
},
|
|
33598
33608
|
[263 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33599
33609
|
return context.factory.updateEnumDeclaration(
|
|
33600
33610
|
node,
|
|
33601
33611
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33602
|
-
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33612
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)),
|
|
33603
33613
|
nodesVisitor(node.members, visitor, isEnumMember)
|
|
33604
33614
|
);
|
|
33605
33615
|
},
|
|
@@ -33607,7 +33617,7 @@ var visitEachChildTable = {
|
|
|
33607
33617
|
return context.factory.updateModuleDeclaration(
|
|
33608
33618
|
node,
|
|
33609
33619
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33610
|
-
nodeVisitor(node.name, visitor, isModuleName),
|
|
33620
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isModuleName)),
|
|
33611
33621
|
nodeVisitor(node.body, visitor, isModuleBody)
|
|
33612
33622
|
);
|
|
33613
33623
|
},
|
|
@@ -33626,7 +33636,7 @@ var visitEachChildTable = {
|
|
|
33626
33636
|
[267 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33627
33637
|
return context.factory.updateNamespaceExportDeclaration(
|
|
33628
33638
|
node,
|
|
33629
|
-
nodeVisitor(node.name, visitor, isIdentifier)
|
|
33639
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier))
|
|
33630
33640
|
);
|
|
33631
33641
|
},
|
|
33632
33642
|
[268 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -33634,8 +33644,8 @@ var visitEachChildTable = {
|
|
|
33634
33644
|
node,
|
|
33635
33645
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33636
33646
|
node.isTypeOnly,
|
|
33637
|
-
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33638
|
-
nodeVisitor(node.moduleReference, visitor, isModuleReference)
|
|
33647
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)),
|
|
33648
|
+
Debug.checkDefined(nodeVisitor(node.moduleReference, visitor, isModuleReference))
|
|
33639
33649
|
);
|
|
33640
33650
|
},
|
|
33641
33651
|
[269 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -33643,7 +33653,7 @@ var visitEachChildTable = {
|
|
|
33643
33653
|
node,
|
|
33644
33654
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33645
33655
|
nodeVisitor(node.importClause, visitor, isImportClause),
|
|
33646
|
-
nodeVisitor(node.moduleSpecifier, visitor, isExpression),
|
|
33656
|
+
Debug.checkDefined(nodeVisitor(node.moduleSpecifier, visitor, isExpression)),
|
|
33647
33657
|
nodeVisitor(node.assertClause, visitor, isAssertClause)
|
|
33648
33658
|
);
|
|
33649
33659
|
},
|
|
@@ -33657,8 +33667,8 @@ var visitEachChildTable = {
|
|
|
33657
33667
|
[297 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33658
33668
|
return context.factory.updateAssertEntry(
|
|
33659
33669
|
node,
|
|
33660
|
-
nodeVisitor(node.name, visitor, isAssertionKey),
|
|
33661
|
-
nodeVisitor(node.value, visitor, isExpression)
|
|
33670
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isAssertionKey)),
|
|
33671
|
+
Debug.checkDefined(nodeVisitor(node.value, visitor, isExpression))
|
|
33662
33672
|
);
|
|
33663
33673
|
},
|
|
33664
33674
|
[270 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -33672,13 +33682,13 @@ var visitEachChildTable = {
|
|
|
33672
33682
|
[271 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33673
33683
|
return context.factory.updateNamespaceImport(
|
|
33674
33684
|
node,
|
|
33675
|
-
nodeVisitor(node.name, visitor, isIdentifier)
|
|
33685
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier))
|
|
33676
33686
|
);
|
|
33677
33687
|
},
|
|
33678
33688
|
[277 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33679
33689
|
return context.factory.updateNamespaceExport(
|
|
33680
33690
|
node,
|
|
33681
|
-
nodeVisitor(node.name, visitor, isIdentifier)
|
|
33691
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier))
|
|
33682
33692
|
);
|
|
33683
33693
|
},
|
|
33684
33694
|
[272 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
@@ -33692,14 +33702,14 @@ var visitEachChildTable = {
|
|
|
33692
33702
|
node,
|
|
33693
33703
|
node.isTypeOnly,
|
|
33694
33704
|
nodeVisitor(node.propertyName, visitor, isIdentifier),
|
|
33695
|
-
nodeVisitor(node.name, visitor, isIdentifier)
|
|
33705
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier))
|
|
33696
33706
|
);
|
|
33697
33707
|
},
|
|
33698
33708
|
[274 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33699
33709
|
return context.factory.updateExportAssignment(
|
|
33700
33710
|
node,
|
|
33701
33711
|
nodesVisitor(node.modifiers, visitor, isModifier),
|
|
33702
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33712
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33703
33713
|
);
|
|
33704
33714
|
},
|
|
33705
33715
|
[275 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
@@ -33723,59 +33733,59 @@ var visitEachChildTable = {
|
|
|
33723
33733
|
node,
|
|
33724
33734
|
node.isTypeOnly,
|
|
33725
33735
|
nodeVisitor(node.propertyName, visitor, isIdentifier),
|
|
33726
|
-
nodeVisitor(node.name, visitor, isIdentifier)
|
|
33736
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier))
|
|
33727
33737
|
);
|
|
33728
33738
|
},
|
|
33729
33739
|
// Module references
|
|
33730
33740
|
[280 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33731
33741
|
return context.factory.updateExternalModuleReference(
|
|
33732
33742
|
node,
|
|
33733
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33743
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33734
33744
|
);
|
|
33735
33745
|
},
|
|
33736
33746
|
// JSX
|
|
33737
33747
|
[281 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33738
33748
|
return context.factory.updateJsxElement(
|
|
33739
33749
|
node,
|
|
33740
|
-
nodeVisitor(node.openingElement, visitor, isJsxOpeningElement),
|
|
33750
|
+
Debug.checkDefined(nodeVisitor(node.openingElement, visitor, isJsxOpeningElement)),
|
|
33741
33751
|
nodesVisitor(node.children, visitor, isJsxChild),
|
|
33742
|
-
nodeVisitor(node.closingElement, visitor, isJsxClosingElement)
|
|
33752
|
+
Debug.checkDefined(nodeVisitor(node.closingElement, visitor, isJsxClosingElement))
|
|
33743
33753
|
);
|
|
33744
33754
|
},
|
|
33745
33755
|
[282 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33746
33756
|
return context.factory.updateJsxSelfClosingElement(
|
|
33747
33757
|
node,
|
|
33748
|
-
nodeVisitor(node.tagName, visitor, isJsxTagNameExpression),
|
|
33758
|
+
Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)),
|
|
33749
33759
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
33750
|
-
nodeVisitor(node.attributes, visitor, isJsxAttributes)
|
|
33760
|
+
Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes))
|
|
33751
33761
|
);
|
|
33752
33762
|
},
|
|
33753
33763
|
[283 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33754
33764
|
return context.factory.updateJsxOpeningElement(
|
|
33755
33765
|
node,
|
|
33756
|
-
nodeVisitor(node.tagName, visitor, isJsxTagNameExpression),
|
|
33766
|
+
Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)),
|
|
33757
33767
|
nodesVisitor(node.typeArguments, visitor, isTypeNode),
|
|
33758
|
-
nodeVisitor(node.attributes, visitor, isJsxAttributes)
|
|
33768
|
+
Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes))
|
|
33759
33769
|
);
|
|
33760
33770
|
},
|
|
33761
33771
|
[284 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33762
33772
|
return context.factory.updateJsxClosingElement(
|
|
33763
33773
|
node,
|
|
33764
|
-
nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)
|
|
33774
|
+
Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression))
|
|
33765
33775
|
);
|
|
33766
33776
|
},
|
|
33767
33777
|
[285 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33768
33778
|
return context.factory.updateJsxFragment(
|
|
33769
33779
|
node,
|
|
33770
|
-
nodeVisitor(node.openingFragment, visitor, isJsxOpeningFragment),
|
|
33780
|
+
Debug.checkDefined(nodeVisitor(node.openingFragment, visitor, isJsxOpeningFragment)),
|
|
33771
33781
|
nodesVisitor(node.children, visitor, isJsxChild),
|
|
33772
|
-
nodeVisitor(node.closingFragment, visitor, isJsxClosingFragment)
|
|
33782
|
+
Debug.checkDefined(nodeVisitor(node.closingFragment, visitor, isJsxClosingFragment))
|
|
33773
33783
|
);
|
|
33774
33784
|
},
|
|
33775
33785
|
[288 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33776
33786
|
return context.factory.updateJsxAttribute(
|
|
33777
33787
|
node,
|
|
33778
|
-
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33788
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)),
|
|
33779
33789
|
nodeVisitor(node.initializer, visitor, isStringLiteralOrJsxExpression)
|
|
33780
33790
|
);
|
|
33781
33791
|
},
|
|
@@ -33788,20 +33798,20 @@ var visitEachChildTable = {
|
|
|
33788
33798
|
[290 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33789
33799
|
return context.factory.updateJsxSpreadAttribute(
|
|
33790
33800
|
node,
|
|
33791
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33801
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33792
33802
|
);
|
|
33793
33803
|
},
|
|
33794
33804
|
[291 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33795
33805
|
return context.factory.updateJsxExpression(
|
|
33796
33806
|
node,
|
|
33797
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33807
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33798
33808
|
);
|
|
33799
33809
|
},
|
|
33800
33810
|
// Clauses
|
|
33801
33811
|
[292 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33802
33812
|
return context.factory.updateCaseClause(
|
|
33803
33813
|
node,
|
|
33804
|
-
nodeVisitor(node.expression, visitor, isExpression),
|
|
33814
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
|
|
33805
33815
|
nodesVisitor(node.statements, visitor, isStatement)
|
|
33806
33816
|
);
|
|
33807
33817
|
},
|
|
@@ -33821,35 +33831,35 @@ var visitEachChildTable = {
|
|
|
33821
33831
|
return context.factory.updateCatchClause(
|
|
33822
33832
|
node,
|
|
33823
33833
|
nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration),
|
|
33824
|
-
nodeVisitor(node.block, visitor, isBlock)
|
|
33834
|
+
Debug.checkDefined(nodeVisitor(node.block, visitor, isBlock))
|
|
33825
33835
|
);
|
|
33826
33836
|
},
|
|
33827
33837
|
// Property assignments
|
|
33828
33838
|
[299 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33829
33839
|
return context.factory.updatePropertyAssignment(
|
|
33830
33840
|
node,
|
|
33831
|
-
nodeVisitor(node.name, visitor, isPropertyName),
|
|
33832
|
-
nodeVisitor(node.initializer, visitor, isExpression)
|
|
33841
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)),
|
|
33842
|
+
Debug.checkDefined(nodeVisitor(node.initializer, visitor, isExpression))
|
|
33833
33843
|
);
|
|
33834
33844
|
},
|
|
33835
33845
|
[300 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33836
33846
|
return context.factory.updateShorthandPropertyAssignment(
|
|
33837
33847
|
node,
|
|
33838
|
-
nodeVisitor(node.name, visitor, isIdentifier),
|
|
33848
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)),
|
|
33839
33849
|
nodeVisitor(node.objectAssignmentInitializer, visitor, isExpression)
|
|
33840
33850
|
);
|
|
33841
33851
|
},
|
|
33842
33852
|
[301 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33843
33853
|
return context.factory.updateSpreadAssignment(
|
|
33844
33854
|
node,
|
|
33845
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33855
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33846
33856
|
);
|
|
33847
33857
|
},
|
|
33848
33858
|
// Enum
|
|
33849
33859
|
[302 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33850
33860
|
return context.factory.updateEnumMember(
|
|
33851
33861
|
node,
|
|
33852
|
-
nodeVisitor(node.name, visitor, isPropertyName),
|
|
33862
|
+
Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)),
|
|
33853
33863
|
nodeVisitor(node.initializer, visitor, isExpression)
|
|
33854
33864
|
);
|
|
33855
33865
|
},
|
|
@@ -33864,7 +33874,7 @@ var visitEachChildTable = {
|
|
|
33864
33874
|
[356 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
33865
33875
|
return context.factory.updatePartiallyEmittedExpression(
|
|
33866
33876
|
node,
|
|
33867
|
-
nodeVisitor(node.expression, visitor, isExpression)
|
|
33877
|
+
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
33868
33878
|
);
|
|
33869
33879
|
},
|
|
33870
33880
|
[357 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
@@ -35249,7 +35259,7 @@ function sameFiles(a, b, caseSensitive) {
|
|
|
35249
35259
|
return a === b || !caseSensitive && compareStringsCaseInsensitive(a, b) === 0 /* EqualTo */;
|
|
35250
35260
|
}
|
|
35251
35261
|
function getDetailWatchInfo(projectName, watchers) {
|
|
35252
|
-
return `Project: ${projectName} watcher already invoked: ${watchers.isInvoked}`;
|
|
35262
|
+
return `Project: ${projectName} watcher already invoked: ${watchers == null ? void 0 : watchers.isInvoked}`;
|
|
35253
35263
|
}
|
|
35254
35264
|
var TypingsInstaller = class {
|
|
35255
35265
|
constructor(installTypingHost, globalCachePath, safeListPath, typesMapLocation2, throttleLimit, log2 = nullLog) {
|