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

Function Overload

cel/decls.go:303–305  ·  view source on GitHub ↗

Overload defines a new global overload with an overload id, argument types, and result type. Through the use of OverloadOpt options, the overload may also be configured with a binding, an operand trait, and to be non-strict. Note: function bindings should be commonly configured with Overload instan

(overloadID string, args []*Type, resultType *Type, opts ...OverloadOpt)

Source from the content-addressed store, hash-verified

301// Note: function bindings should be commonly configured with Overload instances whereas operand traits and
302// strict-ness should be rare occurrences.
303func Overload(overloadID string, args []*Type, resultType *Type, opts ...OverloadOpt) FunctionOpt {
304 return decls.Overload(overloadID, args, resultType, opts...)
305}
306
307// MemberOverload defines a new receiver-style overload (or member function) with an overload id, argument types,
308// and result type. Through the use of OverloadOpt options, the overload may also be configured with a binding,

Callers 15

locationCodeEnvOptionFunction · 0.92
fnEnvOptionFunction · 0.92
helper_test.goFile · 0.92
locationCodeEnvOptionFunction · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92

Calls 1

OverloadFunction · 0.92

Tested by 15

locationCodeEnvOptionFunction · 0.74
fnEnvOptionFunction · 0.74
TestInliningOptimizerFunction · 0.74
Example_globalOverloadFunction · 0.74
Example_statefulOverloadFunction · 0.74
Example_cel_OverloadFunction · 0.74
locationCodeEnvOptionFunction · 0.74
TestFunctionMergeFunction · 0.56