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

Method OverloadDecls

common/decls/decls.go:294–304  ·  view source on GitHub ↗

OverloadDecls returns the overload declarations in the order in which they were declared.

()

Source from the content-addressed store, hash-verified

292
293// OverloadDecls returns the overload declarations in the order in which they were declared.
294func (f *FunctionDecl) OverloadDecls() []*OverloadDecl {
295 var emptySet []*OverloadDecl
296 if f == nil {
297 return emptySet
298 }
299 overloads := make([]*OverloadDecl, 0, len(f.overloads))
300 for _, oID := range f.overloadOrdinals {
301 overloads = append(overloads, f.overloads[oID])
302 }
303 return overloads
304}
305
306// HasSingletonBinding indicates whether the function has a singleton binding definition.
307func (f *FunctionDecl) HasSingletonBinding() bool {

Callers 11

TestNilFunctionFunction · 0.95
DocumentationMethod · 0.95
setFunctionMethod · 0.80
resolveOverloadMethod · 0.80
ToConfigMethod · 0.80
AddFunctionDeclsMethod · 0.80
assertFuncEqualsFunction · 0.80

Calls

no outgoing calls

Tested by 6

TestNilFunctionFunction · 0.76
assertFuncEqualsFunction · 0.64