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

Method OverloadDecls

common/decls/decls.go:295–305  ·  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

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

Callers 12

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

Calls

no outgoing calls

Tested by 7

TestNilFunctionFunction · 0.76
TestAsyncBindingFunction · 0.64
assertFuncEqualsFunction · 0.64