3 instantiations of DocumentationComment
Microsoft.CodeAnalysis.Workspaces (3)
Shared\Utilities\DocumentationComment.cs (3)
142return new DocumentationComment(xml) { HadXmlParseError = true }; 147=> _comment = new DocumentationComment(xml); 360public static readonly DocumentationComment Empty = new(string.Empty);
72 references to DocumentationComment
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (2)
331var documentation = CodeAnalysis.Shared.Utilities.DocumentationComment.FromXmlFragment(xmlText);
DocumentationComments\DocCommentConverter.cs (2)
83var docComment = DocumentationComment.FromXmlFragment(xmlFragment);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
MetadataAsSource\DocCommentFormatterTests.cs (2)
28var docComment = DocumentationComment.FromXmlFragment(docCommentXmlFragment);
Microsoft.CodeAnalysis.Features (5)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
193var documentationComment = original is IMethodSymbol method
MetadataAsSource\AbstractMetadataAsSourceService.DocCommentFormatter.cs (1)
31internal static ImmutableArray<string> Format(IDocumentationCommentFormattingService docCommentFormattingService, DocumentationComment docComment)
Shared\Extensions\ISymbolExtensions_2.cs (3)
196public static DocumentationComment? GetParameterDocumentation(IParameterSymbol parameter, Compilation compilation, CancellationToken cancellationToken) 241public static DocumentationComment GetMethodDocumentation(IMethodSymbol method, Compilation compilation, CancellationToken cancellationToken) 250return method.AssociatedSymbol?.GetDocumentationComment(compilation, expandIncludes: true, expandInheritdoc: true, cancellationToken: cancellationToken) ?? DocumentationComment.Empty;
Microsoft.CodeAnalysis.VisualBasic.Features (1)
MetadataAsSource\VisualBasicMetadataAsSourceService.vb (1)
192Dim docComment = DocumentationComment.FromXmlFragment(xmlFragment)
Microsoft.CodeAnalysis.Workspaces (19)
ExternalAccess\VSTypeScript\Api\VSTypeScriptDocumentationCommentWrapper.cs (3)
11private readonly DocumentationComment _underlyingObject; 13public VSTypeScriptDocumentationCommentWrapper(DocumentationComment underlyingObject) 17=> new(DocumentationComment.FromXmlFragment(xml));
Shared\Extensions\ISymbolExtensions.cs (7)
227public static DocumentationComment GetDocumentationComment(this ISymbol symbol, Compilation compilation, CultureInfo? preferredCulture = null, bool expandIncludes = false, bool expandInheritdoc = false, CancellationToken cancellationToken = default) 230private static DocumentationComment GetDocumentationComment(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, CultureInfo? preferredCulture, bool expandIncludes, bool expandInheritdoc, CancellationToken cancellationToken) 243return DocumentationComment.Empty; 264return RoslynString.IsNullOrEmpty(xmlText) ? DocumentationComment.Empty : DocumentationComment.FromXmlFragment(xmlText); 392var inheritedDocumentation = GetDocumentationComment(symbol, visitedSymbols, compilation, preferredCulture: null, expandIncludes: true, expandInheritdoc: true, cancellationToken); 393if (inheritedDocumentation == DocumentationComment.Empty)
Shared\Utilities\DocumentationComment.cs (9)
95private static volatile DocumentationComment? s_cacheLastXmlFragmentParse; 98/// Parses and constructs a <see cref="DocumentationComment" /> from the given fragment of XML. 102public static DocumentationComment FromXmlFragment(string xml) 104var result = s_cacheLastXmlFragmentParse; 120private readonly DocumentationComment _comment; 127/// Parse and construct a <see cref="DocumentationComment" /> from the given fragment of XML. 131public static DocumentationComment Parse(string xml) 149private DocumentationComment ParseInternal(string xml) 360public static readonly DocumentationComment Empty = new(string.Empty);
Microsoft.CodeAnalysis.Workspaces.UnitTests (40)
UtilityTest\DocumentationCommentTests.cs (40)
18var document = DocumentationComment.FromXmlFragment(""); 29var comment = DocumentationComment.FromXmlFragment( 55var comment = DocumentationComment.FromXmlFragment( 81var comment = DocumentationComment.FromXmlFragment("<summary>Summary 1</summary><summary>Summary 2</summary>"); 90var comment = DocumentationComment.FromXmlFragment(@"<summary> 101var comment = DocumentationComment.FromXmlFragment("<summary>goo"); 110var comment = DocumentationComment.FromXmlFragment( 123var comment = DocumentationComment.FromXmlFragment( 136var comment = DocumentationComment.FromXmlFragment( 149var comment = DocumentationComment.FromXmlFragment( 162var comment = DocumentationComment.FromXmlFragment( 175var comment = DocumentationComment.FromXmlFragment( 190var comment = DocumentationComment.FromXmlFragment( 202var comment = DocumentationComment.FromXmlFragment( 214var comment = DocumentationComment.FromXmlFragment( 234var comment = DocumentationComment.FromXmlFragment(@"<summary>This is a summary</summary>"); 242var comment = DocumentationComment.FromXmlFragment(@"<param/><typeparam/><exception/>"); 254var comments = DocumentationComment.FromXmlFragment(fragment); 294var comment = DocumentationComment.FromXmlFragment(fullXml); 341var comment = DocumentationComment.FromXmlFragment(fullXml);
Microsoft.VisualStudio.LanguageServices (1)
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (1)
290var documentationComment = symbol.GetDocumentationComment(compilation, expandIncludes: true, expandInheritdoc: true, cancellationToken: CancellationToken.None);