Серия статей о создании генератора исходного кода от Эндрю Лока:

Creating an incremental generator
Testing an incremental generator with snapshot testing
Integration testing and NuGet packaging
Customising generated code with marker attributes
How to Cut in iMovie