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

Method NewMemberCall

cel/optimizer.go:379–381  ·  view source on GitHub ↗

NewMemberCall creates a member function call invocation expression where 'target' is the receiver of the call. Example: list.countByField(fieldName) - function: countByField - target: list - args: [fieldName]

(function string, target ast.Expr, args ...ast.Expr)

Source from the content-addressed store, hash-verified

377// - target: list
378// - args: [fieldName]
379func (opt *optimizerExprFactory) NewMemberCall(function string, target ast.Expr, args ...ast.Expr) ast.Expr {
380 return opt.fac.NewMemberCall(opt.nextID(), function, target, args...)
381}
382
383// NewIdent creates a new identifier expression.
384//

Callers

nothing calls this directly

Calls 2

NewMemberCallMethod · 0.65
nextIDMethod · 0.45

Tested by

no test coverage detected