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

Method doc

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

Source from the content-addressed store, hash-verified

259}
260
261func (node TableExprs) doc(p *PrettyCfg) pretty.Doc {
262 if len(node) == 0 {
263 return pretty.Nil
264 }
265 d := make([]pretty.Doc, len(node))
266 for i, e := range node {
267 if p.Simplify {
268 e = StripTableParens(e)
269 }
270 d[i] = p.Doc(e)
271 }
272 return p.commaSeparated(d...)
273}
274
275func (node *Where) doc(p *PrettyCfg) pretty.Doc {
276 return p.unrow(node.docRow(p))

Callers

nothing calls this directly

Calls 3

StripTableParensFunction · 0.85
DocMethod · 0.80
commaSeparatedMethod · 0.80

Tested by

no test coverage detected