System.Xml.Xsl.IlGen.XmlILOptimizerVisitor.NodeFinder.Visit C# (CSharp) Method

Visit() protected method

Recursively visit, searching for target. If/when found, call OnFound() method.
protected Visit ( QilNode expr ) : QilNode
expr QilNode
return QilNode
            protected override QilNode Visit(QilNode expr) {
                if (!this.result) {
                    if (expr == this.target)
                        this.result = OnFound(expr);

                    if (!this.result) {
                        QilNode parentOld = this.parent;
                        this.parent = expr;
                        VisitChildren(expr);
                        this.parent = parentOld;
                    }
                }

                return expr;
            }
XmlILOptimizerVisitor.NodeFinder