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 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); }
public XmlContext(SyntaxListPool pool, XmlElementStartTagSyntax.Green start) { _pool = pool; _start = start; _content = _pool.Allocate <XmlNodeSyntax.Green>(); }