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

Unified Diff: mojom/mojom_parser/parser/comment_merger_test.go

Issue 1767033002: Mojom parser: Compute and validate struct field ordinals. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Maintain the property that the fields of a module.Struct are sorted in declaration order. 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
« no previous file with comments | « mojom/mojom_parser/mojom/user_defined_types.go ('k') | mojom/mojom_parser/parser/parser_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojom/mojom_parser/parser/comment_merger_test.go
diff --git a/mojom/mojom_parser/parser/comment_merger_test.go b/mojom/mojom_parser/parser/comment_merger_test.go
index fdce0c012eae7bcefb474354139965cc43dd5eb2..45c75b3b1d02f73d544e508c5d4269e84dfd6791 100644
--- a/mojom/mojom_parser/parser/comment_merger_test.go
+++ b/mojom/mojom_parser/parser/comment_merger_test.go
@@ -66,7 +66,7 @@ func TestAttachComments(t *testing.T) {
// Sanity-check that we got the right method.
checkEq("Method1", method1.SimpleName())
- inParam1 := method1.Parameters.Fields[0]
+ inParam1 := method1.Parameters.FieldsInLexicalOrder[0]
// Sanity-check that we got the right field.
checkEq("in_param1", inParam1.SimpleName())
« no previous file with comments | « mojom/mojom_parser/mojom/user_defined_types.go ('k') | mojom/mojom_parser/parser/parser_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698