1 instantiation of XmlNameAttributeSyntax
Microsoft.CodeAnalysis.CSharp (1)
_generated\1\Syntax.xml.Internal.Generated.cs (1)
24379internal override SyntaxNode CreateRed(SyntaxNode? parent, int position) => new CSharp.Syntax.XmlNameAttributeSyntax(this, parent, position);
56 references to XmlNameAttributeSyntax
Microsoft.CodeAnalysis.CSharp (28)
_generated\0\Syntax.xml.Main.Generated.cs (7)
686public virtual TResult? VisitXmlNameAttribute(XmlNameAttributeSyntax node) => this.DefaultVisit(node); 1434public virtual void VisitXmlNameAttribute(XmlNameAttributeSyntax node) => this.DefaultVisit(node); 2181public override SyntaxNode? VisitXmlNameAttribute(XmlNameAttributeSyntax node) 6231public static XmlNameAttributeSyntax XmlNameAttribute(XmlNameSyntax name, SyntaxToken equalsToken, SyntaxToken startQuoteToken, IdentifierNameSyntax identifier, SyntaxToken endQuoteToken) 6248return (XmlNameAttributeSyntax)Syntax.InternalSyntax.SyntaxFactory.XmlNameAttribute((Syntax.InternalSyntax.XmlNameSyntax)name.Green, (Syntax.InternalSyntax.SyntaxToken)equalsToken.Node!, (Syntax.InternalSyntax.SyntaxToken)startQuoteToken.Node!, (Syntax.InternalSyntax.IdentifierNameSyntax)identifier.Green, (Syntax.InternalSyntax.SyntaxToken)endQuoteToken.Node!).CreateRed(); 6252public static XmlNameAttributeSyntax XmlNameAttribute(XmlNameSyntax name, SyntaxToken startQuoteToken, IdentifierNameSyntax identifier, SyntaxToken endQuoteToken) 6256public static XmlNameAttributeSyntax XmlNameAttribute(XmlNameSyntax name, SyntaxToken startQuoteToken, string identifier, SyntaxToken endQuoteToken)
_generated\2\Syntax.xml.Syntax.Generated.cs (7)
15349public XmlNameAttributeSyntax Update(XmlNameSyntax name, SyntaxToken equalsToken, SyntaxToken startQuoteToken, IdentifierNameSyntax identifier, SyntaxToken endQuoteToken) 15353var newNode = SyntaxFactory.XmlNameAttribute(name, equalsToken, startQuoteToken, identifier, endQuoteToken); 15362public new XmlNameAttributeSyntax WithName(XmlNameSyntax name) => Update(name, this.EqualsToken, this.StartQuoteToken, this.Identifier, this.EndQuoteToken); 15364public new XmlNameAttributeSyntax WithEqualsToken(SyntaxToken equalsToken) => Update(this.Name, equalsToken, this.StartQuoteToken, this.Identifier, this.EndQuoteToken); 15366public new XmlNameAttributeSyntax WithStartQuoteToken(SyntaxToken startQuoteToken) => Update(this.Name, this.EqualsToken, startQuoteToken, this.Identifier, this.EndQuoteToken); 15367public XmlNameAttributeSyntax WithIdentifier(IdentifierNameSyntax identifier) => Update(this.Name, this.EqualsToken, this.StartQuoteToken, identifier, this.EndQuoteToken); 15369public new XmlNameAttributeSyntax WithEndQuoteToken(SyntaxToken endQuoteToken) => Update(this.Name, this.EqualsToken, this.StartQuoteToken, this.Identifier, endQuoteToken);
Binder\Binder_XmlNameAttribute.cs (1)
19internal ImmutableArray<Symbol> BindXmlNameAttribute(XmlNameAttributeSyntax syntax, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1165public override Binder VisitXmlNameAttribute(XmlNameAttributeSyntax parent)
Compilation\CSharpSemanticModel.cs (1)
1634if (parentExpr != null && !(parentExpr.Parent is XmlNameAttributeSyntax) && !SyntaxFacts.IsInTypeOnlyContext(parentExpr) && !binder.IsInsideNameof)
Compilation\SyntaxTreeSemanticModel.cs (2)
212XmlNameAttributeSyntax attrSyntax; 247else if (node.Parent.Kind() == SyntaxKind.XmlNameAttribute && (attrSyntax = (XmlNameAttributeSyntax)node.Parent).Identifier == node)
Compiler\DocumentationCommentCompiler.cs (2)
515if (attribute is XmlNameAttributeSyntax nameAttribute 1264XmlNameAttributeSyntax syntax,
Compiler\DocumentationCommentCompiler.DocumentationCommentWalker.cs (2)
184XmlNameAttributeSyntax nameAttr = (XmlNameAttributeSyntax)node;
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (3)
526XmlNameAttributeSyntax attrSyntax = ParseNameAttribute(attribute.ToString(), attribute.Parent.Name.LocalName); 613private static XmlNameAttributeSyntax ParseNameAttribute(string attributeText, string elementName) 628return (XmlNameAttributeSyntax)elementSyntax.Attributes[0];
Syntax\SyntaxExtensions.cs (1)
131internal static XmlNameAttributeElementKind GetElementKind(this XmlNameAttributeSyntax attributeSyntax)
Syntax\SyntaxFactory.cs (1)
775public static XmlNameAttributeSyntax XmlNameAttribute(string parameterName)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (2)
21XmlNameAttributeSyntax, 32protected override SyntaxToken GetIdentifier(XmlNameAttributeSyntax xmlName)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\roslyn\src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (4)
23: AbstractAddDocCommentNodesCodeFixProvider<XmlElementSyntax, XmlNameAttributeSyntax, XmlTextSyntax, MemberDeclarationSyntax> 34protected override List<XmlNameAttributeSyntax> GetNameAttributes(XmlElementSyntax node) 35=> [.. node.StartTag.Attributes.OfType<XmlNameAttributeSyntax>()]; 37protected override string GetValueFromNameAttribute(XmlNameAttributeSyntax attribute)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
205if (attribute is XmlNameAttributeSyntax nameAttribute)
Microsoft.CodeAnalysis.CSharp.Features (7)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (2)
294token.Parent?.Parent is XmlNameAttributeSyntax xmlName) 380case XmlNameAttributeSyntax nameAttribute:
src\roslyn\src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (4)
23: AbstractAddDocCommentNodesCodeFixProvider<XmlElementSyntax, XmlNameAttributeSyntax, XmlTextSyntax, MemberDeclarationSyntax> 34protected override List<XmlNameAttributeSyntax> GetNameAttributes(XmlElementSyntax node) 35=> [.. node.StartTag.Attributes.OfType<XmlNameAttributeSyntax>()]; 37protected override string GetValueFromNameAttribute(XmlNameAttributeSyntax attribute)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
205if (attribute is XmlNameAttributeSyntax nameAttribute)
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
Classification\Worker_DocumentationComments.cs (1)
275ClassifyNode(((XmlNameAttributeSyntax)attribute).Identifier);
Rename\CSharpRenameRewriterLanguageService.cs (3)
203node is XmlNameAttributeSyntax || 1138var enclosingXmlNameAttr = token.GetAncestor<XmlNameAttributeSyntax>();
Simplification\CSharpSimplificationService.cs (1)
63XmlNameAttributeSyntax or
Simplification\CSharpSimplificationService.Expander.cs (3)
382public override SyntaxNode VisitXmlNameAttribute(XmlNameAttributeSyntax node) 386var newNode = (XmlNameAttributeSyntax)base.VisitXmlNameAttribute(node);
Simplification\Reducers\CSharpEscapingReducer.cs (2)
40var enclosingXmlNameAttr = token.GetAncestor<XmlNameAttributeSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (2)
21XmlNameAttributeSyntax, 32protected override SyntaxToken GetIdentifier(XmlNameAttributeSyntax xmlName)
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (2)
21XmlNameAttributeSyntax, 32protected override SyntaxToken GetIdentifier(XmlNameAttributeSyntax xmlName)