Skip to content

Conversation

@Rekkonnect
Copy link

@Rekkonnect Rekkonnect commented Apr 24, 2023

When a visitor has no acceptors, a nullref with crash the generator, failing to generate source across the entire project.

This PR fixes the issue by simply not generating any source for the visitors that have no acceptors. As I believe, it does not hurt to just ignore the visitors and keep them there, without any acceptor implementations, unless explicitly defined as the model suggests.

I tested this by adding some tests and basically building the test project to contain unit tests ready for execution, using NUnit. It has been opened as a separate PR: #2.

@Rekkonnect Rekkonnect mentioned this pull request Apr 24, 2023
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