Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 582 | |
| 583 | // Format implements the NodeFormatter interface. |
| 584 | func (node *IsOfTypeExpr) Format(ctx *FmtCtx) { |
| 585 | exprFmtWithParen(ctx, node.Expr) |
| 586 | ctx.WriteString(" IS") |
| 587 | if node.Not { |
| 588 | ctx.WriteString(" NOT") |
| 589 | } |
| 590 | ctx.WriteString(" OF (") |
| 591 | for i, t := range node.Types { |
| 592 | if i > 0 { |
| 593 | ctx.WriteString(", ") |
| 594 | } |
| 595 | ctx.FormatTypeReference(t) |
| 596 | } |
| 597 | ctx.WriteByte(')') |
| 598 | } |
| 599 | |
| 600 | // IfErrExpr represents an IFERROR expression. |
| 601 | type IfErrExpr struct { |
nothing calls this directly
no test coverage detected