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

VisitFor() protected method

Generate code for a QilNodeType.For.
protected VisitFor ( QilIterator ndFor ) : QilNode
ndFor System.Xml.Xsl.Qil.QilIterator
return QilNode
        protected override QilNode VisitFor(QilIterator ndFor) {
            IteratorDescriptor iterInfo;

            // Reference saved location
            iterInfo = XmlILAnnotation.Write(ndFor).CachedIteratorDescriptor;
            this.iterCurr.Storage = iterInfo.Storage;

            // If the iterator is a reference to a global variable or parameter,
            if (this.iterCurr.Storage.Location == ItemLocation.Global) {
                // Then compute global value and push it onto the stack
                this.iterCurr.EnsureStack();
            }

            return ndFor;
        }
XmlILVisitor