65 references to DocumentationCommentXmlNames
Microsoft.CodeAnalysis.CSharp.Features (6)
ChangeSignature\CSharpChangeSignatureService.cs (1)
799.Where(e => e.StartTag.Name.ToString() == DocumentationCommentXmlNames.ParameterElementName);
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
331if (xmlText == null || !xmlText.Contains(DocumentationCommentXmlNames.CompletionListElementName))
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
27using static DocumentationCommentXmlNames;
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (3)
634element.StartTag?.Name.LocalName.ValueText == DocumentationCommentXmlNames.SummaryElementName); 771XmlName(DocumentationCommentXmlNames.InheritdocElementName))); 783element.StartTag?.Name.LocalName.ValueText == DocumentationCommentXmlNames.SummaryElementName);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Classification\Worker_DocumentationComments.cs (3)
276return attribute.Name.LocalName.Text == DocumentationCommentXmlNames.LangwordAttributeName && IsSeeElement(attribute.Parent); 281return node is XmlElementStartTagSyntax { Name: XmlNameSyntax { Prefix: null, LocalName: SyntaxToken { Text: DocumentationCommentXmlNames.SeeElementName } } } 282|| node is XmlEmptyElementSyntax { Name: XmlNameSyntax { Prefix: null, LocalName: SyntaxToken { Text: DocumentationCommentXmlNames.SeeElementName } } };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1367xmlElement.StartTag.Name.LocalName.ValueText == DocumentationCommentXmlNames.ParameterElementName;
Microsoft.CodeAnalysis.Features (24)
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
18using static DocumentationCommentXmlNames;
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (23)
329if (name is DocumentationCommentXmlNames.SeeElementName or 330DocumentationCommentXmlNames.SeeAlsoElementName or 337AppendTextFromAttribute(state, attribute, attributeNameToParse: DocumentationCommentXmlNames.CrefAttributeName, SymbolDisplayPartKind.Text); 351else if (name is DocumentationCommentXmlNames.ParameterReferenceElementName or 352DocumentationCommentXmlNames.TypeParameterReferenceElementName) 354var kind = name == DocumentationCommentXmlNames.ParameterReferenceElementName ? SymbolDisplayPartKind.ParameterName : SymbolDisplayPartKind.TypeParameterName; 357AppendTextFromAttribute(state, attribute, attributeNameToParse: DocumentationCommentXmlNames.NameAttributeName, kind); 362else if (name is DocumentationCommentXmlNames.CElementName or "tt") 367else if (name is DocumentationCommentXmlNames.CodeElementName) 377else if (name is "strong" or "b" or DocumentationCommentXmlNames.TermElementName) 388if (name == DocumentationCommentXmlNames.ListElementName) 390var rawListType = element.Attribute(DocumentationCommentXmlNames.TypeAttributeName)?.Value; 400else if (name == DocumentationCommentXmlNames.ItemElementName) 405if (name is DocumentationCommentXmlNames.ParaElementName 406or DocumentationCommentXmlNames.CodeElementName) 420if (name is DocumentationCommentXmlNames.ParaElementName 421or DocumentationCommentXmlNames.CodeElementName) 426if (name == DocumentationCommentXmlNames.ListElementName) 441if (name == DocumentationCommentXmlNames.TermElementName) 450var crefAttribute = element.Attribute(DocumentationCommentXmlNames.CrefAttributeName); 458var hrefAttribute = element.Attribute(DocumentationCommentXmlNames.HrefAttributeName); 483var displayKind = attributeName == DocumentationCommentXmlNames.LangwordAttributeName 488var navigationTarget = attributeName == DocumentationCommentXmlNames.HrefAttributeName
Microsoft.CodeAnalysis.Workspaces (31)
Shared\Extensions\ISymbolExtensions.cs (8)
302if (ElementNameIs(element, DocumentationCommentXmlNames.InheritdocElementName)) 346var crefAttribute = element.Attribute(XName.Get(DocumentationCommentXmlNames.CrefAttributeName)); 347var pathAttribute = element.Attribute(XName.Get(DocumentationCommentXmlNames.PathAttributeName)); 425var typeParameterRefs = document.Descendants(DocumentationCommentXmlNames.TypeParameterReferenceElementName).ToImmutableArray(); 428if (typeParameterRef.Attribute(DocumentationCommentXmlNames.NameAttributeName) is XAttribute typeParamName) 439var replacement = new XElement(DocumentationCommentXmlNames.SeeElementName); 440replacement.SetAttributeValue(DocumentationCommentXmlNames.CrefAttributeName, docId); 634=> string.IsNullOrEmpty(element.Name.NamespaceName) && DocumentationCommentXmlNames.ElementEquals(element.Name.LocalName, name);
Shared\Utilities\DocumentationComment.cs (23)
11using XmlNames = Roslyn.Utilities.DocumentationCommentXmlNames; 233if (XmlNames.ElementEquals(localName, XmlNames.ExampleElementName) && _comment.ExampleText == null) 237else if (XmlNames.ElementEquals(localName, XmlNames.SummaryElementName) && _comment.SummaryText == null) 241else if (XmlNames.ElementEquals(localName, XmlNames.ReturnsElementName) && _comment.ReturnsText == null) 245else if (XmlNames.ElementEquals(localName, XmlNames.ValueElementName) && _comment.ValueText == null) 249else if (XmlNames.ElementEquals(localName, XmlNames.RemarksElementName) && _comment.RemarksText == null) 253else if (XmlNames.ElementEquals(localName, XmlNames.ParameterElementName)) 255var name = reader.GetAttribute(XmlNames.NameAttributeName); 264else if (XmlNames.ElementEquals(localName, XmlNames.TypeParameterElementName)) 266var name = reader.GetAttribute(XmlNames.NameAttributeName); 275else if (XmlNames.ElementEquals(localName, XmlNames.ExceptionElementName)) 277var type = reader.GetAttribute(XmlNames.CrefAttributeName); 291else if (XmlNames.ElementEquals(localName, XmlNames.CompletionListElementName)) 293var cref = reader.GetAttribute(XmlNames.CrefAttributeName);