We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4de5af1 commit e65968fCopy full SHA for e65968f
src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/AsyncAwaitHighlighter.cs
@@ -52,7 +52,9 @@ private IEnumerable<SyntaxNode> WalkChildren(SyntaxNode node)
52
var current = stack.Pop();
53
yield return current;
54
55
- foreach (var child in current.ChildNodesAndTokens())
+ // '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())
58
{
59
if (child.IsNode)
60
0 commit comments