150 references to 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 (11)
SymbolDisplay\SymbolDisplay.cs (1)
276builder.Add(new SymbolDisplayPart(SymbolDisplayPartKind.MethodName, symbol, "<top-level-statements-entry-point>"));
SymbolDisplay\SymbolDisplayVisitor.cs (4)
98return new SymbolDisplayPart(kind, symbol, "?"); 103return new SymbolDisplayPart(kind, symbol, text); 111return new SymbolDisplayPart(kind, symbol, text); 347var part = new SymbolDisplayPart(SymbolDisplayPartKind.Text, symbol, symbol.Name);
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, FeaturesResources.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.Symbol.UnitTests (1)
SymbolDisplay\SymbolDisplayTests.cs (1)
9040new SymbolDisplayPart(SymbolDisplayPartKind.Text, preprocessingSymbol, "NET5_0_OR_GREATER")
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)
151? [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)
126finalParts.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, symbol: null, name));
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (4)
484AddToGroup(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 (13)
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 (2)
91Return New SymbolDisplayPart(kind, symbol, If(escape, EscapeIdentifier(text), text)) 319Dim part = New SymbolDisplayPart(SymbolDisplayPartKind.Text, symbol, symbol.Name)
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 (8)
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\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, " "))