提交 e65968f7 编写于 作者: C Cyrus Najmabadi

reverse

上级 4de5af13
......@@ -52,7 +52,9 @@ private IEnumerable<SyntaxNode> WalkChildren(SyntaxNode node)
var current = stack.Pop();
yield return current;
foreach (var child in current.ChildNodesAndTokens())
// 'Reverse' isn't really necessary, but it means we walk the nodes in document
// order, which is nicer when debugging and understanding the results produced.
foreach (var child in current.ChildNodesAndTokens().Reverse())
{
if (child.IsNode)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册