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

Method join

internal/sql/ast/print.go:33–46  ·  view source on GitHub ↗
(n *List, d format.Dialect, sep string)

Source from the content-addressed store, hash-verified

31}
32
33func (t *TrackedBuffer) join(n *List, d format.Dialect, sep string) {
34 if n == nil {
35 return
36 }
37 for i, item := range n.Items {
38 if _, ok := item.(*TODO); ok {
39 continue
40 }
41 if i > 0 {
42 t.WriteString(sep)
43 }
44 t.astFormat(item, d)
45 }
46}
47
48func Format(n Node, d format.Dialect) string {
49 tb := NewTrackedBuffer()

Callers 15

FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80

Calls 1

astFormatMethod · 0.95

Tested by

no test coverage detected