Visit a parse tree produced by CELParser#LogicalNot.
(ctx *gen.LogicalNotContext)
| 554 | |
| 555 | // Visit a parse tree produced by CELParser#LogicalNot. |
| 556 | func (p *parser) VisitLogicalNot(ctx *gen.LogicalNotContext) any { |
| 557 | if len(ctx.GetOps())%2 == 0 { |
| 558 | return p.Visit(ctx.Member()) |
| 559 | } |
| 560 | opID := p.helper.id(ctx.GetOps()[0]) |
| 561 | target := p.Visit(ctx.Member()).(ast.Expr) |
| 562 | return p.globalCallOrMacro(opID, operators.LogicalNot, target) |
| 563 | } |
| 564 | |
| 565 | func (p *parser) VisitNegate(ctx *gen.NegateContext) any { |
| 566 | if len(ctx.GetOps())%2 == 0 { |