Skip to content

Commit 3d5d2a6

Browse files
committed
oops, really check @see
also delete comment in checker, that's for a different experiment
1 parent 88e0434 commit 3d5d2a6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44038,7 +44038,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4403844038

4403944039
function checkSourceElementWorker(node: Node): void {
4404044040
if (canHaveJSDoc(node)) {
44041-
// TODO: This part still needs to be disabled for tsc in a lazy-jsdoc-parsing build
4404244041
forEach(node.jsDoc, ({ comment, tags }) => {
4404344042
checkJSDocCommentWorker(comment);
4404444043
forEach(tags, tag => {

src/compiler/parser.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,8 +1767,10 @@ namespace Parser {
17671767
function shouldCheckJSDoc<T extends HasJSDoc>(node: T, comment: ts.CommentRange) {
17681768
if (isInTsserver) return true;
17691769
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;
17721774
}
17731775

17741776
let hasDeprecatedTag = false;

0 commit comments

Comments
 (0)