Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: mojom/mojom_parser/mojom/computed_data.go

Issue 1832143003: Mojom frontend: Don't stop after processing the first method. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojom/mojom_parser/mojom/computed_data.go
diff --git a/mojom/mojom_parser/mojom/computed_data.go b/mojom/mojom_parser/mojom/computed_data.go
index 615da1a94724c06ea6af5f66f805956b9b17c144..8a92f2e38458b8d15d1df23309cdcf389d1f5c9c 100644
--- a/mojom/mojom_parser/mojom/computed_data.go
+++ b/mojom/mojom_parser/mojom/computed_data.go
@@ -270,10 +270,14 @@ func computePayloadSizeSoFar(field *StructField) uint32 {
func (i *MojomInterface) ComputeFinalData() error {
for _, method := range i.MethodsByOrdinal {
if method.Parameters != nil {
- return method.Parameters.ComputeFinalData()
+ if err := method.Parameters.ComputeFinalData(); err != nil {
+ return err
+ }
}
if method.ResponseParameters != nil {
- return method.ResponseParameters.ComputeFinalData()
+ if err := method.ResponseParameters.ComputeFinalData(); err != nil {
+ return err
+ }
}
}
return nil
« no previous file with comments | « mojo/public/tools/bindings/mojom_tool/bin/mac64/mojom.sha1 ('k') | mojom/mojom_parser/serialization/serialization_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698