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