16 references to WithExpressionBody
ILLink.CodeFixProvider (1)
RequiresUnsafeCodeFixProvider.cs (1)
427.WithExpressionBody(null)
Microsoft.CodeAnalysis.CSharp (1)
_generated\2\Syntax.xml.Syntax.Generated.cs (1)
12436internal override BaseMethodDeclarationSyntax WithExpressionBodyCore(ArrowExpressionClauseSyntax? expressionBody) => WithExpressionBody(expressionBody);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForMethodsHelper.cs (1)
46=> declaration.WithExpressionBody(expressionBody);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\CSharpRemoveAsyncModifierCodeFixProvider.cs (1)
41MethodDeclarationSyntax method => method.WithBody(block).WithExpressionBody(null).WithSemicolonToken(default),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
193.WithExpressionBody(expressionBody)
Microsoft.CodeAnalysis.CSharp.Features (8)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
310.WithExpressionBody(localFunction.ExpressionBody)
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (5)
150.WithExpressionBody(setAccessorDeclaration.ExpressionBody) 202.WithExpressionBody(propertyDeclaration.ExpressionBody) 214.WithExpressionBody(getAccessorDeclaration.ExpressionBody) 273.WithExpressionBody(arrowExpression) 283return methodDeclaration.WithExpressionBody(null)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForMethodsHelper.cs (1)
46=> declaration.WithExpressionBody(expressionBody);
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\CSharpRemoveAsyncModifierCodeFixProvider.cs (1)
41MethodDeclarationSyntax method => method.WithBody(block).WithExpressionBody(null).WithSemicolonToken(default),
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
816.WithExpressionBody(null);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
193.WithExpressionBody(expressionBody)
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
193.WithExpressionBody(expressionBody)