Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with generating Swift declarations from Objective-C #536

Closed
jonlansdell opened this issue Apr 21, 2016 · 2 comments
Closed

Problem with generating Swift declarations from Objective-C #536

jonlansdell opened this issue Apr 21, 2016 · 2 comments

Comments

@jonlansdell
Copy link

I'm running the latest version incorporating the latest (really excellent) changes from #530. The Swift interfaces are all generated correctly from the Objective-C project, with one exception:

An Objective-C interface such as:

-(void)enumerateObjectsUsingBlock:(void (^)(NSObject *obj, NSInteger idx, BOOL *stop))block;

Produces the following Swift:

func enumerateObjectsUsingBlock(block: ((NSObject!, Int, UnsafeMutablePointer

(it doesn't process the BOOL *stop)

whereas it should generate something like:

func enumerateObjectsUsingBlock(block: (NSObject!, Int, UnsafeMutablePointer<ObjCBool>) -> Void)

Thanks.

Jon

@jpsim
Copy link
Collaborator

jpsim commented Apr 21, 2016

Thanks for reporting this Jon, and yes I also noticed that.

Jazzy uses SourceKit to generate those, so any improvements should probably be done there, upstream. The SourceKit project is available on GitHub here: https://github.com/apple/swift/tree/master/tools/SourceKit

@istx25
Copy link
Contributor

istx25 commented Nov 23, 2016

Since this is not an issue specific to Jazzy, I'm going to close the issue. Feel free to re-open if you disagree or have more to say about the issue.

@istx25 istx25 closed this as completed Nov 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants