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

VisitCommentCtor() protected method

Generate code for QilNodeType.CommentCtor.
protected VisitCommentCtor ( QilUnary ndComment ) : QilNode
ndComment System.Xml.Xsl.Qil.QilUnary
return QilNode
        protected override QilNode VisitCommentCtor(QilUnary ndComment) {
            Debug.Assert(XmlILConstructInfo.Read(ndComment).PushToWriterFirst, "Comment construction should always be pushed to writer.");

            // Always call XmlQueryOutput.WriteStartComment
            this.helper.CallWriteStartComment();

            // Recursively construct content
            NestedVisit(ndComment.Child);

            // Always call XmlQueryOutput.WriteEndComment
            this.helper.CallWriteEndComment();

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