mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:38:11 +00:00
CodeGenerators: Ensure that we always print the entire generated output
This commit is contained in:
parent
e007279315
commit
8032724574
17 changed files with 37 additions and 74 deletions
|
@ -95,8 +95,7 @@ enum class ValueID;
|
|||
|
||||
generator.appendln("}");
|
||||
|
||||
// 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 {};
|
||||
}
|
||||
|
||||
|
@ -200,7 +199,6 @@ StringView to_string(@name:titlecase@ value)
|
|||
|
||||
generator.appendln("}");
|
||||
|
||||
// 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 {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue