From 72a4e1044592057c4a3f39dbb1dbe61b00ea8af6 Mon Sep 17 00:00:00 2001 From: SuperOleg39 Date: Tue, 19 May 2020 20:30:40 +0300 Subject: [PATCH] Chore: Mark SourceCode getComments() method as deprecated (fixes #13293) (#13296) --- 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 591d5a7e454..6b20495b6fc 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)) {