Vannevelj / VSDiagnostics

A collection of static analyzers based on Roslyn that integrate with VS
GNU General Public License v2.0
65 stars 16 forks source link

Make method async #632

Open Vannevelj opened 7 years ago

Vannevelj commented 7 years ago

Have an analyzer that changes the current method signature to be its async version. This includes changing the return type, adding the async modifier and changing the method name.

Example 1:

void MyMethod()
{

}
async Task MyMethodAsync()
{

}

Example 2:

int MyMethod()
{

}
async Task<int> MyMethodAsync()
{

}