File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44038,7 +44038,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
44038
44038
44039
44039
function checkSourceElementWorker(node: Node): void {
44040
44040
if (canHaveJSDoc(node)) {
44041
- // TODO: This part still needs to be disabled for tsc in a lazy-jsdoc-parsing build
44042
44041
forEach(node.jsDoc, ({ comment, tags }) => {
44043
44042
checkJSDocCommentWorker(comment);
44044
44043
forEach(tags, tag => {
Original file line number Diff line number Diff line change @@ -1767,8 +1767,10 @@ namespace Parser {
1767
1767
function shouldCheckJSDoc<T extends HasJSDoc>(node: T, comment: ts.CommentRange) {
1768
1768
if (isInTsserver) return true;
1769
1769
if (node.flags & NodeFlags.JavaScriptFile) return true;
1770
- const i = sourceText.indexOf("@link", comment.pos)
1771
- if (comment.pos < i && i < comment.end) return true;
1770
+ const link = sourceText.indexOf("@link", comment.pos);
1771
+ const see = sourceText.indexOf("@see", comment.pos);
1772
+ if (comment.pos < link && link < comment.end) return true;
1773
+ if (comment.pos < see && see < comment.end) return true;
1772
1774
}
1773
1775
1774
1776
let hasDeprecatedTag = false;
You can’t perform that action at this time.
0 commit comments