(p *PrettyCfg)
| 1166 | } |
| 1167 | |
| 1168 | func (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 | |
| 1180 | func (node *CreateTable) doc(p *PrettyCfg) pretty.Doc { |
| 1181 | // Final layout: |
nothing calls this directly
no test coverage detected