System.Xml.Xsl.IlGen.XmlILStateAnalyzer.AnalyzeLoop C# (CSharp) Method

AnalyzeLoop() protected method

Analyze loop.
protected AnalyzeLoop ( QilLoop ndLoop, XmlILConstructInfo info ) : void
ndLoop System.Xml.Xsl.Qil.QilLoop
info XmlILConstructInfo
return void
        protected virtual void AnalyzeLoop(QilLoop ndLoop, XmlILConstructInfo info) {
            XmlQueryType typ = ndLoop.XmlType;

            // Ensure that construct method is Writer
            info.ConstructMethod = XmlILConstructMethod.Writer;

            if (!typ.IsSingleton)
                StartLoop(typ, info);
 
            // Body constructs content
            ndLoop.Body = AnalyzeContent(ndLoop.Body);

            if (!typ.IsSingleton)
                EndLoop(typ, info);
        }