Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 697 | |
| 698 | // Format implements the NodeFormatter interface. |
| 699 | func (node *IsOfTypeExpr) Format(ctx *FmtCtx) { |
| 700 | exprFmtWithParen(ctx, node.Expr) |
| 701 | ctx.WriteString(" IS") |
| 702 | if node.Not { |
| 703 | ctx.WriteString(" NOT") |
| 704 | } |
| 705 | ctx.WriteString(" OF (") |
| 706 | for i, t := range node.Types { |
| 707 | if i > 0 { |
| 708 | ctx.WriteString(", ") |
| 709 | } |
| 710 | ctx.FormatTypeReference(t) |
| 711 | } |
| 712 | ctx.WriteByte(')') |
| 713 | } |
| 714 | |
| 715 | // IfErrExpr represents an IFERROR expression. |
| 716 | type IfErrExpr struct { |
nothing calls this directly
no test coverage detected