(p *PrettyCfg)
| 598 | } |
| 599 | |
| 600 | func (node *Window) docRow(p *PrettyCfg) pretty.TableRow { |
| 601 | if node == nil || len(*node) == 0 { |
| 602 | return emptyRow |
| 603 | } |
| 604 | d := make([]pretty.Doc, len(*node)) |
| 605 | for i, e := range *node { |
| 606 | d[i] = pretty.Fold(pretty.Concat, |
| 607 | pretty.Text(e.Name.String()), |
| 608 | p.keywordWithText(" ", "AS", " "), |
| 609 | p.Doc(e), |
| 610 | ) |
| 611 | } |
| 612 | return p.row("WINDOW", p.commaSeparated(d...)) |
| 613 | } |
| 614 | |
| 615 | func (node *With) doc(p *PrettyCfg) pretty.Doc { |
| 616 | return p.unrow(node.docRow(p)) |
no test coverage detected