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

Simpler code generation #3370

Merged
merged 2 commits into from
Dec 10, 2024
Merged

Simpler code generation #3370

merged 2 commits into from
Dec 10, 2024

Conversation

kennykerr
Copy link
Collaborator

@kennykerr kennykerr commented Dec 10, 2024

With #3359 I mostly went for code gen parity (for validation) but with an eye toward greatly simplifying the resulting code gen once the new generator was available. Here are the first two of those simplifications:

  • Remove the "return void" hint to simplify the various Win32 style method permutations. I'd like to simplify this further but this is a good start.

  • Remove the TypeKind implementation on all Win32 structs. It really should only be needed for some WinRT types. I'd like to remove them on Win32 handles as well but that will require a bit more work so I'll handle that separately. 🙂

And this is why:

image

@kennykerr kennykerr changed the title Simpler Simpler code generation Dec 10, 2024
@kennykerr kennykerr merged commit 350014d into master Dec 10, 2024
75 checks passed
@kennykerr kennykerr deleted the simpler branch December 10, 2024 16:12
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

Successfully merging this pull request may close these issues.

1 participant