| 259 | } |
| 260 | |
| 261 | wabt::OutputBuffer* wabt_format_text_errors(wabt::Errors* errors, |
| 262 | wabt::WastLexer* lexer) { |
| 263 | auto line_finder = lexer->MakeLineFinder(); |
| 264 | std::string string_result = FormatErrorsToString( |
| 265 | *errors, wabt::Location::Type::Text, line_finder.get()); |
| 266 | |
| 267 | wabt::OutputBuffer* result = new wabt::OutputBuffer(); |
| 268 | std::copy(string_result.begin(), string_result.end(), |
| 269 | std::back_inserter(result->data)); |
| 270 | return result; |
| 271 | } |
| 272 | |
| 273 | wabt::OutputBuffer* wabt_format_binary_errors(wabt::Errors* errors) { |
| 274 | std::string string_result = |
nothing calls this directly
no test coverage detected