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

Method convertLists

internal/engine/dolphin/convert.go:522–532  ·  view source on GitHub ↗
(lists [][]pcast.ExprNode)

Source from the content-addressed store, hash-verified

520}
521
522func (c *cc) convertLists(lists [][]pcast.ExprNode) *ast.List {
523 list := &ast.List{Items: []ast.Node{}}
524 for _, exprs := range lists {
525 inner := &ast.List{Items: []ast.Node{}}
526 for _, expr := range exprs {
527 inner.Items = append(inner.Items, c.convert(expr))
528 }
529 list.Items = append(list.Items, inner)
530 }
531 return list
532}
533
534func (c *cc) convertParamMarkerExpr(n *driver.ParamMarkerExpr) *ast.ParamRef {
535 // Parameter numbers start at one

Callers 1

convertInsertStmtMethod · 0.95

Calls 1

convertMethod · 0.95

Tested by

no test coverage detected