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

Stuff not being generated? #2

Open
piotr-j opened this issue Nov 12, 2016 · 0 comments
Open

Stuff not being generated? #2

piotr-j opened this issue Nov 12, 2016 · 0 comments

Comments

@piotr-j
Copy link

piotr-j commented Nov 12, 2016

Im working on updating gamekit bindings and im not certain if im supposed to manually add stuff after generation.
In certain listener/adapter, no methods are generated. Probably due it just extending 4 other protocols and not having any methods. Perhaps its a bug?
Stuff that extends NSError, skip init constructor is not generated?

dkimitsa referenced this issue in dkimitsa/robovm-bro-gen Dec 12, 2018
… resolution in generic parameters.

Issues:
#1 Non expanded typedefs in generics
```
typedef NSString * NSReadingOptionKey
NSDictionary<NSReadingOptionKey, id>
```
was translated into `NSDictionary<NSReadingOptionKey, ?>` and was not able to compile NSReadingOptionKey is unknown.
```

#2 Special case type resolution for generics
Once issue #1 was fixed it was resolved too deeply into `NSDictionary<String, ?>`. And this doesn't work as String is not subclass of NSObject.
And it gets to String as resolution path is following: `NSReadingOptionKey-> NSString * -> String`
To solve this special configuration key is introduced to resolve types specially for generics: `generic_typedefs` and now NSString* typedef looks as below in foundation.yaml:
```
typedefs:
    'NSString *': String
generic_typedefs:
    'NSString *': NSString
```

Which will produce String for general usage and to NSString for generic parameter resolution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant