DescriptionGo bindings: Change generated enum value constants to be typed as the enum type.
This change does not address the debate in https://github.com/domokit/mojo/issues/765 regarding the naming of the enum value constants.
It only addresses the problem described in the bug description, namely that the enum constants do not have the right type.
- The primary change is in enum.tmpl
- I added a new test, enums_test.go. In so doing I beefed up test_enums.mojom. This required re-generating the Dart file for this mojom.
- Adding the test revealed an unrelated bug which I fixed in mojom_go_generatory.py
BUG=#765
R=vardhan@google.com
Committed: https://chromium.googlesource.com/external/mojo/+/2f2d1bece6eb2dae607edadbc7355cec65e892fb
Patch Set 1 #
Messages
Total messages: 11 (8 generated)
|