CodeGenerators: Ensure that we always print the entire generated output

This commit is contained in:
Tim Schumacher 2023-03-01 16:28:32 +01:00 committed by Linus Groh
parent e007279315
commit 8032724574
Notes: sideshowbarker 2024-07-17 10:54:57 +09:00
17 changed files with 37 additions and 74 deletions

View file

@ -763,8 +763,7 @@ namespace Locale {
}
)~~~");
// FIXME: This should write the entire span.
TRY(file.write_some(generator.as_string_view().bytes()));
TRY(file.write_until_depleted(generator.as_string_view().bytes()));
return {};
}
@ -1108,8 +1107,7 @@ ErrorOr<Vector<NumberFormat>> get_unit_formats(StringView locale, StringView uni
}
)~~~");
// FIXME: This should write the entire span.
TRY(file.write_some(generator.as_string_view().bytes()));
TRY(file.write_until_depleted(generator.as_string_view().bytes()));
return {};
}