3 types derived from XmlAttributeSyntax
Microsoft.CodeAnalysis.CSharp (3)
Syntax.xml.Syntax.Generated.cs (3)
15132public sealed partial class XmlTextAttributeSyntax : XmlAttributeSyntax 15196public sealed partial class XmlCrefAttributeSyntax : XmlAttributeSyntax 15264public sealed partial class XmlNameAttributeSyntax : XmlAttributeSyntax
68 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)
14844public XmlElementSyntax AddStartTagAttributes(params XmlAttributeSyntax[] items) => WithStartTag(this.StartTag.WithAttributes(this.StartTag.Attributes.AddRange(items))); 14868public SyntaxList<XmlAttributeSyntax> Attributes => new SyntaxList<XmlAttributeSyntax>(GetRed(ref this.attributes, 2)); 14891public XmlElementStartTagSyntax Update(SyntaxToken lessThanToken, XmlNameSyntax name, SyntaxList<XmlAttributeSyntax> attributes, SyntaxToken greaterThanToken) 14905public XmlElementStartTagSyntax WithAttributes(SyntaxList<XmlAttributeSyntax> attributes) => Update(this.LessThanToken, this.Name, attributes, this.GreaterThanToken); 14908public XmlElementStartTagSyntax AddAttributes(params XmlAttributeSyntax[] items) => WithAttributes(this.Attributes.AddRange(items)); 14976public SyntaxList<XmlAttributeSyntax> Attributes => new SyntaxList<XmlAttributeSyntax>(GetRed(ref this.attributes, 2)); 14999public XmlEmptyElementSyntax Update(SyntaxToken lessThanToken, XmlNameSyntax name, SyntaxList<XmlAttributeSyntax> attributes, SyntaxToken slashGreaterThanToken) 15013public XmlEmptyElementSyntax WithAttributes(SyntaxList<XmlAttributeSyntax> attributes) => Update(this.LessThanToken, this.Name, attributes, this.SlashGreaterThanToken); 15016public XmlEmptyElementSyntax AddAttributes(params XmlAttributeSyntax[] items) => WithAttributes(this.Attributes.AddRange(items)); 15110public XmlAttributeSyntax WithName(XmlNameSyntax name) => WithNameCore(name); 15111internal abstract XmlAttributeSyntax WithNameCore(XmlNameSyntax name); 15114public XmlAttributeSyntax WithEqualsToken(SyntaxToken equalsToken) => WithEqualsTokenCore(equalsToken); 15115internal abstract XmlAttributeSyntax WithEqualsTokenCore(SyntaxToken equalsToken); 15118public XmlAttributeSyntax WithStartQuoteToken(SyntaxToken startQuoteToken) => WithStartQuoteTokenCore(startQuoteToken); 15119internal abstract XmlAttributeSyntax WithStartQuoteTokenCore(SyntaxToken startQuoteToken); 15122public XmlAttributeSyntax WithEndQuoteToken(SyntaxToken endQuoteToken) => WithEndQuoteTokenCore(endQuoteToken); 15123internal abstract XmlAttributeSyntax WithEndQuoteTokenCore(SyntaxToken endQuoteToken); 15177internal override XmlAttributeSyntax WithNameCore(XmlNameSyntax name) => WithName(name); 15179internal override XmlAttributeSyntax WithEqualsTokenCore(SyntaxToken equalsToken) => WithEqualsToken(equalsToken); 15181internal override XmlAttributeSyntax WithStartQuoteTokenCore(SyntaxToken startQuoteToken) => WithStartQuoteToken(startQuoteToken); 15184internal override XmlAttributeSyntax WithEndQuoteTokenCore(SyntaxToken endQuoteToken) => WithEndQuoteToken(endQuoteToken); 15247internal override XmlAttributeSyntax WithNameCore(XmlNameSyntax name) => WithName(name); 15249internal override XmlAttributeSyntax WithEqualsTokenCore(SyntaxToken equalsToken) => WithEqualsToken(equalsToken); 15251internal override XmlAttributeSyntax WithStartQuoteTokenCore(SyntaxToken startQuoteToken) => WithStartQuoteToken(startQuoteToken); 15254internal override XmlAttributeSyntax WithEndQuoteTokenCore(SyntaxToken endQuoteToken) => WithEndQuoteToken(endQuoteToken); 15315internal override XmlAttributeSyntax WithNameCore(XmlNameSyntax name) => WithName(name); 15317internal override XmlAttributeSyntax WithEqualsTokenCore(SyntaxToken equalsToken) => WithEqualsToken(equalsToken); 15319internal override XmlAttributeSyntax WithStartQuoteTokenCore(SyntaxToken startQuoteToken) => WithStartQuoteToken(startQuoteToken); 15322internal 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)
1658XmlAttributeSyntax attributeSyntax = (XmlAttributeSyntax)elementSyntax.Attributes[0];
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (2)
15XmlAttributeSyntax, 26protected 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 (8)
Classification\ClassificationHelpers.cs (1)
575foreach (var attribute in node.StartTag.Attributes)
Classification\Worker_DocumentationComments.cs (5)
191XmlAttributeSyntax => ClassificationTypeNames.XmlDocCommentAttributeName, 226foreach (var attribute in node.Attributes) 246foreach (var attribute in node.Attributes) 254private void ClassifyXmlAttribute(XmlAttributeSyntax attribute) 281static bool IsLangWordAttribute(XmlAttributeSyntax attribute)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (2)
15XmlAttributeSyntax, 26protected 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, 26protected override SyntaxList<XmlAttributeSyntax> GetAttributes(XmlEmptyElementSyntax xmlEmpty)