Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 248 | |
| 249 | // Format implements the NodeFormatter interface. |
| 250 | func (node *NotExpr) Format(ctx *FmtCtx) { |
| 251 | ctx.WriteString("NOT ") |
| 252 | exprFmtWithParen(ctx, node.Expr) |
| 253 | } |
| 254 | |
| 255 | // NewTypedNotExpr returns a new NotExpr that is verified to be well-typed. |
| 256 | func NewTypedNotExpr(expr TypedExpr) *NotExpr { |
nothing calls this directly
no test coverage detected