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

Add “partial” modifier to generated members #78

Closed
TIPConsulting opened this issue Feb 1, 2021 · 2 comments · Fixed by #96
Closed

Add “partial” modifier to generated members #78

TIPConsulting opened this issue Feb 1, 2021 · 2 comments · Fixed by #96
Assignees
Labels
enhancement New feature or request

Comments

@TIPConsulting
Copy link

I was trying to update a non-trivial project (x_input gamepad library) to use this generator. The methods were generating properly, but I found that many of my existing data structs had custom members. It would be nice to have a way to extend the capabilities of auto-generated structs. I think adding the partial modifier could be an easy fix, but I'm not sure if that would cause any issues for marshaled objects

@dotMorten
Copy link

I've been using a different code generator for a few years (not based on analyzers), but we did exactly this and it's been very helpful to add a bit of extra functionality without having to change what is used to drive the generated code. So I could definitely see this being useful.

@AArnott
Copy link
Member

AArnott commented Feb 19, 2021

Note #133, as your scenario is still blocked as tracked by that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants