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

Collect more information in the scanner #4

Open
4 of 8 tasks
ronaldoussoren opened this issue Jul 25, 2020 · 1 comment
Open
4 of 8 tasks

Collect more information in the scanner #4

ronaldoussoren opened this issue Jul 25, 2020 · 1 comment

Comments

@ronaldoussoren
Copy link
Owner

ronaldoussoren commented Jul 25, 2020

The scanner should extract more information for a number use cases:

  • availability information, in particular deprecation information
  • collect the names of enum types, and associate that with enum labels and values (both for C enums and string enums)
  • collect nullable info
  • collect the type name for parameters/return values that have "@" as their encoded type
  • collect "NS_UNAVAILABLE" attribute
  • collect if enums are equivalent to IntEnum or IntFlag
  • collect NS_STRING_ENUM and NS_EXTENSIBLE_STRING_ENUM information
  • collect availability for aliases

This information can be used to:

  • Generate documentation for the framework wrappers
  • Add more detail to the framework wrappers
  • Generate MyPy typing stubs
@ronaldoussoren
Copy link
Owner Author

Most of this is now implemented.

There is an attempt to collect type names, but that code is not quite right.

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