Sampels of how to use Source Generators, Diagnostic Analyzers and Code Fixers. Currently they work best when used from a nuget package.
https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/ https://github.com/dotnet/roslyn/blob/main/docs/features/incremental-generators.cookbook.md https://devblogs.microsoft.com/dotnet/introducing-c-source-generators/