Closed trejjam closed 1 year ago
Yes, of course, I will gladly accept PR regarding this.
We need to consider whether your class is suitable for caching. There is a special EquatableArray
(from CommunityToolkit.Mvvm.SourceGenerators) here that can be compared.
Are you familiar with how caching works in Source Generators?
I added it and indicated you as co-author: https://github.com/HavenDV/H.Generators.Extensions/commit/187d7e46c8c4b2494aac6197566a52bf44e2723d
I didn't understand the need for where T : notnull
in your code. This may be my misunderstanding of the nullable system in C#, but it seems redundant to me. Please check if needed I will fix it
Thank you for the release.
It works without T : notnull
also, the only difference is that you need to specify ResultWithDiagnostics<T?>
instead of ResultWithDiagnostics<T>
but it's not an issue. Thank you again.
I know that caching is heavily used in source generators, but I was not aware that ImmutableArray
is not enough
Hi,
I found myself in need to report Diagnostics of my own creation inside a source generator.
How do you like this code to be part of this project?