Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 255 | |
| 256 | // Format implements the NodeFormatter interface. |
| 257 | func (node *NotExpr) Format(ctx *FmtCtx) { |
| 258 | ctx.WriteString("NOT ") |
| 259 | exprFmtWithParen(ctx, node.Expr) |
| 260 | } |
| 261 | |
| 262 | // NewTypedNotExpr returns a new NotExpr that is verified to be well-typed. |
| 263 | func NewTypedNotExpr(expr TypedExpr) *NotExpr { |
nothing calls this directly
no test coverage detected