6 references to WithStatements
Microsoft.CodeAnalysis.CSharp (1)
Syntax.xml.Syntax.Generated.cs (1)
8620public SwitchSectionSyntax AddStatements(params StatementSyntax[] items) => WithStatements(this.Statements.AddRange(items));
Microsoft.CodeAnalysis.CSharp.Features (4)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
142return node.WithStatements([.. VisitList(ReplaceStatements(node.Statements))]);
IntroduceUsingStatement\CSharpIntroduceUsingStatementCodeRefactoringProvider.cs (1)
56parentOfStatementsToSurround is SwitchSectionSyntax switchSection ? switchSection.WithStatements(statements) :
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
544SwitchSectionSyntax switchSection => switchSection.WithStatements(statements),
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (1)
227SwitchSectionSyntax n => n.WithStatements([.. statements]),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.cs (1)
12815var newNode = node.WithLabels(node.Labels).WithStatements(node.Statements);