94 references to SymbolDescriptionGroups
Microsoft.CodeAnalysis.CSharp.Features (5)
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (5)
54AddToGroup(SymbolDescriptionGroups.MainDescription, 63AddToGroup(SymbolDescriptionGroups.MainDescription, 72AddToGroup(SymbolDescriptionGroups.MainDescription, 81AddToGroup(SymbolDescriptionGroups.MainDescription, 90AddToGroup(SymbolDescriptionGroups.MainDescription,
Microsoft.CodeAnalysis.Features (84)
Completion\CommonCompletionUtilities.cs (4)
118if (!sections.ContainsKey(SymbolDescriptionGroups.MainDescription)) 124textContentBuilder.AddRange(sections[SymbolDescriptionGroups.MainDescription]); 150if (sections.TryGetValue(SymbolDescriptionGroups.AwaitableUsageText, out var parts)) 155if (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 (53)
87private readonly Dictionary<SymbolDescriptionGroups, IList<SymbolDisplayPart>> _groupMap = new(); 88private readonly Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>> _documentationMap = new(); 179SymbolDescriptionGroups.Documentation, 198SymbolDescriptionGroups.Documentation, 202SymbolDescriptionGroups.RemarksDocumentation, 223_documentationMap.Add(SymbolDescriptionGroups.ReturnsDocumentation, builder.ToImmutable()); 239_documentationMap.Add(SymbolDescriptionGroups.ValueDocumentation, builder.ToImmutable()); 259AddToGroup(SymbolDescriptionGroups.Exceptions, parts); 284AddToGroup(SymbolDescriptionGroups.Captures, LineBreak()); 285AddToGroup(SymbolDescriptionGroups.Captures, PlainText($"{WorkspacesResources.Variables_captured_colon} ?")); 309AddToGroup(SymbolDescriptionGroups.Captures, parts); 318ImmutableArray<ISymbol> symbolGroup, SymbolDescriptionGroups groups) 327public async Task<IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>> BuildDescriptionSectionsAsync(ImmutableArray<ISymbol> symbolGroup) 371AddToGroup(SymbolDescriptionGroups.MainDescription, 409private ImmutableArray<SymbolDisplayPart> BuildDescription(SymbolDescriptionGroups groups) 414foreach (var group in orderedGroups) 434private static int GetPrecedingNewLineCount(SymbolDescriptionGroups group) 438case SymbolDescriptionGroups.MainDescription: 442case SymbolDescriptionGroups.Documentation: 443case SymbolDescriptionGroups.RemarksDocumentation: 444case SymbolDescriptionGroups.ReturnsDocumentation: 445case SymbolDescriptionGroups.ValueDocumentation: 448case SymbolDescriptionGroups.StructuralTypes: 451case SymbolDescriptionGroups.Exceptions: 452case SymbolDescriptionGroups.TypeParameterMap: 453case SymbolDescriptionGroups.Captures: 462private IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>> BuildDescriptionSections() 467var result = new Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>(_documentationMap); 471if (group == SymbolDescriptionGroups.MainDescription) 487AddToGroup(SymbolDescriptionGroups.MainDescription, 489AddToGroup(SymbolDescriptionGroups.Documentation, 516AddToGroup(SymbolDescriptionGroups.MainDescription, underlyingTypeDisplayParts); 528AddToGroup(SymbolDescriptionGroups.MainDescription, symbol.IsAnonymousDelegateType() 534AddToGroup(SymbolDescriptionGroups.MainDescription, 539AddToGroup(SymbolDescriptionGroups.MainDescription, new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, "?")); 566AddToGroup(SymbolDescriptionGroups.MainDescription, 571AddToGroup(SymbolDescriptionGroups.MainDescription, 584AddToGroup(SymbolDescriptionGroups.MainDescription, parts); 588AddToGroup(SymbolDescriptionGroups.MainDescription, 621AddToGroup(SymbolDescriptionGroups.MainDescription, 651AddToGroup(SymbolDescriptionGroups.MainDescription, 658AddToGroup(SymbolDescriptionGroups.MainDescription, 681AddToGroup(SymbolDescriptionGroups.MainDescription, 698AddToGroup(SymbolDescriptionGroups.MainDescription, 705AddToGroup(SymbolDescriptionGroups.MainDescription, 712AddToGroup(SymbolDescriptionGroups.MainDescription, 719AddToGroup(SymbolDescriptionGroups.MainDescription, 725AddToGroup(SymbolDescriptionGroups.MainDescription, 732AddToGroup(SymbolDescriptionGroups.MainDescription, 746AddToGroup(SymbolDescriptionGroups.MainDescription, 788AddToGroup(SymbolDescriptionGroups.TypeParameterMap, 792protected void AddToGroup(SymbolDescriptionGroups group, params SymbolDisplayPart[] partsArray) 795protected void AddToGroup(SymbolDescriptionGroups group, params IEnumerable<SymbolDisplayPart>[] partsArray)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AnonymousTypes.cs (1)
36AddToGroup(SymbolDescriptionGroups.StructuralTypes, info.TypesParts);
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.cs (5)
31public Task<string> ToDescriptionStringAsync(SemanticModel semanticModel, int position, ISymbol symbol, SymbolDescriptionOptions options, SymbolDescriptionGroups groups, CancellationToken cancellationToken) 34public async Task<string> ToDescriptionStringAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups, CancellationToken cancellationToken) 40public async Task<ImmutableArray<SymbolDisplayPart>> ToDescriptionPartsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups, CancellationToken cancellationToken) 51public async Task<IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>> ToDescriptionGroupsAsync( 56return SpecializedCollections.EmptyDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>();
LanguageServices\SymbolDisplayService\ISymbolDisplayService.cs (7)
18Task<string> ToDescriptionStringAsync(SemanticModel semanticModel, int position, ISymbol symbol, SymbolDescriptionOptions options, SymbolDescriptionGroups groups = SymbolDescriptionGroups.All, CancellationToken cancellationToken = default); 19Task<string> ToDescriptionStringAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups = SymbolDescriptionGroups.All, CancellationToken cancellationToken = default); 20Task<ImmutableArray<SymbolDisplayPart>> ToDescriptionPartsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups = SymbolDescriptionGroups.All, CancellationToken cancellationToken = default); 21Task<IDictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>> ToDescriptionGroupsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, CancellationToken cancellationToken = default);
QuickInfo\QuickInfoUtilities.cs (12)
55if (TryGetGroupText(SymbolDescriptionGroups.MainDescription, out var mainDescriptionTaggedParts)) 69else if (TryGetGroupText(SymbolDescriptionGroups.MainDescription, out var mainDescriptionTaggedParts)) 74if (groups.TryGetValue(SymbolDescriptionGroups.Documentation, out var docParts) && !docParts.IsDefaultOrEmpty) 78groups.TryGetValue(SymbolDescriptionGroups.RemarksDocumentation, out var remarksDocumentation) && 89if (groups.TryGetValue(SymbolDescriptionGroups.ReturnsDocumentation, out var returnsDocumentation) && 98if (groups.TryGetValue(SymbolDescriptionGroups.ValueDocumentation, out var valueDocumentation) && 107if (TryGetGroupText(SymbolDescriptionGroups.TypeParameterMap, out var typeParameterMapText)) 115if (TryGetGroupText(SymbolDescriptionGroups.StructuralTypes, out var anonymousTypesText)) 124if (TryGetGroupText(SymbolDescriptionGroups.AwaitableUsageText, out var awaitableUsageText)) 145if (TryGetGroupText(SymbolDescriptionGroups.Exceptions, out var exceptionsText)) 148if (TryGetGroupText(SymbolDescriptionGroups.Captures, out var capturesText)) 157bool TryGetGroupText(SymbolDescriptionGroups group, out ImmutableArray<TaggedText> taggedParts)
Microsoft.CodeAnalysis.VisualBasic.Features (5)
LanguageServices\VisualBasicSymbolDisplayService.SymbolDescriptionBuilder.vb (5)
40AddToGroup(SymbolDescriptionGroups.MainDescription, 48AddToGroup(SymbolDescriptionGroups.MainDescription, 56AddToGroup(SymbolDescriptionGroups.MainDescription, 64AddToGroup(SymbolDescriptionGroups.MainDescription, 72AddToGroup(SymbolDescriptionGroups.MainDescription,