Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
 }
Beispiel #4
0
 public void Add(XmlNodeSyntax.Green xml)
 {
     _content.Add(xml);
 }