1 write to Diagnostics
Microsoft.CodeAnalysis.Scripting (1)
CompilationErrorException.cs (1)
30Diagnostics = diagnostics;
13 references to Diagnostics
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (9)
InteractiveSessionTests.cs (3)
1442Assert.Equal(ErrorCode.ERR_GlobalSingleTypeNameNotFound, (ErrorCode)e.Diagnostics.Single().Code); 1460e.Diagnostics.Verify( 1473e.Diagnostics.Verify(
ScriptTests.cs (6)
229ex.Diagnostics.Verify( 278ex.Diagnostics.Verify( 857ex.Diagnostics.Verify(Diagnostic(ErrorCode.ERR_EncodinglessSyntaxTree, code).WithLocation(1, 1)); 1013ex.Diagnostics.Verify( 1035ex.Diagnostics.Verify( 1060ex.Diagnostics.Verify(
Microsoft.CodeAnalysis.Scripting (2)
Hosting\CommandLine\CommandLineRunner.cs (1)
214Compiler.ReportDiagnostics(e.Diagnostics, Console.Error, errorLogger, compilation: null);
Script.cs (1)
371return ImmutableArray.CreateRange(e.Diagnostics.Where(d => d.Severity is DiagnosticSeverity.Error or DiagnosticSeverity.Warning));
Microsoft.CodeAnalysis.Scripting.TestUtilities (2)
ScriptingTestHelpers.cs (2)
90e.Diagnostics.Verify(expectedDiagnostics); 91e.Diagnostics.Any(d => d.Severity == DiagnosticSeverity.Error && e.Message == d.ToString());