| 523 | } |
| 524 | |
| 525 | bool 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 | |
| 535 | bool Unparser::IsComplexOperator(const Expr& expr) { |
| 536 | // If the arg is a call with more than one arg, return true |
nothing calls this directly
no test coverage detected