File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -805,7 +805,6 @@ import {
805805 JSDoc,
806806 JSDocAugmentsTag,
807807 JSDocCallbackTag,
808- JSDocComment,
809808 JSDocFunctionType,
810809 JSDocImplementsTag,
811810 JSDocImportTag,
@@ -49057,16 +49056,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4905749056 return;
4905849057 }
4905949058
49060- if (canHaveJSDoc(node)) {
49061- forEach(node.jsDoc, ({ comment, tags }) => {
49062- checkJSDocCommentWorker(comment);
49063- forEach(tags, tag => {
49064- checkJSDocCommentWorker(tag.comment);
49065- if (isInJSFile(node)) {
49066- checkSourceElement(tag);
49067- }
49068- });
49069- });
49059+ if (isInJSFile(node) && canHaveJSDoc(node)) {
49060+ forEach(node.jsDoc, ({ tags }) => forEach(tags, checkSourceElement));
4907049061 }
4907149062
4907249063 const kind = node.kind;
@@ -49342,16 +49333,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4934249333 return false;
4934349334 }
4934449335
49345- function checkJSDocCommentWorker(node: string | readonly JSDocComment[] | undefined) {
49346- if (isArray(node)) {
49347- forEach(node, tag => {
49348- if (isJSDocLinkLike(tag)) {
49349- checkSourceElement(tag);
49350- }
49351- });
49352- }
49353- }
49354-
4935549336 function checkJSDocTypeIsInJsFile(node: Node): void {
4935649337 if (!isInJSFile(node)) {
4935749338 if (isJSDocNonNullableType(node) || isJSDocNullableType(node)) {
You can’t perform that action at this time.
0 commit comments