MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / doc

Method doc

pkg/sql/sem/tree/pretty.go:1948–1962  ·  view source on GitHub ↗
(p *PrettyCfg)

Source from the content-addressed store, hash-verified

1946}
1947
1948func (node *KVOptions) doc(p *PrettyCfg) pretty.Doc {
1949 var opts []pretty.Doc
1950 for _, opt := range *node {
1951 d := p.Doc(&opt.Key)
1952 if opt.Value != nil {
1953 d = pretty.Fold(pretty.ConcatSpace,
1954 d,
1955 pretty.Text("="),
1956 p.Doc(opt.Value),
1957 )
1958 }
1959 opts = append(opts, d)
1960 }
1961 return p.commaSeparated(opts...)
1962}
1963
1964func (node *Import) doc(p *PrettyCfg) pretty.Doc {
1965 items := make([]pretty.TableRow, 0, 5)

Callers

nothing calls this directly

Calls 4

FoldFunction · 0.92
TextFunction · 0.92
DocMethod · 0.80
commaSeparatedMethod · 0.80

Tested by

no test coverage detected