Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 561 | |
| 562 | // Format implements the NodeFormatter interface. |
| 563 | func (node *RangeCond) Format(ctx *FmtCtx) { |
| 564 | notStr := " BETWEEN " |
| 565 | if node.Not { |
| 566 | notStr = " NOT BETWEEN " |
| 567 | } |
| 568 | exprFmtWithParen(ctx, node.Left) |
| 569 | ctx.WriteString(notStr) |
| 570 | if node.Symmetric { |
| 571 | ctx.WriteString("SYMMETRIC ") |
| 572 | } |
| 573 | binExprFmtWithParen(ctx, node.From, "AND", node.To, true) |
| 574 | } |
| 575 | |
| 576 | // TypedLeftFrom returns the RangeCond's left expression as a TypedExpr, in the |
| 577 | // context of a comparison with TypedFrom(). |
nothing calls this directly
no test coverage detected