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

Function newOverloadInternal

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

Source from the content-addressed store, hash-verified

579}
580
581func newOverloadInternal(overloadID string,
582 memberFunction bool, args []*types.Type, resultType *types.Type,
583 opts ...OverloadOpt) (*OverloadDecl, error) {
584 overload := &OverloadDecl{
585 id: overloadID,
586 argTypes: args,
587 resultType: resultType,
588 isMemberFunction: memberFunction,
589 }
590 var err error
591 for _, opt := range opts {
592 overload, err = opt(overload)
593 if err != nil {
594 return nil, err
595 }
596 }
597 return overload, nil
598}
599
600// OverloadDecl contains the definition of a single overload id with a specific signature, and an optional
601// implementation.

Callers 1

newOverloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected