Query compiles pattern and executes it against the parsed tree, returning all
matches with named captures resolved to their text content.
Predicate filters (#match?, #eq?, etc.) declared in the pattern are applied.
const (
LangGo Lang = iota LangRuby
LangPython
LangJavaScript
// LangTypeScript covers both .ts and .tsx: it always parses with the// TSX grammar, a strict syntactic superset of plain TypeScript, so one// Lang value suffices for both.
LangTypeScript
)