Skip to content

Commit 5240538

Browse files
author
Josh Goldberg
authored
feat(experimental-utils): remove getComments from ESLint SourceCode types (#3766)
1 parent 99bb19d commit 5240538

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/experimental-utils/src/ts-eslint/SourceCode.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -245,15 +245,6 @@ declare class SourceCodeBase extends TokenStore {
245245
* @returns An array of comment nodes.
246246
*/
247247
getAllComments(): TSESTree.Comment[];
248-
/**
249-
* Gets all comments for the given node.
250-
* @param node The AST node to get the comments for.
251-
* @returns An object containing a leading and trailing array of comments indexed by their position.
252-
*/
253-
getComments(node: TSESTree.Node): {
254-
leading: TSESTree.Comment[];
255-
trailing: TSESTree.Comment[];
256-
};
257248
/**
258249
* Converts a (line, column) pair into a range index.
259250
* @param loc A line/column location

0 commit comments

Comments
 (0)