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

Method NewCall

cel/optimizer.go:361–363  ·  view source on GitHub ↗

NewCall creates a global function call invocation expression. Example: countByField(list, fieldName) - function: countByField - args: [list, fieldName]

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

Source from the content-addressed store, hash-verified

359// - function: countByField
360// - args: [list, fieldName]
361func (opt *optimizerExprFactory) NewCall(function string, args ...ast.Expr) ast.Expr {
362 return opt.fac.NewCall(opt.nextID(), function, args...)
363}
364
365// NewMemberCall creates a member function call invocation expression where 'target' is the receiver of the call.
366//

Callers

nothing calls this directly

Calls 2

NewCallMethod · 0.65
nextIDMethod · 0.45

Tested by

no test coverage detected