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

Function OverloadOperandTrait

common/decls/decls.go:924–929  ·  view source on GitHub ↗

OverloadOperandTrait configures a set of traits which the first argument to the overload must implement in order to be successfully invoked.

(trait int)

Source from the content-addressed store, hash-verified

922// OverloadOperandTrait configures a set of traits which the first argument to the overload must implement in order to be
923// successfully invoked.
924func OverloadOperandTrait(trait int) OverloadOpt {
925 return func(o *OverloadDecl) (*OverloadDecl, error) {
926 o.operandTrait = trait
927 return o, nil
928 }
929}
930
931// NewConstant creates a new constant declaration.
932func NewConstant(name string, t *types.Type, v ref.Val) *VariableDecl {

Callers 4

testDataFunction · 0.92
OverloadOperandTraitFunction · 0.92
TestOverloadIsNonStrictFunction · 0.70
TestOverloadOperandTraitFunction · 0.70

Calls

no outgoing calls

Tested by 3

testDataFunction · 0.74
TestOverloadIsNonStrictFunction · 0.56
TestOverloadOperandTraitFunction · 0.56