From bba61c8ec51dd4630d6be6af591fdd8a09d7d702 Mon Sep 17 00:00:00 2001 From: Srijan Saurav <68371686+srijan-deepsource@users.noreply.github.com> Date: Mon, 30 May 2022 16:19:26 +0530 Subject: [PATCH] Revert "docs: mark `SourceCode#getJSDocComment` deprecated in working-with-rules (#15829)" This reverts commit c7eb776e78f00a235771d5b9dca6e9e445061b42. --- docs/src/developer-guide/working-with-rules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/developer-guide/working-with-rules.md b/docs/src/developer-guide/working-with-rules.md index e8d5a22bfda..0a2d202cf98 100644 --- a/docs/src/developer-guide/working-with-rules.md +++ b/docs/src/developer-guide/working-with-rules.md @@ -541,6 +541,7 @@ Once you have an instance of `SourceCode`, you can use the following methods on * `getCommentsBefore(nodeOrToken)` - returns an array of comment tokens that occur directly before the given node or token. * `getCommentsAfter(nodeOrToken)` - returns an array of comment tokens that occur directly after the given node or token. * `getCommentsInside(node)` - returns an array of all comment tokens inside a given node. +* `getJSDocComment(node)` - returns the JSDoc comment for a given node or `null` if there is none. * `isSpaceBetween(nodeOrToken, nodeOrToken)` - returns true if there is a whitespace character between the two tokens or, if given a node, the last token of the first node and the first token of the second node. * `getFirstToken(node, skipOptions)` - returns the first token representing the given node. * `getFirstTokens(node, countOptions)` - returns the first `count` tokens representing the given node. @@ -597,7 +598,6 @@ Please note that the following methods have been deprecated and will be removed * `getTokenOrCommentBefore()` - replaced by `getTokenBefore()` with the `{ includeComments: true }` option * `getTokenOrCommentAfter()` - replaced by `getTokenAfter()` with the `{ includeComments: true }` option * `isSpaceBetweenTokens()` - replaced by `isSpaceBetween()` -* `getJSDocComment()` ### Options Schemas