VisitMemberCall visits a parse tree produced by CELParser#MemberCall.
(ctx *gen.MemberCallContext)
| 589 | |
| 590 | // VisitMemberCall visits a parse tree produced by CELParser#MemberCall. |
| 591 | func (p *parser) VisitMemberCall(ctx *gen.MemberCallContext) any { |
| 592 | operand := p.Visit(ctx.Member()).(ast.Expr) |
| 593 | // Handle the error case where no valid identifier is specified. |
| 594 | if ctx.GetId() == nil { |
| 595 | return p.helper.newExpr(ctx) |
| 596 | } |
| 597 | id := ctx.GetId().GetText() |
| 598 | opID := p.helper.id(ctx.GetOpen()) |
| 599 | return p.receiverCallOrMacro(opID, id, operand, p.visitExprList(ctx.GetArgs())...) |
| 600 | } |
| 601 | |
| 602 | // Visit a parse tree produced by CELParser#Index. |
| 603 | func (p *parser) VisitIndex(ctx *gen.IndexContext) any { |