Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(experimental-utils): remove getComments from ESLint SourceCode types #3766

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 0 additions & 9 deletions packages/experimental-utils/src/ts-eslint/SourceCode.ts
Expand Up @@ -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
Expand Down