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

Method doc

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

Source from the content-addressed store, hash-verified

244}
245
246func (node SelectExpr) doc(p *PrettyCfg) pretty.Doc {
247 e := node.Expr
248 if p.Simplify {
249 e = StripParens(e)
250 }
251 d := p.Doc(e)
252 if node.As != "" {
253 d = p.nestUnder(
254 d,
255 pretty.Concat(p.keywordWithText("", "AS", " "), p.Doc(&node.As)),
256 )
257 }
258 return d
259}
260
261func (node TableExprs) doc(p *PrettyCfg) pretty.Doc {
262 if len(node) == 0 {

Callers

nothing calls this directly

Calls 5

ConcatFunction · 0.92
StripParensFunction · 0.85
DocMethod · 0.80
nestUnderMethod · 0.80
keywordWithTextMethod · 0.80

Tested by

no test coverage detected