public XmlNodeSyntax.Green CreateElement(XmlElementEndTagSyntax.Green endElement) { Debug.Assert(endElement != null); var contentList = _content.ToList(); _pool.Free(_content); return(XmlElement(_start, contentList.Node, endElement)); }
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); }
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); }
internal XmlNodeSyntax.Green CreateElement(XmlElementEndTagSyntax.Green missingEndElement, object v) { return(CreateElement(missingEndElement)); }