예제 #1
0
        public XmlNodeSyntax.Green CreateElement(XmlElementEndTagSyntax.Green endElement)
        {
            Debug.Assert(endElement != null);
            var contentList = _content.ToList();

            _pool.Free(_content);
            return(XmlElement(_start, contentList.Node, endElement));
        }
예제 #2
0
 internal Green(XmlElementStartTagSyntax.Green startTag, GreenNode content, XmlElementEndTagSyntax.Green endTag, DiagnosticInfo[] diagnostics, SyntaxAnnotation[] annotations)
     : base(SyntaxKind.XmlElement, diagnostics, annotations)
 {
     this.SlotCount = 3;
     this.startTag  = startTag;
     AdjustWidth(startTag);
     this.content = content;
     AdjustWidth(content);
     this.endTag = endTag;
     AdjustWidth(endTag);
 }
예제 #3
0
 internal Green(XmlElementStartTagSyntax.Green startTag, GreenNode content, XmlElementEndTagSyntax.Green endTag)
     : base(SyntaxKind.XmlElement)
 {
     this.SlotCount = 3;
     this.startTag  = startTag;
     AdjustWidth(startTag);
     this.content = content;
     AdjustWidth(content);
     this.endTag = endTag;
     AdjustWidth(endTag);
 }
예제 #4
0
 internal XmlNodeSyntax.Green CreateElement(XmlElementEndTagSyntax.Green missingEndElement, object v)
 {
     return(CreateElement(missingEndElement));
 }