33 references to Reverse
Microsoft.CodeAnalysis (6)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
283
foreach (var child in node.ChildNodesAndTokens().
Reverse
())
Syntax\SyntaxNavigator.cs (4)
146
stack.Push(current.ChildNodesAndTokens().
Reverse
().GetEnumerator());
171
stack.Push(child.AsNode()!.ChildNodesAndTokens().
Reverse
().GetEnumerator());
490
foreach (var child in node.Parent.ChildNodesAndTokens().
Reverse
())
602
foreach (var child in current.Parent.ChildNodesAndTokens().
Reverse
())
Syntax\SyntaxNodeOrToken.cs (1)
971
foreach (var child in this.Parent.ChildNodesAndTokens().
Reverse
())
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
58
var nameNode = memberAccessSyntax.ChildNodesAndTokens().
Reverse
().FirstOrDefault().AsNode();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ChildSyntaxListExtensions.cs (1)
26
foreach (var syntaxNodeOrToken in childSyntaxList.
Reverse
())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (1)
38
foreach (var child in current.ChildNodesAndTokens().
Reverse
())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
71
foreach (var child in childNodesAndTokens.
Reverse
())
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpSyntaxNode.cs (1)
272
foreach (var child in this.ChildNodesAndTokens().
Reverse
())
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Syntax\ChildSyntaxListTests.cs (2)
34
EqualityTesting.AssertEqual(new ChildSyntaxList(node1).
Reverse
(), new ChildSyntaxList(node1).
Reverse
());
Syntax\SyntaxListTests.cs (2)
358
foreach (var child in node.ChildNodesAndTokens().
Reverse
())
372
foreach (var node in parseAndGetInitializer(source).ChildNodesAndTokens().
Reverse
())
Syntax\SyntaxNodeTests.cs (1)
992
var list2 = children.
Reverse
().ToList();
Microsoft.CodeAnalysis.EditorFeatures (1)
TextStructureNavigation\AbstractTextStructureNavigatorProvider.TextStructureNavigator.cs (1)
272
.
Reverse
()
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
58
var nameNode = memberAccessSyntax.ChildNodesAndTokens().
Reverse
().FirstOrDefault().AsNode();
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\VisualBasicSyntaxNode.vb (1)
362
For Each child In Me.ChildNodesAndTokens().
Reverse
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
127
For Each child In nodeOrToken.ChildNodesAndTokens().
Reverse
()
Microsoft.CodeAnalysis.VisualBasic.Features (1)
LineSeparators\VisualBasicLineSeparatorService.vb (1)
155
Dim lastToken = node.ChildNodesAndTokens().
Reverse
().First()
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
TestSyntaxNodes.vb (2)
104
For Each i In children.
Reverse
126
Dim enumeratorr = children.
Reverse
.GetEnumerator
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
127
For Each child In nodeOrToken.ChildNodesAndTokens().
Reverse
()
Microsoft.CodeAnalysis.Workspaces (8)
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (4)
180
oldStack.Push(oldRoot.ChildNodesAndTokens().
Reverse
().GetEnumerator());
181
newStack.Push(newRoot.ChildNodesAndTokens().
Reverse
().GetEnumerator());
222
oldStack.Push(currentOld.AsNode()!.ChildNodesAndTokens().
Reverse
().GetEnumerator());
223
newStack.Push(currentNew.AsNode()!.ChildNodesAndTokens().
Reverse
().GetEnumerator());
FindSymbols\FindReferences\FindReferenceCache.cs (1)
166
foreach (var child in currentNode.ChildNodesAndTokens().
Reverse
())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ChildSyntaxListExtensions.cs (1)
26
foreach (var syntaxNodeOrToken in childSyntaxList.
Reverse
())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (1)
38
foreach (var child in current.ChildNodesAndTokens().
Reverse
())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
71
foreach (var child in childNodesAndTokens.
Reverse
())
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
346
foreach (var child in childNodesAndTokens.
Reverse
())