formatNodeSummary recurses into a node for pretty-printing a summarized version.
(n NodeFormatter)
| 771 | |
| 772 | // formatNodeSummary recurses into a node for pretty-printing a summarized version. |
| 773 | func (ctx *FmtCtx) formatNodeSummary(n NodeFormatter) { |
| 774 | switch node := n.(type) { |
| 775 | case *Insert: |
| 776 | ctx.formatSummaryInsert(node) |
| 777 | return |
| 778 | case *Select: |
| 779 | ctx.formatSummarySelect(node) |
| 780 | return |
| 781 | case *Update: |
| 782 | ctx.formatSummaryUpdate(node) |
| 783 | return |
| 784 | } |
| 785 | ctx.FormatNode(n) |
| 786 | } |
| 787 | |
| 788 | // AsStringWithFlags pretty prints a node to a string given specific flags; only |
| 789 | // flags that don't require Annotations can be used. |
no test coverage detected