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

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

Issue 1844103002: Mojom compiler frontend: Populate the declaration_order field for Methods. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Don't change mojom_translator.py in this cl. 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/user_defined_types.go
diff --git a/mojom/mojom_parser/mojom/user_defined_types.go b/mojom/mojom_parser/mojom/user_defined_types.go
index 1c892f7d50513e749b870b1ba7c02e6ee2417b32..18b52f2d283e037773848c6649d36be2e4a4d94a 100644
--- a/mojom/mojom_parser/mojom/user_defined_types.go
+++ b/mojom/mojom_parser/mojom/user_defined_types.go
@@ -745,6 +745,7 @@ func (i *MojomInterface) AddMethod(method *MojomMethod) DuplicateNameError {
return err
}
i.methodsByName[method.simpleName] = method
+ method.lexicalPosition = int32(len(i.methodsByLexicalOrder))
i.methodsByLexicalOrder = append(i.methodsByLexicalOrder, method)
i.DeclaredObjects = append(i.DeclaredObjects, method)
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