2
// <copyright see="prj:///doc/copyright.txt"/>
3
// <license see="prj:///doc/license.txt"/>
4
// <author name="Daniel Grunwald"/>
5
// <version>$Revision: 4482 $</version>
9
using ICSharpCode.OldNRefactory.Ast;
10
using System.Collections.Generic;
12
namespace ICSharpCode.OldNRefactory.Visitors
15
/// Sets the parent property on all nodes in the tree.
17
public class SetParentVisitor : NodeTrackingAstVisitor
19
Stack<INode> nodeStack = new Stack<INode>();
21
public SetParentVisitor()
26
protected override void BeginVisit(INode node)
28
node.Parent = nodeStack.Peek();
32
protected override void EndVisit(INode node)