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

Automate generation of lists of package:objective_c exports #1249

Open
liamappelbe opened this issue Jul 1, 2024 · 1 comment
Open

Automate generation of lists of package:objective_c exports #1249

liamappelbe opened this issue Jul 1, 2024 · 1 comment

Comments

@liamappelbe
Copy link
Contributor

package:objective_c exports a bunch of generated classes/enums etc. The lists of these exports are duplicated in a few different places. We have a test that verifies all the lists match, but it would be better to automatically generate them. The tests uses regexps to find all the important things in the generated file, so we could instead use those regexps to generate the lists directly in pkgs/objective_c/tool/generate_code.dart.

Relevant files:

  • pkgs/objective_c/lib/objective_c.dart
  • pkgs/objective_c/ffigen_objc.yaml
  • pkgs/objective_c/test/interface_lists_test.dart
  • pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart
@liamappelbe
Copy link
Contributor Author

Btw pkgs/objective_c/ffigen_objc.yaml probably doesn't need to explicitly list all the interfaces etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant