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