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