6 references to WithArms
Microsoft.CodeAnalysis.CSharp (1)
Syntax.xml.Syntax.Generated.cs (1)
8881public SwitchExpressionSyntax AddArms(params SwitchExpressionArmSyntax[] items) => WithArms(this.Arms.AddRange(items));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (2)
46return switchNode.WithArms(switchNode.Arms.InsertRangeWithTrailingSeparator( 50return switchNode.WithArms(switchNode.Arms.InsertRange(insertLocation, newArms));
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (2)
46return switchNode.WithArms(switchNode.Arms.InsertRangeWithTrailingSeparator( 50return switchNode.WithArms(switchNode.Arms.InsertRange(insertLocation, newArms));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.cs (1)
12865var newNode = node.WithGoverningExpression(node.GoverningExpression).WithSwitchKeyword(node.SwitchKeyword).WithOpenBraceToken(node.OpenBraceToken).WithArms(node.Arms).WithCloseBraceToken(node.CloseBraceToken);