Example #1
0
 internal Green(XmlPrefixSyntax.Green xmlPrefix, XmlNameTokenSyntax.Green localName, DiagnosticInfo[] diagnostics, SyntaxAnnotation[] annotations)
     : base(SyntaxKind.XmlName, diagnostics, annotations)
 {
     this.SlotCount = 2;
     this.xmlPrefix = xmlPrefix;
     AdjustWidth(xmlPrefix);
     this.localName = localName;
     AdjustWidth(localName);
 }
Example #2
0
 internal Green(XmlPrefixSyntax.Green xmlPrefix, XmlNameTokenSyntax.Green localName)
     : base(SyntaxKind.XmlName)
 {
     this.SlotCount = 2;
     this.xmlPrefix = xmlPrefix;
     AdjustWidth(xmlPrefix);
     this.localName = localName;
     AdjustWidth(localName);
 }
Example #3
0
 internal Green(XmlNameTokenSyntax.Green name, PunctuationSyntax.Green colonToken)
     : base(SyntaxKind.XmlPrefix)
 {
     this.SlotCount = 2;
     this.name      = name;
     AdjustWidth(name);
     this.colonToken = colonToken;
     AdjustWidth(colonToken);
 }
Example #4
0
 internal Green(XmlNameTokenSyntax.Green name, PunctuationSyntax.Green colonToken, DiagnosticInfo[] diagnostics, SyntaxAnnotation[] annotations)
     : base(SyntaxKind.XmlPrefix, diagnostics, annotations)
 {
     this.SlotCount = 2;
     this.name      = name;
     AdjustWidth(name);
     this.colonToken = colonToken;
     AdjustWidth(colonToken);
 }
Example #5
0
 internal Green(XmlNameTokenSyntax.Green name, PunctuationSyntax.Green equals, XmlStringSyntax.Green value, DiagnosticInfo[] diagnostics, SyntaxAnnotation[] annotations)
     : base(SyntaxKind.XmlDeclarationOption, diagnostics, annotations)
 {
     this.SlotCount = 3;
     this.name      = name;
     AdjustWidth(name);
     this.equals = equals;
     AdjustWidth(equals);
     this.value = value;
     AdjustWidth(value);
 }
Example #6
0
 internal Green(XmlNameTokenSyntax.Green name, PunctuationSyntax.Green equals, XmlStringSyntax.Green value)
     : base(SyntaxKind.XmlDeclarationOption)
 {
     this.SlotCount = 3;
     this.name      = name;
     AdjustWidth(name);
     this.equals = equals;
     AdjustWidth(equals);
     this.value = value;
     AdjustWidth(value);
 }
 internal Green(PunctuationSyntax.Green lessThanQuestionToken,
                XmlNameTokenSyntax.Green name,
                GreenNode textTokens,
                PunctuationSyntax.Green questionGreaterThanToken)
     : base(SyntaxKind.XmlProcessingInstruction)
 {
     this.SlotCount             = 4;
     this.lessThanQuestionToken = lessThanQuestionToken;
     AdjustWidth(lessThanQuestionToken);
     this.name = name;
     AdjustWidth(name);
     this.textTokens = textTokens;
     AdjustWidth(textTokens);
     this.questionGreaterThanToken = questionGreaterThanToken;
     AdjustWidth(questionGreaterThanToken);
 }