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

Convert AttributesToAvoidReplicating to a ProxyGenerationOptions property #575

Closed

Conversation

stakx
Copy link
Member

@stakx stakx commented Feb 12, 2021

As requested by @jonorossi in #517 (comment).

(Note: This could perhaps still be cleaned up a little further. I decided to open the PR early to demonstrate the extent of the required code changes; as I stated in the linked issue, I'm not convinced this is worth all the trouble.)

This PR starts by first bundling several commonly used objects into a "proxy generation context", which is really just a per-type-generation state bag useful for reducing the number of things we need to inject into the various objects (generators, contributors, collectors, etc.).

I've attempted to do this cleanly several times now, it always gets messy once I'm beginning to inject the AttributesToAvoidReplicating collection into the emitters and invocation type generators (which happens fairly late in this PR).

(Unrelated P.S.: Apparently, GitHub Actions doesn't trigger for PRs. I'll look into that separately.)

@stakx stakx marked this pull request as draft February 12, 2021 01:27
@stakx stakx force-pushed the attributes-to-avoid-replicating branch 2 times, most recently from c6cd1bc to bd5443a Compare February 12, 2021 01:41
@stakx stakx force-pushed the attributes-to-avoid-replicating branch from bd5443a to d684ef2 Compare February 12, 2021 01:51
@stakx stakx closed this Apr 21, 2021
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.

None yet

1 participant