MCPcopy
hub / github.com/sqlc-dev/sqlc / Search

Function Search

internal/sql/astutils/search.go:17–21  ·  view source on GitHub ↗
(root ast.Node, f func(ast.Node) bool)

Source from the content-addressed store, hash-verified

15}
16
17func Search(root ast.Node, f func(ast.Node) bool) *ast.List {
18 ns := &nodeSearch{check: f, list: &ast.List{}}
19 Walk(ns, root)
20 return ns.list
21}

Callers 8

NamedParametersFunction · 0.92
validateBatchFunction · 0.92
sourceTablesMethod · 0.92
expandMethod · 0.92
parseQueryMethod · 0.92
resolveCatalogRefsMethod · 0.92
hasStarAnywhereFunction · 0.92
hasStarInListFunction · 0.92

Calls 1

WalkFunction · 0.85

Tested by

no test coverage detected