Visit a parse tree produced by CELParser#conditionalAnd.
(ctx *gen.ConditionalAndContext)
| 411 | |
| 412 | // Visit a parse tree produced by CELParser#conditionalAnd. |
| 413 | func (p *antlrVisitor) VisitConditionalAnd(ctx *gen.ConditionalAndContext) any { |
| 414 | result := p.Visit(ctx.GetE()).(ast.Expr) |
| 415 | l := p.newLogicManager(operators.LogicalAnd, result) |
| 416 | rest := ctx.GetE1() |
| 417 | for i, op := range ctx.GetOps() { |
| 418 | if i >= len(rest) { |
| 419 | return p.reportError(ctx, "unexpected character, wanted '&&'") |
| 420 | } |
| 421 | next := p.Visit(rest[i]).(ast.Expr) |
| 422 | opID := p.helper.id(op) |
| 423 | l.addTerm(opID, next) |
| 424 | } |
| 425 | return l.toExpr() |
| 426 | } |
| 427 | |
| 428 | // Visit a parse tree produced by CELParser#relation. |
| 429 | func (p *antlrVisitor) VisitRelation(ctx *gen.RelationContext) any { |
no test coverage detected