Factory method for Conditional Jump step. Conditional Jump requires a value to sit on the stack. If this value is an error or unknown, a jump is performed.
| 140 | // Conditional Jump requires a value to sit on the stack. |
| 141 | // If this value is an error or unknown, a jump is performed. |
| 142 | std::unique_ptr<JumpStepBase> CreateBoolCheckJumpStep( |
| 143 | absl::optional<int> jump_offset, int64_t expr_id) { |
| 144 | return std::make_unique<BoolCheckJumpStep>(jump_offset, expr_id); |
| 145 | } |
| 146 | |
| 147 | } // namespace google::api::expr::runtime |