1 override of Format
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
DebuggerDiagnosticFormatter.cs (1)
13public override string Format(Diagnostic diagnostic, IFormatProvider? formatter = null)
13 references to Format
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 (3)
CommandLine\CommonCompiler.cs (1)
715consoleOutput.WriteLine(DiagnosticFormatter.Format(diagnostic, Culture));
Diagnostic\Diagnostic.cs (2)
415return DiagnosticFormatter.Instance.Format(this, formatProvider); 420return DiagnosticFormatter.Instance.Format(this, CultureInfo.CurrentUICulture);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\OverloadResolutionTests.cs (1)
7838Assert.Equal("(30,19): error CS0121: The call is ambiguous between the following methods or properties: 'A.B.X.Test(int)' and 'A.C.X.Test(int)'", DiagnosticFormatter.Instance.Format(comp.GetDiagnostics()[0], EnsureEnglishUICulture.PreferredOrNull));
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));
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
EvaluationContextBase.cs (1)
88: formatter.Format(error, preferredUICulture ?? CultureInfo.CurrentUICulture);
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.Service.cs (1)
788output.WriteLine(formatter.Format(diagnostic, output.FormatProvider as CultureInfo));
Microsoft.CodeAnalysis.VisualBasic (1)
Binding\Binder_Invocation.vb (1)
1901Dim msg = VisualBasicDiagnosticFormatter.Instance.Format(iDiagnostic.WithLocation(Location.None))