mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Remove redundant handler for JSDocComment in checkSourceElement (#18771)
This commit is contained in:
parent
70087ed0d8
commit
5c239fa64c
@ -19789,14 +19789,6 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
|
||||
function checkJSDocComment(node: JSDoc) {
|
||||
if ((node as JSDoc).tags) {
|
||||
for (const tag of (node as JSDoc).tags) {
|
||||
checkSourceElement(tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function checkFunctionOrMethodDeclaration(node: FunctionDeclaration | MethodDeclaration): void {
|
||||
checkDecorators(node);
|
||||
checkSignatureDeclaration(node);
|
||||
@ -22432,8 +22424,8 @@ namespace ts {
|
||||
}
|
||||
|
||||
if (isInJavaScriptFile(node) && (node as JSDocContainer).jsDoc) {
|
||||
for (const jsdoc of (node as JSDocContainer).jsDoc) {
|
||||
checkJSDocComment(jsdoc);
|
||||
for (const { tags } of (node as JSDocContainer).jsDoc) {
|
||||
forEach(tags, checkSourceElement);
|
||||
}
|
||||
}
|
||||
|
||||
@ -22493,8 +22485,6 @@ namespace ts {
|
||||
return checkSourceElement((<ParenthesizedTypeNode | TypeOperatorNode>node).type);
|
||||
case SyntaxKind.JSDocTypedefTag:
|
||||
return checkJSDocTypedefTag(node as JSDocTypedefTag);
|
||||
case SyntaxKind.JSDocComment:
|
||||
return checkJSDocComment(node as JSDoc);
|
||||
case SyntaxKind.JSDocParameterTag:
|
||||
return checkSourceElement((node as JSDocParameterTag).typeExpression);
|
||||
case SyntaxKind.JSDocFunctionType:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user