9 references to WithBody
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (1)
156declaration.WithBody(expression),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (1)
82lambda.WithBody(newBody)
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (2)
43var updatedDecl = declaration.WithBody(expressionBody); 73return lambdaExpression.WithBody(Block(
Microsoft.CodeAnalysis.CSharp.Features (5)
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
130document.Root.ReplaceNode(oldLambda, oldLambda.WithBody(newBody)));
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (1)
156declaration.WithBody(expression),
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (1)
82lambda.WithBody(newBody)
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (2)
43var updatedDecl = declaration.WithBody(expressionBody); 73return lambdaExpression.WithBody(Block(