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