82 references to SymbolDescriptionGroups
Microsoft.CodeAnalysis.Features (82)
Completion\CommonCompletionUtilities.cs (3)
94if (!sections.TryGetValue(SymbolDescriptionGroups.MainDescription, out var mainDescriptionTexts)) 126if (sections.TryGetValue(SymbolDescriptionGroups.AwaitableUsageText, out var parts)) 131if (sections.TryGetValue(SymbolDescriptionGroups.StructuralTypes, out parts))
InlineHints\InlineHintHelpers.cs (2)
36parts.AddRange(groups[SymbolDescriptionGroups.MainDescription]); 47if (groups.TryGetValue(SymbolDescriptionGroups.StructuralTypes, out var anonymousTypes))
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (52)
82private readonly Dictionary<SymbolDescriptionGroups, IList<SymbolDisplayPart>> _groupMap = []; 83private readonly Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>> _documentationMap = []; 177SymbolDescriptionGroups.Documentation, 181SymbolDescriptionGroups.RemarksDocumentation, 184AddDocumentationPartsWithPrefix(documentationComment.ReturnsText, SymbolDescriptionGroups.ReturnsDocumentation, FeaturesResources.Returns_colon); 185AddDocumentationPartsWithPrefix(documentationComment.ValueText, SymbolDescriptionGroups.ValueDocumentation, FeaturesResources.Value_colon); 189void AddDocumentationPartsWithPrefix(string? rawXmlText, SymbolDescriptionGroups group, string prefix) 223AddToGroup(SymbolDescriptionGroups.Exceptions, parts); 248AddToGroup(SymbolDescriptionGroups.Captures, LineBreak()); 249AddToGroup(SymbolDescriptionGroups.Captures, PlainText($"{WorkspacesResources.Variables_captured_colon} ?")); 273AddToGroup(SymbolDescriptionGroups.Captures, parts); 282ImmutableArray<ISymbol> symbolGroup, SymbolDescriptionGroups groups) 291public async Task<IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>> BuildDescriptionSectionsAsync(ImmutableArray<ISymbol> symbolGroup) 335AddToGroup(SymbolDescriptionGroups.MainDescription, 373private ImmutableArray<SymbolDisplayPart> BuildDescription(SymbolDescriptionGroups groups) 398private static int GetPrecedingNewLineCount(SymbolDescriptionGroups group) 402case SymbolDescriptionGroups.MainDescription: 406case SymbolDescriptionGroups.Documentation: 407case SymbolDescriptionGroups.RemarksDocumentation: 408case SymbolDescriptionGroups.ReturnsDocumentation: 409case SymbolDescriptionGroups.ValueDocumentation: 412case SymbolDescriptionGroups.StructuralTypes: 415case SymbolDescriptionGroups.Exceptions: 416case SymbolDescriptionGroups.TypeParameterMap: 417case SymbolDescriptionGroups.Captures: 426private IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>> BuildDescriptionSections() 431var result = new Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>(_documentationMap); 436if (group == SymbolDescriptionGroups.MainDescription) 452AddToGroup(SymbolDescriptionGroups.MainDescription, 454AddToGroup(SymbolDescriptionGroups.Documentation, 475AddToGroup(SymbolDescriptionGroups.MainDescription, WrapConstraints(symbol, displayParts)); 479AddToGroup(SymbolDescriptionGroups.MainDescription, 484AddToGroup(SymbolDescriptionGroups.MainDescription, new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, "?")); 500AddToGroup(SymbolDescriptionGroups.MainDescription, underlyingTypeDisplayParts); 528AddToGroup(SymbolDescriptionGroups.MainDescription, 533AddToGroup(SymbolDescriptionGroups.MainDescription, 546AddToGroup(SymbolDescriptionGroups.MainDescription, parts); 550AddToGroup(SymbolDescriptionGroups.MainDescription, 583AddToGroup(SymbolDescriptionGroups.MainDescription, 613AddToGroup(SymbolDescriptionGroups.MainDescription, 620AddToGroup(SymbolDescriptionGroups.MainDescription, 643AddToGroup(SymbolDescriptionGroups.MainDescription, 660AddToGroup(SymbolDescriptionGroups.MainDescription, 667AddToGroup(SymbolDescriptionGroups.MainDescription, 674AddToGroup(SymbolDescriptionGroups.MainDescription, 681AddToGroup(SymbolDescriptionGroups.MainDescription, 687AddToGroup(SymbolDescriptionGroups.MainDescription, 694AddToGroup(SymbolDescriptionGroups.MainDescription, 708AddToGroup(SymbolDescriptionGroups.MainDescription, 750AddToGroup(SymbolDescriptionGroups.TypeParameterMap, parts); 753protected void AddToGroup(SymbolDescriptionGroups group, params SymbolDisplayPart[] partsArray) 756protected void AddToGroup(SymbolDescriptionGroups group, params IEnumerable<SymbolDisplayPart>[] partsArray)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AnonymousTypes.cs (1)
36AddToGroup(SymbolDescriptionGroups.StructuralTypes, info.TypesParts);
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.cs (5)
25public Task<string> ToDescriptionStringAsync(SemanticModel semanticModel, int position, ISymbol symbol, SymbolDescriptionOptions options, SymbolDescriptionGroups groups, CancellationToken cancellationToken) 28public async Task<string> ToDescriptionStringAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups, CancellationToken cancellationToken) 34public async Task<ImmutableArray<SymbolDisplayPart>> ToDescriptionPartsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups, CancellationToken cancellationToken) 45public async Task<IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>> ToDescriptionGroupsAsync( 50return SpecializedCollections.EmptyDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>();
LanguageServices\SymbolDisplayService\ISymbolDisplayService.cs (7)
17Task<string> ToDescriptionStringAsync(SemanticModel semanticModel, int position, ISymbol symbol, SymbolDescriptionOptions options, SymbolDescriptionGroups groups = SymbolDescriptionGroups.All, CancellationToken cancellationToken = default); 18Task<string> ToDescriptionStringAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups = SymbolDescriptionGroups.All, CancellationToken cancellationToken = default); 19Task<ImmutableArray<SymbolDisplayPart>> ToDescriptionPartsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups = SymbolDescriptionGroups.All, CancellationToken cancellationToken = default); 20Task<IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>> ToDescriptionGroupsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, CancellationToken cancellationToken = default);
QuickInfo\QuickInfoUtilities.cs (12)
53if (TryGetGroupText(SymbolDescriptionGroups.MainDescription, out var mainDescriptionTaggedParts)) 67else if (TryGetGroupText(SymbolDescriptionGroups.MainDescription, out var mainDescriptionTaggedParts)) 72if (groups.TryGetValue(SymbolDescriptionGroups.Documentation, out var docParts) && !docParts.IsDefaultOrEmpty) 82groups.TryGetValue(SymbolDescriptionGroups.RemarksDocumentation, out var remarksDocumentation) && 93if (groups.TryGetValue(SymbolDescriptionGroups.ReturnsDocumentation, out var returnsDocumentation) && 102if (groups.TryGetValue(SymbolDescriptionGroups.ValueDocumentation, out var valueDocumentation) && 111if (TryGetGroupText(SymbolDescriptionGroups.TypeParameterMap, out var typeParameterMapText)) 119if (TryGetGroupText(SymbolDescriptionGroups.StructuralTypes, out var anonymousTypesText)) 128if (TryGetGroupText(SymbolDescriptionGroups.AwaitableUsageText, out var awaitableUsageText)) 149if (TryGetGroupText(SymbolDescriptionGroups.Exceptions, out var exceptionsText)) 152if (TryGetGroupText(SymbolDescriptionGroups.Captures, out var capturesText)) 161bool TryGetGroupText(SymbolDescriptionGroups group, out ImmutableArray<TaggedText> taggedParts)