MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / IsBind

Function IsBind

eval/compiler/flat_expr_builder.cc:401–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401bool IsBind(const cel::ComprehensionExpr* comprehension) {
402 static constexpr absl::string_view kUnusedIterVar = "#unused";
403
404 return comprehension->loop_condition().const_expr().has_bool_value() &&
405 comprehension->loop_condition().const_expr().bool_value() == false &&
406 comprehension->iter_var() == kUnusedIterVar &&
407 comprehension->iter_var2().empty() &&
408 comprehension->iter_range().has_list_expr() &&
409 comprehension->iter_range().list_expr().elements().empty();
410}
411
412bool IsBlock(const cel::CallExpr* call) { return call->function() == kBlock; }
413

Callers 1

PreVisitComprehensionMethod · 0.85

Calls 2

has_list_exprMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected