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

Method HasLateBinding

common/decls/decls.go:316–330  ·  view source on GitHub ↗

HasLateBinding returns true if the function has late bindings. A function cannot mix late bindings with other bindings.

()

Source from the content-addressed store, hash-verified

314
315// HasLateBinding returns true if the function has late bindings. A function cannot mix late bindings with other bindings.
316func (f *FunctionDecl) HasLateBinding() bool {
317 if f == nil {
318 return false
319 }
320 if f.singleton != nil && f.singleton.Async != nil {
321 return true
322 }
323 for _, oID := range f.overloadOrdinals {
324 o := f.overloads[oID]
325 if o.HasLateBinding() {
326 return true
327 }
328 }
329 return false
330}
331
332// Bindings produces a set of function bindings, if any are defined.
333func (f *FunctionDecl) Bindings() ([]*functions.Overload, error) {

Callers 6

isLateBoundFunctionCallFunction · 0.45
TestAsyncBindingFunction · 0.45
AddOverloadMethod · 0.45
BindingsMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestAsyncBindingFunction · 0.36