148 instantiations of SymbolDisplayPart
Microsoft.CodeAnalysis.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolDisplayPartExtensions.cs (5)
16=> parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.LineBreak, null, text));
19=> parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.MethodName, null, text));
22=> parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, text));
25=> parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Space, null, text));
28=> parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Text, null, text));
Microsoft.CodeAnalysis.CSharp (10)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (6)
469Builder.Add(new SymbolDisplayPart(SymbolDisplayPartKind.ClassName, symbol, "<empty anonymous type>"));
474Builder.Add(new SymbolDisplayPart(SymbolDisplayPartKind.ClassName, symbol, name));
686Builder.Add(new SymbolDisplayPart(SymbolDisplayPartKind.AnonymousTypeIndicator, null, "AnonymousType"));
691Builder.Add(new SymbolDisplayPart(SymbolDisplayPartKind.AnonymousTypeIndicator, null, "Tuple"));
893Builder.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Keyword, null, "unmanaged"));
903Builder.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Keyword, null, "notnull"));
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.Features (16)
SignatureHelp\AbstractCSharpSignatureHelpProvider.cs (6)
19=> new SymbolDisplayPart(SymbolDisplayPartKind.Keyword, null, SyntaxFacts.GetText(kind));
22=> new SymbolDisplayPart(SymbolDisplayPartKind.Operator, null, SyntaxFacts.GetText(kind));
25=> new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, SyntaxFacts.GetText(kind));
28=> new SymbolDisplayPart(SymbolDisplayPartKind.Text, null, text);
31=> new SymbolDisplayPart(SymbolDisplayPartKind.Space, null, " ");
34=> new SymbolDisplayPart(SymbolDisplayPartKind.LineBreak, null, "\r\n");
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.Features (15)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (4)
500AddToGroup(SymbolDescriptionGroups.MainDescription, new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, "?"));
789yield return new SymbolDisplayPart(SymbolDisplayPartKind.LineBreak, null, "\r\n");
801yield return new SymbolDisplayPart(SymbolDisplayPartKind.Space, null, new string(' ', count));
812yield return new SymbolDisplayPart(kind, symbol, text);
Microsoft.CodeAnalysis.VisualBasic (12)
SymbolDisplay\SymbolDisplay.vb (7)
175parts.Add(New SymbolDisplayPart(DirectCast(lastKind, SymbolDisplayPartKind), Nothing, sb.ToString()))
184parts.Add(New SymbolDisplayPart(DirectCast(lastKind, SymbolDisplayPartKind), Nothing, sb.ToString()))
193parts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.FieldName, Nothing, wellKnown))
198parts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.StringLiteral, Nothing, """" & c & """c"))
204parts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.MethodName, Nothing, "ChrW"))
205parts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "("))
207parts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, ")"))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.VisualBasic.Features (9)
SignatureHelp\AbstractVisualBasicSignatureHelpProvider.vb (5)
14Return New SymbolDisplayPart(SymbolDisplayPartKind.ParameterName, Nothing, s)
18Return New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, SyntaxFacts.GetText(kind))
22Return New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, SyntaxFacts.GetText(kind))
26Return New SymbolDisplayPart(SymbolDisplayPartKind.Text, Nothing, _text)
30Return New SymbolDisplayPart(SymbolDisplayPartKind.Space, Nothing, " ")
Microsoft.CodeAnalysis.VisualBasic.Workspaces (49)
Utilities\IntrinsicOperators\AbstractIntrinsicOperatorDocumentation.vb (7)
27Return {New SymbolDisplayPart(SymbolDisplayPartKind.ParameterName, Nothing, GetParameterName(index))}
38suffixParts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, ")"))
39suffixParts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Space, Nothing, " "))
40suffixParts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "As"))
41suffixParts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Space, Nothing, " "))
58suffixParts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Text, Nothing, ReturnTypeMetadataName))
64suffixParts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Text, Nothing, VBWorkspaceResources.result))
Utilities\IntrinsicOperators\GetXmlNamespaceExpressionDocumentation.vb (5)
13New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "["),
14New SymbolDisplayPart(SymbolDisplayPartKind.ParameterName, Nothing, GetParameterName(index)),
15New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "]")
55New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "GetXmlNamespace"),
56New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "(")
Utilities\IntrinsicOperators\MidAssignmentDocumentation.vb (8)
45Return {New SymbolDisplayPart(SymbolDisplayPartKind.ParameterName, Nothing, "[" + GetParameterName(2) + "]")}
65New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, ")"),
66New SymbolDisplayPart(SymbolDisplayPartKind.Space, Nothing, " "),
67New SymbolDisplayPart(SymbolDisplayPartKind.Operator, Nothing, "="),
68New SymbolDisplayPart(SymbolDisplayPartKind.Space, Nothing, " "),
69New SymbolDisplayPart(SymbolDisplayPartKind.Text, Nothing, VBWorkspaceResources.stringExpression)
75Return {New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "Mid"),
76New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "(")}
Utilities\IntrinsicOperators\TernaryConditionalExpressionDocumentation.vb (8)
17Return {New SymbolDisplayPart(SymbolDisplayPartKind.ParameterName, Nothing, GetParameterName(index)),
18New SymbolDisplayPart(SymbolDisplayPartKind.Space, Nothing, " "),
19New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "As"),
20New SymbolDisplayPart(SymbolDisplayPartKind.Space, Nothing, " "),
21New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "Boolean")}
23Return {New SymbolDisplayPart(SymbolDisplayPartKind.ParameterName, Nothing, GetParameterName(index))}
67Return {New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "If"),
68New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "(")}
Microsoft.CodeAnalysis.Workspaces (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolDisplayPartExtensions.cs (5)
16=> parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.LineBreak, null, text));
19=> parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.MethodName, null, text));
22=> parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, text));
25=> parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Space, null, text));
28=> parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Text, null, text));
Microsoft.VisualStudio.LanguageServices (4)
Microsoft.VisualStudio.LanguageServices.CSharp (4)
Microsoft.VisualStudio.LanguageServices.VisualBasic (6)
ChangeSignature\VisualBasicChangeSignatureViewModelFactoryService.vb (6)
24parts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Space, Nothing, " "))
25parts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "As"))
26parts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Space, Nothing, " "))
36parts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Space, Nothing, " "))
37parts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "="))
38parts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.Space, Nothing, " "))
361 references to SymbolDisplayPart
Microsoft.CodeAnalysis (14)
Microsoft.CodeAnalysis.CodeStyle (7)
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.CSharp (28)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.Features (54)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Microsoft.CodeAnalysis.Features (114)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (24)
81private readonly Dictionary<SymbolDescriptionGroups, IList<SymbolDisplayPart>> _groupMap = [];
109protected abstract Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync(ISymbol symbol);
110protected abstract ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(ISymbol symbol, SemanticModel semanticModel, int position, SymbolDisplayFormat format);
209var parts = new List<SymbolDisplayPart>();
253var parts = new List<SymbolDisplayPart>();
277public async Task<ImmutableArray<SymbolDisplayPart>> BuildDescriptionAsync(
369private ImmutableArray<SymbolDisplayPart> BuildDescription(SymbolDescriptionGroups groups)
371var finalParts = new List<SymbolDisplayPart>();
557private async Task<ImmutableArray<SymbolDisplayPart>> GetFieldPartsAsync(IFieldSymbol symbol)
589private async Task<ImmutableArray<SymbolDisplayPart>> GetLocalPartsAsync(ILocalSymbol symbol)
731var parts = new List<SymbolDisplayPart>();
753protected void AddToGroup(SymbolDescriptionGroups group, params SymbolDisplayPart[] partsArray)
754=> AddToGroup(group, (IEnumerable<SymbolDisplayPart>)partsArray);
756protected void AddToGroup(SymbolDescriptionGroups group, params IEnumerable<SymbolDisplayPart>[] partsArray)
771private static IEnumerable<SymbolDisplayPart> Description(string description)
782protected static IEnumerable<SymbolDisplayPart> Keyword(string text)
785protected static IEnumerable<SymbolDisplayPart> LineBreak(int count = 1)
793protected static IEnumerable<SymbolDisplayPart> PlainText(string text)
796protected static IEnumerable<SymbolDisplayPart> Punctuation(string text)
799protected static IEnumerable<SymbolDisplayPart> Space(int count = 1)
804protected ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(ISymbol symbol, SymbolDisplayFormat? format = null)
810private static IEnumerable<SymbolDisplayPart> Part(SymbolDisplayPartKind kind, ISymbol? symbol, string text)
815private static IEnumerable<SymbolDisplayPart> Part(SymbolDisplayPartKind kind, string text)
818private static IEnumerable<SymbolDisplayPart> TypeParameterName(string text)
Microsoft.CodeAnalysis.VisualBasic (19)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.VisualBasic.Features (63)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (22)
Microsoft.CodeAnalysis.Workspaces (15)
Microsoft.VisualStudio.LanguageServices (5)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)