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

Method doc

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

Source from the content-addressed store, hash-verified

373}
374
375func (node *Exprs) doc(p *PrettyCfg) pretty.Doc {
376 if node == nil || len(*node) == 0 {
377 return pretty.Nil
378 }
379 d := make([]pretty.Doc, len(*node))
380 for i, e := range *node {
381 if p.Simplify {
382 e = StripParens(e)
383 }
384 d[i] = p.Doc(e)
385 }
386 return p.commaSeparated(d...)
387}
388
389// peelBinaryOperand conditionally (p.Simplify) removes the
390// parentheses around an expression. The parentheses are always

Callers

nothing calls this directly

Calls 3

StripParensFunction · 0.85
DocMethod · 0.80
commaSeparatedMethod · 0.80

Tested by

no test coverage detected