typescript 5.0.0-dev.20221211 → 5.0.0-dev.20221213
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 +121 -75
- package/lib/tsserver.js +168 -95
- package/lib/tsserverlibrary.d.ts +20 -10
- package/lib/tsserverlibrary.js +165 -95
- package/lib/typescript.d.ts +20 -10
- package/lib/typescript.js +162 -95
- package/lib/typingsInstaller.js +57 -40
- package/package.json +1 -1
package/lib/typingsInstaller.js
CHANGED
|
@@ -50,7 +50,7 @@ var path = __toESM(require("path"));
|
|
|
50
50
|
|
|
51
51
|
// src/compiler/corePublic.ts
|
|
52
52
|
var versionMajorMinor = "5.0";
|
|
53
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
53
|
+
var version = `${versionMajorMinor}.0-dev.20221213`;
|
|
54
54
|
|
|
55
55
|
// src/compiler/core.ts
|
|
56
56
|
var emptyArray = [];
|
|
@@ -2853,14 +2853,15 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
|
|
|
2853
2853
|
SyntaxKind4[SyntaxKind4["JSDocTypedefTag"] = 348] = "JSDocTypedefTag";
|
|
2854
2854
|
SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 349] = "JSDocSeeTag";
|
|
2855
2855
|
SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 350] = "JSDocPropertyTag";
|
|
2856
|
-
SyntaxKind4[SyntaxKind4["
|
|
2857
|
-
SyntaxKind4[SyntaxKind4["
|
|
2858
|
-
SyntaxKind4[SyntaxKind4["
|
|
2859
|
-
SyntaxKind4[SyntaxKind4["
|
|
2860
|
-
SyntaxKind4[SyntaxKind4["
|
|
2861
|
-
SyntaxKind4[SyntaxKind4["
|
|
2862
|
-
SyntaxKind4[SyntaxKind4["
|
|
2863
|
-
SyntaxKind4[SyntaxKind4["
|
|
2856
|
+
SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 351] = "JSDocThrowsTag";
|
|
2857
|
+
SyntaxKind4[SyntaxKind4["SyntaxList"] = 352] = "SyntaxList";
|
|
2858
|
+
SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 353] = "NotEmittedStatement";
|
|
2859
|
+
SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 354] = "PartiallyEmittedExpression";
|
|
2860
|
+
SyntaxKind4[SyntaxKind4["CommaListExpression"] = 355] = "CommaListExpression";
|
|
2861
|
+
SyntaxKind4[SyntaxKind4["MergeDeclarationMarker"] = 356] = "MergeDeclarationMarker";
|
|
2862
|
+
SyntaxKind4[SyntaxKind4["EndOfDeclarationMarker"] = 357] = "EndOfDeclarationMarker";
|
|
2863
|
+
SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 358] = "SyntheticReferenceExpression";
|
|
2864
|
+
SyntaxKind4[SyntaxKind4["Count"] = 359] = "Count";
|
|
2864
2865
|
SyntaxKind4[SyntaxKind4["FirstAssignment"] = 63 /* EqualsToken */] = "FirstAssignment";
|
|
2865
2866
|
SyntaxKind4[SyntaxKind4["LastAssignment"] = 78 /* CaretEqualsToken */] = "LastAssignment";
|
|
2866
2867
|
SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 64 /* PlusEqualsToken */] = "FirstCompoundAssignment";
|
|
@@ -2889,9 +2890,9 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
|
|
|
2889
2890
|
SyntaxKind4[SyntaxKind4["LastStatement"] = 256 /* DebuggerStatement */] = "LastStatement";
|
|
2890
2891
|
SyntaxKind4[SyntaxKind4["FirstNode"] = 163 /* QualifiedName */] = "FirstNode";
|
|
2891
2892
|
SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 312 /* JSDocTypeExpression */] = "FirstJSDocNode";
|
|
2892
|
-
SyntaxKind4[SyntaxKind4["LastJSDocNode"] =
|
|
2893
|
+
SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 351 /* JSDocThrowsTag */] = "LastJSDocNode";
|
|
2893
2894
|
SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 330 /* JSDocTag */] = "FirstJSDocTagNode";
|
|
2894
|
-
SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] =
|
|
2895
|
+
SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 351 /* JSDocThrowsTag */] = "LastJSDocTagNode";
|
|
2895
2896
|
SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 126 /* AbstractKeyword */] = "FirstContextualKeyword";
|
|
2896
2897
|
SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 162 /* OfKeyword */] = "LastContextualKeyword";
|
|
2897
2898
|
return SyntaxKind4;
|
|
@@ -9472,8 +9473,8 @@ function isExpressionKind(kind) {
|
|
|
9472
9473
|
case 227 /* SpreadElement */:
|
|
9473
9474
|
case 231 /* AsExpression */:
|
|
9474
9475
|
case 229 /* OmittedExpression */:
|
|
9475
|
-
case
|
|
9476
|
-
case
|
|
9476
|
+
case 355 /* CommaListExpression */:
|
|
9477
|
+
case 354 /* PartiallyEmittedExpression */:
|
|
9477
9478
|
case 235 /* SatisfiesExpression */:
|
|
9478
9479
|
return true;
|
|
9479
9480
|
default:
|
|
@@ -9504,7 +9505,7 @@ function isDeclarationStatementKind(kind) {
|
|
|
9504
9505
|
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 */;
|
|
9505
9506
|
}
|
|
9506
9507
|
function isStatementKindButNotDeclarationKind(kind) {
|
|
9507
|
-
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 ===
|
|
9508
|
+
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 === 353 /* NotEmittedStatement */ || kind === 357 /* EndOfDeclarationMarker */ || kind === 356 /* MergeDeclarationMarker */;
|
|
9508
9509
|
}
|
|
9509
9510
|
function isDeclaration(node) {
|
|
9510
9511
|
if (node.kind === 165 /* TypeParameter */) {
|
|
@@ -9561,7 +9562,7 @@ function isCaseOrDefaultClause(node) {
|
|
|
9561
9562
|
return kind === 292 /* CaseClause */ || kind === 293 /* DefaultClause */;
|
|
9562
9563
|
}
|
|
9563
9564
|
function isJSDocNode(node) {
|
|
9564
|
-
return node.kind >= 312 /* FirstJSDocNode */ && node.kind <=
|
|
9565
|
+
return node.kind >= 312 /* FirstJSDocNode */ && node.kind <= 351 /* LastJSDocNode */;
|
|
9565
9566
|
}
|
|
9566
9567
|
function hasJSDocNodes(node) {
|
|
9567
9568
|
const { jsDoc } = node;
|
|
@@ -9689,7 +9690,7 @@ function getTokenPosOfNode(node, sourceFile, includeJsDoc) {
|
|
|
9689
9690
|
if (includeJsDoc && hasJSDocNodes(node)) {
|
|
9690
9691
|
return getTokenPosOfNode(node.jsDoc[0], sourceFile);
|
|
9691
9692
|
}
|
|
9692
|
-
if (node.kind ===
|
|
9693
|
+
if (node.kind === 352 /* SyntaxList */ && node._children.length > 0) {
|
|
9693
9694
|
return getTokenPosOfNode(node._children[0], sourceFile, includeJsDoc);
|
|
9694
9695
|
}
|
|
9695
9696
|
return skipTrivia(
|
|
@@ -10547,7 +10548,7 @@ function getOperator(expression) {
|
|
|
10547
10548
|
}
|
|
10548
10549
|
function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {
|
|
10549
10550
|
switch (nodeKind) {
|
|
10550
|
-
case
|
|
10551
|
+
case 355 /* CommaListExpression */:
|
|
10551
10552
|
return 0 /* Comma */;
|
|
10552
10553
|
case 227 /* SpreadElement */:
|
|
10553
10554
|
return 1 /* Spread */;
|
|
@@ -10952,7 +10953,7 @@ function getLeftmostExpression(node, stopAtCallExpressions) {
|
|
|
10952
10953
|
case 209 /* ElementAccessExpression */:
|
|
10953
10954
|
case 208 /* PropertyAccessExpression */:
|
|
10954
10955
|
case 232 /* NonNullExpression */:
|
|
10955
|
-
case
|
|
10956
|
+
case 354 /* PartiallyEmittedExpression */:
|
|
10956
10957
|
case 235 /* SatisfiesExpression */:
|
|
10957
10958
|
node = node.expression;
|
|
10958
10959
|
continue;
|
|
@@ -12508,6 +12509,12 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
12508
12509
|
get updateJSDocDeprecatedTag() {
|
|
12509
12510
|
return getJSDocSimpleTagUpdateFunction(334 /* JSDocDeprecatedTag */);
|
|
12510
12511
|
},
|
|
12512
|
+
get createJSDocThrowsTag() {
|
|
12513
|
+
return getJSDocTypeLikeTagCreateFunction(351 /* JSDocThrowsTag */);
|
|
12514
|
+
},
|
|
12515
|
+
get updateJSDocThrowsTag() {
|
|
12516
|
+
return getJSDocTypeLikeTagUpdateFunction(351 /* JSDocThrowsTag */);
|
|
12517
|
+
},
|
|
12511
12518
|
createJSDocUnknownTag,
|
|
12512
12519
|
updateJSDocUnknownTag,
|
|
12513
12520
|
createJSDocText,
|
|
@@ -15457,18 +15464,18 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15457
15464
|
return node;
|
|
15458
15465
|
}
|
|
15459
15466
|
function createSyntaxList(children) {
|
|
15460
|
-
const node = createBaseNode(
|
|
15467
|
+
const node = createBaseNode(352 /* SyntaxList */);
|
|
15461
15468
|
node._children = children;
|
|
15462
15469
|
return node;
|
|
15463
15470
|
}
|
|
15464
15471
|
function createNotEmittedStatement(original) {
|
|
15465
|
-
const node = createBaseNode(
|
|
15472
|
+
const node = createBaseNode(353 /* NotEmittedStatement */);
|
|
15466
15473
|
node.original = original;
|
|
15467
15474
|
setTextRange(node, original);
|
|
15468
15475
|
return node;
|
|
15469
15476
|
}
|
|
15470
15477
|
function createPartiallyEmittedExpression(expression, original) {
|
|
15471
|
-
const node = createBaseNode(
|
|
15478
|
+
const node = createBaseNode(354 /* PartiallyEmittedExpression */);
|
|
15472
15479
|
node.expression = expression;
|
|
15473
15480
|
node.original = original;
|
|
15474
15481
|
node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */;
|
|
@@ -15490,7 +15497,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15490
15497
|
return node;
|
|
15491
15498
|
}
|
|
15492
15499
|
function createCommaListExpression(elements) {
|
|
15493
|
-
const node = createBaseNode(
|
|
15500
|
+
const node = createBaseNode(355 /* CommaListExpression */);
|
|
15494
15501
|
node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements));
|
|
15495
15502
|
node.transformFlags |= propagateChildrenFlags(node.elements);
|
|
15496
15503
|
return node;
|
|
@@ -15499,19 +15506,19 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15499
15506
|
return node.elements !== elements ? update(createCommaListExpression(elements), node) : node;
|
|
15500
15507
|
}
|
|
15501
15508
|
function createEndOfDeclarationMarker(original) {
|
|
15502
|
-
const node = createBaseNode(
|
|
15509
|
+
const node = createBaseNode(357 /* EndOfDeclarationMarker */);
|
|
15503
15510
|
node.emitNode = {};
|
|
15504
15511
|
node.original = original;
|
|
15505
15512
|
return node;
|
|
15506
15513
|
}
|
|
15507
15514
|
function createMergeDeclarationMarker(original) {
|
|
15508
|
-
const node = createBaseNode(
|
|
15515
|
+
const node = createBaseNode(356 /* MergeDeclarationMarker */);
|
|
15509
15516
|
node.emitNode = {};
|
|
15510
15517
|
node.original = original;
|
|
15511
15518
|
return node;
|
|
15512
15519
|
}
|
|
15513
15520
|
function createSyntheticReferenceExpression(expression, thisArg) {
|
|
15514
|
-
const node = createBaseNode(
|
|
15521
|
+
const node = createBaseNode(358 /* SyntheticReferenceExpression */);
|
|
15515
15522
|
node.expression = expression;
|
|
15516
15523
|
node.thisArg = thisArg;
|
|
15517
15524
|
node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg);
|
|
@@ -15659,7 +15666,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15659
15666
|
return updateSatisfiesExpression(outerExpression, expression, outerExpression.type);
|
|
15660
15667
|
case 232 /* NonNullExpression */:
|
|
15661
15668
|
return updateNonNullExpression(outerExpression, expression);
|
|
15662
|
-
case
|
|
15669
|
+
case 354 /* PartiallyEmittedExpression */:
|
|
15663
15670
|
return updatePartiallyEmittedExpression(outerExpression, expression);
|
|
15664
15671
|
}
|
|
15665
15672
|
}
|
|
@@ -16150,7 +16157,7 @@ function getTransformFlagsSubtreeExclusions(kind) {
|
|
|
16150
16157
|
case 213 /* TypeAssertionExpression */:
|
|
16151
16158
|
case 235 /* SatisfiesExpression */:
|
|
16152
16159
|
case 231 /* AsExpression */:
|
|
16153
|
-
case
|
|
16160
|
+
case 354 /* PartiallyEmittedExpression */:
|
|
16154
16161
|
case 214 /* ParenthesizedExpression */:
|
|
16155
16162
|
case 106 /* SuperKeyword */:
|
|
16156
16163
|
return -2147483648 /* OuterExpressionExcludes */;
|
|
@@ -16563,7 +16570,7 @@ function isMetaProperty(node) {
|
|
|
16563
16570
|
return node.kind === 233 /* MetaProperty */;
|
|
16564
16571
|
}
|
|
16565
16572
|
function isCommaListExpression(node) {
|
|
16566
|
-
return node.kind ===
|
|
16573
|
+
return node.kind === 355 /* CommaListExpression */;
|
|
16567
16574
|
}
|
|
16568
16575
|
function isTemplateSpan(node) {
|
|
16569
16576
|
return node.kind === 236 /* TemplateSpan */;
|
|
@@ -16644,7 +16651,7 @@ function isExportSpecifier(node) {
|
|
|
16644
16651
|
return node.kind === 278 /* ExportSpecifier */;
|
|
16645
16652
|
}
|
|
16646
16653
|
function isNotEmittedStatement(node) {
|
|
16647
|
-
return node.kind ===
|
|
16654
|
+
return node.kind === 353 /* NotEmittedStatement */;
|
|
16648
16655
|
}
|
|
16649
16656
|
function isExternalModuleReference(node) {
|
|
16650
16657
|
return node.kind === 280 /* ExternalModuleReference */;
|
|
@@ -16751,7 +16758,7 @@ function findUseStrictPrologue(statements) {
|
|
|
16751
16758
|
return void 0;
|
|
16752
16759
|
}
|
|
16753
16760
|
function isCommaSequence(node) {
|
|
16754
|
-
return node.kind === 223 /* BinaryExpression */ && node.operatorToken.kind === 27 /* CommaToken */ || node.kind ===
|
|
16761
|
+
return node.kind === 223 /* BinaryExpression */ && node.operatorToken.kind === 27 /* CommaToken */ || node.kind === 355 /* CommaListExpression */;
|
|
16755
16762
|
}
|
|
16756
16763
|
function isJSDocTypeAssertion(node) {
|
|
16757
16764
|
return isParenthesizedExpression(node) && isInJSFile(node) && !!getJSDocTypeTag(node);
|
|
@@ -16769,7 +16776,7 @@ function isOuterExpression(node, kinds = 15 /* All */) {
|
|
|
16769
16776
|
return (kinds & 2 /* TypeAssertions */) !== 0;
|
|
16770
16777
|
case 232 /* NonNullExpression */:
|
|
16771
16778
|
return (kinds & 4 /* NonNullAssertions */) !== 0;
|
|
16772
|
-
case
|
|
16779
|
+
case 354 /* PartiallyEmittedExpression */:
|
|
16773
16780
|
return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0;
|
|
16774
16781
|
}
|
|
16775
16782
|
return false;
|
|
@@ -17417,7 +17424,7 @@ var forEachChildTable = {
|
|
|
17417
17424
|
[279 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) {
|
|
17418
17425
|
return visitNodes(cbNode, cbNodes, node.illegalDecorators) || visitNodes(cbNode, cbNodes, node.modifiers);
|
|
17419
17426
|
},
|
|
17420
|
-
[
|
|
17427
|
+
[355 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
|
|
17421
17428
|
return visitNodes(cbNode, cbNodes, node.elements);
|
|
17422
17429
|
},
|
|
17423
17430
|
[281 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) {
|
|
@@ -17485,10 +17492,11 @@ var forEachChildTable = {
|
|
|
17485
17492
|
[341 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) {
|
|
17486
17493
|
return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
|
|
17487
17494
|
},
|
|
17488
|
-
[344 /* JSDocReturnTag */]:
|
|
17489
|
-
[346 /* JSDocTypeTag */]:
|
|
17490
|
-
[345 /* JSDocThisTag */]:
|
|
17491
|
-
[342 /* JSDocEnumTag */]:
|
|
17495
|
+
[344 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag,
|
|
17496
|
+
[346 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag,
|
|
17497
|
+
[345 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag,
|
|
17498
|
+
[342 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag,
|
|
17499
|
+
[351 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag,
|
|
17492
17500
|
[326 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) {
|
|
17493
17501
|
return forEach(node.typeParameters, cbNode) || forEach(node.parameters, cbNode) || visitNode2(cbNode, node.type);
|
|
17494
17502
|
},
|
|
@@ -17506,7 +17514,7 @@ var forEachChildTable = {
|
|
|
17506
17514
|
[339 /* JSDocReadonlyTag */]: forEachChildInJSDocTag,
|
|
17507
17515
|
[334 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag,
|
|
17508
17516
|
[340 /* JSDocOverrideTag */]: forEachChildInJSDocTag,
|
|
17509
|
-
[
|
|
17517
|
+
[354 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
|
|
17510
17518
|
};
|
|
17511
17519
|
function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
|
|
17512
17520
|
return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);
|
|
@@ -17547,7 +17555,7 @@ function forEachChildInOptionalRestOrJSDocParameterModifier(node, cbNode, _cbNod
|
|
|
17547
17555
|
function forEachChildInJSDocParameterOrPropertyTag(node, cbNode, cbNodes) {
|
|
17548
17556
|
return visitNode2(cbNode, node.tagName) || (node.isNameFirst ? visitNode2(cbNode, node.name) || visitNode2(cbNode, node.typeExpression) : visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.name)) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
|
|
17549
17557
|
}
|
|
17550
|
-
function
|
|
17558
|
+
function forEachChildInJSDocTypeLikeTag(node, cbNode, cbNodes) {
|
|
17551
17559
|
return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
|
|
17552
17560
|
}
|
|
17553
17561
|
function forEachChildInJSDocLinkCodeOrPlain(node, cbNode, _cbNodes) {
|
|
@@ -22801,6 +22809,10 @@ var Parser;
|
|
|
22801
22809
|
case "see":
|
|
22802
22810
|
tag = parseSeeTag(start2, tagName, margin, indentText);
|
|
22803
22811
|
break;
|
|
22812
|
+
case "exception":
|
|
22813
|
+
case "throws":
|
|
22814
|
+
tag = parseThrowsTag(start2, tagName, margin, indentText);
|
|
22815
|
+
break;
|
|
22804
22816
|
default:
|
|
22805
22817
|
tag = parseUnknownTag(start2, tagName, margin, indentText);
|
|
22806
22818
|
break;
|
|
@@ -23053,6 +23065,11 @@ var Parser;
|
|
|
23053
23065
|
const comments2 = indent2 !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), indent2, indentText) : void 0;
|
|
23054
23066
|
return finishNode(factory2.createJSDocSeeTag(tagName, nameExpression, comments2), start2);
|
|
23055
23067
|
}
|
|
23068
|
+
function parseThrowsTag(start2, tagName, indent2, indentText) {
|
|
23069
|
+
const typeExpression = tryParseTypeExpression();
|
|
23070
|
+
const comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText);
|
|
23071
|
+
return finishNode(factory2.createJSDocThrowsTag(tagName, typeExpression, comment), start2);
|
|
23072
|
+
}
|
|
23056
23073
|
function parseAuthorTag(start2, tagName, indent2, indentText) {
|
|
23057
23074
|
const commentStart = getNodePos();
|
|
23058
23075
|
const textOnly = parseAuthorNameAndEmail();
|
|
@@ -31066,13 +31083,13 @@ var visitEachChildTable = {
|
|
|
31066
31083
|
visitLexicalEnvironment(node.statements, visitor, context)
|
|
31067
31084
|
);
|
|
31068
31085
|
},
|
|
31069
|
-
[
|
|
31086
|
+
[354 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
31070
31087
|
return context.factory.updatePartiallyEmittedExpression(
|
|
31071
31088
|
node,
|
|
31072
31089
|
nodeVisitor(node.expression, visitor, isExpression)
|
|
31073
31090
|
);
|
|
31074
31091
|
},
|
|
31075
|
-
[
|
|
31092
|
+
[355 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
31076
31093
|
return context.factory.updateCommaListExpression(
|
|
31077
31094
|
node,
|
|
31078
31095
|
nodesVisitor(node.elements, visitor, isExpression)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.0.0-dev.
|
|
5
|
+
"version": "5.0.0-dev.20221213",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|