-
Notifications
You must be signed in to change notification settings - Fork 168
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
Swift 2.2.1 code fails to parse #17
Comments
Seems like we have to add option to skip unknown tokens or ignore comment tokens. Thanks for the report. |
I wasn't able to reproduce your problem. Could you please try it with new version (0.5.0) and send us the file which causes this error? |
Unfortunately, same happens with 0.5.0 version. The problematic source code is
I use the generator command
and get the
The out.swift looks like this (notice
|
@FilipDolnik Seems to be a bug in FileHeaderHandler. |
Problem is with the public modificator. So this is raw code which won`t work.
All attributes like @objc causes this as well. Temporary workaround is to use --no-header parameter. |
Should be fixed in 0.5.1. Please try it out! :) |
I have a swift file with a protocol followed by protocol extensions. There are some comments in the file, including
// MARK: -
declarations.When I run cuckoo console utility, parsing fails with errors
Unknown kind: source.lang.swift.syntaxtype.comment.mark Unknown kind: source.lang.swift.decl.extension
As a result, the generated file, contains
public
without any declaration following it. The generated protocol mock looks ok, though.The text was updated successfully, but these errors were encountered: