2 instantiations of Enumerator
Microsoft.CodeAnalysis (2)
Syntax\ChildSyntaxList.cs (1)
421return new Enumerator(_node, _count);
Syntax\ChildSyntaxList.Enumerator.cs (1)
107_enumerator = new Enumerator(node, count);
20 references to Enumerator
Microsoft.CodeAnalysis (11)
Syntax\ChildSyntaxList.cs (2)
413/// <returns>A <see cref="Enumerator"/> for the <see cref="ChildSyntaxList"/>.</returns> 414public Enumerator GetEnumerator()
Syntax\ChildSyntaxList.Enumerator.cs (1)
103private Enumerator _enumerator;
Syntax\SyntaxNavigator.cs (4)
92private static readonly ObjectPool<Stack<ChildSyntaxList.Enumerator>> s_childEnumeratorStackPool 93= new ObjectPool<Stack<ChildSyntaxList.Enumerator>>(() => new Stack<ChildSyntaxList.Enumerator>(), 10); 104var en = stack.Pop();
Syntax\SyntaxNode.Iterators.cs (4)
47private static readonly ObjectPool<ChildSyntaxList.Enumerator[]> s_stackPool = new ObjectPool<ChildSyntaxList.Enumerator[]>(() => new ChildSyntaxList.Enumerator[16]); 49private ChildSyntaxList.Enumerator[]? _stack;
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (2)
100var e1 = node1.ChildNodesAndTokens().GetEnumerator(); 101var e2 = node2.ChildNodesAndTokens().GetEnumerator();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\ParsingTests.cs (2)
262var stack = new Stack<ChildSyntaxList.Enumerator>(24); 268var en = stack.Pop();
Microsoft.CodeAnalysis.Workspaces (5)
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (3)
38private static readonly ObjectPool<Stack<ChildSyntaxList.Enumerator>> s_enumeratorPool = new(() => new()); 242private static bool TryGetStackTopNodeOrToken(Stack<ChildSyntaxList.Enumerator> stack, out SyntaxNodeOrToken syntaxNodeOrToken) 244while (stack.TryPop(out var topEnumerator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (2)
100var e1 = node1.ChildNodesAndTokens().GetEnumerator(); 101var e2 = node2.ChildNodesAndTokens().GetEnumerator();