So made a source generator - ended up rather complex.
But I find unit testing it very tedious when verifying the generated output via Verify.
Is it not possible to load a class/instance as source in the testing, and use it as foundation for the generator. Instead of having to manually writing (and maintaining) the source as a string to then parse into a syntax tree to verify output? I mean it can generate on compile time, so why not at test? :D