Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 608 | |
| 609 | // Format implements the NodeFormatter interface. |
| 610 | func (node *IsOfTypeExpr) Format(ctx *FmtCtx) { |
| 611 | exprFmtWithParen(ctx, node.Expr) |
| 612 | ctx.WriteString(" IS") |
| 613 | if node.Not { |
| 614 | ctx.WriteString(" NOT") |
| 615 | } |
| 616 | ctx.WriteString(" OF (") |
| 617 | for i, t := range node.Types { |
| 618 | if i > 0 { |
| 619 | ctx.WriteString(", ") |
| 620 | } |
| 621 | ctx.Buffer.WriteString(t.SQLString()) |
| 622 | } |
| 623 | ctx.WriteByte(')') |
| 624 | } |
| 625 | |
| 626 | // IfErrExpr represents an IFERROR expression. |
| 627 | type IfErrExpr struct { |
nothing calls this directly
no test coverage detected