148 instantiations of SymbolDisplayPart
Microsoft.CodeAnalysis.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
189=> [new SymbolDisplayPart(SymbolDisplayPartKind.Text, null, text)];
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\SymbolDisplay.cs (1)
276builder.Add(new SymbolDisplayPart(SymbolDisplayPartKind.MethodName, symbol, "<top-level-statements-entry-point>"));
SymbolDisplay\SymbolDisplayVisitor.cs (3)
98return new SymbolDisplayPart(kind, symbol, "?"); 103return new SymbolDisplayPart(kind, symbol, text); 111return new SymbolDisplayPart(kind, symbol, text);
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)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (3)
17? new SymbolDisplayPart(SymbolDisplayPartKind.Keyword, null, "object") 18: new SymbolDisplayPart(SymbolDisplayPartKind.Text, null, replacement); 23return new SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, null, string.Format("@{0}", text));
Microsoft.CodeAnalysis.CSharp.Features (16)
ExternalAccess\Pythia\Api\PythiaSignatureHelpItemWrapper.cs (1)
16=> new SymbolDisplayPart(SymbolDisplayPartKind.Text, null, text);
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");
SignatureHelp\AttributeSignatureHelpProvider.cs (1)
207new SymbolDisplayPart(SymbolDisplayPartKind.Text, null, CSharpFeaturesResources.Properties),
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
271result.Add(new SymbolDisplayPart(SymbolDisplayPartKind.PropertyName, indexer, indexer.Name));
SignatureHelp\GenericNameSignatureHelpProvider.cs (2)
238parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.TypeParameterName, typeParam, typeParam.Name)); 254parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Keyword, null, "unmanaged"));
SignatureHelp\GenericNameSignatureHelpProvider_Method.cs (1)
55result.Add(new SymbolDisplayPart(SymbolDisplayPartKind.MethodName, method, method.Name));
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider_DelegateType.cs (1)
70parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.ParameterName, null, TargetName));
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (3)
153var prefixParts = SpecializedCollections.SingletonEnumerable(new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, "(")).ToTaggedText(); 154var suffixParts = SpecializedCollections.SingletonEnumerable(new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, ")")).ToTaggedText(); 193typeParts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.PropertyName, null, elementName));
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (3)
17? new SymbolDisplayPart(SymbolDisplayPartKind.Keyword, null, "object") 18: new SymbolDisplayPart(SymbolDisplayPartKind.Text, null, replacement); 23return new SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, null, string.Format("@{0}", text));
Microsoft.CodeAnalysis.Features (15)
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
153? [new SymbolDisplayPart(SymbolDisplayPartKind.Text, null, tooltip)]
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (2)
516return [new SymbolDisplayPart(kind, symbol: null, text: TrimCrefPrefix(crefValue))]; 536return [new SymbolDisplayPart(SymbolDisplayPartKind.TypeParameterName, symbol: null, text: TrimCrefPrefix(crefValue))];
InlineHints\AbstractInlineTypeHintsService.cs (1)
114finalParts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Text, symbol: null, "..."));
InlineHints\TypeHint.cs (1)
12private static readonly ImmutableArray<SymbolDisplayPart> s_spaceArray = [new SymbolDisplayPart(SymbolDisplayPartKind.Space, symbol: null, " ")];
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (4)
39new SymbolDisplayPart(SymbolDisplayPartKind.Keyword, symbol: null, SyntaxFactsService.GetText(SyntaxFactsService.SyntaxKinds.DelegateKeyword)), 215yield return new SymbolDisplayPart(SymbolDisplayPartKind.LineBreak, null, "\r\n"); 226=> new(kind, symbol, text); 232yield return new SymbolDisplayPart(SymbolDisplayPartKind.Space, null, " ");
LanguageServices\AnonymousTypeDisplayService\StructuralTypeDisplayInfo.cs (1)
56newParts.Add(new SymbolDisplayPart(part.Kind, part.Symbol, name));
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);
SignatureHelp\AbstractSignatureHelpProvider.cs (1)
201new SymbolDisplayPart(SymbolDisplayPartKind.Space, null, "\r\n\r\n")
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, ")"))
SymbolDisplay\SymbolDisplayVisitor.Types.vb (4)
329Builder.Add(New SymbolDisplayPart(SymbolDisplayPartKind.ClassName, symbol, "<empty anonymous type>")) 332Builder.Add(New SymbolDisplayPart(SymbolDisplayPartKind.ClassName, symbol, name)) 432Builder.Add(New SymbolDisplayPart(SymbolDisplayPartKind.AnonymousTypeIndicator, Nothing, "AnonymousType")) 435Builder.Add(New SymbolDisplayPart(SymbolDisplayPartKind.AnonymousTypeIndicator, Nothing, "Tuple"))
SymbolDisplay\SymbolDisplayVisitor.vb (1)
91Return New SymbolDisplayPart(kind, symbol, If(escape, EscapeIdentifier(text), text))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolDisplayPartExtensions.vb (3)
16New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "Object"), 17New SymbolDisplayPart(SymbolDisplayPartKind.Text, Nothing, replacement)) 21Return New SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, Nothing, String.Format("[{0}]", text))
Microsoft.CodeAnalysis.VisualBasic.Features (9)
LanguageServices\VisualBasicStructuralTypeDisplayService.vb (1)
53members.Add(New SymbolDisplayPart(SymbolDisplayPartKind.PropertyName, [property], [property].Name))
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, " ")
SignatureHelp\AttributeSignatureHelpProvider.vb (1)
172New SymbolDisplayPart(SymbolDisplayPartKind.Text, Nothing, VBFeaturesResources.Properties),
SignatureHelp\GenericNameSignatureHelpProvider.Method.vb (1)
20result.Add(New SymbolDisplayPart(SymbolDisplayPartKind.MethodName, method, method.Name))
SignatureHelp\InvocationExpressionSignatureHelpProvider.DelegateInvoke.vb (1)
43displayParts.Add(New SymbolDisplayPart(SymbolDisplayPartKind.MethodName, invokeMethod, invokeMethod.Name))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (49)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolDisplayPartExtensions.vb (3)
16New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "Object"), 17New SymbolDisplayPart(SymbolDisplayPartKind.Text, Nothing, replacement)) 21Return New SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, Nothing, String.Format("[{0}]", text))
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\AddHandlerStatementDocumentation.vb (2)
28Return {New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "AddHandler"), 29New SymbolDisplayPart(SymbolDisplayPartKind.Space, Nothing, " ")}
Utilities\IntrinsicOperators\BinaryConditionalExpressionDocumentation.vb (2)
51Return {New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "If"), 52New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "(")}
Utilities\IntrinsicOperators\CTypeCastExpressionDocumentation.vb (2)
18New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "CType"), 19New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "(")
Utilities\IntrinsicOperators\DirectCastExpressionDocumentation.vb (2)
18New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "DirectCast"), 19New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "(")
Utilities\IntrinsicOperators\GetTypeExpressionDocumentation.vb (2)
44New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "GetType"), 45New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "(")
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\NameOfExpressionDocumentation.vb (2)
29Return {New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "NameOf"), 30New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "(")}
Utilities\IntrinsicOperators\PredefinedCastExpressionDocumentation.vb (2)
55Return {New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, _keywordText), 56New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "(")}
Utilities\IntrinsicOperators\RemoveHandlerStatementDocumentation.vb (2)
28Return {New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "RemoveHandler"), 29New SymbolDisplayPart(SymbolDisplayPartKind.Space, 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, "(")}
Utilities\IntrinsicOperators\TryCastExpressionDocumentation.vb (2)
18New SymbolDisplayPart(SymbolDisplayPartKind.Keyword, Nothing, "TryCast"), 19New SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, Nothing, "(")
Microsoft.CodeAnalysis.Workspaces (8)
Classification\Classifier.cs (2)
139parts.Add(new SymbolDisplayPart(kind.Value, null, sourceText.ToString(span.TextSpan))); 150yield return new SymbolDisplayPart(SymbolDisplayPartKind.Space, null, new string(' ', count));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
189=> [new SymbolDisplayPart(SymbolDisplayPartKind.Text, null, text)];
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)
ChangeSignature\ChangeSignatureDialogViewModel.cs (4)
351displayParts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, "(")); 358displayParts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, ",")); 359displayParts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Space, null, " ")); 380displayParts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, ")"));
Microsoft.VisualStudio.LanguageServices.CSharp (4)
ChangeSignature\CSharpChangeSignatureViewModelFactoryService.cs (4)
39parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Space, null, " ")); 44parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Space, null, " ")); 45parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, "=")); 46parts.Add(new SymbolDisplayPart(SymbolDisplayPartKind.Space, null, " "));
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)
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (3)
16private ArrayBuilder<SymbolDisplayPart> _builder = null!; 31protected ArrayBuilder<SymbolDisplayPart> Builder => _builder; 70ArrayBuilder<SymbolDisplayPart> builder,
SymbolDisplay\SymbolDisplayExtensions.cs (6)
18/// Converts an immutable array of <see cref="SymbolDisplayPart"/>s to a string. 23public static string ToDisplayString(this ImmutableArray<SymbolDisplayPart> parts) 42foreach (var part in parts) 51/// Converts an ArrayBuilder of <see cref="SymbolDisplayPart"/>s to a string. 56internal static string ToDisplayString(this ArrayBuilder<SymbolDisplayPart> parts) 75foreach (var part in parts)
SymbolDisplay\SymbolDisplayPart.cs (1)
35/// Construct a non-formattable <see cref="SymbolDisplayPart"/> (i.e. with a fixed string value).
Symbols\ISymbol.cs (2)
244ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat? format = null); 271ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(
Symbols\ITypeSymbol.cs (2)
153ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat? format = null); 181ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(
Microsoft.CodeAnalysis.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
188public static ImmutableArray<SymbolDisplayPart> ToSymbolDisplayParts(this string text)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolDisplayPartExtensions.cs (6)
12public static string GetFullText(this IEnumerable<SymbolDisplayPart> parts) 15public static void AddLineBreak(this IList<SymbolDisplayPart> parts, string text = "\r\n") 18public static void AddMethodName(this IList<SymbolDisplayPart> parts, string text) 21public static void AddPunctuation(this IList<SymbolDisplayPart> parts, string text) 24public static void AddSpace(this IList<SymbolDisplayPart> parts, string text = " ") 27public static void AddText(this IList<SymbolDisplayPart> parts, string text)
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
201public ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat format = null) 207public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, int position, SymbolDisplayFormat format = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (2)
67public ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 73public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null)
Microsoft.CodeAnalysis.CSharp (28)
SymbolDisplay\SymbolDisplay.cs (13)
66var builder = ArrayBuilder<SymbolDisplayPart>.GetInstance(); 135public static ImmutableArray<SymbolDisplayPart> ToDisplayParts( 147public static ImmutableArray<SymbolDisplayPart> ToDisplayParts( 158public static ImmutableArray<SymbolDisplayPart> ToDisplayParts( 182public static ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts( 194public static ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts( 205public static ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts( 217private static ImmutableArray<SymbolDisplayPart> ToDisplayParts( 228private static ImmutableArray<SymbolDisplayPart> ToDisplayParts( 235ArrayBuilder<SymbolDisplayPart> builder = ArrayBuilder<SymbolDisplayPart>.GetInstance(); 242private static ArrayBuilder<SymbolDisplayPart> PopulateDisplayParts( 243ArrayBuilder<SymbolDisplayPart> builder,
SymbolDisplay\SymbolDisplayVisitor.cs (4)
31ArrayBuilder<SymbolDisplayPart> builder, 42ArrayBuilder<SymbolDisplayPart> builder, 58protected new void Initialize(ArrayBuilder<SymbolDisplayPart> builder, SymbolDisplayFormat format, bool isFirstSymbolVisited, SemanticModel? semanticModelOpt, int positionOpt, bool inNamespaceOrType) 94internal SymbolDisplayPart CreatePart(SymbolDisplayPartKind kind, ISymbol? symbol, string text)
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
20ArrayBuilder<SymbolDisplayPart> builder)
Symbols\PublicModel\PreprocessingSymbol.cs (2)
83ImmutableArray<SymbolDisplayPart> ISymbol.ToDisplayParts(SymbolDisplayFormat? format) 93ImmutableArray<SymbolDisplayPart> ISymbol.ToMinimalDisplayParts(SemanticModel semanticModel, int position, SymbolDisplayFormat? format)
Symbols\PublicModel\Symbol.cs (2)
169ImmutableArray<SymbolDisplayPart> ISymbol.ToDisplayParts(SymbolDisplayFormat format) 179ImmutableArray<SymbolDisplayPart> ISymbol.ToMinimalDisplayParts(SemanticModel semanticModel, int position, SymbolDisplayFormat format)
Symbols\PublicModel\TypeSymbol.cs (2)
152ImmutableArray<SymbolDisplayPart> ITypeSymbol.ToDisplayParts(CodeAnalysis.NullableFlowState topLevelNullability, SymbolDisplayFormat format) 162ImmutableArray<SymbolDisplayPart> ITypeSymbol.ToMinimalDisplayParts(SemanticModel semanticModel, CodeAnalysis.NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format)
Symbols\Symbol.cs (2)
1461public ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat format = null) 1474public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(
Symbols\TypeSymbol.cs (2)
668public ImmutableArray<SymbolDisplayPart> ToDisplayParts(CodeAnalysis.NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 682public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (2)
9public static SymbolDisplayPart MassageErrorTypeNames(this SymbolDisplayPart part, string? replacement = null)
Microsoft.CodeAnalysis.CSharp.Features (54)
ExternalAccess\Pythia\Api\PythiaSignatureHelpItemWrapper.cs (2)
15public static SymbolDisplayPart CreateTextDisplayPart(string text) 23IList<SymbolDisplayPart> descriptionParts)
LanguageServices\CSharpStructuralTypeDisplayService.cs (2)
32protected override ImmutableArray<SymbolDisplayPart> GetNormalAnonymousTypeParts( 35using var _ = ArrayBuilder<SymbolDisplayPart>.GetInstance(out var members);
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (7)
85protected override Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync( 102return SpecializedTasks.EmptyImmutableArray<SymbolDisplayPart>(); 105protected override ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(ISymbol symbol, SemanticModel semanticModel, int position, SymbolDisplayFormat format) 111private async Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync( 139private async Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync( 151private async Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync( 177private async Task<ImmutableArray<SymbolDisplayPart>> GetInitializerSourcePartsAsync(
SignatureHelp\AbstractCSharpSignatureHelpProvider.cs (8)
18protected static SymbolDisplayPart Keyword(SyntaxKind kind) 21protected static SymbolDisplayPart Operator(SyntaxKind kind) 24protected static SymbolDisplayPart Punctuation(SyntaxKind kind) 27protected static SymbolDisplayPart Text(string text) 30protected static SymbolDisplayPart Space() 33protected static SymbolDisplayPart NewLine() 36private static readonly IList<SymbolDisplayPart> _separatorParts = 42protected static IList<SymbolDisplayPart> GetSeparatorParts() => _separatorParts;
SignatureHelp\AbstractOrdinaryMethodSignatureHelpProvider.cs (4)
30IList<SymbolDisplayPart>? descriptionParts) 47private static IList<SymbolDisplayPart> GetMethodGroupPreambleParts( 52var result = new List<SymbolDisplayPart>(); 87private static IList<SymbolDisplayPart> GetMethodGroupPostambleParts()
SignatureHelp\AttributeSignatureHelpProvider.cs (4)
179var displayParts = new List<SymbolDisplayPart> 201private static List<SymbolDisplayPart>? GetParameterPrefixDisplayParts(int i) 216private static IList<SymbolDisplayPart> GetPreambleParts( 224private static IList<SymbolDisplayPart> GetPostambleParts()
SignatureHelp\ConstructorInitializerSignatureHelpProvider.cs (2)
152private static IList<SymbolDisplayPart> GetPreambleParts( 160private static IList<SymbolDisplayPart> GetPostambleParts()
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (3)
244private static IList<SymbolDisplayPart> GetPreambleParts( 249var result = new List<SymbolDisplayPart>(); 279private static IList<SymbolDisplayPart> GetPostambleParts()
SignatureHelp\GenericNameSignatureHelpProvider.cs (2)
225private static IList<SymbolDisplayPart> GetSelectedDisplayParts( 230var parts = new List<SymbolDisplayPart>();
SignatureHelp\GenericNameSignatureHelpProvider_Method.cs (4)
12private static IList<SymbolDisplayPart> GetPreambleParts( 17var result = new List<SymbolDisplayPart>(); 74private static IList<SymbolDisplayPart> GetPostambleParts(IMethodSymbol method, SemanticModel semanticModel, int position) 76var result = new List<SymbolDisplayPart>
SignatureHelp\GenericNameSignatureHelpProvider_NamedType.cs (2)
11private static IList<SymbolDisplayPart> GetPreambleParts( 19private static IList<SymbolDisplayPart> GetPostambleParts()
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_DelegateAndFunctionPointerInvoke.cs (3)
58private static IList<SymbolDisplayPart> GetDelegateOrFunctionPointerInvokePreambleParts(IMethodSymbol invokeMethod, SemanticModel semanticModel, int position) 60var displayParts = new List<SymbolDisplayPart>(); 97private static IList<SymbolDisplayPart> GetDelegateOrFunctionPointerInvokePostambleParts()
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider_DelegateType.cs (4)
36private static IList<SymbolDisplayPart> GetDelegateTypePreambleParts(IMethodSymbol invokeMethod, SemanticModel semanticModel, int position) 38var result = new List<SymbolDisplayPart>(); 50var parts = new List<SymbolDisplayPart>(); 79private static IList<SymbolDisplayPart> GetDelegateTypePostambleParts()
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider_NormalType.cs (3)
39private static IList<SymbolDisplayPart> GetNormalTypePreambleParts( 44var result = new List<SymbolDisplayPart>(); 52private static IList<SymbolDisplayPart> GetNormalTypePostambleParts()
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (3)
139static IList<SymbolDisplayPart> GetPreambleParts( 144var result = new List<SymbolDisplayPart>(); 152static IList<SymbolDisplayPart> GetPostambleParts()
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (1)
181var spacePart = Space();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
SymbolDisplay\SymbolDisplayTests.cs (2)
3455private static void Verify(ImmutableArray<SymbolDisplayPart> actualParts, string expectedText, params SymbolDisplayPartKind[] expectedKinds) 5213var firstPart = description[0];
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (2)
9public static SymbolDisplayPart MassageErrorTypeNames(this SymbolDisplayPart part, string? replacement = null)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Completion\FSharpCommonCompletionItem.cs (1)
20ImmutableArray<SymbolDisplayPart> description = default,
Microsoft.CodeAnalysis.Features (114)
CodeLens\CodeLensReferencesService.cs (1)
298var part = parts[index];
Common\TaggedText.cs (2)
89this IEnumerable<SymbolDisplayPart>? displayParts, TaggedTextStyle style = TaggedTextStyle.None, Func<ISymbol?, string?>? getNavigationHint = null, bool includeNavigationHints = true) 106private static string GetTag(SymbolDisplayPart part)
Completion\CommonCompletionItem.cs (1)
22ImmutableArray<SymbolDisplayPart> description = default,
Completion\Providers\RecommendedKeyword.cs (4)
15Func<CancellationToken, ImmutableArray<SymbolDisplayPart>> descriptionFactory, 22public Func<CancellationToken, ImmutableArray<SymbolDisplayPart>> DescriptionFactory { get; } = descriptionFactory; 32internal static ImmutableArray<SymbolDisplayPart> CreateDisplayParts(string keyword, string toolTip) 34var textContentBuilder = new System.Collections.Generic.List<SymbolDisplayPart>();
Completion\Providers\Snippets\SnippetCompletionItem.cs (1)
21ImmutableArray<SymbolDisplayPart> description,
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (2)
496internal static IEnumerable<SymbolDisplayPart> CrefToSymbolDisplayParts( 519internal static IEnumerable<SymbolDisplayPart> TypeParameterRefToSymbolDisplayParts(
ExternalAccess\Pythia\Api\PythiaCompletionProviderBase.cs (2)
25ImmutableArray<SymbolDisplayPart> description, 48public static ImmutableArray<SymbolDisplayPart> CreateRecommendedKeywordDisplayParts(string keyword, string toolTip)
InlineHints\AbstractInlineTypeHintsService.cs (4)
71using var _2 = ArrayBuilder<SymbolDisplayPart>.GetInstance(out var finalParts); 94ArrayBuilder<SymbolDisplayPart> finalParts, 95ImmutableArray<SymbolDisplayPart> parts, 102foreach (var part in parts)
InlineHints\TypeHint.cs (6)
12private static readonly ImmutableArray<SymbolDisplayPart> s_spaceArray = [new SymbolDisplayPart(SymbolDisplayPartKind.Space, symbol: null, " ")]; 17public ImmutableArray<SymbolDisplayPart> Prefix { get; } = CreateSpaceSymbolPartArray(leadingSpace); 18public ImmutableArray<SymbolDisplayPart> Suffix { get; } = CreateSpaceSymbolPartArray(trailingSpace); 20private static ImmutableArray<SymbolDisplayPart> CreateSpaceSymbolPartArray(bool hasSpace) 23public void Deconstruct(out ITypeSymbol type, out TextSpan span, out TextChange? textChange, out ImmutableArray<SymbolDisplayPart> prefix, out ImmutableArray<SymbolDisplayPart> suffix)
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (16)
23protected abstract ImmutableArray<SymbolDisplayPart> GetNormalAnonymousTypeParts(INamedTypeSymbol anonymousType, SemanticModel semanticModel, int position); 25public ImmutableArray<SymbolDisplayPart> GetAnonymousTypeParts(INamedTypeSymbol anonymousType, SemanticModel semanticModel, int position) 30private ImmutableArray<SymbolDisplayPart> GetDelegateAnonymousTypeParts( 45private static ImmutableArray<SymbolDisplayPart> MassageDelegateParts( 47ImmutableArray<SymbolDisplayPart> parts) 49using var _ = ArrayBuilder<SymbolDisplayPart>.GetInstance(out var result); 52foreach (var part in parts) 71SpecializedCollections.EmptyList<SymbolDisplayPart>()); 77IList<SymbolDisplayPart> typeParts = []; 211protected static IEnumerable<SymbolDisplayPart> LineBreak(int count = 1) 219protected static SymbolDisplayPart PlainText(string text) 222private static SymbolDisplayPart Part(SymbolDisplayPartKind kind, string text) 225private static SymbolDisplayPart Part(SymbolDisplayPartKind kind, ISymbol? symbol, string text) 228protected static IEnumerable<SymbolDisplayPart> Space(int count = 1) 236protected static SymbolDisplayPart Punctuation(string text) 239protected static SymbolDisplayPart Keyword(string text)
LanguageServices\AnonymousTypeDisplayService\IStructuralTypeDisplayService.cs (1)
18ImmutableArray<SymbolDisplayPart> GetAnonymousTypeParts(
LanguageServices\AnonymousTypeDisplayService\StructuralTypeDisplayInfo.cs (9)
12public IList<SymbolDisplayPart> TypesParts { get; } 16IList<SymbolDisplayPart> typesParts) 23public IList<SymbolDisplayPart> ReplaceStructuralTypes(IList<SymbolDisplayPart> parts, SemanticModel semanticModel, int position) 26public static IList<SymbolDisplayPart> ReplaceStructuralTypes( 27IList<SymbolDisplayPart> parts, 40IList<SymbolDisplayPart> parts, 44out List<SymbolDisplayPart> newParts) 49foreach (var part in parts)
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)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.cs (1)
34public async Task<ImmutableArray<SymbolDisplayPart>> ToDescriptionPartsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups, CancellationToken cancellationToken)
LanguageServices\SymbolDisplayService\ISymbolDisplayService.cs (1)
19Task<ImmutableArray<SymbolDisplayPart>> ToDescriptionPartsAsync(SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SymbolDescriptionGroups groups = SymbolDescriptionGroups.All, CancellationToken cancellationToken = default);
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (2)
95public ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat format = null) 104public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, int position, SymbolDisplayFormat format = null)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (2)
123public ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 129public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null)
Shared\Utilities\SupportedPlatformData.cs (2)
23public IList<SymbolDisplayPart> ToDisplayParts() 28var builder = new List<SymbolDisplayPart>();
SignatureHelp\AbstractSignatureHelpProvider.cs (14)
140IList<SymbolDisplayPart> prefixParts, 141IList<SymbolDisplayPart> separatorParts, 142IList<SymbolDisplayPart> suffixParts, 144IList<SymbolDisplayPart>? descriptionParts = null) 157IList<SymbolDisplayPart> prefixParts, 158IList<SymbolDisplayPart> separatorParts, 159IList<SymbolDisplayPart> suffixParts, 161IList<SymbolDisplayPart>? descriptionParts = null) 174IList<SymbolDisplayPart> prefixParts, 175IList<SymbolDisplayPart> separatorParts, 176IList<SymbolDisplayPart> suffixParts, 178IList<SymbolDisplayPart>? descriptionParts) 181? SpecializedCollections.EmptyList<SymbolDisplayPart>() 199var structuralTypeParts = new List<SymbolDisplayPart>
SignatureHelp\SignatureHelpItem.cs (5)
66Func<CancellationToken, IEnumerable<SymbolDisplayPart>> documentationFactory, 67IEnumerable<SymbolDisplayPart> prefixParts, 68IEnumerable<SymbolDisplayPart> separatorParts, 69IEnumerable<SymbolDisplayPart> suffixParts, 71IEnumerable<SymbolDisplayPart> descriptionParts)
SignatureHelp\SignatureHelpParameter.cs (14)
24IEnumerable<SymbolDisplayPart> displayParts, 25IEnumerable<SymbolDisplayPart>? prefixDisplayParts = null, 26IEnumerable<SymbolDisplayPart>? suffixDisplayParts = null, 27IEnumerable<SymbolDisplayPart>? selectedDisplayParts = null) 43public IList<SymbolDisplayPart> PrefixDisplayParts { get; } = prefixDisplayParts.ToImmutableArrayOrEmpty(); 48public IList<SymbolDisplayPart> SuffixDisplayParts { get; } = suffixDisplayParts.ToImmutableArrayOrEmpty(); 54public IList<SymbolDisplayPart> DisplayParts { get; } = displayParts.ToImmutableArrayOrEmpty(); 66public IList<SymbolDisplayPart> SelectedDisplayParts { get; } = selectedDisplayParts.ToImmutableArrayOrEmpty(); 70internal IEnumerable<SymbolDisplayPart> GetAllParts() 142Func<CancellationToken, IEnumerable<SymbolDisplayPart>>? documentationFactory, 143IEnumerable<SymbolDisplayPart> displayParts, 144IEnumerable<SymbolDisplayPart>? prefixDisplayParts = null, 145IEnumerable<SymbolDisplayPart>? suffixDisplayParts = null, 146IEnumerable<SymbolDisplayPart>? selectedDisplayParts = null)
Microsoft.CodeAnalysis.VisualBasic (19)
SymbolDisplay\SymbolDisplay.vb (8)
57Dim builder = ArrayBuilder(Of SymbolDisplayPart).GetInstance() 78Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) 98Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) 107minimal As Boolean) As ImmutableArray(Of SymbolDisplayPart) 108Dim builder = ArrayBuilder(Of SymbolDisplayPart).GetInstance() 115Private Sub PopulateDisplayParts(builder As ArrayBuilder(Of SymbolDisplayPart), 165Friend Sub AddSymbolDisplayParts(parts As ArrayBuilder(Of SymbolDisplayPart), str As String) 190Friend Sub AddSymbolDisplayParts(parts As ArrayBuilder(Of SymbolDisplayPart), c As Char)
SymbolDisplay\SymbolDisplayVisitor.vb (4)
30builder As ArrayBuilder(Of SymbolDisplayPart), 41builder As ArrayBuilder(Of SymbolDisplayPart), 55Protected Shadows Sub Initialize(builder As ArrayBuilder(Of SymbolDisplayPart), format As SymbolDisplayFormat, isFirstSymbolVisited As Boolean, semanticModelOpt As SemanticModel, positionOpt As Integer, inNamespaceOrType As Boolean) 89noEscaping As Boolean) As SymbolDisplayPart
SymbolDisplay\SymbolDisplayVisitor_Minimal.vb (1)
126builder As ArrayBuilder(Of SymbolDisplayPart)) As Boolean
Symbols\Symbol.vb (4)
867Public Function ToDisplayParts(Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) 875Public Function ToMinimalDisplayParts(semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) 1328Private Function ISymbol_ToDisplayParts(Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) Implements ISymbol.ToDisplayParts 1336Private Function ISymbol_ToMinimalDisplayParts(semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) Implements ISymbol.ToMinimalDisplayParts
Symbols\TypeSymbol.vb (2)
618Private Function ITypeSymbol_ToDisplayParts(topLevelNullability As NullableFlowState, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) Implements ITypeSymbol.ToDisplayParts 626Private Function ITypeSymbol_ToMinimalDisplayParts(semanticModel As SemanticModel, topLevelNullability As NullableFlowState, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) Implements ITypeSymbol.ToMinimalDisplayParts
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolDisplayPartExtensions.vb (2)
11Public Function MassageErrorTypeNames(p As SymbolDisplayPart, Optional replacement As String = Nothing) As SymbolDisplayPart
Microsoft.CodeAnalysis.VisualBasic.Features (63)
Completion\KeywordRecommenders\RecommendationHelpers.vb (1)
163Dim appendParts = Sub(parts As IEnumerable(Of SymbolDisplayPart))
LanguageServices\VisualBasicStructuralTypeDisplayService.vb (2)
29position As Integer) As ImmutableArray(Of SymbolDisplayPart) 30Dim members = ArrayBuilder(Of SymbolDisplayPart).GetInstance()
LanguageServices\VisualBasicSymbolDisplayService.SymbolDescriptionBuilder.vb (8)
77Protected Overrides Function GetInitializerSourcePartsAsync(symbol As ISymbol) As Task(Of ImmutableArray(Of SymbolDisplayPart)) 86Return SpecializedTasks.EmptyImmutableArray(Of SymbolDisplayPart) 89Protected Overrides Function ToMinimalDisplayParts(symbol As ISymbol, semanticModel As SemanticModel, position As Integer, format As SymbolDisplayFormat) As ImmutableArray(Of SymbolDisplayPart) 122Private Overloads Async Function GetInitializerSourcePartsAsync(symbol As IParameterSymbol) As Task(Of ImmutableArray(Of SymbolDisplayPart)) 128Return ImmutableArray(Of SymbolDisplayPart).Empty 131Private Overloads Async Function GetInitializerSourcePartsAsync(symbol As ILocalSymbol) As Task(Of ImmutableArray(Of SymbolDisplayPart)) 141Private Overloads Async Function GetInitializerSourcePartsAsync(symbol As IFieldSymbol) As Task(Of ImmutableArray(Of SymbolDisplayPart)) 156Private Overloads Async Function GetInitializerSourcePartsAsync(equalsValue As EqualsValueSyntax) As Task(Of ImmutableArray(Of SymbolDisplayPart))
QuickInfo\VisualBasicSemanticQuickInfoProvider.vb (1)
210Dim builder = New List(Of SymbolDisplayPart)
SignatureHelp\AbstractOrdinaryMethodSignatureHelpProvider.vb (4)
32Private Shared Function GetMemberGroupPreambleParts(symbol As ISymbol, semanticModel As SemanticModel, position As Integer) As IList(Of SymbolDisplayPart) 33Dim result = New List(Of SymbolDisplayPart)() 52position As Integer) As IList(Of SymbolDisplayPart) 53Dim parts = New List(Of SymbolDisplayPart)
SignatureHelp\AbstractVisualBasicSignatureHelpProvider.vb (8)
13Protected Shared Function SynthesizedParameter(s As String) As SymbolDisplayPart 17Protected Shared Function Keyword(kind As SyntaxKind) As SymbolDisplayPart 21Protected Shared Function Punctuation(kind As SyntaxKind) As SymbolDisplayPart 25Protected Shared Function Text(_text As String) As SymbolDisplayPart 29Protected Shared Function Space() As SymbolDisplayPart 33Protected Shared Function NewLine() As SymbolDisplayPart 37Protected Shared Function GetSeparatorParts() As IList(Of SymbolDisplayPart) 51Protected Shared Sub AddExtensionPreamble(symbol As ISymbol, result As IList(Of SymbolDisplayPart))
SignatureHelp\AttributeSignatureHelpProvider.vb (6)
150Dim displayParts = New List(Of SymbolDisplayPart) 169Private Shared Function GetParameterPrefixDisplayParts(i As Integer) As List(Of SymbolDisplayPart) 171Return New List(Of SymbolDisplayPart) From { 181Private Shared Function GetPreambleParts(method As IMethodSymbol, semanticModel As SemanticModel, position As Integer) As IList(Of SymbolDisplayPart) 182Dim result = New List(Of SymbolDisplayPart)() 188Private Shared Function GetPostambleParts() As IList(Of SymbolDisplayPart)
SignatureHelp\FunctionAggregationSignatureHelpProvider.vb (5)
113Private Shared Function GetPreambleParts(method As IMethodSymbol) As IList(Of SymbolDisplayPart) 114Dim result = New List(Of SymbolDisplayPart)() 123position As Integer) As IList(Of SymbolDisplayPart) 124Dim parts = New List(Of SymbolDisplayPart) 153Dim parts = New List(Of SymbolDisplayPart)
SignatureHelp\GenericNameSignatureHelpProvider.Method.vb (4)
9Private Shared Function GetPreambleParts(method As IMethodSymbol, semanticModel As SemanticModel, position As Integer) As IList(Of SymbolDisplayPart) 10Dim result = New List(Of SymbolDisplayPart)() 38Private Shared Function GetPostambleParts(method As IMethodSymbol, semanticModel As SemanticModel, position As Integer) As IList(Of SymbolDisplayPart) 39Dim result = New List(Of SymbolDisplayPart)()
SignatureHelp\GenericNameSignatureHelpProvider.NamedType.vb (3)
9Private Shared Function GetPreambleParts(namedType As INamedTypeSymbol, semanticModel As SemanticModel, position As Integer) As IList(Of SymbolDisplayPart) 10Dim result = New List(Of SymbolDisplayPart)() 21Private Shared Function GetPostambleParts() As IList(Of SymbolDisplayPart)
SignatureHelp\GenericNameSignatureHelpProvider.vb (3)
150Dim parts = New List(Of SymbolDisplayPart) 162parts As List(Of SymbolDisplayPart), 164position As Integer) As IList(Of SymbolDisplayPart)
SignatureHelp\InvocationExpressionSignatureHelpProvider.DelegateInvoke.vb (4)
39Private Shared Function GetDelegateInvokePreambleParts(invokeMethod As IMethodSymbol, semanticModel As SemanticModel, position As Integer) As IList(Of SymbolDisplayPart) 40Dim displayParts = New List(Of SymbolDisplayPart)() 68position As Integer) As IList(Of SymbolDisplayPart) 69Dim parts = New List(Of SymbolDisplayPart)
SignatureHelp\InvocationExpressionSignatureHelpProvider.ElementAccess.vb (4)
53Private Shared Function GetIndexerPreambleParts(symbol As IPropertySymbol, semanticModel As SemanticModel, position As Integer) As IList(Of SymbolDisplayPart) 54Dim result = New List(Of SymbolDisplayPart)() 62position As Integer) As IList(Of SymbolDisplayPart) 63Dim parts = New List(Of SymbolDisplayPart)
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.DelegateType.vb (4)
38Private Shared Function GetDelegateTypePreambleParts(invokeMethod As IMethodSymbol, semanticModel As SemanticModel, position As Integer) As IList(Of SymbolDisplayPart) 39Dim result = New List(Of SymbolDisplayPart)() 48Dim parts = New List(Of SymbolDisplayPart)() 86Private Shared Function GetDelegateTypePostambleParts() As IList(Of SymbolDisplayPart)
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.NormalType.vb (3)
60Private Shared Function GetNormalTypePreambleParts(method As IMethodSymbol, semanticModel As SemanticModel, position As Integer) As IList(Of SymbolDisplayPart) 61Dim result = New List(Of SymbolDisplayPart)() 67Private Shared Function GetNormalTypePostambleParts() As IList(Of SymbolDisplayPart)
SignatureHelp\RaiseEventStatementSignatureHelpProvider.vb (3)
132) As IList(Of SymbolDisplayPart) 134Dim result = New List(Of SymbolDisplayPart)() 149Private Shared Function GetPostambleParts() As IList(Of SymbolDisplayPart)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
SymbolDisplay\SymbolDisplayTests.vb (3)
6025Dim description As ImmutableArray(Of SymbolDisplayPart) 6073Private Shared Function Verify(parts As ImmutableArray(Of SymbolDisplayPart), expectedText As String, ParamArray kinds As SymbolDisplayPartKind()) As ImmutableArray(Of SymbolDisplayPart)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (22)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolDisplayPartExtensions.vb (2)
11Public Function MassageErrorTypeNames(p As SymbolDisplayPart, Optional replacement As String = Nothing) As SymbolDisplayPart
Utilities\IntrinsicOperators\AbstractIntrinsicOperatorDocumentation.vb (4)
22Public MustOverride ReadOnly Property PrefixParts As IList(Of SymbolDisplayPart) 26Public Overridable Function GetParameterDisplayParts(index As Integer) As IList(Of SymbolDisplayPart) 34Public Overridable Function GetSuffix(semanticModel As SemanticModel, position As Integer, nodeToBind As SyntaxNode, cancellationToken As CancellationToken) As IList(Of SymbolDisplayPart) 35Dim suffixParts As New List(Of SymbolDisplayPart)
Utilities\IntrinsicOperators\AddHandlerStatementDocumentation.vb (1)
26Public Overrides ReadOnly Property PrefixParts As IList(Of SymbolDisplayPart)
Utilities\IntrinsicOperators\BinaryConditionalExpressionDocumentation.vb (1)
49Public Overrides ReadOnly Property PrefixParts As IList(Of SymbolDisplayPart)
Utilities\IntrinsicOperators\CTypeCastExpressionDocumentation.vb (1)
15Public Overrides ReadOnly Property PrefixParts As IList(Of SymbolDisplayPart)
Utilities\IntrinsicOperators\DirectCastExpressionDocumentation.vb (1)
15Public Overrides ReadOnly Property PrefixParts As IList(Of SymbolDisplayPart)
Utilities\IntrinsicOperators\GetTypeExpressionDocumentation.vb (1)
41Public Overrides ReadOnly Property PrefixParts As IList(Of SymbolDisplayPart)
Utilities\IntrinsicOperators\GetXmlNamespaceExpressionDocumentation.vb (2)
9Public Overrides Function GetParameterDisplayParts(index As Integer) As IList(Of SymbolDisplayPart) 52Public Overrides ReadOnly Property PrefixParts As IList(Of SymbolDisplayPart)
Utilities\IntrinsicOperators\MidAssignmentDocumentation.vb (3)
43Public Overrides Function GetParameterDisplayParts(index As Integer) As IList(Of SymbolDisplayPart) 63Public Overrides Function GetSuffix(semanticModel As SemanticModel, position As Integer, nodeToBind As SyntaxNode, cancellationToken As CancellationToken) As IList(Of SymbolDisplayPart) 73Public Overrides ReadOnly Property PrefixParts As IList(Of SymbolDisplayPart)
Utilities\IntrinsicOperators\NameOfExpressionDocumentation.vb (1)
27Public Overrides ReadOnly Property PrefixParts As IList(Of SymbolDisplayPart)
Utilities\IntrinsicOperators\PredefinedCastExpressionDocumentation.vb (1)
53Public Overrides ReadOnly Property PrefixParts As IList(Of SymbolDisplayPart)
Utilities\IntrinsicOperators\RemoveHandlerStatementDocumentation.vb (1)
26Public Overrides ReadOnly Property PrefixParts As IList(Of SymbolDisplayPart)
Utilities\IntrinsicOperators\TernaryConditionalExpressionDocumentation.vb (2)
15Public Overrides Function GetParameterDisplayParts(index As Integer) As IList(Of SymbolDisplayPart) 65Public Overrides ReadOnly Property PrefixParts As IList(Of SymbolDisplayPart)
Utilities\IntrinsicOperators\TryCastExpressionDocumentation.vb (1)
15Public Overrides ReadOnly Property PrefixParts As IList(Of SymbolDisplayPart)
Microsoft.CodeAnalysis.Workspaces (15)
Classification\Classifier.cs (4)
113internal static async Task<ImmutableArray<SymbolDisplayPart>> GetClassifiedSymbolDisplayPartsAsync( 123internal static ImmutableArray<SymbolDisplayPart> ConvertClassificationsToParts( 126var parts = ArrayBuilder<SymbolDisplayPart>.GetInstance(); 148private static IEnumerable<SymbolDisplayPart> Space(int count = 1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
188public static ImmutableArray<SymbolDisplayPart> ToSymbolDisplayParts(this string text)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolDisplayPartExtensions.cs (6)
12public static string GetFullText(this IEnumerable<SymbolDisplayPart> parts) 15public static void AddLineBreak(this IList<SymbolDisplayPart> parts, string text = "\r\n") 18public static void AddMethodName(this IList<SymbolDisplayPart> parts, string text) 21public static void AddPunctuation(this IList<SymbolDisplayPart> parts, string text) 24public static void AddSpace(this IList<SymbolDisplayPart> parts, string text = " ") 27public static void AddText(this IList<SymbolDisplayPart> parts, string text)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (2)
201public ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat format = null) 207public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, int position, SymbolDisplayFormat format = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (2)
67public ImmutableArray<SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) 73public ImmutableArray<SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null)
Microsoft.VisualStudio.LanguageServices (5)
ChangeSignature\ChangeSignatureDialogViewModel.cs (3)
41private readonly ImmutableArray<SymbolDisplayPart> _declarationParts; 346private List<SymbolDisplayPart> GetSignatureDisplayParts() 348var displayParts = new List<SymbolDisplayPart>();
ChangeSignature\ChangeSignatureViewModelFactoryService.cs (1)
15public abstract SymbolDisplayPart[] GeneratePreviewDisplayParts(
ChangeSignature\IChangeSignatureViewModelFactoryService.cs (1)
13SymbolDisplayPart[] GeneratePreviewDisplayParts(AddedParameterViewModel addedParameterViewModel);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
ChangeSignature\CSharpChangeSignatureViewModelFactoryService.cs (2)
29public override SymbolDisplayPart[] GeneratePreviewDisplayParts(AddedParameterViewModel addedParameterViewModel) 31var parts = new List<SymbolDisplayPart>();
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
ChangeSignature\VisualBasicChangeSignatureViewModelFactoryService.vb (2)
21Public Overrides Function GeneratePreviewDisplayParts(addedParameterViewModel As ChangeSignatureDialogViewModel.AddedParameterViewModel) As SymbolDisplayPart() 22Dim parts = New List(Of SymbolDisplayPart)