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

[Swift Bindings] Adding information about closed generics to the type database #2917

Open
jkurdek opened this issue Jan 9, 2025 · 0 comments
Labels
area-SwiftBindings Swift bindings for .NET

Comments

@jkurdek
Copy link
Member

jkurdek commented Jan 9, 2025

When processing a module we can encounter closed generics as fields or arguments. The generic type might belong to the same module or other module. We need to process the newly encountered closed generic (maybe calculate some data like size, alignment, blittability) and save it into type database.

  1. Keep track of newly encountered closed generics during ABI parsing
  2. Process types in post-processing step and save it into type database

The problematic part is saving a new closed instance of a generic type coming from a different module into type database. Assuming that we process module by module we either have to load up a type database from a previously processed module and store the closed generic instance there or stick it on the database of the module we found it in.

@jkurdek jkurdek added the area-SwiftBindings Swift bindings for .NET label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-SwiftBindings Swift bindings for .NET
Projects
None yet
Development

No branches or pull requests

1 participant