10 references to RemoveAsyncModifierHelpers
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (10)
src\Analyzers\CSharp\CodeFixes\MakeMethodSynchronous\CSharpMakeMethodSynchronousCodeFixProvider.cs (5)
38
case AnonymousMethodExpressionSyntax method: return
RemoveAsyncModifierHelpers
.WithoutAsyncModifier(method);
39
case ParenthesizedLambdaExpressionSyntax lambda: return
RemoveAsyncModifierHelpers
.WithoutAsyncModifier(lambda);
40
case SimpleLambdaExpressionSyntax lambda: return
RemoveAsyncModifierHelpers
.WithoutAsyncModifier(lambda);
47
return
RemoveAsyncModifierHelpers
.WithoutAsyncModifier(method, newReturnType);
53
return
RemoveAsyncModifierHelpers
.WithoutAsyncModifier(localFunction, newReturnType);
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\CSharpRemoveAsyncModifierCodeFixProvider.cs (5)
54
MethodDeclarationSyntax method =>
RemoveAsyncModifierHelpers
.WithoutAsyncModifier(method, method.ReturnType),
55
LocalFunctionStatementSyntax localFunction =>
RemoveAsyncModifierHelpers
.WithoutAsyncModifier(localFunction, localFunction.ReturnType),
56
AnonymousMethodExpressionSyntax method => AnnotateBlock(generator,
RemoveAsyncModifierHelpers
.WithoutAsyncModifier(method)),
57
ParenthesizedLambdaExpressionSyntax lambda => AnnotateBlock(generator,
RemoveAsyncModifierHelpers
.WithoutAsyncModifier(lambda)),
58
SimpleLambdaExpressionSyntax lambda => AnnotateBlock(generator,
RemoveAsyncModifierHelpers
.WithoutAsyncModifier(lambda)),