3 references to WithBlock
Microsoft.CodeAnalysis.CSharp (2)
Syntax.xml.Syntax.Generated.cs (2)
9020
public TryStatementSyntax AddBlockAttributeLists(params AttributeListSyntax[] items) =>
WithBlock
(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items)));
9021
public TryStatementSyntax AddBlockStatements(params StatementSyntax[] items) =>
WithBlock
(this.Block.WithStatements(this.Block.Statements.AddRange(items)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.cs (1)
12892
var newNode = node.WithAttributeLists(node.AttributeLists).WithTryKeyword(node.TryKeyword).
WithBlock
(node.Block).WithCatches(node.Catches).WithFinally(node.Finally);