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

Method doc

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

Source from the content-addressed store, hash-verified

1166}
1167
1168func (node *UpdateExpr) doc(p *PrettyCfg) pretty.Doc {
1169 d := p.Doc(&node.Names)
1170 if node.Tuple {
1171 d = p.bracket("(", d, ")")
1172 }
1173 e := node.Expr
1174 if p.Simplify {
1175 e = StripParens(e)
1176 }
1177 return p.nestUnder(d, pretty.ConcatSpace(pretty.Text("="), p.Doc(e)))
1178}
1179
1180func (node *CreateTable) doc(p *PrettyCfg) pretty.Doc {
1181 // Final layout:

Callers

nothing calls this directly

Calls 6

ConcatSpaceFunction · 0.92
TextFunction · 0.92
StripParensFunction · 0.85
DocMethod · 0.80
bracketMethod · 0.80
nestUnderMethod · 0.80

Tested by

no test coverage detected