Visit a parse tree produced by CELParser#LogicalNot.
(ctx *gen.LogicalNotContext)
| 546 | |
| 547 | // Visit a parse tree produced by CELParser#LogicalNot. |
| 548 | func (p *parser) VisitLogicalNot(ctx *gen.LogicalNotContext) any { |
| 549 | if len(ctx.GetOps())%2 == 0 { |
| 550 | return p.Visit(ctx.Member()) |
| 551 | } |
| 552 | opID := p.helper.id(ctx.GetOps()[0]) |
| 553 | target := p.Visit(ctx.Member()).(ast.Expr) |
| 554 | return p.globalCallOrMacro(opID, operators.LogicalNot, target) |
| 555 | } |
| 556 | |
| 557 | func (p *parser) VisitNegate(ctx *gen.NegateContext) any { |
| 558 | if len(ctx.GetOps())%2 == 0 { |