6 references to WithBody
Microsoft.CodeAnalysis.CSharp (3)
Syntax.xml.Syntax.Generated.cs (3)
12982internal override BaseMethodDeclarationSyntax WithBodyCore(BlockSyntax? body) => WithBody(body); 12999return WithBody(body.WithAttributeLists(body.AttributeLists.AddRange(items))); 13005return WithBody(body.WithStatements(body.Statements.AddRange(items)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.cs (1)
13522var 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.GenFacades (1)
NotSupportedAssemblyGenerator.cs (1)
166return node.WithBody(block);