Query peforms a tree-sitter query on the JavaScript being analyzed. The provided function is called once for every node that captured by the query. See https://tree-sitter.github.io/tree-sitter/using-parsers#query-syntax for details on query syntax.
(q string, fn func(*Node))
| 47 | // See https://tree-sitter.github.io/tree-sitter/using-parsers#query-syntax |
| 48 | // for details on query syntax. |
| 49 | func (a *Analyzer) Query(q string, fn func(*Node)) { |
| 50 | a.rootNode.Query(q, fn) |
| 51 | } |
| 52 | |
| 53 | // Query peforms a tree-sitter query on the JavaScript being analyzed. |
| 54 | // The provided function is called for every query match, with captured nodes |
no outgoing calls
no test coverage detected