MCPcopy Create free account
hub / github.com/BishopFox/jsluice / QueryMulti

Method QueryMulti

analyzer.go:58–60  ·  view source on GitHub ↗

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))

Source from the content-addressed store, hash-verified

56// See https://tree-sitter.github.io/tree-sitter/using-parsers#query-syntax
57// for details on query syntax.
58func (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
63func (a *Analyzer) RootNode() *Node {

Callers 1

runQueryFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected