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 support for hierarchical record creation from generated factories #48

Merged
merged 1 commit into from
Nov 10, 2022

Conversation

kzu
Copy link
Member

@kzu kzu commented Nov 9, 2022

We now invoke factories automatically whenever they are found.

A new diagnostic is reported if a Create(dynamic value) factory method is found in the record but it's not accessible to the generated factory in the current assembly. The diagnostic is nevertheless a warning since in that case we still generate our custom factory, but users will not get the benefit of invoking their custom factory (although this might be by design if it's just a coincidence in the method name and signature they chose for an entirely unrelated purpose).

Closes #47

We now invoke factories automatically whenever they are
found.

A new diagnostic is reported if a `Create(dynamic value)` factory
method is found in the record but it's not accessible to the
generated factory in the current assembly. The diagnostic is
nevertheless a warning since in that case we still generate our
custom factory, but users will not get the benefit of invoking
their custom factory (although this might be by design if it's
just a coincidence in the method name and signature they
chose for an entirely unrelated purpose).

Closes #47
@kzu kzu merged commit 47203c0 into main Nov 10, 2022
@kzu kzu deleted the dev/dynamic-hierarchy branch November 10, 2022 00:01
@devlooped devlooped locked and limited conversation to collaborators Nov 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support hierarchical record creation from generated dynamic factory
1 participant