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