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

Method Format

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

Source from the content-addressed store, hash-verified

12}
13
14func (n *A_Const) Format(buf *TrackedBuffer, d format.Dialect) {
15 if n == nil {
16 return
17 }
18 if _, ok := n.Val.(*String); ok {
19 buf.WriteString("'")
20 buf.astFormat(n.Val, d)
21 buf.WriteString("'")
22 } else {
23 buf.astFormat(n.Val, d)
24 }
25}

Callers

nothing calls this directly

Calls 1

astFormatMethod · 0.80

Tested by

no test coverage detected