MCPcopy Create free account
hub / github.com/cel-expr/cel-go / ReceiverCall

Method ReceiverCall

cel/macro.go:505–508  ·  view source on GitHub ↗

ReceiverCall creates a function call Expr value for a receiver-style function.

(function string, target *exprpb.Expr, args ...*exprpb.Expr)

Source from the content-addressed store, hash-verified

503
504// ReceiverCall creates a function call Expr value for a receiver-style function.
505func (ah *adaptingHelper) ReceiverCall(function string, target *exprpb.Expr, args ...*exprpb.Expr) *exprpb.Expr {
506 return mustAdaptToProto(
507 ah.modernHelper.NewMemberCall(function, mustAdaptToExpr(target), mustAdaptToExprs(args)...))
508}
509
510// PresenceTest creates a Select TestOnly Expr value for modelling has() semantics.
511func (ah *adaptingHelper) PresenceTest(operand *exprpb.Expr, field string) *exprpb.Expr {

Callers

nothing calls this directly

Calls 4

mustAdaptToProtoFunction · 0.85
mustAdaptToExprFunction · 0.85
mustAdaptToExprsFunction · 0.85
NewMemberCallMethod · 0.65

Tested by

no test coverage detected