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

Function LateFunctionBinding

common/decls/decls.go:998–1006  ·  view source on GitHub ↗

LateFunctionBinding indicates that the function has a binding which is not known at compile time. This is useful for functions which have side-effects or are not deterministically computable.

()

Source from the content-addressed store, hash-verified

996// LateFunctionBinding indicates that the function has a binding which is not known at compile time.
997// This is useful for functions which have side-effects or are not deterministically computable.
998func LateFunctionBinding() OverloadOpt {
999 return func(o *OverloadDecl) (*OverloadDecl, error) {
1000 if o.HasBinding() {
1001 return nil, fmt.Errorf("overload already has a binding: %s", o.ID())
1002 }
1003 o.hasLateBinding = true
1004 return o, nil
1005 }
1006}
1007
1008// OverloadIsNonStrict enables the function to be called with error and unknown argument values.
1009//

Calls 2

HasBindingMethod · 0.80
IDMethod · 0.65