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