Query peforms a tree-sitter query on the JavaScript being analyzed. The provided function is called for every query match, with captured nodes grouped into a QueryResult See https://tree-sitter.github.io/tree-sitter/using-parsers#query-syntax for details on query syntax.
(q string, fn func(QueryResult))
| 56 | // See https://tree-sitter.github.io/tree-sitter/using-parsers#query-syntax |
| 57 | // for details on query syntax. |
| 58 | func (a *Analyzer) QueryMulti(q string, fn func(QueryResult)) { |
| 59 | a.rootNode.QueryMulti(q, fn) |
| 60 | } |
| 61 | |
| 62 | // RootNode returns the root note of the parsed JavaScript |
| 63 | func (a *Analyzer) RootNode() *Node { |