-
Notifications
You must be signed in to change notification settings - Fork 67
Subclass overriding methods that return/take NSRange
not correctly generated
#1180
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
Comments
Maybe |
Name issue for
|
I think that you fixed this. |
Not sure if it's fixed, but package:objective_c should probably export the |
Doesn't |
Yep. I've exported all the interfaces, but not the structs. |
If you wanted to add a test that verifies that you have exported everything that you need to, you could use |
Ah, that would explain why the generated buildings are still incorrect:
|
Fixed this a while ago (#1175) but forgot to close it. |
I can still reproduce this issue when generating code for |
@BestOwl can you give me some more information? What buggy behavior are you seeing? |
Use the following config to generate a bindings for ffigen:
name: Speech
description: Bindings for Apple Speech framework
language: objc
output: "lib/src/apple_speech_bindings_generated.dart"
headers:
entry-points:
- "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Speech.framework/Headers/Speech.h"
exclude-all-by-default: true
objc-interfaces:
include:
- SFTranscriptionSegment ffigen produces the warning:
and the generated code:
The generated code should use |
Oh ok. The bug is probably that |
When generating code for
NSMutableIndexSet
, this code is produced:But
package:objective_c defines
NSIndexSet` like:Since the
NSRange
used in the base and subclass don't match, the@override
is not valid. ProbablyNSRange
has to be part ofpackage:objective_c
and generated code must reference that.The text was updated successfully, but these errors were encountered: