14 references to FormatLiteral
ConfigurationSchemaGenerator (1)
RuntimeSource\SourceGenerators\CSharpSyntaxUtilities.cs (1)
28return SymbolDisplay.FormatLiteral(@string, quote: true);
Microsoft.AspNetCore.App.Analyzers (1)
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (1)
264string s => SymbolDisplay.FormatLiteral(s, true),
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
599return Literal(SymbolDisplay.FormatLiteral(value, quote: true), value);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
114var valueString = SymbolDisplay.FormatLiteral(val, quote: true);
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Performance\CSharpUseSearchValues.Fixer.cs (1)
134string stringLiteral = SymbolDisplay.FormatLiteral(valuesString, quote: true);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
114var valueString = SymbolDisplay.FormatLiteral(val, quote: true);
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)
Emission\Emitter.Utils.cs (1)
16internal static string EscapeMessageString(string s) => SymbolDisplay.FormatLiteral(s, true);
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
114var valueString = SymbolDisplay.FormatLiteral(val, quote: true);
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Emitter.cs (1)
2072private static string FormatStringLiteral(string? value) => value is null ? "null" : SymbolDisplay.FormatLiteral(value, quote: true);
src\runtime\src\libraries\Common\src\SourceGenerators\CSharpSyntaxUtilities.cs (1)
28return SymbolDisplay.FormatLiteral(@string, quote: true);
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Emitter.cs (1)
5544private static string Literal(string s, bool quote = true) => SymbolDisplay.FormatLiteral(s, quote);