From 52405385e0a18cdc5ed824e3f546dc1d39d53ca6 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sat, 21 Aug 2021 20:37:20 -0400 Subject: [PATCH] feat(experimental-utils): remove `getComments` from `ESLint` `SourceCode` types (#3766) --- packages/experimental-utils/src/ts-eslint/SourceCode.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/experimental-utils/src/ts-eslint/SourceCode.ts b/packages/experimental-utils/src/ts-eslint/SourceCode.ts index 582f643311a..669ad7113c9 100644 --- a/packages/experimental-utils/src/ts-eslint/SourceCode.ts +++ b/packages/experimental-utils/src/ts-eslint/SourceCode.ts @@ -245,15 +245,6 @@ declare class SourceCodeBase extends TokenStore { * @returns An array of comment nodes. */ getAllComments(): TSESTree.Comment[]; - /** - * Gets all comments for the given node. - * @param node The AST node to get the comments for. - * @returns An object containing a leading and trailing array of comments indexed by their position. - */ - getComments(node: TSESTree.Node): { - leading: TSESTree.Comment[]; - trailing: TSESTree.Comment[]; - }; /** * Converts a (line, column) pair into a range index. * @param loc A line/column location