6 implementations of ToDisplayParts
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
201public ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat format = null)
Microsoft.CodeAnalysis.CSharp (2)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
83ImmutableArray<SymbolDisplayPart> ISymbol.ToDisplayParts(SymbolDisplayFormat? format)
Symbols\PublicModel\Symbol.cs (1)
169ImmutableArray<SymbolDisplayPart> ISymbol.ToDisplayParts(SymbolDisplayFormat format)
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
95public ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat format = null)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
1329Private Function ISymbol_ToDisplayParts(Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) Implements ISymbol.ToDisplayParts
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
201public ImmutableArray<SymbolDisplayPart> ToDisplayParts(SymbolDisplayFormat format = null)
72 references to ToDisplayParts
Microsoft.CodeAnalysis (1)
SymbolDisplay\SymbolDisplayPart.cs (1)
13/// <seealso cref="ISymbol.ToDisplayParts"/>
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
205var typeArgument = typeArguments.Single().ToDisplayParts().Last().ToString();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (54)
SymbolDisplay\SymbolDisplayTests.cs (54)
6616Verify(localSymbol.ToDisplayParts(SymbolDisplayFormat.TestFormat), 6659Verify(localSymbol.ToDisplayParts(changeSignatureFormat), 6694Verify(localSymbol.ToDisplayParts(SymbolDisplayFormat.TestFormat), 6788Verify(localSymbol.ToDisplayParts(SymbolDisplayFormat.TestFormat), 7044Verify(semanticModel.GetDeclaredSymbol(declarations[0]).ToDisplayParts(format), 7052Verify(semanticModel.GetDeclaredSymbol(declarations[1]).ToDisplayParts(format), 7082Verify(semanticModel.GetDeclaredSymbol(declarations[0]).ToDisplayParts(format), 7090Verify(semanticModel.GetDeclaredSymbol(declarations[1]).ToDisplayParts(format), 7120Verify(semanticModel.GetDeclaredSymbol(declarations[0]).ToDisplayParts(format), 7130Verify(semanticModel.GetDeclaredSymbol(declarations[1]).ToDisplayParts(format), 7178Verify(members[0].ToDisplayParts(format), "int X.P1 { }", 7189Verify(members[1].ToDisplayParts(format), "int X.P2 { }", 7200Verify(members[2].ToDisplayParts(format), "event System.Action X.E1", 7211Verify(members[3].ToDisplayParts(format), "readonly event System.Action X.E2", 7250Verify(members[0].ToDisplayParts(format), 7262Verify(members[1].ToDisplayParts(format), 7279Verify(members[2].ToDisplayParts(format), 7291Verify(members[3].ToDisplayParts(format), 7308Verify(members[4].ToDisplayParts(format), 7320Verify(members[5].ToDisplayParts(format), 7340Verify(members[6].ToDisplayParts(format), 7352Verify(members[7].ToDisplayParts(format), 7364Verify(members[8].ToDisplayParts(format), 7384Verify(members[9].ToDisplayParts(format), 7396Verify(members[10].ToDisplayParts(format), 7406Verify(members[11].ToDisplayParts(format), 7426Verify(members[12].ToDisplayParts(format), 7436Verify(members[13].ToDisplayParts(format), 7448Verify(members[14].ToDisplayParts(format), 7462Verify(members[15].ToDisplayParts(format), 7474Verify(members[16].ToDisplayParts(format), 7510Verify(members[0].ToDisplayParts(format), 7520Verify(members[1].ToDisplayParts(format), 7535Verify(members[2].ToDisplayParts(format), 7545Verify(members[3].ToDisplayParts(format), 7560Verify(members[4].ToDisplayParts(format), 7570Verify(members[5].ToDisplayParts(format), 7588Verify(members[6].ToDisplayParts(format), 7598Verify(members[7].ToDisplayParts(format), 7608Verify(members[8].ToDisplayParts(format), 7620Verify(members[9].ToDisplayParts(format), 7630Verify(members[10].ToDisplayParts(format), 7663Verify(members[0].ToDisplayParts(format), 8402Verify(type.ToDisplayParts(), "System.Func<int, string>", 8413Verify(type.ToDisplayParts(s_fullDelegateFormat), "delegate string System.Func<int, string>(int arg)", 8453Verify(type.ToDisplayParts(), "<anonymous delegate>", 8456Verify(type.ToDisplayParts(s_fullDelegateFormat), "delegate string <anonymous delegate>(ref int arg)", 8881Verify(locals[0].ToDisplayParts(formatTypeOnly), 8887Verify(locals[0].ToDisplayParts(formatTypeRefAndScoped), 8895Verify(locals[1].ToDisplayParts(formatTypeOnly), 8901Verify(locals[1].ToDisplayParts(formatTypeRefAndScoped), 8935Verify(op.ToDisplayParts(SymbolDisplayFormat.TestFormat), 8992Verify(op.ToDisplayParts(ideFormat), 9037var displayParts = preprocessingSymbol.ToDisplayParts(format);
Microsoft.CodeAnalysis.Features (11)
CodeLens\CodeLensReferencesService.cs (1)
288var parts = declaredSymbol.ToDisplayParts(MethodDisplayFormat);
FindUsages\DefinitionItemFactory.cs (1)
114var nameDisplayParts = definition.ToDisplayParts(s_namePartsFormat).ToTaggedText();
FindUsages\FindUsagesHelpers.cs (1)
83=> definition.ToDisplayParts(GetFormat(definition)).ToTaggedText();
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (7)
336symbol.ToDisplayParts(s_descriptionStyle)); 472? symbol.ToDisplayParts(style) 473: symbol.OriginalDefinition.ToDisplayParts(style); 480WrapConstraints(symbol.OriginalDefinition, symbol.OriginalDefinition.ToDisplayParts(s_descriptionStyle))); 499var underlyingTypeDisplayParts = symbol.EnumUnderlyingType.ToDisplayParts(s_descriptionStyle.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.UseSpecialTypes)); 529symbol.ToDisplayParts(s_globalNamespaceStyle)); 534symbol.ToDisplayParts(s_descriptionStyle));
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
96=> _symbol.ToDisplayParts(format);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
1329Private Function ISymbol_ToDisplayParts(Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart) Implements ISymbol.ToDisplayParts
Microsoft.CodeAnalysis.Workspaces (2)
Rename\ConflictEngine\ConflictResolver.cs (1)
388return symbol.ToDisplayParts(s_metadataSymbolDisplayFormat)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
205var typeArgument = typeArguments.Single().ToDisplayParts().Last().ToString();
Microsoft.VisualStudio.LanguageServices (2)
ChangeSignature\ChangeSignatureDialogViewModel.cs (2)
74_declarationParts = symbol.ToDisplayParts(s_symbolDeclarationDisplayFormat); 367displayParts.AddRange(existingParameter.ParameterSymbol.ToDisplayParts(s_parameterDisplayFormat));