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

Method astFormat

internal/sql/ast/print.go:25–31  ·  view source on GitHub ↗
(n Node, d format.Dialect)

Source from the content-addressed store, hash-verified

23}
24
25func (t *TrackedBuffer) astFormat(n Node, d format.Dialect) {
26 if ft, ok := n.(nodeFormatter); ok {
27 ft.Format(t, d)
28 } else {
29 debug.Dump(n)
30 }
31}
32
33func (t *TrackedBuffer) join(n *List, d format.Dialect, sep string) {
34 if n == nil {

Callers 15

FormatMethod · 0.95
joinMethod · 0.95
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 2

DumpFunction · 0.92
FormatMethod · 0.65

Tested by

no test coverage detected