-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This is a partial fix of #46 > zenhack commented on Sep 17, 2016: > > if a name would otherwise collide with a go or go-capnpc name, append > a single underscore. e.g. `Struct` becomes `Struct_` Also see capnproto/capnproto#323 This commit changes the generated getter and setter methods for struct fields. If the field name would collide with code generated for any struct such as `Method()` or `String()`, the field getter becomes `Method_()` and the setter becomes `SetMethod_()`. Technically only `Method_()` would be necessary, but who wants to maintain the mental state? If the getter changes, the setter also changing is just simpler conceptually. The capnp files in this repo under `std` have $Go.name() annotations due to #46. This removes one of them (std/capnp/compat/json.capnp) and updates the unit tests for code coverage testing purposes.
- Loading branch information
1 parent
93062cf
commit 1855ade
Showing
7 changed files
with
98 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters