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

Method VisitAllMacro

tools/cel_unparser.cc:362–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362absl::Status Unparser::VisitAllMacro(const Expr::Comprehension& expr) {
363 if (expr.loop_step().call_expr().args_size() != 2) {
364 return absl::InvalidArgumentError(
365 absl::StrCat("Unexpected all macro: ", expr.ShortDebugString()));
366 }
367
368 Print(CelOperator::ALL, kLeftParen, expr.iter_var(), kComma, kSpace);
369 CEL_RETURN_IF_ERROR(Visit(expr.loop_step().call_expr().args(1)));
370 Print(kRightParen);
371 return absl::OkStatus();
372}
373
374absl::Status Unparser::VisitExistsMacro(const Expr::Comprehension& expr) {
375 if (expr.loop_step().call_expr().args_size() != 2) {

Callers

nothing calls this directly

Calls 2

argsMethod · 0.80
VisitFunction · 0.50

Tested by

no test coverage detected