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