Visit a parse tree produced by CELParser#conditionalOr.
(ctx *gen.ConditionalOrContext)
| 395 | |
| 396 | // Visit a parse tree produced by CELParser#conditionalOr. |
| 397 | func (p *antlrVisitor) VisitConditionalOr(ctx *gen.ConditionalOrContext) any { |
| 398 | result := p.Visit(ctx.GetE()).(ast.Expr) |
| 399 | l := p.newLogicManager(operators.LogicalOr, result) |
| 400 | rest := ctx.GetE1() |
| 401 | for i, op := range ctx.GetOps() { |
| 402 | if i >= len(rest) { |
| 403 | return p.reportError(ctx, "unexpected character, wanted '||'") |
| 404 | } |
| 405 | next := p.Visit(rest[i]).(ast.Expr) |
| 406 | opID := p.helper.id(op) |
| 407 | l.addTerm(opID, next) |
| 408 | } |
| 409 | return l.toExpr() |
| 410 | } |
| 411 | |
| 412 | // Visit a parse tree produced by CELParser#conditionalAnd. |
| 413 | func (p *antlrVisitor) VisitConditionalAnd(ctx *gen.ConditionalAndContext) any { |
no test coverage detected