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

Function isLateBoundFunctionCall

cel/folding.go:193–200  ·  view source on GitHub ↗
(ctx *OptimizerContext, expr ast.Expr)

Source from the content-addressed store, hash-verified

191}
192
193func isLateBoundFunctionCall(ctx *OptimizerContext, expr ast.Expr) bool {
194 call := expr.AsCall()
195 function := ctx.Functions()[call.FunctionName()]
196 if function == nil {
197 return false
198 }
199 return function.HasLateBinding()
200}
201
202func isAsyncFunctionCall(ctx *OptimizerContext, expr ast.Expr) bool {
203 call := expr.AsCall()

Callers 2

OptimizeMethod · 0.85
constantExprMatcherMethod · 0.85

Calls 4

FunctionsMethod · 0.80
AsCallMethod · 0.65
FunctionNameMethod · 0.65
HasLateBindingMethod · 0.45

Tested by

no test coverage detected