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

Method NewMemberCall

cel/optimizer.go:373–375  ·  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

371// - target: list
372// - args: [fieldName]
373func (opt *optimizerExprFactory) NewMemberCall(function string, target ast.Expr, args ...ast.Expr) ast.Expr {
374 return opt.fac.NewMemberCall(opt.nextID(), function, target, args...)
375}
376
377// NewIdent creates a new identifier expression.
378//

Callers

nothing calls this directly

Calls 2

NewMemberCallMethod · 0.65
nextIDMethod · 0.45

Tested by

no test coverage detected