Implemented interface member:
47 references to Count
Microsoft.CodeAnalysis (5)
Syntax\ChildSyntaxList.cs (1)
62/// <paramref name="index"/> is less than 0.-or-<paramref name="index" /> is equal to or greater than <see cref="ChildSyntaxList.Count"/>. </exception>
Syntax\SyntaxDiffer.cs (1)
325var children = new SyntaxNodeOrToken[node.ChildNodesAndTokens().Count];
Syntax\SyntaxNodeOrToken.cs (3)
912int hi = list.Count - 1; 959return siblings.Count < 8 1011var count = siblings.Count;
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
65var childCount = childNodesAndTokens.Count;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
367if (index >= 0 && index < children.Count)
Microsoft.CodeAnalysis.CSharp (3)
Parser\Blender.Cursor.cs (2)
69for (int i = _indexInParent + 1, n = siblings.Count; i < n; i++) 118for (int i = index, n = children.Count; i < n; i++)
Syntax\CSharpSyntaxWalker.cs (1)
37var childCnt = node.ChildNodesAndTokens().Count;
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\SyntaxUtilities.cs (1)
137=> list != null && list.ChildNodesAndTokens().Count != 0;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (18)
IncrementalParsing\GrammarAmbiguities.cs (3)
113Assert.Equal(expectedNode.ChildNodesAndTokens().Count, actualNode.ChildNodesAndTokens().Count); 115for (var i = 0; i < expectedNode.ChildNodesAndTokens().Count; i++)
IncrementalParsing\IncrementalParsingTests.cs (11)
1664Assert.Equal(parsedTree.GetCompilationUnitRoot().ChildNodesAndTokens().Count, incrementalTree.GetCompilationUnitRoot().ChildNodesAndTokens().Count); 1667for (int i = 0; i < parsedTree.GetCompilationUnitRoot().ChildNodesAndTokens().Count; i++) 2992int incCount = currTree.GetCompilationUnitRoot().ChildNodesAndTokens().Count; 2993int fullCount = fullTree.GetCompilationUnitRoot().ChildNodesAndTokens().Count; 3713Assert.Equal(incChildren.Count, fullChildren.Count); 3715for (int i = 0; i < incChildren.Count; i++) 3781Assert.Equal(parsedTreeNode.ChildNodesAndTokens().Count, incrementalTreeNode.ChildNodesAndTokens().Count); 3783for (int i = 0; i < parsedTreeNode.ChildNodesAndTokens().Count; i++)
LexicalAndXml\XmlDocCommentTests.cs (4)
770Assert.Equal(4, textsyntax.ChildNodesAndTokens().Count); 804Assert.Equal(4, textsyntax.ChildNodesAndTokens().Count); 1289Assert.Equal(2, tree.GetCompilationUnitRoot().ChildNodesAndTokens().Count); 1652Assert.Equal(3, xmltext.ChildNodesAndTokens().Count);
Microsoft.CodeAnalysis.Features (2)
GenerateEqualsAndGetHashCodeFromMembers\FormatLargeBinaryExpressionRule.cs (1)
49if (expr?.ChildNodesAndTokens().Count > 1)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
367if (index >= 0 && index < children.Count)
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\CompilationExtensions.cs (1)
400for (int i = 0; i < childNodesAndTokens.Count; i++)
Microsoft.CodeAnalysis.VisualBasic (2)
Compilation\DocumentationComments\UnprocessedDocumentationCommentFinder.vb (1)
114Dim childCnt = list.Count
Syntax\VisualBasicSyntaxWalker.vb (1)
34Dim childCnt = list.Count
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (10)
IncrementalParser\IncrementalParser.vb (2)
1131Assert.Equal(children2.Count, children1.Count)
Parser\ParseStatements.vb (1)
579Assert.Equal(4, subMain.ChildNodesAndTokens().Count)
TestSyntaxNodes.vb (7)
79Assert.Equal(7, children.Count) 90Assert.Equal(3, children.Count) 242If list.Count > 0 Then 245Assert.Equal(expectedFullSpan.End, list(list.Count - 1).FullSpan.End) 247For i = 0 To list.Count - 2 1738Assert.Equal(False, node.ChildNodesAndTokens().Count = 0) 1739Assert.Equal(2, node.ChildNodesAndTokens().Count)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
ParserTestUtilities.vb (1)
310For j = 0 To children.Count - 1
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Classification\Worker.XmlClassifier.vb (1)
316Dim lastChild = If(childNodesAndTokens.IsEmpty, Nothing, childNodesAndTokens(childNodesAndTokens.Count - 1))
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
65var childCount = childNodesAndTokens.Count;