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

EndLoop() private method

Calculate ending xml states that will result when iterating over and constructing an expression of the specified type.
private EndLoop ( XmlQueryType typ, XmlILConstructInfo info ) : void
typ XmlQueryType
info XmlILConstructInfo
return void
        private void EndLoop(XmlQueryType typ, XmlILConstructInfo info) {
            Debug.Assert(!typ.IsSingleton);

            // Save ending loop states
            info.EndLoopStates = this.xstates;

            // If it's possible to loop zero times, then states-final needs to include states-initial
            if (typ.MaybeEmpty && info.InitialStates != this.xstates)
                this.xstates = PossibleXmlStates.Any;
        }