(ctx *gen.NegateContext)
| 563 | } |
| 564 | |
| 565 | func (p *parser) VisitNegate(ctx *gen.NegateContext) any { |
| 566 | if len(ctx.GetOps())%2 == 0 { |
| 567 | return p.Visit(ctx.Member()) |
| 568 | } |
| 569 | opID := p.helper.id(ctx.GetOps()[0]) |
| 570 | target := p.Visit(ctx.Member()).(ast.Expr) |
| 571 | return p.globalCallOrMacro(opID, operators.Negate, target) |
| 572 | } |
| 573 | |
| 574 | // VisitSelect visits a parse tree produced by CELParser#Select. |
| 575 | func (p *parser) VisitSelect(ctx *gen.SelectContext) any { |