7 references to WithBody
Microsoft.CodeAnalysis.CSharp (3)
Syntax.xml.Syntax.Generated.cs (3)
12983
internal override BaseMethodDeclarationSyntax WithBodyCore(BlockSyntax? body) =>
WithBody
(body);
13000
return
WithBody
(body.WithAttributeLists(body.AttributeLists.AddRange(items)));
13006
return
WithBody
(body.WithStatements(body.Statements.AddRange(items)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.cs (1)
13522
var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithTildeToken(node.TildeToken).WithIdentifier(node.Identifier).WithParameterList(node.ParameterList).
WithBody
(node.Body).WithExpressionBody(node.ExpressionBody).WithSemicolonToken(node.SemicolonToken);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
376
=> SyntaxFactory.DestructorDeclaration(destructorMethod.ContainingType.Name).
WithBody
(SyntaxFactory.Block());
Microsoft.DotNet.ApiDiff (1)
SyntaxRewriter\RemoveBodySyntaxRewriter.cs (1)
49
.
WithBody
(null) // remove the default empty body wrapped by brackets
Microsoft.DotNet.GenFacades (1)
NotSupportedAssemblyGenerator.cs (1)
166
return node.
WithBody
(block);