( isTargetNode: (node: SyntaxNode) => boolean )
| 3 | import { NodeFinder } from "../typings/Types"; |
| 4 | |
| 5 | export const nodeFinder = ( |
| 6 | isTargetNode: (node: SyntaxNode) => boolean |
| 7 | ): NodeFinder => { |
| 8 | return (node: SyntaxNode) => { |
| 9 | return isTargetNode(node) ? node : null; |
| 10 | }; |
| 11 | }; |
| 12 | |
| 13 | /** |
| 14 | * Given a list of node finders returns a new node finder which applies them in |
no outgoing calls
no test coverage detected