5 overrides of GetMessage
Microsoft.CodeAnalysis (5)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
51public override string GetMessage(IFormatProvider? formatProvider = null)
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
43public override string GetMessage(IFormatProvider? formatProvider = null)
Diagnostic\Diagnostic_SimpleDiagnostic.cs (1)
91public override string GetMessage(IFormatProvider? formatProvider = null)
Diagnostic\DiagnosticWithInfo.cs (1)
99public override string GetMessage(IFormatProvider? formatProvider = null)
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
102public override string GetMessage(IFormatProvider? formatProvider = null)
29 references to GetMessage
dotnet-format (2)
Analyzers\AnalyzerFormatter.cs (1)
192formattedFiles.Add(new FormattedFile(document, new[] { new FileChange(diagnosticPosition, diagnostic.Id, $"{diagnostic.Severity.ToString().ToLower()} {diagnostic.Id}: {diagnostic.GetMessage()}") }));
Logging\ILoggerExtensions.cs (1)
20=> LogIssue(logger, document, diagnostic.Severity.ToString().ToLower(), diagnostic.Id, diagnosticPosition.Line + 1, diagnosticPosition.Character + 1, diagnostic.GetMessage(), changesAreErrors);
Microsoft.Analyzers.Local.Tests (2)
CallAnalysis\UseThrowsTests.cs (2)
35Assert.Contains(ThrowHelpersClass + exception, d[0].GetMessage(), StringComparison.Ordinal); 283Assert.Contains(ThrowIfNullHelper, d[0].GetMessage(), StringComparison.Ordinal);
Microsoft.CodeAnalysis (9)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
58_originalDiagnostic.GetMessage(formatProvider),
CommandLine\SarifV1ErrorLogger.cs (1)
72string? message = diagnostic.GetMessage(_culture);
CommandLine\SarifV2ErrorLogger.cs (1)
65string? message = diagnostic.GetMessage(_culture);
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
44=> _originalUnsuppressedDiagnostic.GetMessage(formatProvider);
Diagnostic\DiagnosticFormatter.cs (2)
60diagnostic.GetMessage(culture), 66diagnostic.GetMessage(culture),
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
1511exceptionDiagnostic.GetMessage() == other.GetMessage();
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
104return _original.GetMessage(formatProvider);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
47var title = diagnostic.GetMessage();
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (1)
29var title = diagnostic.GetMessage();
Microsoft.CodeAnalysis.CSharp.Features (3)
Copilot\CSharpCopilotCodeFixProvider.DismissChangesCodeAction.cs (1)
50m["Message"] = diagnostic.GetMessage();
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
47var title = diagnostic.GetMessage();
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (1)
29var title = diagnostic.GetMessage();
Microsoft.CodeAnalysis.Features (1)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
74message: diagnostic.GetMessage(),
Microsoft.CodeAnalysis.Workspaces (3)
Diagnostics\DiagnosticData.cs (1)
265diagnostic.GetMessage(CultureInfo.CurrentUICulture),
Log\WorkspaceStructureLogger.cs (1)
194diagnostic.GetMessage());
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (1)
274logger.Log(" " + diagnostic.GetMessage());
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Roslyn4.0.cs (1)
121if ((seen ??= new()).Add((diagnostic.Id, diagnostic.Location?.SourceSpan, diagnostic.Location?.SourceTree?.FilePath, diagnostic.GetMessage())))
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
GeneratorTests.cs (1)
113string.Join(", ", unexpectedDiagnostics.Select(d => $"{d.Id}: {d.GetMessage()}")));
Microsoft.Gen.Metrics.Unit.Tests (5)
ParserTests.cs (2)
84Assert.Contains($"must not return '{returnType}'", d[0].GetMessage()); 834Assert.Contains("Test.TypeB ⇆ Test.TypeA", diag.GetMessage());
ParserTests.Diagnostics.cs (3)
35Assert.Contains("Test.TypeB ⇆ Test.TypeA", diag.GetMessage()); 65Assert.Contains("Test.TypeC ⇆ Test.TypeB", diag.GetMessage()); 96Assert.Contains("Test.Transitive ⇆ Test.Interim", diag.GetMessage());