UNPKG

@codeque/core

Version:

Multiline code search for every language. Structural code search for JavaScript, TypeScript, HTML and CSS

12 lines (11 loc) 565 B
import { NodesComparator } from '../../../types'; /** * Support for matching function params with default value or object/array destructuring with default value * * Since we comparing query node with nested node from file, we have to do so before wildcards comparison * * Q: const {$$} = query; C: const {data = []} = query * Q: const [$$] = query; C: const [data = []] = query * Q: function some($$) {}; C: function some(param = null) {} */ export declare const createWildcardForAssignmentPatternOrDefaultParamValuesNodesComparator: () => NodesComparator;