internal Green(XmlNameSyntax.Green nameNode, SyntaxToken.Green equalsSyntax, XmlNodeSyntax.Green valueNode) : base(SyntaxKind.XmlAttribute) { this.SlotCount = 3; this.nameNode = nameNode; AdjustWidth(nameNode); this.equalsSyntax = equalsSyntax; AdjustWidth(equalsSyntax); this.valueNode = valueNode; AdjustWidth(valueNode); }
internal Green(XmlNameSyntax.Green nameNode, SyntaxToken.Green equalsSyntax, XmlNodeSyntax.Green valueNode, DiagnosticInfo[] diagnostics, SyntaxAnnotation[] annotations) : base(SyntaxKind.XmlAttribute, diagnostics, annotations) { this.SlotCount = 3; this.nameNode = nameNode; AdjustWidth(nameNode); this.equalsSyntax = equalsSyntax; AdjustWidth(equalsSyntax); this.valueNode = valueNode; AdjustWidth(valueNode); }
internal Green(XmlDeclarationSyntax.Green prologue, GreenNode precedingMisc, XmlNodeSyntax.Green body, GreenNode followingMisc, SkippedTokensTriviaSyntax.Green skippedTokens, SyntaxToken.Green eof, DiagnosticInfo[] diagnostics, SyntaxAnnotation[] annotations) : base(SyntaxKind.XmlDocument, diagnostics, annotations) { this.SlotCount = 6; this.prologue = prologue; AdjustWidth(prologue); this.precedingMisc = precedingMisc; AdjustWidth(precedingMisc); this.body = body; AdjustWidth(body); this.followingMisc = followingMisc; AdjustWidth(followingMisc); this.skippedTokens = skippedTokens; AdjustWidth(skippedTokens); this.eof = eof; AdjustWidth(eof); }
public void Add(XmlNodeSyntax.Green xml) { _content.Add(xml); }