File tree 1 file changed +2
-12
lines changed
1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -19789,14 +19789,6 @@ namespace ts {
19789
19789
}
19790
19790
}
19791
19791
19792
- function checkJSDocComment(node: JSDoc) {
19793
- if ((node as JSDoc).tags) {
19794
- for (const tag of (node as JSDoc).tags) {
19795
- checkSourceElement(tag);
19796
- }
19797
- }
19798
- }
19799
-
19800
19792
function checkFunctionOrMethodDeclaration(node: FunctionDeclaration | MethodDeclaration): void {
19801
19793
checkDecorators(node);
19802
19794
checkSignatureDeclaration(node);
@@ -22432,8 +22424,8 @@ namespace ts {
22432
22424
}
22433
22425
22434
22426
if (isInJavaScriptFile(node) && (node as JSDocContainer).jsDoc) {
22435
- for (const jsdoc of (node as JSDocContainer).jsDoc) {
22436
- checkJSDocComment(jsdoc );
22427
+ for (const { tags } of (node as JSDocContainer).jsDoc) {
22428
+ forEach(tags, checkSourceElement );
22437
22429
}
22438
22430
}
22439
22431
@@ -22493,8 +22485,6 @@ namespace ts {
22493
22485
return checkSourceElement((<ParenthesizedTypeNode | TypeOperatorNode>node).type);
22494
22486
case SyntaxKind.JSDocTypedefTag:
22495
22487
return checkJSDocTypedefTag(node as JSDocTypedefTag);
22496
- case SyntaxKind.JSDocComment:
22497
- return checkJSDocComment(node as JSDoc);
22498
22488
case SyntaxKind.JSDocParameterTag:
22499
22489
return checkSourceElement((node as JSDocParameterTag).typeExpression);
22500
22490
case SyntaxKind.JSDocFunctionType:
You can’t perform that action at this time.
0 commit comments