1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

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
17 changed files with 37 additions and 74 deletions

View file

@ -1047,8 +1047,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 {};
}
@ -1748,8 +1747,7 @@ ErrorOr<Optional<String>> resolve_most_likely_territory(LanguageID const& langua
}
)~~~");
// 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 {};
}