mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 17:15:26 +00:00
CodeGenerators: Ensure that we always print the entire generated output
This commit is contained in:
committed by
Linus Groh
parent
e007279315
commit
8032724574
@@ -405,8 +405,7 @@ ErrorOr<void> generate_header_file(JsonObject& api_data, Core::File& file)
|
||||
generator.appendln("}");
|
||||
generator.appendln("#endif");
|
||||
|
||||
// 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 {};
|
||||
}
|
||||
|
||||
@@ -530,8 +529,7 @@ ErrorOr<void> generate_implementation_file(JsonObject& api_data, Core::File& fil
|
||||
}
|
||||
});
|
||||
|
||||
// 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 {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user