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