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