import { Node } from 'typescript' ; import { findMatches } from '../match' ; import { TSQuerySelectorNode } from '../tsquery-types' ; export function not ( node , selector , ancestry ) { return ! selector . selectors . some ( childSelector => { return findMatches ( node , childSelector , ancestry ) ; } ) ; }