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 sync #633

Open Vannevelj opened 7 years ago

Vannevelj commented 7 years ago

Have an analyzer that changes the current method signature to be its sync version. This includes changing the return type, removing the async modifier and changing the method name (if appropriate).

Example 1:

async Task MyMethodAsync()
{

}
void MyMethod()
{

}

Example 2:

async Task<int> MyMethodAsync()
{

}
int MyMethod()
{

}

Example 3:

async Task MyMethod()
{

}
void MyMethod()
{

}