(p *PrettyCfg)
| 373 | } |
| 374 | |
| 375 | func (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 |
nothing calls this directly
no test coverage detected