40 references to Count
Microsoft.CodeAnalysis.CSharp (12)
Parser\DocumentationCommentParser.cs (1)
414if (!badTokens.IsNull && badTokens.Count > 0)
Parser\LanguageParser.cs (9)
365if (body.Members.Count > 0) 369else if (body.Attributes.Count > 0) 373else if (body.Usings.Count > 0) 377else if (body.Externs.Count > 0) 674if (incompleteMembers.Count > 0) 687for (int i = 0; i < incompleteMembers.Count; i++) 3927if (list.Count == 0) 8122if (statements.Count == 0) 8126else if (statements.Count == 1)
Parser\SyntaxParser.cs (2)
865list[list.Count - 1] = AddTrailingSkippedSyntax(list[list.Count - 1], skippedSyntax);
Microsoft.CodeAnalysis.VisualBasic (28)
Parser\BlockContexts\BlockContext.vb (5)
222Return If(_statements.Count = 1, _statements(0), Nothing) 265If statements.Count = 0 Then 267ElseIf statements.Count <= 2 Then 321If _statements.Count = 0 Then 325index = _statements.Count - 1
Parser\BlockContexts\MethodBlockContext.vb (1)
30If Statements.Count = 0 Then
Parser\BlockContexts\PropertyBlockContext.vb (2)
27Return _isPropertyBlock OrElse Statements.Count > 0 120Debug.Assert(Statements.Count = 0)
Parser\BlockContexts\SingleLineElseContext.vb (2)
92If _statements.Count > 0 Then 120If _statements.Count > 0 Then
Parser\BlockContexts\SingleLineIfBlockContext.vb (2)
96Debug.Assert(_statements.Count > 0) 117If _statements.Count > 0 Then
Parser\BlockContexts\SingleLineLambdaContext.vb (1)
80If _statements.Count > 0 Then
Parser\ParseQuery.vb (4)
1016If operators.Count > 0 AndAlso operators(operators.Count - 1).ContainsDiagnostics Then 1018operators(operators.Count - 1) = ResyncAt(operators(operators.Count - 1),
Parser\Parser.vb (1)
541If methodContext.Statements.Count > 0 Then
Parser\ParserExtensions.vb (1)
59For i = 0 To this.Count - 1
Parser\ParseXml.vb (1)
335Dim count = Content.Count
Scanner\Scanner.vb (1)
888For i = 0 To triviaList.Count - 1
Scanner\ScannerXml.vb (1)
935If precedingTrivia.Count > 0 Then
Syntax\InternalSyntax\SyntaxNodeExtensions.vb (6)
468If _skippedTokensBuilder.Count > 0 Then 543If _triviaListBuilder.Count > 0 Then 544_triviaListBuilder(_triviaListBuilder.Count - 1) = _triviaListBuilder(_triviaListBuilder.Count - 1).WithAdditionalDiagnostics(_diagnosticsToAdd.ToArray()) 591For i As Integer = 0 To tokenListBuilder.Count - 1 594skippedTriviaBuilder.AddToken(currentToken, isFirst:=(i = 0), isLast:=(i = tokenListBuilder.Count - 1))