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

Function convertSlice

internal/engine/postgresql/convert.go:76–82  ·  view source on GitHub ↗
(nodes []*pg.Node)

Source from the content-addressed store, hash-verified

74}
75
76func convertSlice(nodes []*pg.Node) *ast.List {
77 out := &ast.List{}
78 for _, n := range nodes {
79 out.Items = append(out.Items, convertNode(n))
80 }
81 return out
82}
83
84func convert(node *pg.Node) (ast.Node, error) {
85 return convertNode(node), nil

Callers 15

convertA_ArrayExprFunction · 0.85
convertA_ExprFunction · 0.85
convertA_IndirectionFunction · 0.85
convertAccessPrivFunction · 0.85
convertAggrefFunction · 0.85
convertAliasFunction · 0.85
convertAlterDatabaseStmtFunction · 0.85
convertAlterDomainStmtFunction · 0.85
convertAlterEnumStmtFunction · 0.85

Calls 1

convertNodeFunction · 0.85

Tested by

no test coverage detected