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

Method Format

internal/sql/ast/row_expr.go:18–31  ·  view source on GitHub ↗
(buf *TrackedBuffer, d format.Dialect)

Source from the content-addressed store, hash-verified

16}
17
18func (n *RowExpr) Format(buf *TrackedBuffer, d format.Dialect) {
19 if n == nil {
20 return
21 }
22 if items(n.Args) {
23 buf.WriteString("args")
24 buf.astFormat(n.Args, d)
25 }
26 buf.astFormat(n.Xpr, d)
27 if items(n.Colnames) {
28 buf.WriteString("cols")
29 buf.astFormat(n.Colnames, d)
30 }
31}

Callers

nothing calls this directly

Calls 2

itemsFunction · 0.85
astFormatMethod · 0.80

Tested by

no test coverage detected