Base:
32 references to ToString
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
214string message = diagnostic.Item2.ToString();
BuildValidator (1)
CompilationDiff.cs (1)
147logger.LogError(diag.ToString());
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
Verifiers\CodeFixVerifier.cs (1)
116string.Join("\r\n", newCompilerDiagnostics.Select(d => d.ToString())),
Verifiers\DiagnosticVerifier.cs (1)
242builder.AppendLine("// " + diagnostics[i].ToString());
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
Verifiers\CodeFixVerifier.cs (1)
116string.Join("\r\n", newCompilerDiagnostics.Select(d => d.ToString())),
Verifiers\DiagnosticVerifier.cs (1)
242builder.AppendLine("// " + diagnostics[i].ToString());
Microsoft.CodeAnalysis (5)
Diagnostic\Diagnostic.cs (1)
446return ToString();
Diagnostic\DiagnosticBag.cs (1)
282builder.AppendLine(diag.ToString());
Diagnostic\DiagnosticWithInfo.cs (1)
191return ToString();
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1195Environment.FailFast(CreateAnalyzerExceptionDiagnostic(analyzer, ex, info).ToString());
SourceGeneration\GeneratorDriver.cs (1)
344Environment.FailFast(CreateGeneratorExceptionDiagnostic(messageProvider, sourceGenerator, e, isInit).ToString());
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
196var diagnostics = string.Join(", ", errors.Select(d => d.ToString()));
Microsoft.CodeAnalysis.CSharp (1)
Lowering\SyntheticBoundNodeFactory.cs (1)
36public MissingPredefinedMember(Diagnostic error) : base(error.ToString())
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Diagnostics\GetDiagnosticsTests.cs (2)
1447Assert.Equal(analyzerDiagnostic.ToString(), compilationDiagnostic.ToString());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
418Assert.Contains(exception.ToString(), generatorDiagnostics.Single().ToString());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
IncrementalParsing\IncrementalParsingTests.cs (2)
3107fullTree.GetDiagnostics().Select(d => d.ToString()), 3108incrTree.GetDiagnostics().Select(d => d.ToString()));
LexicalAndXml\PreprocessorTests.cs (2)
3217string errorString = error.ToString(); 3558Assert.Contains("100", diagnostics.First().ToString(), StringComparison.Ordinal); // one-based line number
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\TraceLog.cs (1)
91public static implicit operator Arg(Diagnostic value) => new(value.ToString());
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\RuntimeRudeEditDescription.cs (1)
14=> new RudeEditDiagnostic(kind, tree.GetText().Lines.GetTextSpan(new LinePositionSpan(position, position)), syntaxKind: 0, arguments).ToDiagnostic(tree).ToString();
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ScriptingTestHelpers.cs (1)
91e.Diagnostics.Any(d => d.Severity == DiagnosticSeverity.Error && e.Message == d.ToString());
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\CompilationExtensions.cs (2)
90Assert.True(emitResult.Success, "Diagnostics:\r\n" + string.Join("\r\n", emitResult.Diagnostics.Select(d => d.ToString()))); 104Assert.True(emitResult.Success, "Diagnostics: " + string.Join(", ", emitResult.Diagnostics.Select(d => d.ToString())));
ExceptionHelper.cs (1)
23sb.AppendLine(d.ToString());
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\AnalysisContextInfoTests.cs (1)
50Assert.True(diagnostics[0].ToString().IndexOf(analyzer.Info.GetContext()) >= 0);
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
196var diagnostics = string.Join(", ", errors.Select(d => d.ToString()));
StackDepthTest (1)
Program.cs (1)
85throw new Exception(diag[0].ToString());
System.Windows.Forms.Analyzers.CSharp.Tests (3)
Generators\ProjectFileReaderTests.cs (3)
58_output.WriteLine(diagnostic.ToString()); 122_output.WriteLine(diagnostic.ToString()); 181_output.WriteLine(diagnostic.ToString());