41 references to SeparatorCount
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpSyntaxRewriter.cs (1)
174var sepCount = list.SeparatorCount;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SeparatedSyntaxListExtensions.cs (1)
26return newList.Count == newList.SeparatorCount
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
441for (var separatorIndex = 0; separatorIndex < forStatementSyntax.Initializers.SeparatorCount; separatorIndex++)
Microsoft.CodeAnalysis.CSharp.Features (2)
EditAndContinue\BreakpointSpans.cs (2)
237for (var i = 0; i < parameters.SeparatorCount; i++) 903for (var i = list.SeparatorCount - 1; i >= 0; i--)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
Parsing\NameParsingTests.cs (8)
306Assert.Equal(0, gname.TypeArgumentList.Arguments.SeparatorCount); 323Assert.Equal(1, gname.TypeArgumentList.Arguments.SeparatorCount); 447Assert.Equal(0, gname.TypeArgumentList.Arguments.SeparatorCount); 552Assert.Equal(0, array.RankSpecifiers[0].Sizes.SeparatorCount); 574Assert.Equal(2, array.RankSpecifiers[0].Sizes.SeparatorCount); 597Assert.Equal(0, array.RankSpecifiers[0].Sizes.SeparatorCount); 601Assert.Equal(1, array.RankSpecifiers[1].Sizes.SeparatorCount); 605Assert.Equal(2, array.RankSpecifiers[2].Sizes.SeparatorCount);
Syntax\SyntaxFactoryTests.cs (8)
239Assert.Equal(0, null1.SeparatorCount); 245Assert.Equal(0, null2.SeparatorCount); 251Assert.Equal(0, empty1.SeparatorCount); 257Assert.Equal(0, empty2.SeparatorCount); 263Assert.Equal(0, singleton1.SeparatorCount); 269Assert.Equal(0, singleton2.SeparatorCount); 275Assert.Equal(2, list1.SeparatorCount); 286Assert.Equal(2, list2.SeparatorCount);
Syntax\SyntaxNodeTests.cs (1)
1920Assert.Equal(3, sizes.SeparatorCount);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SeparatedSyntaxListExtensions.cs (1)
26return newList.Count == newList.SeparatorCount
Microsoft.CodeAnalysis.Features (4)
ChangeSignature\AbstractChangeSignatureService.cs (4)
746var count = arguments.SeparatorCount - numSeparatorsToSkip; 754separators.Add(i < arguments.SeparatorCount 875if (indexInListOfPreexistingArguments < newArguments.SeparatorCount) 899if (indexInListOfPreexistingArguments < newArguments.SeparatorCount)
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\VisualBasicSyntaxRewriter.vb (1)
134Dim sepCount As Integer = list.SeparatorCount
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ArgumentListSyntaxExtensions.vb (1)
14If count = 1 AndAlso argumentList.Arguments.Last().IsMissing AndAlso argumentList.Arguments.SeparatorCount = 0 Then
Microsoft.CodeAnalysis.VisualBasic.Features (1)
EditAndContinue\BreakpointSpans.vb (1)
325For i = list.SeparatorCount - 1 To 0 Step -1
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (10)
Syntax\ManualTests.vb (4)
163Assert.Equal(0, null1.SeparatorCount) 175Assert.Equal(0, empty1.SeparatorCount) 187Assert.Equal(0, singleton1.SeparatorCount) 199Assert.Equal(2, list1.SeparatorCount)
TestSyntaxNodes.vb (6)
570Assert.Equal(0, seplist.SeparatorCount) 583Assert.Equal(0, arglist.Arguments.SeparatorCount) 599Assert.Equal(0, seplist.SeparatorCount) 627Assert.Equal(2, sepList.SeparatorCount) 654Assert.Equal(2, sepList.SeparatorCount) 1184If i < params.SeparatorCount Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ArgumentListSyntaxExtensions.vb (1)
14If count = 1 AndAlso argumentList.Arguments.Last().IsMissing AndAlso argumentList.Arguments.SeparatorCount = 0 Then