Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 523 | |
| 524 | // Format implements the NodeFormatter interface. |
| 525 | func (node *RangeCond) Format(ctx *FmtCtx) { |
| 526 | notStr := " BETWEEN " |
| 527 | if node.Not { |
| 528 | notStr = " NOT BETWEEN " |
| 529 | } |
| 530 | exprFmtWithParen(ctx, node.Left) |
| 531 | ctx.WriteString(notStr) |
| 532 | if node.Symmetric { |
| 533 | ctx.WriteString("SYMMETRIC ") |
| 534 | } |
| 535 | binExprFmtWithParen(ctx, node.From, "AND", node.To, true) |
| 536 | } |
| 537 | |
| 538 | // TypedLeftFrom returns the RangeCond's left expression as a TypedExpr, in the |
| 539 | // context of a comparison with TypedFrom(). |
nothing calls this directly
no test coverage detected