MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / Format

Method Format

internal/sql/ast/alias.go:14–26  ·  view source on GitHub ↗
(buf *TrackedBuffer, d format.Dialect)

Source from the content-addressed store, hash-verified

12}
13
14func (n *Alias) Format(buf *TrackedBuffer, d format.Dialect) {
15 if n == nil {
16 return
17 }
18 if n.Aliasname != nil {
19 buf.WriteString(*n.Aliasname)
20 }
21 if items(n.Colnames) {
22 buf.WriteString("(")
23 buf.astFormat(n.Colnames, d)
24 buf.WriteString(")")
25 }
26}

Callers

nothing calls this directly

Calls 2

itemsFunction · 0.85
astFormatMethod · 0.80

Tested by

no test coverage detected