Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 638 | |
| 639 | // Format implements the NodeFormatter interface. |
| 640 | func (node *RangeCond) Format(ctx *FmtCtx) { |
| 641 | notStr := " BETWEEN " |
| 642 | if node.Not { |
| 643 | notStr = " NOT BETWEEN " |
| 644 | } |
| 645 | exprFmtWithParen(ctx, node.Left) |
| 646 | ctx.WriteString(notStr) |
| 647 | if node.Symmetric { |
| 648 | ctx.WriteString("SYMMETRIC ") |
| 649 | } |
| 650 | binExprFmtWithParen(ctx, node.From, "AND", node.To, true) |
| 651 | } |
| 652 | |
| 653 | // TypedLeftFrom returns the RangeCond's left expression as a TypedExpr, in the |
| 654 | // context of a comparison with TypedFrom(). |
nothing calls this directly
no test coverage detected