Skip to content

Commit e65968f

Browse files
reverse
1 parent 4de5af1 commit e65968f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/AsyncAwaitHighlighter.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ private IEnumerable<SyntaxNode> WalkChildren(SyntaxNode node)
5252
var current = stack.Pop();
5353
yield return current;
5454

55-
foreach (var child in current.ChildNodesAndTokens())
55+
// 'Reverse' isn't really necessary, but it means we walk the nodes in document
56+
// order, which is nicer when debugging and understanding the results produced.
57+
foreach (var child in current.ChildNodesAndTokens().Reverse())
5658
{
5759
if (child.IsNode)
5860
{

0 commit comments

Comments
 (0)