| 6670 | } |
| 6671 | |
| 6672 | ErrorOr<void> Jakt::codegen::CodeGenerator::codegen_call(Jakt::types::CheckedCall const call,ByteStringBuilder& output,bool const forward_error_with_try) { |
| 6673 | { |
| 6674 | ByteString const error_handler = [&]() -> ByteString { auto __jakt_enum_value = call.callee_throws; |
| 6675 | if (__jakt_enum_value) {return this->current_error_handler(forward_error_with_try);}else if (!__jakt_enum_value) {return ByteString::from_utf8_without_validation(""sv);}VERIFY_NOT_REACHED(); |
| 6676 | |
| 6677 | }(); |
| 6678 | if (!error_handler.is_empty()){ |
| 6679 | output.appendff(ByteString::from_utf8_without_validation("{}(("sv),error_handler); |
| 6680 | } |
| 6681 | TRY((this->codegen_call_unwrapped(call,output))); |
| 6682 | if (!error_handler.is_empty()){ |
| 6683 | output.append(StringView::from_string_literal("))"sv)); |
| 6684 | } |
| 6685 | } |
| 6686 | return {}; |
| 6687 | } |
| 6688 | |
| 6689 | ErrorOr<void> Jakt::codegen::CodeGenerator::codegen_call_unwrapped(Jakt::types::CheckedCall const call,ByteStringBuilder& output) { |
| 6690 | { |
no test coverage detected