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

Make the type converters available to custom pre-processing phase visitors. #895

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

stijnherreman
Copy link
Contributor

@stijnherreman stijnherreman commented Jan 21, 2024

This change makes the type converters available to custom pre-processing phase visitors instead of discarding them. The type converters are necessary when inheriting from PreProcessingPhaseObjectGraphVisitorSkeleton.

The change also aligns the WithPreProcessingPhaseObjectGraphVisitor(...) API with the WithEmissionPhaseObjectGraphVisitor(...) API.

Fixes #677

There are currently no unit tests at all for this API, but I can add one if required. I'm already using this change locally to implement a custom anchor assigning visitor (see #807).

@EdwardCooke
Copy link
Collaborator

I'm fine pushing in another breaking change in the next version, there's already going to be a couple. However, can you just add method overloads to incorporate your changes?

@stijnherreman
Copy link
Contributor Author

Sure, either is fine with me. I've updated the PR to add overloads instead of replacing the existing ones.

@EdwardCooke EdwardCooke merged commit 0ca7b09 into aaubry:master Jan 23, 2024
1 check passed
@aaubry
Copy link
Owner

aaubry commented Jan 23, 2024

This feature has been released in version 15.1.0.

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.

How to get type converters when using WithPreProcessingPhaseObjectGraphVisitor
3 participants