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

Method IsComplexOperatorWithRespectTo

tools/cel_unparser.cc:525–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525bool Unparser::IsComplexOperatorWithRespectTo(const Expr& expr,
526 const std::string& op) {
527 // If the arg is not a call with more than one arg, return false.
528 if (!expr.has_call_expr() || expr.call_expr().args_size() < 2) {
529 return false;
530 }
531 // Otherwise, return whether the given op has lower precedence than expr
532 return IsOperatorLowerPrecedence(op, expr);
533}
534
535bool Unparser::IsComplexOperator(const Expr& expr) {
536 // If the arg is a call with more than one arg, return true

Callers

nothing calls this directly

Calls 2

has_call_exprMethod · 0.80

Tested by

no test coverage detected