19 references to WithExpressionBody
ILLink.CodeFixProvider (1)
RequiresUnsafeCodeFixProvider.cs (1)
454.WithExpressionBody(null)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForPropertiesHelper.cs (1)
51=> declaration.WithExpressionBody(expressionBody);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
115.WithExpressionBody(null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
208.WithExpressionBody(expressionBody)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BasePropertyDeclarationSyntaxExtensions.cs (1)
54PropertyDeclarationSyntax property => property.WithExpressionBody(expressionBody),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
273.WithExpressionBody(null)
Microsoft.CodeAnalysis.CSharp.Features (6)
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
145return propertyDeclaration.WithExpressionBody(expressionBody)
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (3)
78return propertyDeclaration.WithExpressionBody(getAccessor.ExpressionBody) 87return propertyDeclaration.WithExpressionBody(arrowExpression) 107.WithExpressionBody(null)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForPropertiesHelper.cs (1)
51=> declaration.WithExpressionBody(expressionBody);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
115.WithExpressionBody(null)
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
450.WithExpressionBody(null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
208.WithExpressionBody(expressionBody)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BasePropertyDeclarationSyntaxExtensions.cs (1)
54PropertyDeclarationSyntax property => property.WithExpressionBody(expressionBody),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
273.WithExpressionBody(null)
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
208.WithExpressionBody(expressionBody)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BasePropertyDeclarationSyntaxExtensions.cs (1)
54PropertyDeclarationSyntax property => property.WithExpressionBody(expressionBody),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
273.WithExpressionBody(null)