(ctx *FmtCtx, e1 Expr, subOp, op string, e2 Expr)
| 173 | } |
| 174 | |
| 175 | func binExprFmtWithParenAndSubOp(ctx *FmtCtx, e1 Expr, subOp, op string, e2 Expr) { |
| 176 | exprFmtWithParen(ctx, e1) |
| 177 | ctx.WriteByte(' ') |
| 178 | if subOp != "" { |
| 179 | ctx.WriteString(subOp) |
| 180 | ctx.WriteByte(' ') |
| 181 | } |
| 182 | ctx.WriteString(op) |
| 183 | ctx.WriteByte(' ') |
| 184 | exprFmtWithParen(ctx, e2) |
| 185 | } |
| 186 | |
| 187 | // Format implements the NodeFormatter interface. |
| 188 | func (node *AndExpr) Format(ctx *FmtCtx) { |
no test coverage detected
searching dependent graphs…