System.Xml.Xsl.IlGen.XmlILVisitor.VisitLoop C# (CSharp) Method

VisitLoop() protected method

Generate code for a QilNodeType.Loop.
protected VisitLoop ( QilLoop ndLoop ) : QilNode
ndLoop QilLoop
return QilNode
        protected override QilNode VisitLoop(QilLoop ndLoop) {
            bool hasOnEnd;
            Label lblOnEnd;

            StartWriterLoop(ndLoop, out hasOnEnd, out lblOnEnd);

            StartBinding(ndLoop.Variable);

            // Unnest loop body as part of the current iterator
            Visit(ndLoop.Body);

            EndBinding(ndLoop.Variable);

            EndWriterLoop(ndLoop, hasOnEnd, lblOnEnd);

            return ndLoop;
        }
XmlILVisitor