forked from golang/mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bind: Fix setter name generation for ObjC
The generation for getters and setters of Go exported fields that followed the accroynyms rule, i.e. for a field named `OSName` the resulting getter and settere were `osName` and `setOSName` respectively, however the Obj-C rules defined here: * https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html expected for the names to be the following: `osName` and `setOsName`. This commit updates setter name generation by capitalizing the field name and leaves the getter name unchaged, this also updates the golden files. Fix golang/go#32008
- Loading branch information
Showing
3 changed files
with
67 additions
and
2 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