3 types derived from XmlAttributeSyntax
Microsoft.CodeAnalysis.CSharp (3)
Syntax.xml.Syntax.Generated.cs (3)
15128public sealed partial class XmlTextAttributeSyntax : XmlAttributeSyntax 15192public sealed partial class XmlCrefAttributeSyntax : XmlAttributeSyntax 15260public sealed partial class XmlNameAttributeSyntax : XmlAttributeSyntax
67 references to XmlAttributeSyntax
Microsoft.CodeAnalysis.CSharp (41)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1434Debug.Assert(xmlSyntax is XmlAttributeSyntax || xmlSyntax.Kind() == SyntaxKind.XmlEmptyElement || xmlSyntax.Kind() == SyntaxKind.XmlElementStartTag);
Compiler\DocumentationCommentCompiler.cs (1)
513foreach (var attribute in elementSyntax.StartTag.Attributes)
Syntax.xml.Main.Generated.cs (4)
6054public static XmlElementStartTagSyntax XmlElementStartTag(SyntaxToken lessThanToken, XmlNameSyntax name, SyntaxList<XmlAttributeSyntax> attributes, SyntaxToken greaterThanToken) 6063public static XmlElementStartTagSyntax XmlElementStartTag(XmlNameSyntax name, SyntaxList<XmlAttributeSyntax> attributes) 6084public static XmlEmptyElementSyntax XmlEmptyElement(SyntaxToken lessThanToken, XmlNameSyntax name, SyntaxList<XmlAttributeSyntax> attributes, SyntaxToken slashGreaterThanToken) 6093public static XmlEmptyElementSyntax XmlEmptyElement(XmlNameSyntax name, SyntaxList<XmlAttributeSyntax> attributes)
Syntax.xml.Syntax.Generated.cs (31)
14840public XmlElementSyntax AddStartTagAttributes(params XmlAttributeSyntax[] items) => WithStartTag(this.StartTag.WithAttributes(this.StartTag.Attributes.AddRange(items))); 14864public SyntaxList<XmlAttributeSyntax> Attributes => new SyntaxList<XmlAttributeSyntax>(GetRed(ref this.attributes, 2)); 14887public XmlElementStartTagSyntax Update(SyntaxToken lessThanToken, XmlNameSyntax name, SyntaxList<XmlAttributeSyntax> attributes, SyntaxToken greaterThanToken) 14901public XmlElementStartTagSyntax WithAttributes(SyntaxList<XmlAttributeSyntax> attributes) => Update(this.LessThanToken, this.Name, attributes, this.GreaterThanToken); 14904public XmlElementStartTagSyntax AddAttributes(params XmlAttributeSyntax[] items) => WithAttributes(this.Attributes.AddRange(items)); 14972public SyntaxList<XmlAttributeSyntax> Attributes => new SyntaxList<XmlAttributeSyntax>(GetRed(ref this.attributes, 2)); 14995public XmlEmptyElementSyntax Update(SyntaxToken lessThanToken, XmlNameSyntax name, SyntaxList<XmlAttributeSyntax> attributes, SyntaxToken slashGreaterThanToken) 15009public XmlEmptyElementSyntax WithAttributes(SyntaxList<XmlAttributeSyntax> attributes) => Update(this.LessThanToken, this.Name, attributes, this.SlashGreaterThanToken); 15012public XmlEmptyElementSyntax AddAttributes(params XmlAttributeSyntax[] items) => WithAttributes(this.Attributes.AddRange(items)); 15106public XmlAttributeSyntax WithName(XmlNameSyntax name) => WithNameCore(name); 15107internal abstract XmlAttributeSyntax WithNameCore(XmlNameSyntax name); 15110public XmlAttributeSyntax WithEqualsToken(SyntaxToken equalsToken) => WithEqualsTokenCore(equalsToken); 15111internal abstract XmlAttributeSyntax WithEqualsTokenCore(SyntaxToken equalsToken); 15114public XmlAttributeSyntax WithStartQuoteToken(SyntaxToken startQuoteToken) => WithStartQuoteTokenCore(startQuoteToken); 15115internal abstract XmlAttributeSyntax WithStartQuoteTokenCore(SyntaxToken startQuoteToken); 15118public XmlAttributeSyntax WithEndQuoteToken(SyntaxToken endQuoteToken) => WithEndQuoteTokenCore(endQuoteToken); 15119internal abstract XmlAttributeSyntax WithEndQuoteTokenCore(SyntaxToken endQuoteToken); 15173internal override XmlAttributeSyntax WithNameCore(XmlNameSyntax name) => WithName(name); 15175internal override XmlAttributeSyntax WithEqualsTokenCore(SyntaxToken equalsToken) => WithEqualsToken(equalsToken); 15177internal override XmlAttributeSyntax WithStartQuoteTokenCore(SyntaxToken startQuoteToken) => WithStartQuoteToken(startQuoteToken); 15180internal override XmlAttributeSyntax WithEndQuoteTokenCore(SyntaxToken endQuoteToken) => WithEndQuoteToken(endQuoteToken); 15243internal override XmlAttributeSyntax WithNameCore(XmlNameSyntax name) => WithName(name); 15245internal override XmlAttributeSyntax WithEqualsTokenCore(SyntaxToken equalsToken) => WithEqualsToken(equalsToken); 15247internal override XmlAttributeSyntax WithStartQuoteTokenCore(SyntaxToken startQuoteToken) => WithStartQuoteToken(startQuoteToken); 15250internal override XmlAttributeSyntax WithEndQuoteTokenCore(SyntaxToken endQuoteToken) => WithEndQuoteToken(endQuoteToken); 15311internal override XmlAttributeSyntax WithNameCore(XmlNameSyntax name) => WithName(name); 15313internal override XmlAttributeSyntax WithEqualsTokenCore(SyntaxToken equalsToken) => WithEqualsToken(equalsToken); 15315internal override XmlAttributeSyntax WithStartQuoteTokenCore(SyntaxToken startQuoteToken) => WithStartQuoteToken(startQuoteToken); 15318internal override XmlAttributeSyntax WithEndQuoteTokenCore(SyntaxToken endQuoteToken) => WithEndQuoteToken(endQuoteToken);
Syntax\CSharpSyntaxNode.cs (1)
400return LookupPosition.IsInXmlAttributeValue(position, (XmlAttributeSyntax)curr)
Syntax\LookupPosition.cs (1)
514internal static bool IsInXmlAttributeValue(int position, XmlAttributeSyntax attribute)
Syntax\SyntaxFactory.cs (2)
1628XmlAttributeSyntax attributeSyntax = (XmlAttributeSyntax)elementSyntax.Attributes[0];
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (2)
15XmlAttributeSyntax, 31protected override SyntaxList<XmlAttributeSyntax> GetAttributes(XmlEmptyElementSyntax xmlEmpty)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
203foreach (var attribute in paramElement.StartTag.Attributes)
Microsoft.CodeAnalysis.CSharp.Features (9)
ChangeSignature\CSharpChangeSignatureService.cs (1)
831var nameAttribute = paramNode.StartTag.Attributes.FirstOrDefault(a => a.Name.ToString().Equals("name", StringComparison.OrdinalIgnoreCase));
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (7)
230var attributes = default(SyntaxList<XmlAttributeSyntax>); 238else if (token.Parent is XmlAttributeSyntax( 258private static (string? name, SyntaxList<XmlAttributeSyntax> attributes) GetElementNameAndAttributes(SyntaxNode node) 261SyntaxList<XmlAttributeSyntax> attributes; 293XmlAttributeSyntax? attributeSyntax; 371private string GetAttributeName(XmlAttributeSyntax attribute) => attribute.Name.LocalName.ValueText; 373private string? GetAttributeValue(XmlAttributeSyntax attribute)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
203foreach (var attribute in paramElement.StartTag.Attributes)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.cs (2)
11006=> SyntaxFactory.XmlElementStartTag(SyntaxFactory.Token(SyntaxKind.LessThanToken), GenerateXmlName(), new SyntaxList<XmlAttributeSyntax>(), SyntaxFactory.Token(SyntaxKind.GreaterThanToken)); 11012=> SyntaxFactory.XmlEmptyElement(SyntaxFactory.Token(SyntaxKind.LessThanToken), GenerateXmlName(), new SyntaxList<XmlAttributeSyntax>(), SyntaxFactory.Token(SyntaxKind.SlashGreaterThanToken));
LexicalAndXml\XmlDocCommentTests.cs (1)
3392private void VerifyXmlAttributes(SyntaxList<XmlAttributeSyntax> xmlAttributes, Dictionary<string, string> attributes)
Syntax\StructuredTriviaTests.cs (1)
43default(SyntaxList<XmlAttributeSyntax>),
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Classification\Worker_DocumentationComments.cs (5)
187XmlAttributeSyntax => ClassificationTypeNames.XmlDocCommentAttributeName, 219foreach (var attribute in node.Attributes) 239foreach (var attribute in node.Attributes) 247private void ClassifyXmlAttribute(XmlAttributeSyntax attribute) 274static bool IsLangWordAttribute(XmlAttributeSyntax attribute)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (2)
15XmlAttributeSyntax, 31protected override SyntaxList<XmlAttributeSyntax> GetAttributes(XmlEmptyElementSyntax xmlEmpty)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
292else if (token.Parent is XmlAttributeSyntax)
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (2)
15XmlAttributeSyntax, 31protected override SyntaxList<XmlAttributeSyntax> GetAttributes(XmlEmptyElementSyntax xmlEmpty)