7 references to WithBody
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
AssignOutParametersAboveReturnCodeFixProvider.cs (1)
86
lambda.
WithBody
(newBody)
UseExpressionBodyForLambdaCodeActionHelpers.cs (2)
37
var updatedDecl = declaration.
WithBody
(expressionBody);
67
return currentDeclaration.
WithBody
(SyntaxFactory.Block(
Microsoft.CodeAnalysis.CSharp.Features (4)
AssignOutParametersAboveReturnCodeFixProvider.cs (1)
86
lambda.
WithBody
(newBody)
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
112
var newLambda = oldLambda.
WithBody
(newBody);
UseExpressionBodyForLambdaCodeActionHelpers.cs (2)
37
var updatedDecl = declaration.
WithBody
(expressionBody);
67
return currentDeclaration.
WithBody
(SyntaxFactory.Block(