10 references to RemoveAsyncModifierHelpers
Microsoft.CodeAnalysis.CSharp.Features (10)
src\Analyzers\CSharp\CodeFixes\MakeMethodSynchronous\CSharpMakeMethodSynchronousCodeFixProvider.cs (5)
38
AnonymousMethodExpressionSyntax method =>
RemoveAsyncModifierHelpers
.WithoutAsyncModifier(method),
39
ParenthesizedLambdaExpressionSyntax lambda =>
RemoveAsyncModifierHelpers
.WithoutAsyncModifier(lambda),
40
SimpleLambdaExpressionSyntax lambda =>
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)),