Chromium Code Reviews

Side by Side Diff: mojo/public/interfaces/bindings/tests/test_enums.mojom

Issue 1943643002: Go bindings: Change generated enum value constants to be typed as the enum type. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 [DartPackage="_mojo_for_test_only"] 1 [DartPackage="_mojo_for_test_only"]
2 module mojo.test; 2 module mojo.test;
3 3
4 enum TestEnum { 4 enum TestEnum {
5 TEST = 0, 5 TEST = 0,
6 V = 1, 6 V = 1,
7 FOO = 2, 7 FOO = 2,
8 BAR = 3, 8 BAR = 3,
9 }; 9 };
10
11 enum TestEnum2 {
12 TEST,
13 V = 1,
14 FOO = 2,
15 BAR = 3,
16 };
OLDNEW
« no previous file with comments | « mojo/go/tests/enums_test.go ('k') | mojo/public/tools/bindings/generators/go_templates/enum.tmpl » ('j') | no next file with comments »

Powered by Google App Engine