1 type derived from CSharpDiagnosticFormatter
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CommandLineDiagnosticFormatter.cs (1)
13internal sealed class CommandLineDiagnosticFormatter : CSharpDiagnosticFormatter
1 instantiation of CSharpDiagnosticFormatter
Microsoft.CodeAnalysis.CSharp (1)
Errors\CSharpDiagnosticFormatter.cs (1)
13public static new CSharpDiagnosticFormatter Instance { get; } = new CSharpDiagnosticFormatter();
10 references to CSharpDiagnosticFormatter
Microsoft.AspNetCore.Analyzer.Testing (1)
CodeFixRunner.cs (1)
56diagnostics.Select(d => CSharpDiagnosticFormatter.Instance.Format(d, CultureInfo.InvariantCulture)));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
CompilationFailedExceptionFactory.cs (1)
122CSharpDiagnosticFormatter.Instance.Format(diagnostic, CultureInfo.CurrentCulture),
Microsoft.CodeAnalysis.CSharp (2)
Errors\CSDiagnostic.cs (1)
23return CSharpDiagnosticFormatter.Instance.Format(this);
Errors\CSharpDiagnosticFormatter.cs (1)
13public static new CSharpDiagnosticFormatter Instance { get; } = new CSharpDiagnosticFormatter();
Microsoft.CodeAnalysis.CSharp.Scripting (2)
CSharpScriptCompiler.cs (1)
24public override DiagnosticFormatter DiagnosticFormatter => CSharpDiagnosticFormatter.Instance;
Hosting\CSharpReplServiceProvider.cs (1)
22public override DiagnosticFormatter DiagnosticFormatter => CSharpDiagnosticFormatter.Instance;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Diagnostics\LocationsTests.cs (3)
507Assert.Equal("test.txt(3,2): warning CS0000: msg", CSharpDiagnosticFormatter.Instance.Format(diagnostic, EnsureEnglishUICulture.PreferredOrNull)); 524Assert.Equal("test.txt(3,2): warning CS0000: msg", CSharpDiagnosticFormatter.Instance.Format(diagnosticWithoutMapping, EnsureEnglishUICulture.PreferredOrNull)); 527Assert.Equal("test2.txt(4,3): warning CS0000: msg", CSharpDiagnosticFormatter.Instance.Format(diagnosticWithMapping, EnsureEnglishUICulture.PreferredOrNull));
Parsing\ParserErrorMessageTests.cs (1)
2634Assert.Equal("error CS1029: #error: '\u0444\u0430\u0439\u043B'", CSharpDiagnosticFormatter.Instance.Format(error.WithLocation(Location.None), EnsureEnglishUICulture.PreferredOrNull));