securityos/node_modules/eslint-plugin-sonarjs/lib/utils/equivalence.d.ts

8 lines
462 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import type { TSESTree, TSESLint } from '@typescript-eslint/experimental-utils';
/**
* Equivalence is implemented by comparing node types and their tokens.
* Classic implementation would recursively compare children,
* but "estree" doesn't provide access to children when node type is unknown
*/
export declare function areEquivalent(first: TSESTree.Node | TSESTree.Node[], second: TSESTree.Node | TSESTree.Node[], sourceCode: TSESLint.SourceCode): boolean;