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

Function rangeVars

internal/compiler/parse.go:184–194  ·  view source on GitHub ↗
(root ast.Node)

Source from the content-addressed store, hash-verified

182}
183
184func rangeVars(root ast.Node) []*ast.RangeVar {
185 var vars []*ast.RangeVar
186 find := astutils.VisitorFunc(func(node ast.Node) {
187 switch n := node.(type) {
188 case *ast.RangeVar:
189 vars = append(vars, n)
190 }
191 })
192 astutils.Walk(find, root)
193 return vars
194}
195
196func uniqueParamRefs(in []paramRef, dollar bool) []paramRef {
197 m := make(map[int]bool, len(in))

Callers 1

_analyzeQueryMethod · 0.85

Calls 2

VisitorFuncFuncType · 0.92
WalkFunction · 0.92

Tested by

no test coverage detected