1 override of WithSetAccessorStatements
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
2796
public override SyntaxNode
WithSetAccessorStatements
(SyntaxNode declaration, IEnumerable<SyntaxNode> statements)
4 references to WithSetAccessorStatements
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (3)
CodeGeneration\SyntaxGeneratorTests.cs (3)
3788
Assert.Equal(2, Generator.GetSetAccessorStatements(Generator.
WithSetAccessorStatements
(Generator.PropertyDeclaration("p", Generator.IdentifierName("t")), stmts)).Count);
3789
Assert.Equal(2, Generator.GetSetAccessorStatements(Generator.
WithSetAccessorStatements
(Generator.IndexerDeclaration([p], Generator.IdentifierName("t")), stmts)).Count);
3790
Assert.Equal(0, Generator.GetSetAccessorStatements(Generator.
WithSetAccessorStatements
(Generator.IdentifierName("x"), stmts)).Count);
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxEditorExtensions.cs (1)
48
=> editor.ReplaceNode(declaration, (d, g) => g.
WithSetAccessorStatements
(d, statements));