Factory method for ternary (_?_:_) recursive execution step
| 173 | |
| 174 | // Factory method for ternary (_?_:_) recursive execution step |
| 175 | std::unique_ptr<DirectExpressionStep> CreateDirectTernaryStep( |
| 176 | std::unique_ptr<DirectExpressionStep> condition, |
| 177 | std::unique_ptr<DirectExpressionStep> left, |
| 178 | std::unique_ptr<DirectExpressionStep> right, int64_t expr_id, |
| 179 | bool shortcircuiting) { |
| 180 | if (shortcircuiting) { |
| 181 | return std::make_unique<ShortcircuitingDirectTernaryStep>( |
| 182 | std::move(condition), std::move(left), std::move(right), expr_id); |
| 183 | } |
| 184 | |
| 185 | return std::make_unique<ExhaustiveDirectTernaryStep>( |
| 186 | std::move(condition), std::move(left), std::move(right), expr_id); |
| 187 | } |
| 188 | |
| 189 | absl::StatusOr<std::unique_ptr<ExpressionStep>> CreateTernaryStep( |
| 190 | int64_t expr_id) { |
no outgoing calls
no test coverage detected