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

Method HasLateBinding

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

324
325// HasLateBinding returns true if the function has late bindings. A function cannot mix late bindings with other bindings.
326func (f *FunctionDecl) HasLateBinding() bool {
327 if f == nil {
328 return false
329 }
330 if f.singleton != nil && f.singleton.Async != nil {
331 return true
332 }
333 for _, oID := range f.overloadOrdinals {
334 o := f.overloads[oID]
335 if o.HasLateBinding() {
336 return true
337 }
338 }
339 return false
340}
341
342// Bindings produces a set of function bindings, if any are defined.
343func (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