CodingFlow / decorator-generator

Source generator for decorator pattern boilerplate code in C#.
Apache License 2.0
11 stars 5 forks source link

IIncrementalGenerator vs ISourceGenerator #82

Open ignatandrei opened 1 month ago

ignatandrei commented 1 month ago

I maintain a list of Roslyn Source Code Generators at ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG

However, the source generators have been deprecated in favor of the new incremental generators , that allows better performance

See dotnet/roslyn@main/docs/features/incremental-generators.md

However this means passing from ISourceGenerator to IIncrementalGenerator

Could you do that ?

Thanks Andrei

CodingFlow commented 2 days ago

Hi @ignatandrei, sorry for the late reply. It looks like it would basically require a rewrite for the most part to use the new incremental generator API with its different semantics. I'll keep trying to figure it out and work on it, but feel free to give it a try yourself as well. Thank you for bringing this to my attention!