28 references to Name
Microsoft.CodeAnalysis.CSharp (8)
Compiler\DocumentationCommentCompiler.DocumentationCommentWalker.cs (1)
202
nameSyntax = ((XmlEmptyElementSyntax)node).
Name
;
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 (4)
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);
15009
public XmlEmptyElementSyntax WithAttributes(SyntaxList<XmlAttributeSyntax> attributes) => Update(this.LessThanToken, this.
Name
, attributes, this.SlashGreaterThanToken);
15010
public XmlEmptyElementSyntax WithSlashGreaterThanToken(SyntaxToken slashGreaterThanToken) => Update(this.LessThanToken, this.
Name
, this.Attributes, slashGreaterThanToken);
Syntax\SyntaxExtensions.cs (2)
141
parentName = parent.
Name
.LocalName.ValueText;
142
Debug.Assert(parent.
Name
.Prefix is null);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (3)
589
if (xmlElement is {
Name
.LocalName.ValueText: "see" })
633
.ReplaceToken(seeTag.
Name
.LocalName, Identifier("paramref").WithTriviaFrom(seeTag.
Name
.LocalName))
Microsoft.CodeAnalysis.CSharp.Features (8)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (2)
267
nameSyntax = emptyElementSyntax.
Name
;
326
tagName = emptyElement.
Name
.LocalName.Text;
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (3)
380
if (xmlElement is {
Name
.LocalName.ValueText: "paramref" })
383
.ReplaceToken(xmlElement.
Name
.LocalName, Identifier("see").WithTriviaFrom(xmlElement.
Name
.LocalName))
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (3)
589
if (xmlElement is {
Name
.LocalName.ValueText: "see" })
633
.ReplaceToken(seeTag.
Name
.LocalName, Identifier("paramref").WithTriviaFrom(seeTag.
Name
.LocalName))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Generated\Syntax.Test.xml.Generated.cs (2)
13864
Assert.NotNull(node.
Name
);
13867
var newNode = node.WithLessThanToken(node.LessThanToken).WithName(node.
Name
).WithAttributes(node.Attributes).WithSlashGreaterThanToken(node.SlashGreaterThanToken);
LexicalAndXml\XmlDocCommentTests.cs (5)
658
Assert.Equal("goo.bar", element.
Name
.ToString());
680
Assert.Equal("goo:bar", element.
Name
.ToString());
702
Assert.Equal("abc-def", element.
Name
.ToString());
724
Assert.Equal("goo123", element.
Name
.ToString());
3384
Assert.Equal(tagName, xmlElement.
Name
.LocalName.Value);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\Worker_DocumentationComments.cs (2)
237
ClassifyXmlName(node.
Name
);
282
|| node is XmlEmptyElementSyntax {
Name
: XmlNameSyntax { Prefix: null, LocalName: SyntaxToken { Text: DocumentationCommentXmlNames.SeeElementName } } };