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

VisitXsltCopyOf() protected method

Generate code for QilNodeType.XsltCopyOf.
protected VisitXsltCopyOf ( QilUnary ndCopyOf ) : QilNode
ndCopyOf QilUnary
return QilNode
        protected override QilNode VisitXsltCopyOf(QilUnary ndCopyOf) {
            Debug.Assert(XmlILConstructInfo.Read(ndCopyOf).PushToWriterFirst, "XsltCopyOf should always be pushed to writer.");

            this.helper.LoadQueryOutput();

            // XmlQueryOutput.XsltCopyOf(navigator);
            NestedVisitEnsureStack(ndCopyOf.Child);
            this.helper.Call(XmlILMethods.CopyOf);

            this.iterCurr.Storage = StorageDescriptor.None();
            return ndCopyOf;
        }
XmlILVisitor