Returns true the given expression is - a call expression AND ONE of the following holds: - a binary operator - a ternary conditional operator
| 542 | // - a binary operator |
| 543 | // - a ternary conditional operator |
| 544 | bool Unparser::IsBinaryOrTernaryOperator(const Expr& expr) { |
| 545 | if (!IsComplexOperator(expr)) { |
| 546 | return false; |
| 547 | } |
| 548 | return LookupBinaryOperator(expr.call_expr().function()).has_value() || |
| 549 | IsOperatorSamePrecedence(CelOperator::CONDITIONAL, expr); |
| 550 | } |
| 551 | |
| 552 | } // namespace |
| 553 |
nothing calls this directly
no test coverage detected