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

Function newOverload

common/decls/decls.go:565–579  ·  view source on GitHub ↗
(overloadID string,
	memberFunction bool, args []*types.Type, resultType *types.Type,
	opts ...OverloadOpt)

Source from the content-addressed store, hash-verified

563}
564
565func newOverload(overloadID string,
566 memberFunction bool, args []*types.Type, resultType *types.Type,
567 opts ...OverloadOpt) FunctionOpt {
568 return func(f *FunctionDecl) (*FunctionDecl, error) {
569 overload, err := newOverloadInternal(overloadID, memberFunction, args, resultType, opts...)
570 if err != nil {
571 return nil, err
572 }
573 err = f.AddOverload(overload)
574 if err != nil {
575 return nil, err
576 }
577 return f, nil
578 }
579}
580
581func newOverloadInternal(overloadID string,
582 memberFunction bool, args []*types.Type, resultType *types.Type,

Callers 2

OverloadFunction · 0.85
MemberOverloadFunction · 0.85

Calls 2

newOverloadInternalFunction · 0.85
AddOverloadMethod · 0.45

Tested by

no test coverage detected