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

Method Query

analyzer.go:49–51  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

47// See https://tree-sitter.github.io/tree-sitter/using-parsers#query-syntax
48// for details on query syntax.
49func (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

Callers 2

GetSecretsMethod · 0.95
GetURLsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected