Skip to content

Commit aea2ee5

Browse files
committed
Fix the order of JSDocTag kinds
JSDocTypeLiteral should not be grouped with the JSDocTag kinds, so move it just before they start, instead of just after. This updates the LastJSDocNode and LastJSDocTagNode.
1 parent 6c71ca8 commit aea2ee5

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

src/compiler/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ namespace ts {
362362
JSDocFunctionType,
363363
JSDocVariadicType,
364364
JSDocComment,
365+
JSDocTypeLiteral,
365366
JSDocTag,
366367
JSDocAugmentsTag,
367368
JSDocClassTag,
@@ -371,7 +372,6 @@ namespace ts {
371372
JSDocTemplateTag,
372373
JSDocTypedefTag,
373374
JSDocPropertyTag,
374-
JSDocTypeLiteral,
375375

376376
// Synthesized list
377377
SyntaxList,
@@ -413,9 +413,9 @@ namespace ts {
413413
LastBinaryOperator = CaretEqualsToken,
414414
FirstNode = QualifiedName,
415415
FirstJSDocNode = JSDocTypeExpression,
416-
LastJSDocNode = JSDocTypeLiteral,
416+
LastJSDocNode = JSDocPropertyTag,
417417
FirstJSDocTagNode = JSDocTag,
418-
LastJSDocTagNode = JSDocTypeLiteral
418+
LastJSDocTagNode = JSDocPropertyTag
419419
}
420420

421421
export const enum NodeFlags {

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -336,16 +336,16 @@ declare namespace ts {
336336
JSDocFunctionType = 273,
337337
JSDocVariadicType = 274,
338338
JSDocComment = 275,
339-
JSDocTag = 276,
340-
JSDocAugmentsTag = 277,
341-
JSDocClassTag = 278,
342-
JSDocParameterTag = 279,
343-
JSDocReturnTag = 280,
344-
JSDocTypeTag = 281,
345-
JSDocTemplateTag = 282,
346-
JSDocTypedefTag = 283,
347-
JSDocPropertyTag = 284,
348-
JSDocTypeLiteral = 285,
339+
JSDocTypeLiteral = 276,
340+
JSDocTag = 277,
341+
JSDocAugmentsTag = 278,
342+
JSDocClassTag = 279,
343+
JSDocParameterTag = 280,
344+
JSDocReturnTag = 281,
345+
JSDocTypeTag = 282,
346+
JSDocTemplateTag = 283,
347+
JSDocTypedefTag = 284,
348+
JSDocPropertyTag = 285,
349349
SyntaxList = 286,
350350
NotEmittedStatement = 287,
351351
PartiallyEmittedExpression = 288,
@@ -380,7 +380,7 @@ declare namespace ts {
380380
FirstNode = 143,
381381
FirstJSDocNode = 267,
382382
LastJSDocNode = 285,
383-
FirstJSDocTagNode = 276,
383+
FirstJSDocTagNode = 277,
384384
LastJSDocTagNode = 285,
385385
}
386386
enum NodeFlags {

tests/baselines/reference/api/typescript.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -336,16 +336,16 @@ declare namespace ts {
336336
JSDocFunctionType = 273,
337337
JSDocVariadicType = 274,
338338
JSDocComment = 275,
339-
JSDocTag = 276,
340-
JSDocAugmentsTag = 277,
341-
JSDocClassTag = 278,
342-
JSDocParameterTag = 279,
343-
JSDocReturnTag = 280,
344-
JSDocTypeTag = 281,
345-
JSDocTemplateTag = 282,
346-
JSDocTypedefTag = 283,
347-
JSDocPropertyTag = 284,
348-
JSDocTypeLiteral = 285,
339+
JSDocTypeLiteral = 276,
340+
JSDocTag = 277,
341+
JSDocAugmentsTag = 278,
342+
JSDocClassTag = 279,
343+
JSDocParameterTag = 280,
344+
JSDocReturnTag = 281,
345+
JSDocTypeTag = 282,
346+
JSDocTemplateTag = 283,
347+
JSDocTypedefTag = 284,
348+
JSDocPropertyTag = 285,
349349
SyntaxList = 286,
350350
NotEmittedStatement = 287,
351351
PartiallyEmittedExpression = 288,
@@ -380,7 +380,7 @@ declare namespace ts {
380380
FirstNode = 143,
381381
FirstJSDocNode = 267,
382382
LastJSDocNode = 285,
383-
FirstJSDocTagNode = 276,
383+
FirstJSDocTagNode = 277,
384384
LastJSDocTagNode = 285,
385385
}
386386
enum NodeFlags {

0 commit comments

Comments
 (0)