Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Chore: Mark SourceCode getComments() method as deprecated (fixes #13293
…) (#13296)
  • Loading branch information
SuperOleg39 committed May 19, 2020
1 parent 7f14846 commit 72a4e10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/source-code/source-code.js
Expand Up @@ -305,6 +305,7 @@ class SourceCode extends TokenStore {
* @returns {Object} An object containing a leading and trailing array
* of comments indexed by their position.
* @public
* @deprecated replaced by getCommentsBefore(), getCommentsAfter(), and getCommentsInside().
*/
getComments(node) {
if (this._commentCache.has(node)) {
Expand Down

0 comments on commit 72a4e10

Please sign in to comment.