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

Method Format

internal/sql/ast/a_indices.go:15–32  ·  view source on GitHub ↗
(buf *TrackedBuffer, d format.Dialect)

Source from the content-addressed store, hash-verified

13}
14
15func (n *A_Indices) Format(buf *TrackedBuffer, d format.Dialect) {
16 if n == nil {
17 return
18 }
19 buf.WriteString("[")
20 if n.IsSlice {
21 if set(n.Lidx) {
22 buf.astFormat(n.Lidx, d)
23 }
24 buf.WriteString(":")
25 if set(n.Uidx) {
26 buf.astFormat(n.Uidx, d)
27 }
28 } else {
29 buf.astFormat(n.Uidx, d)
30 }
31 buf.WriteString("]")
32}

Callers

nothing calls this directly

Calls 2

setFunction · 0.85
astFormatMethod · 0.80

Tested by

no test coverage detected