Implemented interface member:
39 references to Count
Microsoft.AspNetCore.Razor.Language.UnitTests (8)
Syntax\SyntaxTokenListTests.cs (8)
109list = list.Insert(list.Count, SyntaxFactory.Token(SyntaxKind.Arrow)); 110list = list.Insert(list.Count, SyntaxFactory.Token(SyntaxKind.OpenAngle)); 111list = list.Insert(list.Count, SyntaxFactory.Token(SyntaxKind.LeftParenthesis)); 112list = list.Insert(list.Count, SyntaxFactory.Token(SyntaxKind.RightParenthesis)); 126list = list.InsertRange(list.Count, [ 263while (list.Count > 0) 292for (var i = 0; i < list1.Count; i++) 297for (var i = 0; i < list2.Count; i++)
Microsoft.CodeAnalysis.Razor.Compiler (28)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (9)
579count += tokens1.Count; 585count += tokens2.Count; 591count += tokens3.Count; 597count += tokens4.Count; 603count += tokens5.Count; 823if (escapedAtTokens.Count > 0) 841if (escapedAtTokens.Count > 0) 858if (escapedAtTokens.Count > 0) 877if (escapedAtTokens.Count > 0)
Language\SpanComputer.cs (1)
36if (tokenList.Count == 0)
Language\Syntax\SyntaxReplacer.cs (1)
347if (index >= 0 && index < list.Count)
Language\Syntax\SyntaxRewriter.cs (1)
88var count = list.Count;
Language\Syntax\SyntaxTokenList.cs (12)
134for (int i = 0, count = Count; i < count; i++) 147for (int i = 0, count = Count; i < count; i++) 159=> Insert(Count, token); 162=> InsertRange(Count, tokens); 165=> InsertRange(Count, tokens); 179var count = Count; 207var count = Count; 248var count = Count; 268var count = Count; 318var newCount = Count - 1; 351var newCount = Count - 1; 375var newCount = Count - 1;
Language\Syntax\SyntaxTokenList.Enumerator.cs (1)
54_count = list.Count;
Language\Syntax\SyntaxTokenList.Reversed.cs (3)
20=> _list.Count == 0 25=> _list.Count == 0 57_count = list.Count;
Microsoft.CodeAnalysis.Razor.Workspaces (3)
Extensions\RazorSyntaxNodeExtensions.cs (1)
329using var literalTokensWithoutLines = new PooledArrayBuilder<SyntaxToken>(literalTokens.Count);
Formatting\Passes\CSharpFormattingPass.CSharpDocumentGenerator.cs (2)
319Debug.Assert(node.LiteralTokens.Count > 0); 457Debug.Assert(node.LiteralTokens.Count > 0);