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

Function NewMemberOverload

common/env/env.go:402–404  ·  view source on GitHub ↗

NewMemberOverload returns a new serializable representation of a member (receiver) overload.

(id string, target *TypeDesc, args []*TypeDesc, ret *TypeDesc, examples ...string)

Source from the content-addressed store, hash-verified

400
401// NewMemberOverload returns a new serializable representation of a member (receiver) overload.
402func NewMemberOverload(id string, target *TypeDesc, args []*TypeDesc, ret *TypeDesc, examples ...string) *Overload {
403 return &Overload{ID: id, Target: target, Args: args, Return: ret, Examples: examples}
404}
405
406// Overload represents the serializable format of a function overload.
407type Overload struct {

Callers 7

protoDeclToFunctionFunction · 0.92
TestEnvToConfigFunction · 0.92
TestEnvFromConfigFunction · 0.92
AddFunctionDeclsMethod · 0.85
TestConfigFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestEnvToConfigFunction · 0.74
TestEnvFromConfigFunction · 0.74
TestConfigFunction · 0.68