2 instantiations of Enumerator
Microsoft.CodeAnalysis (2)
Syntax\ChildSyntaxList.cs (1)
421
return 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>
414
public
Enumerator
GetEnumerator()
Syntax\ChildSyntaxList.Enumerator.cs (1)
103
private
Enumerator
_enumerator;
Syntax\SyntaxNavigator.cs (4)
92
private static readonly ObjectPool<Stack<ChildSyntaxList.
Enumerator
>> s_childEnumeratorStackPool
93
= new ObjectPool<Stack<ChildSyntaxList.
Enumerator
>>(() => new Stack<ChildSyntaxList.
Enumerator
>(), 10);
104
var
en = stack.Pop();
Syntax\SyntaxNode.Iterators.cs (4)
47
private static readonly ObjectPool<ChildSyntaxList.
Enumerator
[]> s_stackPool = new ObjectPool<ChildSyntaxList.
Enumerator
[]>(() => new ChildSyntaxList.
Enumerator
[16]);
49
private ChildSyntaxList.
Enumerator
[]? _stack;
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (2)
98
var
e1 = node1.ChildNodesAndTokens().GetEnumerator();
99
var
e2 = node2.ChildNodesAndTokens().GetEnumerator();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\ParsingTests.cs (2)
262
var stack = new Stack<ChildSyntaxList.
Enumerator
>(24);
268
var
en = stack.Pop();
Microsoft.CodeAnalysis.Workspaces (5)
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (3)
38
private static readonly ObjectPool<Stack<ChildSyntaxList.
Enumerator
>> s_enumeratorPool = new(() => new());
242
private static bool TryGetStackTopNodeOrToken(Stack<ChildSyntaxList.
Enumerator
> stack, out SyntaxNodeOrToken syntaxNodeOrToken)
244
while (stack.TryPop(out
var
topEnumerator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (2)
98
var
e1 = node1.ChildNodesAndTokens().GetEnumerator();
99
var
e2 = node2.ChildNodesAndTokens().GetEnumerator();