From cbde873ed62f308fd459048ed55d6490b1662256 Mon Sep 17 00:00:00 2001 From: SuperOleg39 Date: Wed, 13 May 2020 17:57:07 +0300 Subject: [PATCH] Docs: Mark SourceCode getComments() method as deprecated (fixes #13293) --- lib/source-code/source-code.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/source-code/source-code.js b/lib/source-code/source-code.js index 591d5a7e454e..6b20495b6fc8 100644 --- a/lib/source-code/source-code.js +++ b/lib/source-code/source-code.js @@ -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)) {