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)) {