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

Method exprDocWithParen

pkg/sql/sem/tree/pretty.go:1088–1093  ·  view source on GitHub ↗
(e Expr)

Source from the content-addressed store, hash-verified

1086}
1087
1088func (p *PrettyCfg) exprDocWithParen(e Expr) pretty.Doc {
1089 if _, ok := e.(operatorExpr); ok {
1090 return p.bracket("(", p.Doc(e), ")")
1091 }
1092 return p.Doc(e)
1093}
1094
1095func (node *Update) doc(p *PrettyCfg) pretty.Doc {
1096 items := make([]pretty.TableRow, 8)

Callers 2

docMethod · 0.80
docMethod · 0.80

Calls 2

bracketMethod · 0.95
DocMethod · 0.95

Tested by

no test coverage detected