GitHub user zhaakhi opened a pull request:
https://github.com/apache/thrift/pull/1002
THRIFT-3812 Add option to prefix namespace Swift type names
Swift does not appear to have a way to namespace things within a single pod.
This adds an option swift:prefix_namespace that will add Cocoa-style
prefixes to the generated code if the file has a defined Swift namespace.
E.g. if a file has
"namespace swift ABC"
then the struct "MyStruct" will be renamed to "ABCMyStruct"
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zhaakhi/thrift THRIFT-3812
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/thrift/pull/1002.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1002
----
commit a7239140a64ae95ddf06d057070b4bbde2bc7895
Author: HÃ¥kon Hitland <[email protected]>
Date: 2016-04-20T19:59:42Z
THRIFT-3812 Add option to prefix namespace Swift type names
Swift does not appear to have a way to namespace things within a single
pod.
This adds an option swift:prefix_namespace that will add Cocoa-style
prefixes to the generated code if the file has a defined Swift
namespace.
E.g. if a file has
"namespace swift ABC"
then the struct "MyStruct" will be renamed to "ABCMyStruct"
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---