System.Xml.Xsl.IlGen.TailCallAnalyzer.Analyze C# (CSharp) Method

Analyze() public static method

Perform tail-call analysis on the functions in the specified QilExpression.
public static Analyze ( QilExpression qil ) : void
qil System.Xml.Xsl.Qil.QilExpression
return void
        public static void Analyze(QilExpression qil) {
            foreach (QilFunction ndFunc in qil.FunctionList) {
                // Only analyze functions which are pushed to the writer, since otherwise code
                // is generated after the call instruction in order to process cached results
                if (XmlILConstructInfo.Read(ndFunc).ConstructMethod == XmlILConstructMethod.Writer)
                    AnalyzeDefinition(ndFunc.Definition);
            }
        }