43 references to Attributes
Microsoft.CodeAnalysis.CSharp (10)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
627Debug.Assert(elementSyntax.Attributes.Count == 1); 628return (XmlNameAttributeSyntax)elementSyntax.Attributes[0];
Syntax.xml.Main.Generated.cs (1)
2155=> node.Update(VisitToken(node.LessThanToken), (XmlNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitList(node.Attributes), VisitToken(node.SlashGreaterThanToken));
Syntax.xml.Syntax.Generated.cs (5)
14997if (lessThanToken != this.LessThanToken || name != this.Name || attributes != this.Attributes || slashGreaterThanToken != this.SlashGreaterThanToken) 15007public XmlEmptyElementSyntax WithLessThanToken(SyntaxToken lessThanToken) => Update(lessThanToken, this.Name, this.Attributes, this.SlashGreaterThanToken); 15008public XmlEmptyElementSyntax WithName(XmlNameSyntax name) => Update(this.LessThanToken, name, this.Attributes, this.SlashGreaterThanToken); 15010public XmlEmptyElementSyntax WithSlashGreaterThanToken(SyntaxToken slashGreaterThanToken) => Update(this.LessThanToken, this.Name, this.Attributes, slashGreaterThanToken); 15012public XmlEmptyElementSyntax AddAttributes(params XmlAttributeSyntax[] items) => WithAttributes(this.Attributes.AddRange(items));
Syntax\SyntaxFactory.cs (2)
1627Debug.Assert(elementSyntax.Attributes.Count == 1); 1628XmlAttributeSyntax attributeSyntax = (XmlAttributeSyntax)elementSyntax.Attributes[0];
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (1)
32=> xmlEmpty.Attributes;
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
268attributes = emptyElementSyntax.Attributes;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (28)
Generated\Syntax.Test.xml.Generated.cs (2)
13865Assert.Equal(default, node.Attributes); 13867var newNode = node.WithLessThanToken(node.LessThanToken).WithName(node.Name).WithAttributes(node.Attributes).WithSlashGreaterThanToken(node.SlashGreaterThanToken);
LexicalAndXml\XmlDocCommentTests.cs (26)
228Assert.Equal(1, element.Attributes.Count); 251Assert.Equal(1, element.Attributes.Count); 274Assert.Equal(1, element.Attributes.Count); 275Assert.Equal(SyntaxKind.XmlTextAttribute, element.Attributes[0].Kind()); 276var attr = (XmlTextAttributeSyntax)element.Attributes[0]; 301Assert.Equal(1, element.Attributes.Count); 302Assert.Equal(SyntaxKind.XmlTextAttribute, element.Attributes[0].Kind()); 303var attr = (XmlTextAttributeSyntax)element.Attributes[0]; 431Assert.Equal(1, element.Attributes.Count); 458Assert.Equal(1, element.Attributes.Count); 486Assert.Equal(1, element.Attributes.Count); 515Assert.Equal(1, element.Attributes.Count); 545Assert.Equal(1, element.Attributes.Count); 574Assert.Equal(1, element.Attributes.Count); 604Assert.Equal(1, element.Attributes.Count); 635Assert.Equal(1, element.Attributes.Count); 1572Assert.Equal(1, element.Attributes.Count); 1573var attribute = (XmlTextAttributeSyntax)element.Attributes[0]; 1600Assert.Equal(1, element.Attributes.Count); 1601var attribute = (XmlTextAttributeSyntax)element.Attributes[0]; 1627Assert.Equal(1, element.Attributes.Count); 1628Assert.NotEqual(0, element.Attributes[0].ErrorsAndWarnings().Length); 1849VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } }); 1919VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } }); 1954VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } }); 2097VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } });
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\Worker_DocumentationComments.cs (1)
239foreach (var attribute in node.Attributes)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (1)
32=> xmlEmpty.Attributes;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (1)
32=> xmlEmpty.Attributes;