Using Roslyn, I would like to modify my C# code before the actual compilation. For now, I will just need something like:
[MyAnotatedMethod]
public void MyMethod(
As I pointed out in my comment it is not currently available. Although you could put something together using AOP techniques shown here with the Roslyn Scripting API to provide a very flexible solution.
The correct answer at this point in time is that the Roslyn team have an open proposal/issue to support it. Thanks to the .Net Foundation and Microsoft participating in Open Source you can read about this features development here:
https://github.com/dotnet/roslyn/issues/5561