@@ -368,20 +368,21 @@ declare namespace ts {
368368 JSDocAugmentsTag = 293 ,
369369 JSDocClassTag = 294 ,
370370 JSDocCallbackTag = 295 ,
371- JSDocParameterTag = 296 ,
372- JSDocReturnTag = 297 ,
373- JSDocThisTag = 298 ,
374- JSDocTypeTag = 299 ,
375- JSDocTemplateTag = 300 ,
376- JSDocTypedefTag = 301 ,
377- JSDocPropertyTag = 302 ,
378- SyntaxList = 303 ,
379- NotEmittedStatement = 304 ,
380- PartiallyEmittedExpression = 305 ,
381- CommaListExpression = 306 ,
382- MergeDeclarationMarker = 307 ,
383- EndOfDeclarationMarker = 308 ,
384- Count = 309 ,
371+ JSDocEnumTag = 296 ,
372+ JSDocParameterTag = 297 ,
373+ JSDocReturnTag = 298 ,
374+ JSDocThisTag = 299 ,
375+ JSDocTypeTag = 300 ,
376+ JSDocTemplateTag = 301 ,
377+ JSDocTypedefTag = 302 ,
378+ JSDocPropertyTag = 303 ,
379+ SyntaxList = 304 ,
380+ NotEmittedStatement = 305 ,
381+ PartiallyEmittedExpression = 306 ,
382+ CommaListExpression = 307 ,
383+ MergeDeclarationMarker = 308 ,
384+ EndOfDeclarationMarker = 309 ,
385+ Count = 310 ,
385386 FirstAssignment = 58 ,
386387 LastAssignment = 70 ,
387388 FirstCompoundAssignment = 59 ,
@@ -408,9 +409,9 @@ declare namespace ts {
408409 LastBinaryOperator = 70 ,
409410 FirstNode = 146 ,
410411 FirstJSDocNode = 281 ,
411- LastJSDocNode = 302 ,
412+ LastJSDocNode = 303 ,
412413 FirstJSDocTagNode = 292 ,
413- LastJSDocTagNode = 302
414+ LastJSDocTagNode = 303
414415 }
415416 enum NodeFlags {
416417 None = 0 ,
@@ -479,7 +480,7 @@ declare namespace ts {
479480 }
480481 interface JSDocContainer {
481482 }
482- type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | LabeledStatement | ExpressionStatement | VariableStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | PropertyDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | EndOfFileToken ;
483+ type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | LabeledStatement | ExpressionStatement | VariableStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | PropertyDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | EndOfFileToken ;
483484 type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType ;
484485 type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute ;
485486 type HasExpressionInitializer = VariableDeclaration | ParameterDeclaration | BindingElement | PropertySignature | PropertyDeclaration | PropertyAssignment | EnumMember ;
@@ -1438,7 +1439,7 @@ declare namespace ts {
14381439 kind : SyntaxKind . NamespaceExportDeclaration ;
14391440 name : Identifier ;
14401441 }
1441- interface ExportDeclaration extends DeclarationStatement {
1442+ interface ExportDeclaration extends DeclarationStatement , JSDocContainer {
14421443 kind : SyntaxKind . ExportDeclaration ;
14431444 parent : SourceFile | ModuleBlock ;
14441445 /** Will not be assigned in the case of `export * from "foo";` */
@@ -1557,6 +1558,10 @@ declare namespace ts {
15571558 interface JSDocClassTag extends JSDocTag {
15581559 kind : SyntaxKind . JSDocClassTag ;
15591560 }
1561+ interface JSDocEnumTag extends JSDocTag {
1562+ kind : SyntaxKind . JSDocEnumTag ;
1563+ typeExpression ?: JSDocTypeExpression ;
1564+ }
15601565 interface JSDocThisTag extends JSDocTag {
15611566 kind : SyntaxKind . JSDocThisTag ;
15621567 typeExpression ?: JSDocTypeExpression ;
@@ -3221,6 +3226,8 @@ declare namespace ts {
32213226 function getJSDocAugmentsTag ( node : Node ) : JSDocAugmentsTag | undefined ;
32223227 /** Gets the JSDoc class tag for the node if present */
32233228 function getJSDocClassTag ( node : Node ) : JSDocClassTag | undefined ;
3229+ /** Gets the JSDoc enum tag for the node if present */
3230+ function getJSDocEnumTag ( node : Node ) : JSDocEnumTag | undefined ;
32243231 /** Gets the JSDoc this tag for the node if present */
32253232 function getJSDocThisTag ( node : Node ) : JSDocThisTag | undefined ;
32263233 /** Gets the JSDoc return tag for the node if present */
@@ -3413,6 +3420,7 @@ declare namespace ts {
34133420 function isJSDoc ( node : Node ) : node is JSDoc ;
34143421 function isJSDocAugmentsTag ( node : Node ) : node is JSDocAugmentsTag ;
34153422 function isJSDocClassTag ( node : Node ) : node is JSDocClassTag ;
3423+ function isJSDocEnumTag ( node : Node ) : node is JSDocEnumTag ;
34163424 function isJSDocThisTag ( node : Node ) : node is JSDocThisTag ;
34173425 function isJSDocParameterTag ( node : Node ) : node is JSDocParameterTag ;
34183426 function isJSDocReturnTag ( node : Node ) : node is JSDocReturnTag ;
0 commit comments