60 references to SymbolDisplay
ConfigurationSchemaGenerator (2)
Microsoft.AspNetCore.App.Analyzers (7)
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (7)
249return $"({enumType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat)}){SymbolDisplay.FormatPrimitive(defaultValue!, false, false)}";
259return $"({underlyingEnumType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat)}){SymbolDisplay.FormatPrimitive(defaultValue!, false, false)}";
264string s => SymbolDisplay.FormatLiteral(s, true),
265char c => SymbolDisplay.FormatLiteral(c, true),
271float f => $"{SymbolDisplay.FormatPrimitive(f, false, false)}F",
275decimal d => $"{SymbolDisplay.FormatPrimitive(d, false, false)}M",
276_ => SymbolDisplay.FormatPrimitive(defaultValue, false, false)!,
Microsoft.CodeAnalysis.CSharp (26)
Symbols\PublicModel\TypeSymbol.cs (4)
175return SymbolDisplay.ToDisplayString(this, topLevelNullability, format);
180return SymbolDisplay.ToDisplayParts(this, topLevelNullability, format);
185return SymbolDisplay.ToMinimalDisplayString(this, topLevelNullability, semanticModel, position, format);
190return SymbolDisplay.ToMinimalDisplayParts(this, topLevelNullability, semanticModel, position, format);
Symbols\TypeSymbol.cs (4)
669return SymbolDisplay.ToDisplayString((ITypeSymbol)ISymbol, topLevelNullability, format);
674return SymbolDisplay.ToDisplayParts((ITypeSymbol)ISymbol, topLevelNullability, format);
683return SymbolDisplay.ToMinimalDisplayString((ITypeSymbol)ISymbol, topLevelNullability, semanticModel, position, format);
692return SymbolDisplay.ToMinimalDisplayParts((ITypeSymbol)ISymbol, topLevelNullability, semanticModel, position, format);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp.Features (6)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.Razor.Compiler (1)
Microsoft.Extensions.Logging.Generators (3)
LoggerMessageGenerator.Emitter.cs (3)
188{nestedIndentation}return {formatMethodBegin}${SymbolDisplay.FormatLiteral(lm.Message, quote: true)}{formatMethodEnd};
289_builder.AppendLine($" {nestedIndentation}{index++} => new global::System.Collections.Generic.KeyValuePair<string, object?>(\"{{OriginalFormat}}\", {SymbolDisplay.FormatLiteral(lm.Message, quote: true)}),");
453_builder.Append(@$"({level}, new global::Microsoft.Extensions.Logging.EventId({lm.EventId}, {eventName}), {SymbolDisplay.FormatLiteral(lm.Message, quote: true)}, new global::Microsoft.Extensions.Logging.LogDefineOptions() {{ SkipEnabledCheck = true }});
Microsoft.Gen.Logging (1)
Roslyn.Diagnostics.CSharp.Analyzers (2)
System.Text.Json.SourceGeneration (4)
System.Text.RegularExpressions.Generator (2)