(formatter *Formatter, expr Expr)
| 134 | } |
| 135 | |
| 136 | func (p *BinaryOperation) writeLogicalOperand(formatter *Formatter, expr Expr) { |
| 137 | if isLogicalBinaryOp(expr) { |
| 138 | formatter.WriteExpr(expr) |
| 139 | } else { |
| 140 | formatter.Indent() |
| 141 | formatter.WriteExpr(expr) |
| 142 | formatter.Dedent() |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | func (p *BinaryOperation) FormatSQL(formatter *Formatter) { |
| 147 | if p.isLogicalOp() && formatter.mode == FormatModeBeautify { |
no test coverage detected